diff --git a/.stylelintrc.json b/.stylelintrc.json
new file mode 100644
index 0000000000000..ced1059555879
--- /dev/null
+++ b/.stylelintrc.json
@@ -0,0 +1,17 @@
+{
+ "extends": "stylelint-config-wordpress",
+ "rules": {
+ "at-rule-empty-line-before": null,
+ "at-rule-no-unknown": null,
+ "comment-empty-line-before": null,
+ "declaration-block-no-duplicate-properties": null,
+ "declaration-property-unit-whitelist": null,
+ "font-weight-notation": null,
+ "max-line-length": null,
+ "no-descending-specificity": null,
+ "no-duplicate-selectors": null,
+ "rule-empty-line-before": null,
+ "selector-class-pattern": null,
+ "value-keyword-case": null
+ }
+}
diff --git a/.travis.yml b/.travis.yml
index 08f5b1519d411..ee95eb70ab599 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -29,38 +29,38 @@ branches:
jobs:
include:
- stage: test
- env: WP_VERSION=4.9.7
+ env: WP_VERSION=latest
script:
- npm install || exit 1
- npm run ci || exit 1
- stage: test
- env: WP_VERSION=4.9.7 DOCKER=true
+ env: WP_VERSION=latest DOCKER=true
script:
- ./bin/run-wp-unit-tests.sh
- stage: test
php: 5.6
- env: WP_VERSION=4.9.7
+ env: WP_VERSION=latest
script:
- ./bin/run-wp-unit-tests.sh
if: branch = master and type != "pull_request"
- stage: test
php: 7.1
- env: WP_VERSION=4.9.7 SWITCH_TO_PHP=5.3
+ env: WP_VERSION=latest SWITCH_TO_PHP=5.3
script:
- ./bin/run-wp-unit-tests.sh
if: branch = master and type != "pull_request"
- stage: test
php: 7.1
- env: WP_VERSION=4.9.7 SWITCH_TO_PHP=5.2
+ env: WP_VERSION=latest SWITCH_TO_PHP=5.2
script:
- ./bin/run-wp-unit-tests.sh
- stage: test
- env: WP_VERSION=4.9.7
+ env: WP_VERSION=latest
script:
- npm install || exit 1
- npm run build || exit 1
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 69c7174fea19f..45c340220472f 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -154,6 +154,10 @@ Documentation is automatically synced from master to the [Gutenberg Documentatio
To add a new documentation page, you'll have to create a Markdown file in the [docs](https://github.com/WordPress/gutenberg/tree/master/docs) folder and add an item to the [manifest file](https://github.com/WordPress/gutenberg/blob/master/docs/manifest.json).
+### `@wordpress/component`
+
+If you're contributing to the documentation of any component from the `@wordpress/component` package, take a look at its [guidelines for contributing](./packages/components/CONTRIBUTING.md).
+
## Reporting Security Issues
Please see [SECURITY.md](./SECURITY.md).
diff --git a/bin/install-wordpress.sh b/bin/install-wordpress.sh
index d2625af72b983..6887c89bb4904 100755
--- a/bin/install-wordpress.sh
+++ b/bin/install-wordpress.sh
@@ -10,6 +10,7 @@ set -e
CLI='cli'
CONTAINER='wordpress'
SITE_TITLE='Gutenberg Dev'
+WP_VERSION=${WP_VERSION-latest}
# If we're installing/re-installing the test site, change the containers used.
if [ "$1" == '--e2e_tests' ]; then
@@ -50,9 +51,11 @@ echo -e $(status_message "Installing WordPress...")
# The `-u 33` flag tells Docker to run the command as a particular user and
# prevents permissions errors. See: https://github.com/WordPress/gutenberg/pull/8427#issuecomment-410232369
docker-compose run --rm -u 33 $CLI core install --title="$SITE_TITLE" --admin_user=admin --admin_password=password --admin_email=test@test.com --skip-email --url=http://localhost:$HOST_PORT >/dev/null
-# Check for WordPress updates, just in case the WordPress image isn't up to date.
-# (Disabled until https://github.com/WordPress/gutenberg/issues/8445 is fixed.)
-# docker-compose run --rm -u 33 $CLI core update >/dev/null
+
+if [ "$WP_VERSION" == "latest" ]; then
+ # Check for WordPress updates, to make sure we're running the very latest version.
+ docker-compose run --rm -u 33 $CLI core update >/dev/null
+fi
# If the 'wordpress' volume wasn't during the down/up earlier, but the post port has changed, we need to update it.
CURRENT_URL=$(docker-compose run -T --rm $CLI option get siteurl)
diff --git a/core-blocks/button/editor.scss b/core-blocks/button/editor.scss
index 40b3f90f77a69..6f3f6086769c8 100644
--- a/core-blocks/button/editor.scss
+++ b/core-blocks/button/editor.scss
@@ -38,7 +38,7 @@
.editor-url-input__suggestions {
width: $blocks-button__link-input-width - $icon-button-size - $icon-button-size;
- z-index: z-index( '.core-blocks-button__inline-link .editor-url-input__suggestions' );
+ z-index: z-index(".core-blocks-button__inline-link .editor-url-input__suggestions");
}
> .dashicon {
@@ -49,7 +49,7 @@
color: $dark-gray-100;
}
- .editor-url-input input[type=text]::placeholder {
+ .editor-url-input input[type="text"]::placeholder {
color: $dark-gray-100;
}
diff --git a/core-blocks/button/style.scss b/core-blocks/button/style.scss
index 91ab636558dc7..c3b8ec7c17cde 100644
--- a/core-blocks/button/style.scss
+++ b/core-blocks/button/style.scss
@@ -13,7 +13,7 @@ $blocks-button__line-height: $big-font-size + 6px;
font-size: $big-font-size;
line-height: $blocks-button__line-height;
margin: 0;
- padding: ( $blocks-button__height - $blocks-button__line-height ) / 2 24px;
+ padding: ($blocks-button__height - $blocks-button__line-height) / 2 24px;
text-align: center;
text-decoration: none;
white-space: normal;
@@ -80,7 +80,7 @@ $blocks-button__line-height: $big-font-size + 6px;
}
&.has-very-light-gray-background-color {
- border-color: #eeeeee;
+ border-color: #eee;
}
&.has-cyan-bluish-gray-background-color {
diff --git a/core-blocks/code/editor.scss b/core-blocks/code/editor.scss
index a06086944cd38..681484c287bb5 100644
--- a/core-blocks/code/editor.scss
+++ b/core-blocks/code/editor.scss
@@ -2,7 +2,7 @@
font-family: $editor-html-font;
font-size: $text-editor-font-size;
color: $dark-gray-800;
- padding: .8em 1.6em;
+ padding: 0.8em 1.6em;
border: $border-width solid $light-gray-500;
border-radius: 4px;
}
@@ -33,7 +33,7 @@
cursor: default;
}
- &> span {
+ & > span {
border: $border-width solid transparent;
padding: 0 6px;
box-sizing: content-box;
diff --git a/core-blocks/code/theme.scss b/core-blocks/code/theme.scss
index c44affa6dda6e..91edcbf03fed7 100644
--- a/core-blocks/code/theme.scss
+++ b/core-blocks/code/theme.scss
@@ -2,7 +2,7 @@
font-family: $editor-html-font;
font-size: $text-editor-font-size;
color: $dark-gray-800;
- padding: .8em 1.6em;
+ padding: 0.8em 1.6em;
border: 1px solid $light-gray-500;
border-radius: 4px;
}
diff --git a/core-blocks/cover-image/editor.scss b/core-blocks/cover-image/editor.scss
index 1f4af11e6603b..d62d5806fd3b7 100644
--- a/core-blocks/cover-image/editor.scss
+++ b/core-blocks/cover-image/editor.scss
@@ -10,7 +10,7 @@
margin: 0 -2px;
border-radius: 2px;
box-shadow: none;
- background: rgba( 255, 255, 255, 0.3 );
+ background: rgba(255, 255, 255, 0.3);
}
.editor-rich-text strong {
@@ -25,7 +25,7 @@
justify-content: flex-start;
}
- &.has-right-content .editor-rich-text__inline-toolbar{
+ &.has-right-content .editor-rich-text__inline-toolbar {
justify-content: flex-end;
}
}
diff --git a/core-blocks/cover-image/style.scss b/core-blocks/cover-image/style.scss
index f61cea278841f..8c38d4aa2939a 100644
--- a/core-blocks/cover-image/style.scss
+++ b/core-blocks/cover-image/style.scss
@@ -53,18 +53,18 @@
}
&.has-background-dim::before {
- content: '';
+ content: "";
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
- background-color: rgba( $black, 0.5 );
+ background-color: rgba($black, 0.5);
}
@for $i from 1 through 10 {
&.has-background-dim.has-background-dim-#{ $i * 10 }::before {
- background-color: rgba( $black, $i * 0.1 );
+ background-color: rgba($black, $i * 0.1);
}
}
diff --git a/core-blocks/file/style.scss b/core-blocks/file/style.scss
index 744e89e582f2a..f25d4f08d9f60 100644
--- a/core-blocks/file/style.scss
+++ b/core-blocks/file/style.scss
@@ -26,7 +26,7 @@
&:active {
box-shadow: none;
color: $white;
- opacity: .85;
+ opacity: 0.85;
text-decoration: none;
}
}
diff --git a/core-blocks/freeform/editor.scss b/core-blocks/freeform/editor.scss
index 26b5a07935f03..91bb7b318fd88 100644
--- a/core-blocks/freeform/editor.scss
+++ b/core-blocks/freeform/editor.scss
@@ -110,7 +110,7 @@
margin: 15px auto;
outline: 0;
cursor: default;
- border: 2px dashed rgb( 186, 186, 186 );
+ border: 2px dashed rgb(186, 186, 186);
}
}
@@ -132,17 +132,17 @@
div[data-type="core/freeform"] .editor-block-contextual-toolbar + div {
- margin-top: 0;
- padding-top: 0;
+ margin-top: 0;
+ padding-top: 0;
}
.freeform-toolbar {
width: auto;
margin: 0 #{ -$parent-block-padding };
position: sticky;
- z-index: z-index( '.freeform-toolbar' );
+ z-index: z-index(".freeform-toolbar");
top: $block-padding;
- transform: translateY( -$block-padding );
+ transform: translateY(-$block-padding);
}
.freeform-toolbar:empty {
@@ -153,7 +153,7 @@ div[data-type="core/freeform"] .editor-block-contextual-toolbar + div {
&::before {
font-family: $default-font;
font-size: $default-font-size;
- content: attr( data-placeholder );
+ content: attr(data-placeholder);
color: #555d66;
line-height: 37px;
padding: $block-padding;
diff --git a/core-blocks/gallery/editor.scss b/core-blocks/gallery/editor.scss
index 7190c3051822d..7630e11bc751e 100644
--- a/core-blocks/gallery/editor.scss
+++ b/core-blocks/gallery/editor.scss
@@ -1,15 +1,15 @@
.wp-block-gallery.components-placeholder {
- margin: 0px;
+ margin: 0;
}
// Allow gallery items to go edge to edge.
-.gutenberg .wp-block-gallery:not( .components-placeholder ) {
+.gutenberg .wp-block-gallery:not(.components-placeholder) {
margin-left: -8px;
margin-right: -8px;
}
// Don't use negative margins when full-wide.
-.gutenberg [data-align="full"] .wp-block-gallery:not( .components-placeholder ) {
+.gutenberg [data-align="full"] .wp-block-gallery:not(.components-placeholder) {
margin-left: auto;
margin-right: auto;
}
@@ -17,7 +17,7 @@
.blocks-gallery-item {
.is-selected {
- outline: 4px solid theme( primary );
+ outline: 4px solid theme(primary);
outline-offset: -4px;
}
@@ -32,13 +32,13 @@
overflow-y: auto;
}
- .editor-rich-text figcaption:not( [data-is-placeholder-visible="true"] ) {
+ .editor-rich-text figcaption:not([data-is-placeholder-visible="true"]) {
position: relative;
overflow: hidden;
}
.is-selected .editor-rich-text {
- width: calc( 100% - 8px );
+ width: calc(100% - 8px);
left: 4px;
margin-top: -4px;
@@ -84,9 +84,9 @@
position: absolute;
top: 0;
right: 0;
- background-color: theme( primary );
+ background-color: theme(primary);
display: inline-flex;
- z-index: z-index( '.core-blocks-gallery-item__inline-menu' );
+ z-index: z-index(".core-blocks-gallery-item__inline-menu");
.components-button {
color: $white;
@@ -105,16 +105,18 @@
position: absolute;
top: 50%;
left: 50%;
- transform: translate( -50%, -50% );
+ transform: translate(-50%, -50%);
}
// IE11 doesn't support object-fit or flex very well, so we inline-block.
-@media all and ( -ms-high-contrast: none ) {
- *::-ms-backdrop, .blocks-gallery-item {
+@media all and (-ms-high-contrast: none) {
+ *::-ms-backdrop,
+ .blocks-gallery-item {
display: inline-block;
}
- *::-ms-backdrop, .blocks-gallery-item img {
+ *::-ms-backdrop,
+ .blocks-gallery-item img {
width: 100%;
}
-}
\ No newline at end of file
+}
diff --git a/core-blocks/gallery/style.scss b/core-blocks/gallery/style.scss
index 71eaa2c126665..ba6da0fffdf6b 100644
--- a/core-blocks/gallery/style.scss
+++ b/core-blocks/gallery/style.scss
@@ -2,7 +2,7 @@
display: flex;
flex-wrap: wrap;
list-style-type: none;
- padding: 0px;
+ padding: 0;
// allow gallery items to go edge to edge
margin: 0 -8px 0 -8px;
@@ -37,8 +37,8 @@
color: $white;
text-align: center;
font-size: $default-font-size;
- background: linear-gradient( 0deg, rgba( $color: $black, $alpha: 0.7 ) 0, rgba($color: $black, $alpha: 0.3) 60%, transparent );
-
+ background: linear-gradient(0deg, rgba($color: $black, $alpha: 0.7) 0, rgba($color: $black, $alpha: 0.3) 60%, transparent);
+
img {
display: inline;
}
@@ -61,7 +61,7 @@
// Responsive fallback value, 2 columns
& .blocks-gallery-image,
& .blocks-gallery-item {
- width: calc( 100% / 2 - 16px );
+ width: calc(100% / 2 - 16px);
}
&.columns-1 .blocks-gallery-image,
@@ -73,7 +73,7 @@
@for $i from 3 through 8 {
&.columns-#{ $i } .blocks-gallery-image,
&.columns-#{ $i } .blocks-gallery-item {
- width: calc(100% / #{ $i } - 16px );
+ width: calc(100% / #{ $i } - 16px);
}
}
}
diff --git a/core-blocks/image/editor.scss b/core-blocks/image/editor.scss
index 48f3de5183881..adc34413965de 100644
--- a/core-blocks/image/editor.scss
+++ b/core-blocks/image/editor.scss
@@ -29,11 +29,11 @@
width: 16px !important;
height: 16px !important;
position: absolute;
- background: theme( primary );
+ background: theme(primary);
.wp-block-image.is-focused & {
display: block;
- z-index: z-index( '.wp-block-image__resize-handlers' );
+ z-index: z-index(".wp-block-image__resize-handlers");
}
}
diff --git a/core-blocks/latest-posts/style.scss b/core-blocks/latest-posts/style.scss
index cbab1a36c65ab..2bbfb7384558b 100644
--- a/core-blocks/latest-posts/style.scss
+++ b/core-blocks/latest-posts/style.scss
@@ -20,7 +20,7 @@
@include break-small {
@for $i from 2 through 6 {
&.columns-#{ $i } li {
- width: calc( ( 100% / #{ $i } ) - 16px );
+ width: calc((100% / #{ $i }) - 16px);
}
}
}
diff --git a/core-blocks/more/editor.scss b/core-blocks/more/editor.scss
index 180ee3c8d369a..c0d2955bfeb5d 100644
--- a/core-blocks/more/editor.scss
+++ b/core-blocks/more/editor.scss
@@ -9,7 +9,7 @@
white-space: nowrap;
// Label
- input[type=text] {
+ input[type="text"] {
font-size: $default-font-size;
text-transform: uppercase;
font-weight: 600;
@@ -32,12 +32,12 @@
// Dashed line
&::before {
- content: '';
+ content: "";
position: absolute;
- top: calc( 50% );
+ top: calc(50%);
left: 0;
right: 0;
border-top: 3px dashed $light-gray-700;
- z-index: z-index( '.editor-block-list__block .wp-block-more::before' );
+ z-index: z-index(".editor-block-list__block .wp-block-more::before");
}
}
diff --git a/core-blocks/nextpage/editor.scss b/core-blocks/nextpage/editor.scss
index 4956abfa47790..0914b06af3bbb 100644
--- a/core-blocks/nextpage/editor.scss
+++ b/core-blocks/nextpage/editor.scss
@@ -24,12 +24,12 @@
// Dashed line
&::before {
- content: '';
+ content: "";
position: absolute;
- top: calc( 50% );
+ top: calc(50%);
left: 0;
right: 0;
border-top: 3px dashed $light-gray-700;
- z-index: z-index( '.editor-block-list__block .wp-block-more::before' );
+ z-index: z-index(".editor-block-list__block .wp-block-more::before");
}
}
diff --git a/core-blocks/paragraph/style.scss b/core-blocks/paragraph/style.scss
index ab1be60eb7e01..25d8cea731f3e 100644
--- a/core-blocks/paragraph/style.scss
+++ b/core-blocks/paragraph/style.scss
@@ -19,12 +19,12 @@ p {
// number of bugs in combination with `contenteditable` fields. The caret
// cannot be set around it, caret position calculation fails in Chrome, and
// typing at the end of the paragraph doesn't work.
- &.has-drop-cap:not( :focus ):first-letter {
+ &.has-drop-cap:not(:focus)::first-letter {
float: left;
font-size: 8.4em;
line-height: 0.68;
font-weight: 100;
- margin: .05em .1em 0 0;
+ margin: 0.05em 0.1em 0 0;
text-transform: uppercase;
font-style: normal;
}
diff --git a/core-blocks/pullquote/editor.scss b/core-blocks/pullquote/editor.scss
index 9dbd2bcffdf8b..fddbfa06b065a 100644
--- a/core-blocks/pullquote/editor.scss
+++ b/core-blocks/pullquote/editor.scss
@@ -21,7 +21,7 @@
.editor-rich-text__tinymce[data-is-empty="true"]::before {
width: 100%;
left: 50%;
- transform: translateX( -50% );
+ transform: translateX(-50%);
}
& > .core-blocks-pullquote__content .editor-rich-text__tinymce[data-is-empty="true"]::before,
diff --git a/core-blocks/separator/style.scss b/core-blocks/separator/style.scss
index 6a17542d8cd92..48c7d878091e6 100644
--- a/core-blocks/separator/style.scss
+++ b/core-blocks/separator/style.scss
@@ -15,7 +15,7 @@
height: auto;
&::before {
- content: '\00b7 \00b7 \00b7';
+ content: "\00b7 \00b7 \00b7";
color: $dark-gray-700;
font-size: 20px;
letter-spacing: 2em;
diff --git a/core-blocks/separator/theme.scss b/core-blocks/separator/theme.scss
index 7d8b0f41ffe90..1d679a32ece8f 100644
--- a/core-blocks/separator/theme.scss
+++ b/core-blocks/separator/theme.scss
@@ -4,7 +4,7 @@
margin: 1.65em auto;
// Default, thin style
- &:not( .is-style-wide ):not( .is-style-dots ) {
+ &:not(.is-style-wide):not(.is-style-dots) {
max-width: 100px;
}
-}
\ No newline at end of file
+}
diff --git a/core-blocks/spacer/editor.scss b/core-blocks/spacer/editor.scss
index 42a7bd423db9d..fd666690d043e 100644
--- a/core-blocks/spacer/editor.scss
+++ b/core-blocks/spacer/editor.scss
@@ -11,11 +11,11 @@
.core-blocks-spacer__resize-handler-bottom {
display: none;
border-radius: 50%;
- border: 2px solid white;
+ border: 2px solid $white;
width: 15px !important;
height: 15px !important;
position: absolute;
- background: theme( primary );
+ background: theme(primary);
padding: 0 3px 3px 0;
cursor: se-resize;
left: 50% !important;
diff --git a/core-blocks/style.scss b/core-blocks/style.scss
index a13e6364e038a..5ae12e333274f 100644
--- a/core-blocks/style.scss
+++ b/core-blocks/style.scss
@@ -31,7 +31,7 @@
}
.has-very-light-gray-background-color {
- background-color: #eeeeee;
+ background-color: #eee;
}
.has-cyan-bluish-gray-background-color {
@@ -75,7 +75,7 @@
}
.has-very-light-gray-color {
- color: #eeeeee;
+ color: #eee;
}
.has-cyan-bluish-gray-color {
diff --git a/core-blocks/table/theme.scss b/core-blocks/table/theme.scss
index 277cdd105b485..b2cc6ceedd258 100644
--- a/core-blocks/table/theme.scss
+++ b/core-blocks/table/theme.scss
@@ -6,7 +6,6 @@
tbody {
width: 100%;
- display: table;
min-width: $break-mobile / 2;
}
diff --git a/core-blocks/test/full-content.js b/core-blocks/test/full-content.js
index 78f04d0fae3d3..a76b37ad88527 100644
--- a/core-blocks/test/full-content.js
+++ b/core-blocks/test/full-content.js
@@ -87,8 +87,6 @@ function normalizeParsedBlocks( blocks ) {
// Change client IDs to a predictable value
block.clientId = '_clientId_' + index;
- // TODO: Remove in 3.5 "UID" deprecation.
- delete block.uid;
// Walk each attribute and get a more concise representation of any
// React elements
diff --git a/core-blocks/text-columns/style.scss b/core-blocks/text-columns/style.scss
index 1fc3a2c524b75..63f0ac4e6f669 100644
--- a/core-blocks/text-columns/style.scss
+++ b/core-blocks/text-columns/style.scss
@@ -19,12 +19,12 @@
}
&.columns-2 .wp-block-column {
- width: calc( 100% / 2 );
+ width: calc(100% / 2);
}
&.columns-3 .wp-block-column {
- width: calc( 100% / 3 );
+ width: calc(100% / 3);
}
&.columns-4 .wp-block-column {
- width: calc( 100% / 4 );
+ width: calc(100% / 4);
}
}
diff --git a/docker-compose.yml b/docker-compose.yml
index 374d88f234579..0e8dbad05597a 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -3,7 +3,7 @@ version: '3.1'
services:
wordpress:
- image: wordpress:4.9.7 # Pinned to version 4.9.7 until https://github.com/WordPress/gutenberg/issues/8445 is fixed.
+ image: wordpress
ports:
- 8888:80
environment:
@@ -41,7 +41,7 @@ services:
- .:/app
wordpress_e2e_tests:
- image: wordpress:4.9.7 # Pinned to version 4.9.7 until https://github.com/WordPress/gutenberg/issues/8445 is fixed.
+ image: wordpress
ports:
- 8889:80
environment:
diff --git a/docs/data/data-core.md b/docs/data/data-core.md
index 8a033f4f195e5..d3f37e54c82d8 100644
--- a/docs/data/data-core.md
+++ b/docs/data/data-core.md
@@ -2,68 +2,6 @@
## Selectors
-### getTerms
-
-Returns all the available terms for the given taxonomy.
-
-*Parameters*
-
- * state: Data state.
- * taxonomy: Taxonomy name.
-
-### getCategories
-
-Returns all the available categories.
-
-*Parameters*
-
- * state: Data state.
-
-*Returns*
-
-Categories list.
-
-### isRequestingTerms
-
-Returns true if a request is in progress for terms data of a given taxonomy,
-or false otherwise.
-
-*Parameters*
-
- * state: Data state.
- * taxonomy: Taxonomy name.
-
-*Returns*
-
-Whether a request is in progress for taxonomy's terms.
-
-### isRequestingCategories
-
-Returns true if a request is in progress for categories data, or false
-otherwise.
-
-*Parameters*
-
- * state: Data state.
-
-*Returns*
-
-Whether a request is in progress for categories.
-
-### isRequestingEmbedPreview
-
-Returns true if a request is in progress for embed preview data, or false
-otherwise.
-
-*Parameters*
-
- * state: Data state.
- * url: URL the preview would be for.
-
-*Returns*
-
-Whether a request is in progress for an embed preview.
-
### getAuthors
Returns all available authors.
@@ -177,16 +115,6 @@ Is the preview for the URL an oEmbed link fallback.
## Actions
-### receiveTerms
-
-Returns an action object used in signalling that terms have been received
-for a given taxonomy.
-
-*Parameters*
-
- * taxonomy: Taxonomy name.
- * terms: Terms received.
-
### receiveUserQuery
Returns an action object used in signalling that authors have been received.
diff --git a/docs/reference/deprecated.md b/docs/reference/deprecated.md
index 49c8775c12de4..ec98ffb883b29 100644
--- a/docs/reference/deprecated.md
+++ b/docs/reference/deprecated.md
@@ -3,6 +3,11 @@ Gutenberg's deprecation policy is intended to support backwards-compatibility fo
## 3.7.0
- `wp.components.withAPIData` has been removed. Please use the Core Data module or `wp.apiFetch` directly instead.
+ - `wp.data.dispatch("core").receiveTerms` has been deprecated. Please use `wp.data.dispatch("core").receiveEntityRecords` instead.
+ - `getCategories` resolvers has been deprecated. Please use `getEntityRecords` resolver instead.
+ - `wp.data.select("core").getTerms` has been deprecated. Please use `wp.data.select("core").getEntityRecords` instead.
+ - `wp.data.select("core").getCategories` has been deprecated. Please use `wp.data.select("core").getEntityRecords` instead.
+ - `wp.data.select("core").isRequestingTerms` has been deprecated. Please use `wp.data.select("core").getEntitiesByKind` instead.
## 3.6.0
diff --git a/edit-post/assets/stylesheets/_animations.scss b/edit-post/assets/stylesheets/_animations.scss
index 0ebdbf228adef..d6cc20a043913 100644
--- a/edit-post/assets/stylesheets/_animations.scss
+++ b/edit-post/assets/stylesheets/_animations.scss
@@ -14,7 +14,7 @@
@mixin move_background {
background-size: 28px 28px;
- animation: move_background .5s linear infinite;
+ animation: move_background 0.5s linear infinite;
}
@mixin loading_fade {
@@ -26,7 +26,7 @@
animation: slide_in_right 0.1s forwards;
}
-@mixin fade_in( $speed: 0.2s ) {
+@mixin fade_in($speed: 0.2s) {
animation: fade-in $speed ease-out;
animation-fill-mode: forwards;
}
@@ -40,7 +40,7 @@
}
}
-@mixin region_focus( $speed: 0.2s ) {
+@mixin region_focus($speed: 0.2s) {
animation: editor_region_focus $speed ease-out;
animation-fill-mode: forwards;
-}
\ No newline at end of file
+}
diff --git a/edit-post/assets/stylesheets/_colors.scss b/edit-post/assets/stylesheets/_colors.scss
index 8d762146ce552..a9efc3eca4d68 100644
--- a/edit-post/assets/stylesheets/_colors.scss
+++ b/edit-post/assets/stylesheets/_colors.scss
@@ -27,44 +27,44 @@ $light-gray-100: #f8f9f9;
$white: #fff;
// Dark opacities, for use with light themes.
-$dark-opacity-900: rgba( #000510, .9 );
-$dark-opacity-800: rgba( #00000a, .85 );
-$dark-opacity-700: rgba( #06060b, .8 );
-$dark-opacity-600: rgba( #000913, .75 );
-$dark-opacity-500: rgba( #0a1829, .7 );
-$dark-opacity-400: rgba( #0a1829, .65 );
-$dark-opacity-300: rgba( #0e1c2e, .6 );
-$dark-opacity-200: rgba( #162435, .55 );
-$dark-opacity-100: rgba(#223443, .5 );
-$dark-opacity-light-900: rgba( #304455, .45 );
-$dark-opacity-light-800: rgba( #425863, .4 );
-$dark-opacity-light-700: rgba( #667886, .35 );
-$dark-opacity-light-600: rgba( #7b86a2, .3 );
-$dark-opacity-light-500: rgba( #9197a2, .25 );
-$dark-opacity-light-400: rgba( #95959c, .2 );
-$dark-opacity-light-300: rgba( #829493, .15 );
-$dark-opacity-light-200: rgba( #8b8b96, .1 );
-$dark-opacity-light-100: rgba( #747474, .05 );
+$dark-opacity-900: rgba(#000510, 0.9);
+$dark-opacity-800: rgba(#00000a, 0.85);
+$dark-opacity-700: rgba(#06060b, 0.8);
+$dark-opacity-600: rgba(#000913, 0.75);
+$dark-opacity-500: rgba(#0a1829, 0.7);
+$dark-opacity-400: rgba(#0a1829, 0.65);
+$dark-opacity-300: rgba(#0e1c2e, 0.6);
+$dark-opacity-200: rgba(#162435, 0.55);
+$dark-opacity-100: rgba(#223443, 0.5);
+$dark-opacity-light-900: rgba(#304455, 0.45);
+$dark-opacity-light-800: rgba(#425863, 0.4);
+$dark-opacity-light-700: rgba(#667886, 0.35);
+$dark-opacity-light-600: rgba(#7b86a2, 0.3);
+$dark-opacity-light-500: rgba(#9197a2, 0.25);
+$dark-opacity-light-400: rgba(#95959c, 0.2);
+$dark-opacity-light-300: rgba(#829493, 0.15);
+$dark-opacity-light-200: rgba(#8b8b96, 0.1);
+$dark-opacity-light-100: rgba(#747474, 0.05);
// Light opacities, for use with dark themes.
-$light-opacity-900: rgba( $white, 1 );
-$light-opacity-800: rgba( $white, .9 );
-$light-opacity-700: rgba( $white, .85 );
-$light-opacity-600: rgba( $white, .8 );
-$light-opacity-500: rgba( $white, .75 );
-$light-opacity-400: rgba( $white, .7 );
-$light-opacity-300: rgba( $white, .65 );
-$light-opacity-200: rgba( $white, .6 );
-$light-opacity-100: rgba( $white, .55 );
-$light-opacity-light-900: rgba( $white, .5 );
-$light-opacity-light-800: rgba( $white, .45 );
-$light-opacity-light-700: rgba( $white, .4 );
-$light-opacity-light-600: rgba( $white, .35 );
-$light-opacity-light-500: rgba( $white, .3 );
-$light-opacity-light-400: rgba( $white, .25 );
-$light-opacity-light-300: rgba( $white, .2 );
-$light-opacity-light-200: rgba( $white, .15 );
-$light-opacity-light-100: rgba( $white, .1 );
+$light-opacity-900: rgba($white, 1);
+$light-opacity-800: rgba($white, 0.9);
+$light-opacity-700: rgba($white, 0.85);
+$light-opacity-600: rgba($white, 0.8);
+$light-opacity-500: rgba($white, 0.75);
+$light-opacity-400: rgba($white, 0.7);
+$light-opacity-300: rgba($white, 0.65);
+$light-opacity-200: rgba($white, 0.6);
+$light-opacity-100: rgba($white, 0.55);
+$light-opacity-light-900: rgba($white, 0.5);
+$light-opacity-light-800: rgba($white, 0.45);
+$light-opacity-light-700: rgba($white, 0.4);
+$light-opacity-light-600: rgba($white, 0.35);
+$light-opacity-light-500: rgba($white, 0.3);
+$light-opacity-light-400: rgba($white, 0.25);
+$light-opacity-light-300: rgba($white, 0.2);
+$light-opacity-light-200: rgba($white, 0.15);
+$light-opacity-light-100: rgba($white, 0.1);
// Additional colors
// some from https://make.wordpress.org/design/handbook/foundations/colors/
@@ -72,14 +72,14 @@ $blue-wordpress-700: #00669b;
$blue-dark-900: #0071a1;
$blue-medium-900: #006589;
-$blue-medium-800: #00739C;
-$blue-medium-700: #007FAC;
-$blue-medium-600: #008DBE;
+$blue-medium-800: #00739c;
+$blue-medium-700: #007fac;
+$blue-medium-600: #008dbe;
$blue-medium-500: #00a0d2;
-$blue-medium-400: #33B3DB;
-$blue-medium-300: #66C6E4;
-$blue-medium-200: #BFE7F3;
-$blue-medium-100: #E5F5FA;
+$blue-medium-400: #33b3db;
+$blue-medium-300: #66c6e4;
+$blue-medium-200: #bfe7f3;
+$blue-medium-100: #e5f5fa;
$blue-medium-highlight: #b3e7fe;
$blue-medium-focus: #007cba;
diff --git a/edit-post/assets/stylesheets/_mixins.scss b/edit-post/assets/stylesheets/_mixins.scss
index 7c54743f48a07..9bad2c32e6261 100644
--- a/edit-post/assets/stylesheets/_mixins.scss
+++ b/edit-post/assets/stylesheets/_mixins.scss
@@ -3,37 +3,37 @@
*/
@mixin break-huge() {
- @media ( min-width: #{ ( $break-huge ) } ) {
+ @media (min-width: #{ ($break-huge) }) {
@content;
}
}
@mixin break-wide() {
- @media ( min-width: #{ ( $break-wide ) } ) {
+ @media (min-width: #{ ($break-wide) }) {
@content;
}
}
@mixin break-large() {
- @media ( min-width: #{ ( $break-large ) } ) {
+ @media (min-width: #{ ($break-large) }) {
@content;
}
}
@mixin break-medium() {
- @media ( min-width: #{ ( $break-medium ) } ) {
+ @media (min-width: #{ ($break-medium) }) {
@content;
}
}
@mixin break-small() {
- @media ( min-width: #{ ( $break-small ) } ) {
+ @media (min-width: #{ ($break-small) }) {
@content;
}
}
@mixin break-mobile() {
- @media ( min-width: #{ ( $break-mobile ) } ) {
+ @media (min-width: #{ ($break-mobile) }) {
@content;
}
}
@@ -46,8 +46,8 @@
* than the space allows.
*/
-@mixin long-content-fade( $direction: right, $size: 20%, $color: #fff, $edge: 0px, $z-index: false) {
- content: '';
+@mixin long-content-fade($direction: right, $size: 20%, $color: #fff, $edge: 0, $z-index: false) {
+ content: "";
display: block;
position: absolute;
-webkit-touch-callout: none;
@@ -62,8 +62,8 @@
z-index: $z-index;
}
- @if $direction == 'bottom' {
- background: linear-gradient( to top, rgba( $color, 0 ), $color 90% );
+ @if $direction == "bottom" {
+ background: linear-gradient(to top, rgba($color, 0), $color 90%);
left: $edge;
right: $edge;
top: $edge;
@@ -71,8 +71,8 @@
width: auto;
}
- @if $direction == 'top' {
- background: linear-gradient( to bottom, rgba( $color, 0 ), $color 90% );
+ @if $direction == "top" {
+ background: linear-gradient(to bottom, rgba($color, 0), $color 90%);
top: calc(100% - $size);
left: $edge;
right: $edge;
@@ -80,8 +80,8 @@
width: auto;
}
- @if $direction == 'left' {
- background: linear-gradient( to left, rgba( $color, 0 ), $color 90% );
+ @if $direction == "left" {
+ background: linear-gradient(to left, rgba($color, 0), $color 90%);
top: $edge;
left: $edge;
bottom: $edge;
@@ -90,8 +90,8 @@
height: auto;
}
- @if $direction == 'right' {
- background: linear-gradient( to right, rgba( $color, 0 ), $color 90% );
+ @if $direction == "right" {
+ background: linear-gradient(to right, rgba($color, 0), $color 90%);
top: $edge;
bottom: $edge;
right: $edge;
@@ -114,7 +114,7 @@
@mixin button-style__hover {
background-color: $white;
color: $dark-gray-900;
- box-shadow: inset 0 0 0 1px $light-gray-500, inset 0 0 0 2px $white, 0 1px 1px rgba( $dark-gray-900, .2 );
+ box-shadow: inset 0 0 0 1px $light-gray-500, inset 0 0 0 2px $white, 0 1px 1px rgba($dark-gray-900, 0.2);
}
@mixin button-style__active() {
@@ -167,7 +167,7 @@
// Tabs, Inputs, Square buttons.
@mixin input-style__neutral() {
box-shadow: 0 0 0 transparent;
- transition: box-shadow .1s linear;
+ transition: box-shadow 0.1s linear;
border-radius: $radius-round-rectangle;
border: $border-width solid $dark-gray-150;
}
@@ -214,7 +214,7 @@
}
@mixin block-style__hover {
- box-shadow: inset 0 0 0 1px rgba( $dark-gray-900, .2 ), 0 1px 3px rgba( $dark-gray-900, .4 );
+ box-shadow: inset 0 0 0 1px rgba($dark-gray-900, 0.2), 0 1px 3px rgba($dark-gray-900, 0.4);
}
@mixin block-style__focus-active() {
@@ -229,10 +229,10 @@
* Applies editor left position to the selector passed as argument
*/
-@mixin editor-left( $selector ) {
+@mixin editor-left($selector) {
#{$selector} { /* Set left position when auto-fold is not on the body element. */
left: 0;
-
+
@include break-medium() {
left: $admin-sidebar-width;
}
@@ -258,14 +258,14 @@
}
/* Mobile menu opened. */
- @media ( max-width: #{ ( $break-medium ) } ) {
+ @media (max-width: #{ ($break-medium) }) {
.auto-fold .wp-responsive-open #{$selector} {
left: $admin-sidebar-width-big;
}
}
/* In small screens with resposive menu expanded there is small white space. */
- @media ( max-width: #{ ( $break-small ) } ) {
+ @media (max-width: #{ ($break-small) }) {
.auto-fold .wp-responsive-open #{$selector} {
margin-left: -18px;
}
@@ -276,7 +276,7 @@
* Applies editor right position to the selector passed as argument
*/
-@mixin editor-right( $selector ) {
+@mixin editor-right($selector) {
#{ $selector } {
right: 0;
}
diff --git a/edit-post/assets/stylesheets/_variables.scss b/edit-post/assets/stylesheets/_variables.scss
index 4bb596a14dd59..a1bad8c80494f 100644
--- a/edit-post/assets/stylesheets/_variables.scss
+++ b/edit-post/assets/stylesheets/_variables.scss
@@ -3,7 +3,7 @@
*/
// Fonts & basics
-$default-font: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
+$default-font: -apple-system, BlinkMacSystemFont,"Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell,"Helvetica Neue", sans-serif;
$default-font-size: 13px;
$default-line-height: 1.4;
$editor-font: "Noto Serif", serif;
@@ -27,10 +27,10 @@ $admin-sidebar-width-collapsed: 36px;
$empty-paragraph-height: $text-editor-font-size * 4;
// Visuals
-$shadow-popover: 0 3px 30px rgba( $dark-gray-900, .1 );
-$shadow-toolbar: 0 2px 10px rgba( $dark-gray-900, .1 ), 0 0 2px rgba( $dark-gray-900, .1 );
-$shadow-below-only: 0 5px 10px rgba( $dark-gray-900, .05 ), 0 2px 2px rgba( $dark-gray-900, .05 );
-$shadow-modal: 0 3px 30px rgba( $dark-gray-900, .2 );
+$shadow-popover: 0 3px 30px rgba($dark-gray-900, 0.1);
+$shadow-toolbar: 0 2px 10px rgba($dark-gray-900, 0.1), 0 0 2px rgba($dark-gray-900, 0.1);
+$shadow-below-only: 0 5px 10px rgba($dark-gray-900, 0.05), 0 2px 2px rgba($dark-gray-900, 0.05);
+$shadow-modal: 0 3px 30px rgba($dark-gray-900, 0.2);
// Editor Widths
$sidebar-width: 280px;
diff --git a/edit-post/assets/stylesheets/_z-index.scss b/edit-post/assets/stylesheets/_z-index.scss
index d927b42813520..b93cbb32553e4 100644
--- a/edit-post/assets/stylesheets/_z-index.scss
+++ b/edit-post/assets/stylesheets/_z-index.scss
@@ -3,90 +3,90 @@
// value is designed to work with).
$z-layers: (
- '.editor-block-list__block-edit::before': 0,
- '.editor-block-switcher__arrow': 1,
- '.editor-block-list__block .wp-block-more::before': -1,
- '.editor-block-list__block {core/image aligned left or right}': 20,
- '.editor-block-list__block {core/image aligned wide or fullwide}': 20,
- '.freeform-toolbar': 10,
- '.editor-block-list__breadcrumb': 1,
- '.components-form-toggle__input': 1,
- '.editor-inserter__tabs': 1,
- '.editor-inserter__tab.is-active': 1,
- '.components-panel__header': 1,
- '.edit-post-meta-boxes-area.is-loading::before': 1,
- '.edit-post-meta-boxes-area .spinner': 5,
- '.editor-block-contextual-toolbar': 21,
- '.components-popover__close': 5,
- '.editor-block-list__insertion-point': 5,
- '.editor-inserter-with-shortcuts': 5,
- '.editor-warning': 6,
- '.core-blocks-gallery-item__inline-menu': 20,
- '.editor-url-input__suggestions': 30,
- '.edit-post-header': 30,
- '.core-blocks-button__inline-link .editor-url-input__suggestions': 6, // URL suggestions for button block above sibling inserter
- '.wp-block-image__resize-handlers': 1, // Resize handlers above sibling inserter
+ ".editor-block-list__block-edit::before": 0,
+ ".editor-block-switcher__arrow": 1,
+ ".editor-block-list__block .wp-block-more::before": -1,
+ ".editor-block-list__block {core/image aligned left or right}": 20,
+ ".editor-block-list__block {core/image aligned wide or fullwide}": 20,
+ ".freeform-toolbar": 10,
+ ".editor-block-list__breadcrumb": 1,
+ ".components-form-toggle__input": 1,
+ ".editor-inserter__tabs": 1,
+ ".editor-inserter__tab.is-active": 1,
+ ".components-panel__header": 1,
+ ".edit-post-meta-boxes-area.is-loading::before": 1,
+ ".edit-post-meta-boxes-area .spinner": 5,
+ ".editor-block-contextual-toolbar": 21,
+ ".components-popover__close": 5,
+ ".editor-block-list__insertion-point": 5,
+ ".editor-inserter-with-shortcuts": 5,
+ ".editor-warning": 6,
+ ".core-blocks-gallery-item__inline-menu": 20,
+ ".editor-url-input__suggestions": 30,
+ ".edit-post-header": 30,
+ ".core-blocks-button__inline-link .editor-url-input__suggestions": 6, // URL suggestions for button block above sibling inserter
+ ".wp-block-image__resize-handlers": 1, // Resize handlers above sibling inserter
// Side UI active buttons
- '.editor-block-settings-remove': 1,
- '.editor-block-mover__control': 1,
+ ".editor-block-settings-remove": 1,
+ ".editor-block-mover__control": 1,
// Should have lower index than anything else positioned inside the block containers
- '.editor-block-list__block-draggable': 0,
+ ".editor-block-list__block-draggable": 0,
// The draggable element should show up above the entire UI
- '.components-draggable__clone': 1000000000,
+ ".components-draggable__clone": 1000000000,
// Should have higher index than the inset/underlay used for dragging
- '.components-placeholder__fieldset': 1,
- '.editor-block-list__block-edit .reusable-block-edit-panel *': 1,
+ ".components-placeholder__fieldset": 1,
+ ".editor-block-list__block-edit .reusable-block-edit-panel *": 1,
// Show drop zone above most standard content, but below any overlays
- '.components-drop-zone': 100,
- '.components-drop-zone__content': 110,
+ ".components-drop-zone": 100,
+ ".components-drop-zone__content": 110,
// Block controls, particularly in nested contexts, floats aside block and
// should overlap most block content.
- '.editor-block-list__block.is-{selected,hovered} .editor-block-{settings-menu,mover}': 80,
+ ".editor-block-list__block.is-{selected,hovered} .editor-block-{settings-menu,mover}": 80,
// Small screen inner blocks overlay must be displayed above drop zone,
// settings menu, and movers.
- '.editor-inner-blocks__small-screen-overlay:after': 120,
+ ".editor-inner-blocks__small-screen-overlay:after": 120,
// Show sidebar above wp-admin navigation bar for mobile viewports:
// #wpadminbar { z-index: 99999 }
- '.edit-post-sidebar': 100000,
- '.edit-post-layout .edit-post-post-publish-panel': 100001,
+ ".edit-post-sidebar": 100000,
+ ".edit-post-layout .edit-post-post-publish-panel": 100001,
// Show sidebar in greater than small viewports above editor related elements
// but bellow #adminmenuback { z-index: 100 }
- '.edit-post-sidebar {greater than small}': 90,
+ ".edit-post-sidebar {greater than small}": 90,
// Show notices below expanded wp-admin submenus:
// #adminmenuwrap { z-index: 9990 }
- '.components-notice-list': 9989,
+ ".components-notice-list": 9989,
// Show modal under the wp-admin menus and the popover
- '.components-modal__screen-overlay': 100000,
+ ".components-modal__screen-overlay": 100000,
// Show popovers above wp-admin menus and submenus and sidebar:
// #adminmenuwrap { z-index: 9990 }
- '.components-popover': 1000000,
+ ".components-popover": 1000000,
// Shows adminbar quicklink submenu above bottom popover:
// #wpadminbar ul li {z-index: 99999;}
- '.components-popover.is-bottom': 99990,
+ ".components-popover.is-bottom": 99990,
- '.components-autocomplete__results': 1000000,
+ ".components-autocomplete__results": 1000000,
- '.skip-to-selected-block': 100000,
- '.edit-post-toggle-publish-panel': 100000,
+ ".skip-to-selected-block": 100000,
+ ".edit-post-toggle-publish-panel": 100000,
// Show NUX tips above popovers, wp-admin menus, submenus, and sidebar:
- '.nux-dot-tip': 1000001,
+ ".nux-dot-tip": 1000001,
// Show tooltips above NUX tips, wp-admin menus, submenus, and sidebar:
- '.components-tooltip': 1000002
+ ".components-tooltip": 1000002
);
@function z-index( $key ) {
diff --git a/edit-post/assets/stylesheets/main.scss b/edit-post/assets/stylesheets/main.scss
index 0ef54263a80e9..1672a9a8e1269 100644
--- a/edit-post/assets/stylesheets/main.scss
+++ b/edit-post/assets/stylesheets/main.scss
@@ -2,11 +2,11 @@
@keyframes animate_fade {
from {
opacity: 0;
- transform: translateY( 4px );
+ transform: translateY(4px);
}
to {
opacity: 1;
- transform: translateY( 0px );
+ transform: translateY(0);
}
}
@@ -21,19 +21,19 @@
@keyframes loading_fade {
0% {
- opacity: .5;
+ opacity: 0.5;
}
50% {
opacity: 1;
}
100% {
- opacity: .5;
+ opacity: 0.5;
}
}
@keyframes slide_in_right {
100% {
- transform: translateX( 0% );
+ transform: translateX(0%);
}
}
@@ -56,7 +56,7 @@ body.gutenberg-editor-page {
/* We hide legacy notices in Gutenberg, because they were not designed in a way that scaled well.
Plugins can use Gutenberg notices if they need to pass on information to the user when they are editing. */
- #wpbody-content > div:not( .gutenberg ):not( #screen-meta ) {
+ #wpbody-content > div:not(.gutenberg):not(#screen-meta) {
display: none;
}
@@ -69,8 +69,8 @@ body.gutenberg-editor-page {
top: -1px;
}
- ul#adminmenu a.wp-has-current-submenu:after,
- ul#adminmenu>li.current>a.current:after {
+ ul#adminmenu a.wp-has-current-submenu::after,
+ ul#adminmenu > li.current > a.current::after {
border-right-color: $white;
}
}
@@ -80,7 +80,7 @@ body.gutenberg-editor-page {
*,
*::before,
- *:after {
+ *::after {
box-sizing: inherit;
}
@@ -99,12 +99,12 @@ body.gutenberg-editor-page {
right: 0;
bottom: 0;
left: 0;
- min-height: calc( 100vh - #{ $admin-bar-height-big } );
+ min-height: calc(100vh - #{ $admin-bar-height-big });
}
// The WP header height changes at this breakpoint
@include break-medium {
- min-height: calc( 100vh - #{ $admin-bar-height } );
+ min-height: calc(100vh - #{ $admin-bar-height });
}
img {
@@ -128,22 +128,22 @@ body.gutenberg-editor-page {
.editor-block-list__block,
.components-popover {
.input-control, // upstream name is .regular-text
- input[type=text],
- input[type=search],
- input[type=radio],
- input[type=tel],
- input[type=time],
- input[type=url],
- input[type=week],
- input[type=password],
- input[type=checkbox],
- input[type=color],
- input[type=date],
- input[type=datetime],
- input[type=datetime-local],
- input[type=email],
- input[type=month],
- input[type=number],
+ input[type="text"],
+ input[type="search"],
+ input[type="radio"],
+ input[type="tel"],
+ input[type="time"],
+ input[type="url"],
+ input[type="week"],
+ input[type="password"],
+ input[type="checkbox"],
+ input[type="color"],
+ input[type="date"],
+ input[type="datetime"],
+ input[type="datetime-local"],
+ input[type="email"],
+ input[type="month"],
+ input[type="number"],
select,
textarea {
margin-top: 0; // These override a "margin: 1px" from core.
diff --git a/edit-post/components/block-settings-menu/plugin-block-settings-menu-group.js b/edit-post/components/block-settings-menu/plugin-block-settings-menu-group.js
index 2018035e92ff6..24859cb92fcc3 100644
--- a/edit-post/components/block-settings-menu/plugin-block-settings-menu-group.js
+++ b/edit-post/components/block-settings-menu/plugin-block-settings-menu-group.js
@@ -27,7 +27,7 @@ const PluginBlockSettingsMenuGroupSlot = ( { fillProps, selectedBlocks } ) => {
};
PluginBlockSettingsMenuGroup.Slot = withSelect( ( select, { fillProps: { clientIds } } ) => ( {
- selectedBlocks: select( 'core/editor' ).getBlocksByUID( clientIds ),
+ selectedBlocks: select( 'core/editor' ).getBlocksByClientId( clientIds ),
} ) )( PluginBlockSettingsMenuGroupSlot );
export default PluginBlockSettingsMenuGroup;
diff --git a/edit-post/components/block-settings-menu/plugin-block-settings-menu-item.js b/edit-post/components/block-settings-menu/plugin-block-settings-menu-item.js
index 9fd8b376c1478..50bd460a11624 100644
--- a/edit-post/components/block-settings-menu/plugin-block-settings-menu-item.js
+++ b/edit-post/components/block-settings-menu/plugin-block-settings-menu-item.js
@@ -7,7 +7,7 @@ import { difference } from 'lodash';
* WordPress dependencies
*/
import { IconButton } from '@wordpress/components';
-import { compose } from '@wordpress/element';
+import { compose } from '@wordpress/compose';
/**
* Internal dependencies
diff --git a/edit-post/components/header/header-toolbar/style.scss b/edit-post/components/header/header-toolbar/style.scss
index 0e9477918b656..b793efacb91b9 100644
--- a/edit-post/components/header/header-toolbar/style.scss
+++ b/edit-post/components/header/header-toolbar/style.scss
@@ -29,7 +29,7 @@
min-height: $block-toolbar-height;
border-bottom: $border-width solid $light-gray-500;
- .editor-block-toolbar {
+ .editor-block-toolbar {
border-left: none;
}
diff --git a/edit-post/components/header/more-menu/style.scss b/edit-post/components/header/more-menu/style.scss
index 5d154d4232dfc..e4b6478e59341 100644
--- a/edit-post/components/header/more-menu/style.scss
+++ b/edit-post/components/header/more-menu/style.scss
@@ -23,6 +23,6 @@
.edit-post-more-menu__content {
.components-menu-group:not(:last-child),
> div:not(:last-child) .components-menu-group {
- border-bottom: $border-width solid $light-gray-500;
+ border-bottom: $border-width solid $light-gray-500;
}
}
diff --git a/edit-post/components/header/pinned-plugins/style.scss b/edit-post/components/header/pinned-plugins/style.scss
index 3e08c6033ee78..83c639e94248e 100644
--- a/edit-post/components/header/pinned-plugins/style.scss
+++ b/edit-post/components/header/pinned-plugins/style.scss
@@ -6,12 +6,12 @@
}
// Colorize plugin icons to ensure contrast and cohesion, but allow plugin developers to override.
- .components-icon-button:not( .is-toggled ) svg,
- .components-icon-button:not( .is-toggled ) svg * {
+ .components-icon-button:not(.is-toggled) svg,
+ .components-icon-button:not(.is-toggled) svg * {
stroke: $dark-gray-500;
fill: $dark-gray-500;
}
-
+
// Forcefully colorize hover and toggled plugin icon states to ensure legibility and consistency.
.components-icon-button.is-toggled svg,
.components-icon-button.is-toggled svg * {
diff --git a/edit-post/components/header/style.scss b/edit-post/components/header/style.scss
index 2b79febb81988..83ba1237ce373 100644
--- a/edit-post/components/header/style.scss
+++ b/edit-post/components/header/style.scss
@@ -7,7 +7,7 @@
flex-direction: row;
align-items: stretch;
justify-content: space-between;
- z-index: z-index( '.edit-post-header' );
+ z-index: z-index(".edit-post-header");
left: 0;
right: 0;
@@ -36,7 +36,7 @@
}
}
-@include editor-left('.edit-post-header');
+@include editor-left(".edit-post-header");
.edit-post-header__settings {
display: inline-flex;
@@ -52,7 +52,7 @@
}
// put the gray background on a separate layer, so as to match the size of the publish button (34px)
- &.is-toggled:before {
+ &.is-toggled::before {
content: "";
border-radius: $radius-round-rectangle;
position: absolute;
diff --git a/edit-post/components/layout/style.scss b/edit-post/components/layout/style.scss
index 4b6981937b2a1..a035ed3397a63 100644
--- a/edit-post/components/layout/style.scss
+++ b/edit-post/components/layout/style.scss
@@ -53,8 +53,8 @@
}
}
-@include editor-left('.components-notice-list');
-@include editor-right('.components-notice-list');
+@include editor-left(".components-notice-list");
+@include editor-right(".components-notice-list");
.edit-post-layout__metaboxes:not(:empty) {
border-top: $border-width solid $light-gray-500;
@@ -96,7 +96,7 @@
.edit-post-layout .editor-post-publish-panel {
position: fixed;
- z-index: z-index( '.edit-post-layout .edit-post-post-publish-panel' );
+ z-index: z-index(".edit-post-layout .edit-post-post-publish-panel");
top: $admin-bar-height-big;
bottom: 0;
right: 0;
@@ -121,7 +121,7 @@
position: relative;
float: right;
top: -9999em;
- z-index: z-index( '.edit-post-toggle-publish-panel' );
+ z-index: z-index(".edit-post-toggle-publish-panel");
padding: 20px 0 0 0;
width: $sidebar-width;
&:focus-within {
diff --git a/edit-post/components/meta-boxes/meta-boxes-area/style.scss b/edit-post/components/meta-boxes/meta-boxes-area/style.scss
index 113abbbb12fdf..c5db0e0983d8c 100644
--- a/edit-post/components/meta-boxes/meta-boxes-area/style.scss
+++ b/edit-post/components/meta-boxes/meta-boxes-area/style.scss
@@ -14,7 +14,8 @@
box-sizing: content-box;
}
- textarea, input {
+ textarea,
+ input {
box-sizing: border-box;
}
@@ -63,16 +64,16 @@
left: 0;
right: 0;
bottom: 0;
- content: '';
+ content: "";
background: transparent;
- z-index: z-index( '.edit-post-meta-boxes-area.is-loading::before');
+ z-index: z-index(".edit-post-meta-boxes-area.is-loading::before");
}
.spinner {
position: absolute;
top: 10px;
right: 20px;
- z-index: z-index( '.edit-post-meta-boxes-area .spinner');
+ z-index: z-index(".edit-post-meta-boxes-area .spinner");
}
}
diff --git a/edit-post/components/sidebar/post-visibility/style.scss b/edit-post/components/sidebar/post-visibility/style.scss
index 49f0d372202d6..b6e01fb796cd1 100644
--- a/edit-post/components/sidebar/post-visibility/style.scss
+++ b/edit-post/components/sidebar/post-visibility/style.scss
@@ -25,7 +25,7 @@
}
.edit-post-post-visibility__dialog-password-input {
- width: calc( 100% - 20px );
+ width: calc(100% - 20px);
margin-left: 20px;
}
diff --git a/edit-post/components/sidebar/settings-header/style.scss b/edit-post/components/sidebar/settings-header/style.scss
index 0ff5c13d5d1e9..467f3d73a710b 100644
--- a/edit-post/components/sidebar/settings-header/style.scss
+++ b/edit-post/components/sidebar/settings-header/style.scss
@@ -19,7 +19,7 @@
&.is-active {
padding-bottom: 0;
- border-bottom: 3px solid theme( primary );
+ border-bottom: 3px solid theme(primary);
font-weight: 600;
}
diff --git a/edit-post/components/sidebar/style.scss b/edit-post/components/sidebar/style.scss
index 0711d15b1efb3..6b421e74de485 100644
--- a/edit-post/components/sidebar/style.scss
+++ b/edit-post/components/sidebar/style.scss
@@ -1,6 +1,6 @@
.edit-post-sidebar {
position: fixed;
- z-index: z-index( '.edit-post-sidebar' );
+ z-index: z-index(".edit-post-sidebar");
top: 0;
right: 0;
bottom: 0;
@@ -13,7 +13,7 @@
@include break-small() {
top: $admin-bar-height-big + $header-height;
- z-index: z-index( '.edit-post-sidebar {greater than small}' );
+ z-index: z-index(".edit-post-sidebar {greater than small}");
height: auto;
overflow: auto;
-webkit-overflow-scrolling: touch;
@@ -29,7 +29,7 @@
overflow: auto;
-webkit-overflow-scrolling: touch;
height: auto;
- max-height: calc( 100vh - #{ $admin-bar-height-big + $panel-header-height } );
+ max-height: calc(100vh - #{ $admin-bar-height-big + $panel-header-height });
margin-top: -1px;
margin-bottom: -1px;
@@ -42,7 +42,7 @@
> .components-panel .components-panel__header {
position: fixed;
- z-index: z-index( '.components-panel__header' );
+ z-index: z-index(".components-panel__header");
top: 0;
left: 0;
right: 0;
@@ -157,7 +157,7 @@
&.is-active {
padding-bottom: 0;
- border-bottom: 3px solid theme( primary );
+ border-bottom: 3px solid theme(primary);
font-weight: 600;
}
diff --git a/edit-post/components/text-editor/style.scss b/edit-post/components/text-editor/style.scss
index d670292ada58a..c4e3d0f0507e9 100644
--- a/edit-post/components/text-editor/style.scss
+++ b/edit-post/components/text-editor/style.scss
@@ -16,8 +16,8 @@
padding-right: 20px;
@include break-large() {
- padding-left: calc( 50% - #{ $content-width / 2 } );
- padding-right: calc( 50% - #{ $content-width / 2 } );
+ padding-left: calc(50% - #{ $content-width / 2 });
+ padding-right: calc(50% - #{ $content-width / 2 });
}
.edit-post-post-text-editor__toolbar {
diff --git a/edit-post/components/visual-editor/style.scss b/edit-post/components/visual-editor/style.scss
index cf5a44c16ebcb..4c1fe1d7249bb 100644
--- a/edit-post/components/visual-editor/style.scss
+++ b/edit-post/components/visual-editor/style.scss
@@ -59,8 +59,8 @@
// Use specific selector to not affect nested block toolbars.
&[data-align="wide"] > .editor-block-contextual-toolbar,
&[data-align="full"] > .editor-block-contextual-toolbar {
- width: calc( 100% + #{ ( $parent-block-padding * 4 ) + $border-width + $border-width } ); // Matches the negative margins applied to parent blocks.
- height: 0px; // This collapses the container to an invisible element without margin.
+ width: calc(100% + #{ ($parent-block-padding * 4) + $border-width + $border-width }); // Matches the negative margins applied to parent blocks.
+ height: 0; // This collapses the container to an invisible element without margin.
text-align: center;
.editor-block-toolbar {
@@ -72,7 +72,7 @@
// The centering math changes when a fullwide image doesn't have block padding.
&[data-align="full"] > .editor-block-contextual-toolbar {
- width: calc( 100% + #{ ( $parent-block-padding * 2 ) + ( $block-padding * 2 ) } ); // Matches the negative margins applied to non-parent blocks, except for borders which are gone in fullwide.
+ width: calc(100% + #{ ($parent-block-padding * 2) + ($block-padding * 2) }); // Matches the negative margins applied to non-parent blocks, except for borders which are gone in fullwide.
.editor-block-toolbar {
max-width: $content-width - $border-width - $border-width;
@@ -118,10 +118,10 @@
// This is a focus style shown for blocks that need an indicator even when in an isEditing state
// like for example an image block that receives arrowkey focus.
-.edit-post-visual-editor .editor-block-list__block:not( .is-selected ) {
+.edit-post-visual-editor .editor-block-list__block:not(.is-selected) {
.editor-block-list__block-edit {
box-shadow: 0 0 0 0 $white, 0 0 0 0 $dark-gray-900;
- transition: .1s box-shadow .05s;
+ transition: 0.1s box-shadow 0.05s;
}
&:focus .editor-block-list__block-edit {
diff --git a/gutenberg.php b/gutenberg.php
index 69d55d0bb22f1..9ad210cee3fd6 100644
--- a/gutenberg.php
+++ b/gutenberg.php
@@ -121,7 +121,7 @@ function is_gutenberg_page() {
*/
function gutenberg_wordpress_version_notice() {
echo '
';
- echo __( 'Gutenberg requires WordPress 4.9.6 or later to function properly. Please upgrade WordPress before activating Gutenberg.', 'gutenberg' );
+ echo __( 'Gutenberg requires WordPress 4.9.8 or later to function properly. Please upgrade WordPress before activating Gutenberg.', 'gutenberg' );
echo '
';
deactivate_plugins( array( 'gutenberg/gutenberg.php' ) );
@@ -155,7 +155,7 @@ function gutenberg_pre_init() {
// Strip '-src' from the version string. Messes up version_compare().
$version = str_replace( '-src', '', $wp_version );
- if ( version_compare( $version, '4.9.6', '<' ) ) {
+ if ( version_compare( $version, '4.9.8', '<' ) ) {
add_action( 'admin_notices', 'gutenberg_wordpress_version_notice' );
return;
}
diff --git a/lib/client-assets.php b/lib/client-assets.php
index bcf6027e3877a..3d9d1ca963c27 100644
--- a/lib/client-assets.php
+++ b/lib/client-assets.php
@@ -266,7 +266,7 @@ function gutenberg_register_scripts_and_styles() {
wp_register_script(
'wp-utils',
gutenberg_url( 'build/utils/index.js' ),
- array( 'lodash', 'wp-api-fetch', 'wp-deprecated', 'wp-html-entities', 'wp-i18n', 'wp-editor' ),
+ array( 'lodash', 'wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-i18n', 'wp-editor' ),
filemtime( gutenberg_dir_path() . 'build/utils/index.js' ),
true
);
@@ -322,7 +322,7 @@ function gutenberg_register_scripts_and_styles() {
wp_register_script(
'wp-element',
gutenberg_url( 'build/element/index.js' ),
- array( 'react', 'react-dom', 'wp-is-shallow-equal', 'lodash', 'wp-deprecated' ),
+ array( 'react', 'react-dom', 'lodash' ),
filemtime( gutenberg_dir_path() . 'build/element/index.js' ),
true
);
diff --git a/lib/compat.php b/lib/compat.php
index e91a52b7036c9..7532dd2ebcfff 100644
--- a/lib/compat.php
+++ b/lib/compat.php
@@ -167,7 +167,7 @@ function gutenberg_check_if_classic_needs_warning_about_blocks() {
return;
}
- if ( ! gutenberg_post_has_blocks( $post ) ) {
+ if ( ! gutenberg_post_has_blocks( $post ) && ! isset( $_REQUEST['cloudflare-error'] ) ) {
return;
}
@@ -175,7 +175,11 @@ function gutenberg_check_if_classic_needs_warning_about_blocks() {
wp_enqueue_script( 'wp-a11y' );
wp_enqueue_script( 'wp-sanitize' );
- add_action( 'admin_footer', 'gutenberg_warn_classic_about_blocks' );
+ if ( isset( $_REQUEST['cloudflare-error'] ) ) {
+ add_action( 'admin_footer', 'gutenberg_warn_classic_about_cloudflare' );
+ } else {
+ add_action( 'admin_footer', 'gutenberg_warn_classic_about_blocks' );
+ }
}
add_action( 'admin_enqueue_scripts', 'gutenberg_check_if_classic_needs_warning_about_blocks' );
@@ -322,3 +326,138 @@ function gutenberg_warn_classic_about_blocks() {
+
+
+
+
+
+
+
+
+
+
+
+
+ change the REST API URL, to avoid triggering the WAF rules. Please be aware that this may cause issues with other plugins that use the REST API, and removes any other protection Cloudflare may be offering for the REST API.', 'gutenberg' ),
+ 'https://github.com/WordPress/gutenberg/issues/2704#issuecomment-410582252'
+ );
+ ?>
+
+
+
+ follow this issue for updates. We hope to have this issue rectifed soon!', 'gutenberg' ),
+ 'https://github.com/WordPress/gutenberg/issues/2704'
+ );
+ ?>
+
+
+
+
+
+
+
+
+
+ post_status ) {
+ $can_edit = false;
}
- if ( 'trash' === $post->post_status ) {
- return false;
+ if ( $can_edit && ! gutenberg_can_edit_post_type( $post->post_type ) ) {
+ $can_edit = false;
}
- // Disable the editor if on the blog page and there is no content.
- if ( absint( get_option( 'page_for_posts' ) ) === $post->ID && empty( $post->post_content ) ) {
- return false;
+ if ( $can_edit && ! current_user_can( 'edit_post', $post->ID ) ) {
+ $can_edit = false;
}
- if ( ! gutenberg_can_edit_post_type( $post->post_type ) ) {
- return false;
+ // Disable the editor if on the blog page and there is no content.
+ if ( $can_edit && absint( get_option( 'page_for_posts' ) ) === $post->ID && empty( $post->post_content ) ) {
+ $can_edit = false;
}
- return current_user_can( 'edit_post', $post->ID );
+ /**
+ * Filter to allow plugins to enable/disable Gutenberg for particular post.
+ *
+ * @since 3.5
+ *
+ * @param bool $can_edit Whether the post can be edited or not.
+ * @param WP_Post $post The post being checked.
+ */
+ return apply_filters( 'gutenberg_can_edit_post', $can_edit, $post );
+
}
/**
diff --git a/lib/rest-api.php b/lib/rest-api.php
index 88354db4fe1c9..13fda26f24d57 100644
--- a/lib/rest-api.php
+++ b/lib/rest-api.php
@@ -41,10 +41,9 @@ function gutenberg_register_rest_routes() {
continue;
}
- if ( post_type_supports( $post_type->name, 'revisions' ) ) {
- $autosaves_controller = new WP_REST_Autosaves_Controller( $post_type->name );
- $autosaves_controller->register_routes();
- }
+ // Initialize the Autosaves controller.
+ $autosaves_controller = new WP_REST_Autosaves_Controller( $post_type->name );
+ $autosaves_controller->register_routes();
}
}
add_action( 'rest_api_init', 'gutenberg_register_rest_routes' );
@@ -243,24 +242,6 @@ function gutenberg_add_target_schema_to_links( $response, $post, $request ) {
$orig_links = $response->get_links();
$post_type = get_post_type_object( $post->post_type );
$orig_href = ! empty( $orig_links['self'][0]['href'] ) ? $orig_links['self'][0]['href'] : null;
- if ( 'edit' === $request['context'] && post_type_supports( $post_type->name, 'author' ) ) {
- if ( current_user_can( $post_type->cap->edit_others_posts ) ) {
- $new_links['https://api.w.org/action-assign-author'] = array(
- array(
- 'title' => __( 'The current user can change the author on this post.', 'gutenberg' ),
- 'href' => $orig_href,
- 'targetSchema' => array(
- 'type' => 'object',
- 'properties' => array(
- 'author' => array(
- 'type' => 'integer',
- ),
- ),
- ),
- ),
- );
- }
- }
if ( 'edit' === $request['context'] && current_user_can( 'unfiltered_html' ) ) {
$new_links['https://api.w.org/action-unfiltered_html'] = array(
array(
@@ -277,134 +258,6 @@ function gutenberg_add_target_schema_to_links( $response, $post, $request ) {
),
);
}
- if ( 'edit' === $request['context'] ) {
- if ( current_user_can( $post_type->cap->publish_posts ) ) {
- $new_links['https://api.w.org/action-publish'] = array(
- array(
- 'title' => __( 'The current user can publish this post.', 'gutenberg' ),
- 'href' => $orig_href,
- 'targetSchema' => array(
- 'type' => 'object',
- 'properties' => array(
- 'status' => array(
- 'type' => 'string',
- 'enum' => array( 'publish', 'future' ),
- ),
- ),
- ),
- ),
- );
- }
- }
- // Only Posts can be sticky.
- if ( 'post' === $post->post_type && 'edit' === $request['context'] ) {
- if ( current_user_can( $post_type->cap->edit_others_posts )
- && current_user_can( $post_type->cap->publish_posts ) ) {
- $new_links['https://api.w.org/action-sticky'] = array(
- array(
- 'title' => __( 'The current user can sticky this post.', 'gutenberg' ),
- 'href' => $orig_href,
- 'targetSchema' => array(
- 'type' => 'object',
- 'properties' => array(
- 'sticky' => array(
- 'type' => 'boolean',
- ),
- ),
- ),
- ),
- );
- }
- }
- // Term assignment and creation.
- if ( 'edit' === $request['context'] ) {
- $taxonomies = get_object_taxonomies( $post_type->name, 'objects' );
- foreach ( $taxonomies as $tax_obj ) {
- if ( empty( $tax_obj->show_in_rest ) ) {
- continue;
- }
- $rest_base = ! empty( $tax_obj->rest_base ) ? $tax_obj->rest_base : $tax_obj->name;
- // 'edit_terms' is required to create hierarchical terms,
- // but 'assign_terms' is required for non-hierarchical terms.
- if ( ( is_taxonomy_hierarchical( $tax_obj->name )
- && current_user_can( $tax_obj->cap->edit_terms ) )
- || ( ! is_taxonomy_hierarchical( $tax_obj->name )
- && current_user_can( $tax_obj->cap->assign_terms ) ) ) {
- $new_links[ 'https://api.w.org/action-create-' . $rest_base ] = array(
- array(
- 'title' => __( 'The current user can create terms.', 'gutenberg' ),
- 'href' => $orig_href,
- 'targetSchema' => array(
- 'type' => 'object',
- 'properties' => array(
- $rest_base => array(
- 'type' => 'array',
- ),
- ),
- ),
- ),
- );
- }
- if ( current_user_can( $tax_obj->cap->assign_terms ) ) {
- $new_links[ 'https://api.w.org/action-assign-' . $rest_base ] = array(
- array(
- 'title' => __( 'The current user can assign terms.', 'gutenberg' ),
- 'href' => $orig_href,
- 'targetSchema' => array(
- 'type' => 'object',
- 'properties' => array(
- $rest_base => array(
- 'type' => 'array',
- ),
- ),
- ),
- ),
- );
- }
- }
- }
-
- $response->add_links( $new_links );
- return $response;
-}
-
-/**
- * Include revisions data on post response links.
- *
- * @see https://core.trac.wordpress.org/ticket/44321
- *
- * @param WP_REST_Response $response WP REST API response of a post.
- * @param WP_Post $post The post being returned.
- * @param WP_REST_Request $request WP REST API request.
- * @return WP_REST_Response Response containing the new links.
- */
-function gutenberg_add_revisions_data_to_links( $response, $post, $request ) {
-
- $new_links = array();
- $orig_links = $response->get_links();
-
- if ( ! empty( $orig_links['version-history'] ) ) {
- $version_history_link = array_shift( $orig_links['version-history'] );
- // 'version-history' already exists and we don't want to duplicate it.
- $response->remove_link( 'version-history' );
-
- $revisions = wp_get_post_revisions( $post->ID, array( 'fields' => 'ids' ) );
- $revisions_count = count( $revisions );
-
- $new_links['version-history'] = array(
- 'href' => $version_history_link['href'],
- 'count' => $revisions_count,
- );
-
- if ( $revisions_count > 0 ) {
- $last_revision = array_shift( $revisions );
-
- $new_links['predecessor-version'] = array(
- 'href' => $version_history_link['href'] . '/' . $last_revision,
- 'id' => $last_revision,
- );
- }
- }
$response->add_links( $new_links );
return $response;
@@ -420,7 +273,6 @@ function gutenberg_register_post_prepare_functions( $post_type ) {
add_filter( "rest_prepare_{$post_type}", 'gutenberg_add_permalink_template_to_posts', 10, 3 );
add_filter( "rest_prepare_{$post_type}", 'gutenberg_add_block_format_to_post_content', 10, 3 );
add_filter( "rest_prepare_{$post_type}", 'gutenberg_add_target_schema_to_links', 10, 3 );
- add_filter( "rest_prepare_{$post_type}", 'gutenberg_add_revisions_data_to_links', 10, 3 );
add_filter( "rest_{$post_type}_collection_params", 'gutenberg_filter_post_collection_parameters', 10, 2 );
add_filter( "rest_{$post_type}_query", 'gutenberg_filter_post_query_arguments', 10, 2 );
return $post_type;
@@ -605,111 +457,3 @@ function gutenberg_filter_user_collection_parameters( $query_params ) {
return $query_params;
}
add_filter( 'rest_user_collection_params', 'gutenberg_filter_user_collection_parameters' );
-
-/**
- * Overload taxonomy and term permission handling to address our new necessary behavior.
- *
- * This is temporary code that will be removed once the Trac ticket lands in a release.
- *
- * @see https://core.trac.wordpress.org/ticket/44096
- *
- * @param WP_HTTP_Response $response Result to send to the client. Usually a WP_REST_Response.
- * @param WP_REST_Server $handler ResponseHandler instance (usually WP_REST_Server).
- * @param WP_REST_Request $request Request used to generate the response.
- * @return $response
- */
-function gutenberg_filter_request_after_callbacks( $response, $handler, $request ) {
- $should_rerun_response = false;
- if ( is_wp_error( $response ) ) {
- // Handle GET /wp/v2/taxonomies?context=edit when user can assign_terms
- // but not manage_terms.
- if ( '/wp/v2/taxonomies' === $request->get_route()
- && is_array( $handler['permission_callback'] )
- && is_a( $handler['permission_callback'][0], 'WP_REST_Taxonomies_Controller' )
- && 'edit' === $request['context']
- && 'rest_cannot_view' === $response->get_error_code() ) {
- if ( ! empty( $request['type'] ) ) {
- $taxonomies = get_object_taxonomies( $request['type'], 'objects' );
- } else {
- $taxonomies = get_taxonomies( '', 'objects' );
- }
- foreach ( $taxonomies as $taxonomy ) {
- if ( ! empty( $taxonomy->show_in_rest )
- && current_user_can( $taxonomy->cap->assign_terms ) ) {
- $GLOBALS['Gutenberg_Temporary_Taxonomies_Controller'] = $handler['permission_callback'][0];
-
- $handler['callback'] = 'gutenberg_taxonomies_controller_get_items';
- $should_rerun_response = true;
- break;
- }
- }
- }
- // Handle POST /wp/v2/tags (and non-hierarchical taxonomies) when user
- // can assign_terms but not manage terms. Users should be able to create
- // terms.
- if ( 'rest_cannot_create' === $response->get_error_code()
- && is_array( $handler['permission_callback'] )
- && is_a( $handler['permission_callback'][0], 'WP_REST_Terms_Controller' ) ) {
- $schema = $handler['permission_callback'][0]->get_item_schema();
- $taxonomy = 'tag' === $schema['title'] ? 'post_tag' : $schema['title'];
- $taxonomy_obj = get_taxonomy( $taxonomy );
- if ( ! is_taxonomy_hierarchical( $taxonomy_obj->name )
- && current_user_can( $taxonomy_obj->cap->assign_terms ) ) {
- $should_rerun_response = true;
- }
- }
- }
- // Re-run the response generation if we've decided we need to.
- if ( $should_rerun_response ) {
- $callback = $handler['callback'];
- // Filter defined in class-wp-rest-server.php.
- $dispatch_result = apply_filters( 'rest_dispatch_request', null, $request, $request->get_route(), $handler );
-
- // Allow plugins to halt the request via this filter.
- if ( null !== $dispatch_result ) {
- $response = $dispatch_result;
- } else {
- $response = call_user_func( $callback, $request );
- }
- }
- return $response;
-}
-add_filter( 'rest_request_after_callbacks', 'gutenberg_filter_request_after_callbacks', 10, 3 );
-
-/**
- * Overloaded version of WP_REST_Taxonomies_Controller::get_items()
- *
- * This is temporary code that will be removed once the Trac ticket lands in a release.
- *
- * @see https://core.trac.wordpress.org/ticket/44096
- *
- * @param WP_REST_Request $request Full details about the request.
- * @return WP_REST_Response Response object on success, or WP_Error object on failure.
- */
-function gutenberg_taxonomies_controller_get_items( $request ) {
- $controller = $GLOBALS['Gutenberg_Temporary_Taxonomies_Controller'];
- // Retrieve the controller of registered collection query parameters.
- $registered = $controller->get_collection_params();
-
- if ( isset( $registered['type'] ) && ! empty( $request['type'] ) ) {
- $taxonomies = get_object_taxonomies( $request['type'], 'objects' );
- } else {
- $taxonomies = get_taxonomies( '', 'objects' );
- }
- $data = array();
- foreach ( $taxonomies as $tax_type => $value ) {
- if ( empty( $value->show_in_rest ) || ( 'edit' === $request['context'] && ! current_user_can( $value->cap->assign_terms ) ) ) {
- continue;
- }
- $tax = $controller->prepare_item_for_response( $value, $request );
- $tax = $controller->prepare_response_for_collection( $tax );
- $data[ $tax_type ] = $tax;
- }
-
- if ( empty( $data ) ) {
- // Response should still be returned as a JSON object when it is empty.
- $data = (object) $data;
- }
-
- return rest_ensure_response( $data );
-}
diff --git a/package-lock.json b/package-lock.json
index dc7e845fcfd57..59c1ba1ec3916 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -5,1145 +5,268 @@
"requires": true,
"dependencies": {
"@babel/code-frame": {
- "version": "7.0.0-beta.52",
- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.52.tgz",
- "integrity": "sha1-GSSDv6DR5GfBAVccIQKcy3SvKAE=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.56.tgz",
+ "integrity": "sha512-OBeGs8UXWpKl0oK2T5nUXNl2yu8RKxqL/7aUnMtKDXCU6VUrNP3npdrPivBA11HPB15TVI49nWf2lntTzoUuAg==",
"dev": true,
"requires": {
- "@babel/highlight": "7.0.0-beta.52"
+ "@babel/highlight": "7.0.0-beta.56"
}
},
"@babel/core": {
- "version": "7.0.0-beta.52",
- "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.0.0-beta.52.tgz",
- "integrity": "sha1-8nqaRo+M+chgqryl9ghPpS+8blU=",
- "dev": true,
- "requires": {
- "@babel/code-frame": "7.0.0-beta.52",
- "@babel/generator": "7.0.0-beta.52",
- "@babel/helpers": "7.0.0-beta.52",
- "@babel/parser": "7.0.0-beta.52",
- "@babel/template": "7.0.0-beta.52",
- "@babel/traverse": "7.0.0-beta.52",
- "@babel/types": "7.0.0-beta.52",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.0.0-beta.56.tgz",
+ "integrity": "sha512-IsytpdHZqo5pgJj4FTcpEMKmfXK9TdvThLZo4yUOjbuVZCy8NAwoeBnojvKCNf+139L7xNIIosp3RVA0cMkbOg==",
+ "dev": true,
+ "requires": {
+ "@babel/code-frame": "7.0.0-beta.56",
+ "@babel/generator": "7.0.0-beta.56",
+ "@babel/helpers": "7.0.0-beta.56",
+ "@babel/parser": "7.0.0-beta.56",
+ "@babel/template": "7.0.0-beta.56",
+ "@babel/traverse": "7.0.0-beta.56",
+ "@babel/types": "7.0.0-beta.56",
"convert-source-map": "^1.1.0",
"debug": "^3.1.0",
"json5": "^0.5.0",
- "lodash": "^4.17.5",
- "micromatch": "^3.1.10",
+ "lodash": "^4.17.10",
"resolve": "^1.3.2",
"semver": "^5.4.1",
"source-map": "^0.5.0"
}
},
"@babel/generator": {
- "version": "7.0.0-beta.52",
- "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.0.0-beta.52.tgz",
- "integrity": "sha1-JpaPEvrYGM2XTISbKGtDfh6MzZE=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.0.0-beta.56.tgz",
+ "integrity": "sha512-d+Ls/Vr5OU5FBDYQToXSqAluI3r2UaSoNZ41zD3sxdoVoaT8K5Bdh4So4eG4o//INGM7actValXGfb+5J1+r8w==",
"dev": true,
"requires": {
- "@babel/types": "7.0.0-beta.52",
+ "@babel/types": "7.0.0-beta.56",
"jsesc": "^2.5.1",
- "lodash": "^4.17.5",
+ "lodash": "^4.17.10",
"source-map": "^0.5.0",
"trim-right": "^1.0.1"
}
},
"@babel/helper-annotate-as-pure": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.0.0-beta.53.tgz",
- "integrity": "sha1-WZYGKDdcvu+WoH7f4co4t1bwGqg=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.0.0-beta.56.tgz",
+ "integrity": "sha512-PaHQ8R489lwBZYz/F81YpKDurIQfKWliNIpHZAysYbnozq8hVyaUx8D5wW6Dplf0lUUQ8Y/I3YKtiNoyg7bLHA==",
"dev": true,
"requires": {
- "@babel/types": "7.0.0-beta.53"
- },
- "dependencies": {
- "@babel/types": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.53.tgz",
- "integrity": "sha1-GaRhwNpRVZXftnQLS0Xce7Dms3U=",
- "dev": true,
- "requires": {
- "esutils": "^2.0.2",
- "lodash": "^4.17.5",
- "to-fast-properties": "^2.0.0"
- }
- }
+ "@babel/types": "7.0.0-beta.56"
}
},
"@babel/helper-builder-binary-assignment-operator-visitor": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.0.0-beta.53.tgz",
- "integrity": "sha1-RFZwliPX2vqivulPglUD9MDs6Fs=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.0.0-beta.56.tgz",
+ "integrity": "sha512-ka5Fe6UB/jRtCWU/emg6fLKqttaVaBCF1zdT06PYs7w8hJPidCcfdVMBoDHfqL3pgLo+hp+LW4Q/99zw/zv0Sw==",
"dev": true,
"requires": {
- "@babel/helper-explode-assignable-expression": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53"
- },
- "dependencies": {
- "@babel/types": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.53.tgz",
- "integrity": "sha1-GaRhwNpRVZXftnQLS0Xce7Dms3U=",
- "dev": true,
- "requires": {
- "esutils": "^2.0.2",
- "lodash": "^4.17.5",
- "to-fast-properties": "^2.0.0"
- }
- }
+ "@babel/helper-explode-assignable-expression": "7.0.0-beta.56",
+ "@babel/types": "7.0.0-beta.56"
}
},
"@babel/helper-builder-react-jsx": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-builder-react-jsx/-/helper-builder-react-jsx-7.0.0-beta.53.tgz",
- "integrity": "sha1-e9fn419EOf03NfAC5hIyGGv5zs8=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/helper-builder-react-jsx/-/helper-builder-react-jsx-7.0.0-beta.56.tgz",
+ "integrity": "sha512-s7nY9YbY+/6yccMCdI9oqh/rZ9lEoo3EHk/Lt6H2p/t6jyQf0sWqtsbJeHg5j5FzX6ZwYkdX8lTmBBMTrlyf9A==",
"dev": true,
"requires": {
- "@babel/types": "7.0.0-beta.53",
+ "@babel/types": "7.0.0-beta.56",
"esutils": "^2.0.0"
- },
- "dependencies": {
- "@babel/types": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.53.tgz",
- "integrity": "sha1-GaRhwNpRVZXftnQLS0Xce7Dms3U=",
- "dev": true,
- "requires": {
- "esutils": "^2.0.2",
- "lodash": "^4.17.5",
- "to-fast-properties": "^2.0.0"
- }
- }
}
},
"@babel/helper-call-delegate": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-call-delegate/-/helper-call-delegate-7.0.0-beta.53.tgz",
- "integrity": "sha1-ld6Lq9A/nmz08rVkoDhwjBOP/jE=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/helper-call-delegate/-/helper-call-delegate-7.0.0-beta.56.tgz",
+ "integrity": "sha512-XOv0taD7Elw0CSorktXbbCzdPgH4dZOb8yObk5deEhDbWgJhdwIvd5z8rQpDu712oqDhXm7Z3v+upFsOCg2+nQ==",
"dev": true,
"requires": {
- "@babel/helper-hoist-variables": "7.0.0-beta.53",
- "@babel/traverse": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53"
- },
- "dependencies": {
- "@babel/code-frame": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.53.tgz",
- "integrity": "sha1-mA0VYLhjV1v1o3eSUDfgEy71kh4=",
- "dev": true,
- "requires": {
- "@babel/highlight": "7.0.0-beta.53"
- }
- },
- "@babel/generator": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.0.0-beta.53.tgz",
- "integrity": "sha1-uMrXLFcr4yNK/94ivm2sxCUOA0s=",
- "dev": true,
- "requires": {
- "@babel/types": "7.0.0-beta.53",
- "jsesc": "^2.5.1",
- "lodash": "^4.17.5",
- "source-map": "^0.5.0",
- "trim-right": "^1.0.1"
- }
- },
- "@babel/helper-function-name": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.53.tgz",
- "integrity": "sha1-USgEro6cvOVDHr6hnkdijC7WU/I=",
- "dev": true,
- "requires": {
- "@babel/helper-get-function-arity": "7.0.0-beta.53",
- "@babel/template": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53"
- }
- },
- "@babel/helper-get-function-arity": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.53.tgz",
- "integrity": "sha1-3tiKsp+bHbYch9G7jTijXdp3neY=",
- "dev": true,
- "requires": {
- "@babel/types": "7.0.0-beta.53"
- }
- },
- "@babel/helper-split-export-declaration": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.53.tgz",
- "integrity": "sha1-rvVLix+ZYW6jfJhHhxajeAJjMls=",
- "dev": true,
- "requires": {
- "@babel/types": "7.0.0-beta.53"
- }
- },
- "@babel/highlight": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.53.tgz",
- "integrity": "sha1-9OlS2tF4fSBeGI0+OEzc5JyjaPs=",
- "dev": true,
- "requires": {
- "chalk": "^2.0.0",
- "esutils": "^2.0.2",
- "js-tokens": "^3.0.0"
- }
- },
- "@babel/parser": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.0.0-beta.53.tgz",
- "integrity": "sha1-H0XrYXv5Rj1IKywE00nZ5O2/SJI=",
- "dev": true
- },
- "@babel/template": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.53.tgz",
- "integrity": "sha1-MyIpCQDQsYewpxdDgeHzu3EFDS4=",
- "dev": true,
- "requires": {
- "@babel/code-frame": "7.0.0-beta.53",
- "@babel/parser": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53",
- "lodash": "^4.17.5"
- }
- },
- "@babel/traverse": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.0.0-beta.53.tgz",
- "integrity": "sha1-ANMs2NC1j0wB0xFXvmIsZigm00Q=",
- "dev": true,
- "requires": {
- "@babel/code-frame": "7.0.0-beta.53",
- "@babel/generator": "7.0.0-beta.53",
- "@babel/helper-function-name": "7.0.0-beta.53",
- "@babel/helper-split-export-declaration": "7.0.0-beta.53",
- "@babel/parser": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53",
- "debug": "^3.1.0",
- "globals": "^11.1.0",
- "invariant": "^2.2.0",
- "lodash": "^4.17.5"
- }
- },
- "@babel/types": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.53.tgz",
- "integrity": "sha1-GaRhwNpRVZXftnQLS0Xce7Dms3U=",
- "dev": true,
- "requires": {
- "esutils": "^2.0.2",
- "lodash": "^4.17.5",
- "to-fast-properties": "^2.0.0"
- }
- },
- "js-tokens": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz",
- "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=",
- "dev": true
- }
+ "@babel/helper-hoist-variables": "7.0.0-beta.56",
+ "@babel/traverse": "7.0.0-beta.56",
+ "@babel/types": "7.0.0-beta.56"
}
},
"@babel/helper-define-map": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-define-map/-/helper-define-map-7.0.0-beta.53.tgz",
- "integrity": "sha1-SOniJlRTeHl1BD76qx7a0jnqlpU=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/helper-define-map/-/helper-define-map-7.0.0-beta.56.tgz",
+ "integrity": "sha512-6hWVBpEyeRqvX3cKU7GVjdiYk9SvucpScTwdNpuSvsX8lX1MzuLQ7n9FNrHMU6+ulVNkZV81E7WdABYgXyIfuw==",
"dev": true,
"requires": {
- "@babel/helper-function-name": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53",
- "lodash": "^4.17.5"
- },
- "dependencies": {
- "@babel/code-frame": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.53.tgz",
- "integrity": "sha1-mA0VYLhjV1v1o3eSUDfgEy71kh4=",
- "dev": true,
- "requires": {
- "@babel/highlight": "7.0.0-beta.53"
- }
- },
- "@babel/helper-function-name": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.53.tgz",
- "integrity": "sha1-USgEro6cvOVDHr6hnkdijC7WU/I=",
- "dev": true,
- "requires": {
- "@babel/helper-get-function-arity": "7.0.0-beta.53",
- "@babel/template": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53"
- }
- },
- "@babel/helper-get-function-arity": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.53.tgz",
- "integrity": "sha1-3tiKsp+bHbYch9G7jTijXdp3neY=",
- "dev": true,
- "requires": {
- "@babel/types": "7.0.0-beta.53"
- }
- },
- "@babel/highlight": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.53.tgz",
- "integrity": "sha1-9OlS2tF4fSBeGI0+OEzc5JyjaPs=",
- "dev": true,
- "requires": {
- "chalk": "^2.0.0",
- "esutils": "^2.0.2",
- "js-tokens": "^3.0.0"
- }
- },
- "@babel/parser": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.0.0-beta.53.tgz",
- "integrity": "sha1-H0XrYXv5Rj1IKywE00nZ5O2/SJI=",
- "dev": true
- },
- "@babel/template": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.53.tgz",
- "integrity": "sha1-MyIpCQDQsYewpxdDgeHzu3EFDS4=",
- "dev": true,
- "requires": {
- "@babel/code-frame": "7.0.0-beta.53",
- "@babel/parser": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53",
- "lodash": "^4.17.5"
- }
- },
- "@babel/types": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.53.tgz",
- "integrity": "sha1-GaRhwNpRVZXftnQLS0Xce7Dms3U=",
- "dev": true,
- "requires": {
- "esutils": "^2.0.2",
- "lodash": "^4.17.5",
- "to-fast-properties": "^2.0.0"
- }
- },
- "js-tokens": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz",
- "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=",
- "dev": true
- }
+ "@babel/helper-function-name": "7.0.0-beta.56",
+ "@babel/types": "7.0.0-beta.56",
+ "lodash": "^4.17.10"
}
},
"@babel/helper-explode-assignable-expression": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.0.0-beta.53.tgz",
- "integrity": "sha1-1bytK2tH9ATAruillk3/2TEkc6g=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.0.0-beta.56.tgz",
+ "integrity": "sha512-Y3a7HLnwLJEiKe4+XB2AEo6QiCnFsa0ycqg6HBp0lyw4HztSTGt3oyZYO8I5ZhtVCKi/EJXSQuKHLOV98jG/+A==",
"dev": true,
"requires": {
- "@babel/traverse": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53"
- },
- "dependencies": {
- "@babel/code-frame": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.53.tgz",
- "integrity": "sha1-mA0VYLhjV1v1o3eSUDfgEy71kh4=",
- "dev": true,
- "requires": {
- "@babel/highlight": "7.0.0-beta.53"
- }
- },
- "@babel/generator": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.0.0-beta.53.tgz",
- "integrity": "sha1-uMrXLFcr4yNK/94ivm2sxCUOA0s=",
- "dev": true,
- "requires": {
- "@babel/types": "7.0.0-beta.53",
- "jsesc": "^2.5.1",
- "lodash": "^4.17.5",
- "source-map": "^0.5.0",
- "trim-right": "^1.0.1"
- }
- },
- "@babel/helper-function-name": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.53.tgz",
- "integrity": "sha1-USgEro6cvOVDHr6hnkdijC7WU/I=",
- "dev": true,
- "requires": {
- "@babel/helper-get-function-arity": "7.0.0-beta.53",
- "@babel/template": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53"
- }
- },
- "@babel/helper-get-function-arity": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.53.tgz",
- "integrity": "sha1-3tiKsp+bHbYch9G7jTijXdp3neY=",
- "dev": true,
- "requires": {
- "@babel/types": "7.0.0-beta.53"
- }
- },
- "@babel/helper-split-export-declaration": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.53.tgz",
- "integrity": "sha1-rvVLix+ZYW6jfJhHhxajeAJjMls=",
- "dev": true,
- "requires": {
- "@babel/types": "7.0.0-beta.53"
- }
- },
- "@babel/highlight": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.53.tgz",
- "integrity": "sha1-9OlS2tF4fSBeGI0+OEzc5JyjaPs=",
- "dev": true,
- "requires": {
- "chalk": "^2.0.0",
- "esutils": "^2.0.2",
- "js-tokens": "^3.0.0"
- }
- },
- "@babel/parser": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.0.0-beta.53.tgz",
- "integrity": "sha1-H0XrYXv5Rj1IKywE00nZ5O2/SJI=",
- "dev": true
- },
- "@babel/template": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.53.tgz",
- "integrity": "sha1-MyIpCQDQsYewpxdDgeHzu3EFDS4=",
- "dev": true,
- "requires": {
- "@babel/code-frame": "7.0.0-beta.53",
- "@babel/parser": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53",
- "lodash": "^4.17.5"
- }
- },
- "@babel/traverse": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.0.0-beta.53.tgz",
- "integrity": "sha1-ANMs2NC1j0wB0xFXvmIsZigm00Q=",
- "dev": true,
- "requires": {
- "@babel/code-frame": "7.0.0-beta.53",
- "@babel/generator": "7.0.0-beta.53",
- "@babel/helper-function-name": "7.0.0-beta.53",
- "@babel/helper-split-export-declaration": "7.0.0-beta.53",
- "@babel/parser": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53",
- "debug": "^3.1.0",
- "globals": "^11.1.0",
- "invariant": "^2.2.0",
- "lodash": "^4.17.5"
- }
- },
- "@babel/types": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.53.tgz",
- "integrity": "sha1-GaRhwNpRVZXftnQLS0Xce7Dms3U=",
- "dev": true,
- "requires": {
- "esutils": "^2.0.2",
- "lodash": "^4.17.5",
- "to-fast-properties": "^2.0.0"
- }
- },
- "js-tokens": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz",
- "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=",
- "dev": true
- }
+ "@babel/traverse": "7.0.0-beta.56",
+ "@babel/types": "7.0.0-beta.56"
}
},
"@babel/helper-function-name": {
- "version": "7.0.0-beta.52",
- "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.52.tgz",
- "integrity": "sha1-qGelj/VxsldysteZsyhmBYVzxFA=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.56.tgz",
+ "integrity": "sha512-Lq4nPOt1j3sUq+1GVrw57dKq6wBKAHplGjYzEG8dkytqo93i6uSKKKg3smYXx2qohEVD5ciAyJjgRJq7RQu4Lg==",
"dev": true,
"requires": {
- "@babel/helper-get-function-arity": "7.0.0-beta.52",
- "@babel/template": "7.0.0-beta.52",
- "@babel/types": "7.0.0-beta.52"
+ "@babel/helper-get-function-arity": "7.0.0-beta.56",
+ "@babel/template": "7.0.0-beta.56",
+ "@babel/types": "7.0.0-beta.56"
}
},
"@babel/helper-get-function-arity": {
- "version": "7.0.0-beta.52",
- "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.52.tgz",
- "integrity": "sha1-HAzaWOC3X0XpLq+9j+GJpO7pK3Q=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.56.tgz",
+ "integrity": "sha512-QU9EVlnDGTzBasgrdo/I4+RzZS7oqzz9YcetpYko3bp+VsRGokqsAQl3gIvxWTtxwibwboDEdBx+fGArtb2fhw==",
"dev": true,
"requires": {
- "@babel/types": "7.0.0-beta.52"
+ "@babel/types": "7.0.0-beta.56"
}
},
"@babel/helper-hoist-variables": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.0.0-beta.53.tgz",
- "integrity": "sha1-TCfjuHP6CcWtbpPrQHBMIA+EE3w=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.0.0-beta.56.tgz",
+ "integrity": "sha512-PTBa6UfiM7MgeTXOlNjCDiiqtOhqWraHM2GGsZg1M8VkuZRjP1Kag9JNmoppUlsZE5LY3NE+BjJuQ1/mLgcIug==",
"dev": true,
"requires": {
- "@babel/types": "7.0.0-beta.53"
- },
- "dependencies": {
- "@babel/types": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.53.tgz",
- "integrity": "sha1-GaRhwNpRVZXftnQLS0Xce7Dms3U=",
- "dev": true,
- "requires": {
- "esutils": "^2.0.2",
- "lodash": "^4.17.5",
- "to-fast-properties": "^2.0.0"
- }
- }
+ "@babel/types": "7.0.0-beta.56"
}
},
"@babel/helper-member-expression-to-functions": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.0.0-beta.53.tgz",
- "integrity": "sha1-D7Dviy07kD0cO/Qm2kp0V14BnOQ=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.0.0-beta.56.tgz",
+ "integrity": "sha512-/TrmPCG1XIENakzenEyiNsbIBSTm10DNWyB/cyKwVljzA18gMivn9YxSMxVAuaC1KyTTmhkeUYibSMF7yF13xw==",
"dev": true,
"requires": {
- "@babel/types": "7.0.0-beta.53"
- },
- "dependencies": {
- "@babel/types": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.53.tgz",
- "integrity": "sha1-GaRhwNpRVZXftnQLS0Xce7Dms3U=",
- "dev": true,
- "requires": {
- "esutils": "^2.0.2",
- "lodash": "^4.17.5",
- "to-fast-properties": "^2.0.0"
- }
- }
+ "@babel/types": "7.0.0-beta.56"
}
},
"@babel/helper-module-imports": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.0.0-beta.53.tgz",
- "integrity": "sha1-5zXmqjClBLD52Fw4ptRwqfSqgdk=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.0.0-beta.56.tgz",
+ "integrity": "sha512-iVWFscU+yIu6DIo5IWkMgVXd74/d3z/ZomwF/QJNGFwFP/lNA282rpjsky56fSxS7oT7wAlXoYoHVCOOaL7tbg==",
"dev": true,
"requires": {
- "@babel/types": "7.0.0-beta.53",
- "lodash": "^4.17.5"
- },
- "dependencies": {
- "@babel/types": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.53.tgz",
- "integrity": "sha1-GaRhwNpRVZXftnQLS0Xce7Dms3U=",
- "dev": true,
- "requires": {
- "esutils": "^2.0.2",
- "lodash": "^4.17.5",
- "to-fast-properties": "^2.0.0"
- }
- }
+ "@babel/types": "7.0.0-beta.56",
+ "lodash": "^4.17.10"
}
},
"@babel/helper-module-transforms": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.0.0-beta.53.tgz",
- "integrity": "sha1-e6IUzcyPhiPy0Xl96v8f80mqzhM=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.0.0-beta.56.tgz",
+ "integrity": "sha512-jC+blwjVeVx43WWOJHHXYBcHvYw0eHNgZUUXHKkDTLYc0zx8oev3LyciGFiWz29KgCS1K8YYd0t7z8fFXlCTog==",
"dev": true,
"requires": {
- "@babel/helper-module-imports": "7.0.0-beta.53",
- "@babel/helper-simple-access": "7.0.0-beta.53",
- "@babel/helper-split-export-declaration": "7.0.0-beta.53",
- "@babel/template": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53",
- "lodash": "^4.17.5"
- },
- "dependencies": {
- "@babel/code-frame": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.53.tgz",
- "integrity": "sha1-mA0VYLhjV1v1o3eSUDfgEy71kh4=",
- "dev": true,
- "requires": {
- "@babel/highlight": "7.0.0-beta.53"
- }
- },
- "@babel/helper-split-export-declaration": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.53.tgz",
- "integrity": "sha1-rvVLix+ZYW6jfJhHhxajeAJjMls=",
- "dev": true,
- "requires": {
- "@babel/types": "7.0.0-beta.53"
- }
- },
- "@babel/highlight": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.53.tgz",
- "integrity": "sha1-9OlS2tF4fSBeGI0+OEzc5JyjaPs=",
- "dev": true,
- "requires": {
- "chalk": "^2.0.0",
- "esutils": "^2.0.2",
- "js-tokens": "^3.0.0"
- }
- },
- "@babel/parser": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.0.0-beta.53.tgz",
- "integrity": "sha1-H0XrYXv5Rj1IKywE00nZ5O2/SJI=",
- "dev": true
- },
- "@babel/template": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.53.tgz",
- "integrity": "sha1-MyIpCQDQsYewpxdDgeHzu3EFDS4=",
- "dev": true,
- "requires": {
- "@babel/code-frame": "7.0.0-beta.53",
- "@babel/parser": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53",
- "lodash": "^4.17.5"
- }
- },
- "@babel/types": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.53.tgz",
- "integrity": "sha1-GaRhwNpRVZXftnQLS0Xce7Dms3U=",
- "dev": true,
- "requires": {
- "esutils": "^2.0.2",
- "lodash": "^4.17.5",
- "to-fast-properties": "^2.0.0"
- }
- },
- "js-tokens": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz",
- "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=",
- "dev": true
- }
+ "@babel/helper-module-imports": "7.0.0-beta.56",
+ "@babel/helper-simple-access": "7.0.0-beta.56",
+ "@babel/helper-split-export-declaration": "7.0.0-beta.56",
+ "@babel/template": "7.0.0-beta.56",
+ "@babel/types": "7.0.0-beta.56",
+ "lodash": "^4.17.10"
}
},
"@babel/helper-optimise-call-expression": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.0.0-beta.53.tgz",
- "integrity": "sha1-j8eO9MD2n4uzu980zSMsIBIEFMg=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.0.0-beta.56.tgz",
+ "integrity": "sha512-T+eZePA6kM+3wHXDPKKFZGHtMJGfK2/xmdk9pVjFHppdg4zwEqGaqLQaOlqfk5ekx2vxO22tmL4Caf2A/MVm0w==",
"dev": true,
"requires": {
- "@babel/types": "7.0.0-beta.53"
- },
- "dependencies": {
- "@babel/types": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.53.tgz",
- "integrity": "sha1-GaRhwNpRVZXftnQLS0Xce7Dms3U=",
- "dev": true,
- "requires": {
- "esutils": "^2.0.2",
- "lodash": "^4.17.5",
- "to-fast-properties": "^2.0.0"
- }
- }
+ "@babel/types": "7.0.0-beta.56"
}
},
"@babel/helper-plugin-utils": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0-beta.53.tgz",
- "integrity": "sha1-1kRYY2/8JYtCcUqd2Trrb4uM8+0=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0-beta.56.tgz",
+ "integrity": "sha512-6IlFMU13X7gwnnMldDHwfc7IqngqCH/KfiU7I+GdNoZPnddmjghc87E/zKHaJpWdX1VvXCCelp2EnKq0rgBQ8w==",
"dev": true
},
"@babel/helper-regex": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-regex/-/helper-regex-7.0.0-beta.53.tgz",
- "integrity": "sha1-bp0hl7Vid54iVWWUaumoXCFbIl4=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/helper-regex/-/helper-regex-7.0.0-beta.56.tgz",
+ "integrity": "sha512-wtb8bmlc5TF7W7KMd5muS+CVQQu7cNGTdPbI5+8x5w36bN8ytbkun5160hJ2S1r3Tti0FPnrYwz+9W5AGj+d9g==",
"dev": true,
"requires": {
- "lodash": "^4.17.5"
+ "lodash": "^4.17.10"
}
},
"@babel/helper-remap-async-to-generator": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.0.0-beta.53.tgz",
- "integrity": "sha1-uDSnVy3sF2OJ/6x+djV5WGSQySI=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.0.0-beta.56.tgz",
+ "integrity": "sha512-uCvdjXeEh/qzvhK61XLP5DADCM0MMxZOVdGIj5In/i9MLt9BD/EAyBmjZN0bc1dD1wJst0qInZyZju0lUUkvNQ==",
"dev": true,
"requires": {
- "@babel/helper-annotate-as-pure": "7.0.0-beta.53",
- "@babel/helper-wrap-function": "7.0.0-beta.53",
- "@babel/template": "7.0.0-beta.53",
- "@babel/traverse": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53"
- },
- "dependencies": {
- "@babel/code-frame": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.53.tgz",
- "integrity": "sha1-mA0VYLhjV1v1o3eSUDfgEy71kh4=",
- "dev": true,
- "requires": {
- "@babel/highlight": "7.0.0-beta.53"
- }
- },
- "@babel/generator": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.0.0-beta.53.tgz",
- "integrity": "sha1-uMrXLFcr4yNK/94ivm2sxCUOA0s=",
- "dev": true,
- "requires": {
- "@babel/types": "7.0.0-beta.53",
- "jsesc": "^2.5.1",
- "lodash": "^4.17.5",
- "source-map": "^0.5.0",
- "trim-right": "^1.0.1"
- }
- },
- "@babel/helper-function-name": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.53.tgz",
- "integrity": "sha1-USgEro6cvOVDHr6hnkdijC7WU/I=",
- "dev": true,
- "requires": {
- "@babel/helper-get-function-arity": "7.0.0-beta.53",
- "@babel/template": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53"
- }
- },
- "@babel/helper-get-function-arity": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.53.tgz",
- "integrity": "sha1-3tiKsp+bHbYch9G7jTijXdp3neY=",
- "dev": true,
- "requires": {
- "@babel/types": "7.0.0-beta.53"
- }
- },
- "@babel/helper-split-export-declaration": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.53.tgz",
- "integrity": "sha1-rvVLix+ZYW6jfJhHhxajeAJjMls=",
- "dev": true,
- "requires": {
- "@babel/types": "7.0.0-beta.53"
- }
- },
- "@babel/highlight": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.53.tgz",
- "integrity": "sha1-9OlS2tF4fSBeGI0+OEzc5JyjaPs=",
- "dev": true,
- "requires": {
- "chalk": "^2.0.0",
- "esutils": "^2.0.2",
- "js-tokens": "^3.0.0"
- }
- },
- "@babel/parser": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.0.0-beta.53.tgz",
- "integrity": "sha1-H0XrYXv5Rj1IKywE00nZ5O2/SJI=",
- "dev": true
- },
- "@babel/template": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.53.tgz",
- "integrity": "sha1-MyIpCQDQsYewpxdDgeHzu3EFDS4=",
- "dev": true,
- "requires": {
- "@babel/code-frame": "7.0.0-beta.53",
- "@babel/parser": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53",
- "lodash": "^4.17.5"
- }
- },
- "@babel/traverse": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.0.0-beta.53.tgz",
- "integrity": "sha1-ANMs2NC1j0wB0xFXvmIsZigm00Q=",
- "dev": true,
- "requires": {
- "@babel/code-frame": "7.0.0-beta.53",
- "@babel/generator": "7.0.0-beta.53",
- "@babel/helper-function-name": "7.0.0-beta.53",
- "@babel/helper-split-export-declaration": "7.0.0-beta.53",
- "@babel/parser": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53",
- "debug": "^3.1.0",
- "globals": "^11.1.0",
- "invariant": "^2.2.0",
- "lodash": "^4.17.5"
- }
- },
- "@babel/types": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.53.tgz",
- "integrity": "sha1-GaRhwNpRVZXftnQLS0Xce7Dms3U=",
- "dev": true,
- "requires": {
- "esutils": "^2.0.2",
- "lodash": "^4.17.5",
- "to-fast-properties": "^2.0.0"
- }
- },
- "js-tokens": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz",
- "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=",
- "dev": true
- }
+ "@babel/helper-annotate-as-pure": "7.0.0-beta.56",
+ "@babel/helper-wrap-function": "7.0.0-beta.56",
+ "@babel/template": "7.0.0-beta.56",
+ "@babel/traverse": "7.0.0-beta.56",
+ "@babel/types": "7.0.0-beta.56"
}
},
"@babel/helper-replace-supers": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.0.0-beta.53.tgz",
- "integrity": "sha1-M5tb3BAilElbGifFWBMjBuG3vKc=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.0.0-beta.56.tgz",
+ "integrity": "sha512-Pv0a8XYWeYLMgzx6BiKYMkBPW7ilDeKmKnPfMD+sCsTRDMZl9DssqnkkSwGxgAeuPwZ9opx18r5EzYPTgt0k4A==",
"dev": true,
"requires": {
- "@babel/helper-member-expression-to-functions": "7.0.0-beta.53",
- "@babel/helper-optimise-call-expression": "7.0.0-beta.53",
- "@babel/traverse": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53"
- },
- "dependencies": {
- "@babel/code-frame": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.53.tgz",
- "integrity": "sha1-mA0VYLhjV1v1o3eSUDfgEy71kh4=",
- "dev": true,
- "requires": {
- "@babel/highlight": "7.0.0-beta.53"
- }
- },
- "@babel/generator": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.0.0-beta.53.tgz",
- "integrity": "sha1-uMrXLFcr4yNK/94ivm2sxCUOA0s=",
- "dev": true,
- "requires": {
- "@babel/types": "7.0.0-beta.53",
- "jsesc": "^2.5.1",
- "lodash": "^4.17.5",
- "source-map": "^0.5.0",
- "trim-right": "^1.0.1"
- }
- },
- "@babel/helper-function-name": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.53.tgz",
- "integrity": "sha1-USgEro6cvOVDHr6hnkdijC7WU/I=",
- "dev": true,
- "requires": {
- "@babel/helper-get-function-arity": "7.0.0-beta.53",
- "@babel/template": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53"
- }
- },
- "@babel/helper-get-function-arity": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.53.tgz",
- "integrity": "sha1-3tiKsp+bHbYch9G7jTijXdp3neY=",
- "dev": true,
- "requires": {
- "@babel/types": "7.0.0-beta.53"
- }
- },
- "@babel/helper-split-export-declaration": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.53.tgz",
- "integrity": "sha1-rvVLix+ZYW6jfJhHhxajeAJjMls=",
- "dev": true,
- "requires": {
- "@babel/types": "7.0.0-beta.53"
- }
- },
- "@babel/highlight": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.53.tgz",
- "integrity": "sha1-9OlS2tF4fSBeGI0+OEzc5JyjaPs=",
- "dev": true,
- "requires": {
- "chalk": "^2.0.0",
- "esutils": "^2.0.2",
- "js-tokens": "^3.0.0"
- }
- },
- "@babel/parser": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.0.0-beta.53.tgz",
- "integrity": "sha1-H0XrYXv5Rj1IKywE00nZ5O2/SJI=",
- "dev": true
- },
- "@babel/template": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.53.tgz",
- "integrity": "sha1-MyIpCQDQsYewpxdDgeHzu3EFDS4=",
- "dev": true,
- "requires": {
- "@babel/code-frame": "7.0.0-beta.53",
- "@babel/parser": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53",
- "lodash": "^4.17.5"
- }
- },
- "@babel/traverse": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.0.0-beta.53.tgz",
- "integrity": "sha1-ANMs2NC1j0wB0xFXvmIsZigm00Q=",
- "dev": true,
- "requires": {
- "@babel/code-frame": "7.0.0-beta.53",
- "@babel/generator": "7.0.0-beta.53",
- "@babel/helper-function-name": "7.0.0-beta.53",
- "@babel/helper-split-export-declaration": "7.0.0-beta.53",
- "@babel/parser": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53",
- "debug": "^3.1.0",
- "globals": "^11.1.0",
- "invariant": "^2.2.0",
- "lodash": "^4.17.5"
- }
- },
- "@babel/types": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.53.tgz",
- "integrity": "sha1-GaRhwNpRVZXftnQLS0Xce7Dms3U=",
- "dev": true,
- "requires": {
- "esutils": "^2.0.2",
- "lodash": "^4.17.5",
- "to-fast-properties": "^2.0.0"
- }
- },
- "js-tokens": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz",
- "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=",
- "dev": true
- }
+ "@babel/helper-member-expression-to-functions": "7.0.0-beta.56",
+ "@babel/helper-optimise-call-expression": "7.0.0-beta.56",
+ "@babel/traverse": "7.0.0-beta.56",
+ "@babel/types": "7.0.0-beta.56"
}
},
"@babel/helper-simple-access": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.0.0-beta.53.tgz",
- "integrity": "sha1-cvbbmr5C+GgfpvAo79WdgVRHUrM=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.0.0-beta.56.tgz",
+ "integrity": "sha512-CIRkGs+/KNWpGJKEUbABeVWTZ1ePskwKwwoR1lVs2qI4cZheS6NvXzLxsFN/uxyc46yn7px/XTxV/zM3rnlQQQ==",
"dev": true,
- "requires": {
- "@babel/template": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53",
- "lodash": "^4.17.5"
- },
- "dependencies": {
- "@babel/code-frame": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.53.tgz",
- "integrity": "sha1-mA0VYLhjV1v1o3eSUDfgEy71kh4=",
- "dev": true,
- "requires": {
- "@babel/highlight": "7.0.0-beta.53"
- }
- },
- "@babel/highlight": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.53.tgz",
- "integrity": "sha1-9OlS2tF4fSBeGI0+OEzc5JyjaPs=",
- "dev": true,
- "requires": {
- "chalk": "^2.0.0",
- "esutils": "^2.0.2",
- "js-tokens": "^3.0.0"
- }
- },
- "@babel/parser": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.0.0-beta.53.tgz",
- "integrity": "sha1-H0XrYXv5Rj1IKywE00nZ5O2/SJI=",
- "dev": true
- },
- "@babel/template": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.53.tgz",
- "integrity": "sha1-MyIpCQDQsYewpxdDgeHzu3EFDS4=",
- "dev": true,
- "requires": {
- "@babel/code-frame": "7.0.0-beta.53",
- "@babel/parser": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53",
- "lodash": "^4.17.5"
- }
- },
- "@babel/types": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.53.tgz",
- "integrity": "sha1-GaRhwNpRVZXftnQLS0Xce7Dms3U=",
- "dev": true,
- "requires": {
- "esutils": "^2.0.2",
- "lodash": "^4.17.5",
- "to-fast-properties": "^2.0.0"
- }
- },
- "js-tokens": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz",
- "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=",
- "dev": true
- }
+ "requires": {
+ "@babel/template": "7.0.0-beta.56",
+ "@babel/types": "7.0.0-beta.56",
+ "lodash": "^4.17.10"
}
},
"@babel/helper-split-export-declaration": {
- "version": "7.0.0-beta.52",
- "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.52.tgz",
- "integrity": "sha1-SqxPMOpjhK82duBLUkZydjLkYN8=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.56.tgz",
+ "integrity": "sha512-j886mQJQg5HDF7X0qK/AfNdrpIYUcJHxRKwBJ9dUvhpO3eFqsTLbJJpitgLaJQjh9D7Db5Aiq8MRghj3+MH57g==",
"dev": true,
"requires": {
- "@babel/types": "7.0.0-beta.52"
+ "@babel/types": "7.0.0-beta.56"
}
},
"@babel/helper-wrap-function": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.0.0-beta.53.tgz",
- "integrity": "sha1-q/sr+pQBBCurJXwBkPWtbbjfFdU=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.0.0-beta.56.tgz",
+ "integrity": "sha512-WuGMzbpx12M40aHtocM0vs9af/LmdwpXsKBX2T2GqCMueD90MHvQU+148vHScgPbUoWP4lv+dFGZDf0XUc2qJA==",
"dev": true,
"requires": {
- "@babel/helper-function-name": "7.0.0-beta.53",
- "@babel/template": "7.0.0-beta.53",
- "@babel/traverse": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53"
- },
- "dependencies": {
- "@babel/code-frame": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.53.tgz",
- "integrity": "sha1-mA0VYLhjV1v1o3eSUDfgEy71kh4=",
- "dev": true,
- "requires": {
- "@babel/highlight": "7.0.0-beta.53"
- }
- },
- "@babel/generator": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.0.0-beta.53.tgz",
- "integrity": "sha1-uMrXLFcr4yNK/94ivm2sxCUOA0s=",
- "dev": true,
- "requires": {
- "@babel/types": "7.0.0-beta.53",
- "jsesc": "^2.5.1",
- "lodash": "^4.17.5",
- "source-map": "^0.5.0",
- "trim-right": "^1.0.1"
- }
- },
- "@babel/helper-function-name": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.53.tgz",
- "integrity": "sha1-USgEro6cvOVDHr6hnkdijC7WU/I=",
- "dev": true,
- "requires": {
- "@babel/helper-get-function-arity": "7.0.0-beta.53",
- "@babel/template": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53"
- }
- },
- "@babel/helper-get-function-arity": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.53.tgz",
- "integrity": "sha1-3tiKsp+bHbYch9G7jTijXdp3neY=",
- "dev": true,
- "requires": {
- "@babel/types": "7.0.0-beta.53"
- }
- },
- "@babel/helper-split-export-declaration": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.53.tgz",
- "integrity": "sha1-rvVLix+ZYW6jfJhHhxajeAJjMls=",
- "dev": true,
- "requires": {
- "@babel/types": "7.0.0-beta.53"
- }
- },
- "@babel/highlight": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.53.tgz",
- "integrity": "sha1-9OlS2tF4fSBeGI0+OEzc5JyjaPs=",
- "dev": true,
- "requires": {
- "chalk": "^2.0.0",
- "esutils": "^2.0.2",
- "js-tokens": "^3.0.0"
- }
- },
- "@babel/parser": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.0.0-beta.53.tgz",
- "integrity": "sha1-H0XrYXv5Rj1IKywE00nZ5O2/SJI=",
- "dev": true
- },
- "@babel/template": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.53.tgz",
- "integrity": "sha1-MyIpCQDQsYewpxdDgeHzu3EFDS4=",
- "dev": true,
- "requires": {
- "@babel/code-frame": "7.0.0-beta.53",
- "@babel/parser": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53",
- "lodash": "^4.17.5"
- }
- },
- "@babel/traverse": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.0.0-beta.53.tgz",
- "integrity": "sha1-ANMs2NC1j0wB0xFXvmIsZigm00Q=",
- "dev": true,
- "requires": {
- "@babel/code-frame": "7.0.0-beta.53",
- "@babel/generator": "7.0.0-beta.53",
- "@babel/helper-function-name": "7.0.0-beta.53",
- "@babel/helper-split-export-declaration": "7.0.0-beta.53",
- "@babel/parser": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53",
- "debug": "^3.1.0",
- "globals": "^11.1.0",
- "invariant": "^2.2.0",
- "lodash": "^4.17.5"
- }
- },
- "@babel/types": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.53.tgz",
- "integrity": "sha1-GaRhwNpRVZXftnQLS0Xce7Dms3U=",
- "dev": true,
- "requires": {
- "esutils": "^2.0.2",
- "lodash": "^4.17.5",
- "to-fast-properties": "^2.0.0"
- }
- },
- "js-tokens": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz",
- "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=",
- "dev": true
- }
+ "@babel/helper-function-name": "7.0.0-beta.56",
+ "@babel/template": "7.0.0-beta.56",
+ "@babel/traverse": "7.0.0-beta.56",
+ "@babel/types": "7.0.0-beta.56"
}
},
"@babel/helpers": {
- "version": "7.0.0-beta.52",
- "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.0.0-beta.52.tgz",
- "integrity": "sha1-ib7r5OT9ayL111QHFgJ2KUCMSmM=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.0.0-beta.56.tgz",
+ "integrity": "sha512-KaNBuVlAGW6sFCEWjliN29dL8K4L/ff8ZUaR/D5ou/JsqOuxLRy34Rf8WXMru3Et2g4Czly6vJeSmaYyf3s0lA==",
"dev": true,
"requires": {
- "@babel/template": "7.0.0-beta.52",
- "@babel/traverse": "7.0.0-beta.52",
- "@babel/types": "7.0.0-beta.52"
+ "@babel/template": "7.0.0-beta.56",
+ "@babel/traverse": "7.0.0-beta.56",
+ "@babel/types": "7.0.0-beta.56"
}
},
"@babel/highlight": {
- "version": "7.0.0-beta.52",
- "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.52.tgz",
- "integrity": "sha1-7ySTFDLwYVXnvDnNuKaze0oos9A=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.56.tgz",
+ "integrity": "sha512-q4TfI+jJISul6vVpZJktzH4tupwRiVk6KXRhB8PHqJ7erl966I6ePDXl9mAbE8jMM7YswhnnB0j1SYP7LBVyhg==",
"dev": true,
"requires": {
"chalk": "^2.0.0",
@@ -1160,659 +283,473 @@
}
},
"@babel/parser": {
- "version": "7.0.0-beta.52",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.0.0-beta.52.tgz",
- "integrity": "sha1-TpNbYs2b+HK9N7zx9j2C/nsCN6I=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.0.0-beta.56.tgz",
+ "integrity": "sha512-JM0ughhbo+sPXw2Z+SUyowfYrAOhjanzjMshcLswBdXVelJCOeEKe/FqMqPWGVPQr7wByongXIn+MKdCpY7DBw==",
"dev": true
},
"@babel/plugin-proposal-async-generator-functions": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.0.0-beta.53.tgz",
- "integrity": "sha1-XFnvZm0Xwn3LVoa3XsMr622MUNY=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.0.0-beta.56.tgz",
+ "integrity": "sha512-2amegw5EfeOJO5un5+A5cZ7cELUKf7fUzdryFdkg3ciGyNA+ISK9x4B57N8Jb5gWXch1xNsOV7tJuaaWeqbJ3g==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.0.0-beta.53",
- "@babel/helper-remap-async-to-generator": "7.0.0-beta.53",
- "@babel/plugin-syntax-async-generators": "7.0.0-beta.53"
+ "@babel/helper-plugin-utils": "7.0.0-beta.56",
+ "@babel/helper-remap-async-to-generator": "7.0.0-beta.56",
+ "@babel/plugin-syntax-async-generators": "7.0.0-beta.56"
}
},
"@babel/plugin-proposal-object-rest-spread": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.0.0-beta.53.tgz",
- "integrity": "sha1-5rXwusUBg48W6PPG00sAs+pANdk=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.0.0-beta.56.tgz",
+ "integrity": "sha512-onVk2kI39dzkDP+SzX6eC3nAkq5yemiiZX+AuXAmshOyuz+ZYUu5b+zzXKw0oPFTSnMnlIfJItQCcVzesXcU6A==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.0.0-beta.53",
- "@babel/plugin-syntax-object-rest-spread": "7.0.0-beta.53"
+ "@babel/helper-plugin-utils": "7.0.0-beta.56",
+ "@babel/plugin-syntax-object-rest-spread": "7.0.0-beta.56"
}
},
"@babel/plugin-proposal-optional-catch-binding": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.0.0-beta.53.tgz",
- "integrity": "sha1-i6DVywtncv66DwxY5u1+oj/S8gI=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.0.0-beta.56.tgz",
+ "integrity": "sha512-qLUAi1k8kTiFDUfGkjtdWujo6hTcqCDRw9hvBSxgJ150fRytyCG0pDqmC3KXytSdPPxuAcCCbgB+9CZsGPXkIA==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.0.0-beta.53",
- "@babel/plugin-syntax-optional-catch-binding": "7.0.0-beta.53"
+ "@babel/helper-plugin-utils": "7.0.0-beta.56",
+ "@babel/plugin-syntax-optional-catch-binding": "7.0.0-beta.56"
}
},
"@babel/plugin-proposal-unicode-property-regex": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.0.0-beta.53.tgz",
- "integrity": "sha1-YAlUHdmG6OsKkKJRFSMAEQLn3EM=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.0.0-beta.56.tgz",
+ "integrity": "sha512-YszvYRt3tgCTJ+qcBSRKpJhlsiM0/BPcehwHgFzyKi0arnRX7jO8iyTZD3VpkVBElTGTbz91G9fSXj/7Y3PdQw==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.0.0-beta.53",
- "@babel/helper-regex": "7.0.0-beta.53",
+ "@babel/helper-plugin-utils": "7.0.0-beta.56",
+ "@babel/helper-regex": "7.0.0-beta.56",
"regexpu-core": "^4.2.0"
}
},
"@babel/plugin-syntax-async-generators": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.0.0-beta.53.tgz",
- "integrity": "sha1-gpvvbxUBeentC7lDM58qMSM6qSE=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.0.0-beta.56.tgz",
+ "integrity": "sha512-tC8sGd1RridRn0147GUh2rF1WB+8FnP0siTD0ofuqLYJEbOTYn9NF0WD4DNzwwHwOZMBxgHFy8N/B1sNmEC8SQ==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.0.0-beta.53"
+ "@babel/helper-plugin-utils": "7.0.0-beta.56"
}
},
"@babel/plugin-syntax-jsx": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.0.0-beta.53.tgz",
- "integrity": "sha1-IjzIl3IzOcsiCqghbGVQhv60U5g=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.0.0-beta.56.tgz",
+ "integrity": "sha512-QsZbghj9DemNxr6ZX7V1ULukXrb+d3kRAU9ErikMnSCx60tKW5MQCIuSnHjr1l5wU4XlAZT2qclb+RYTTz0rAw==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.0.0-beta.53"
+ "@babel/helper-plugin-utils": "7.0.0-beta.56"
}
},
"@babel/plugin-syntax-object-rest-spread": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.0.0-beta.53.tgz",
- "integrity": "sha1-nb12jD8QnwKyT7oXNllp+iXrRYw=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.0.0-beta.56.tgz",
+ "integrity": "sha512-rDqe3TN5cZaUg4zi3Kzfq5qySS6IcEs19WE7GHlmelgQ1QXy9d/tsPEAWHZTLrG4mjbbEFJZdLvAi+LSGdhJAQ==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.0.0-beta.53"
+ "@babel/helper-plugin-utils": "7.0.0-beta.56"
}
},
"@babel/plugin-syntax-optional-catch-binding": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.0.0-beta.53.tgz",
- "integrity": "sha1-pc9szGqrNp/CyleuH0pjs9w4Jes=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.0.0-beta.56.tgz",
+ "integrity": "sha512-rpXmUoqQRwV3QaRUIwKTrVh/pzYe1mMmV43TXJNkP3BX4phimxsF+/orJY8MjqZs9QfHwQkfyb+b6BURLY62kA==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.0.0-beta.53"
+ "@babel/helper-plugin-utils": "7.0.0-beta.56"
}
},
"@babel/plugin-transform-arrow-functions": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.0.0-beta.53.tgz",
- "integrity": "sha1-p19fqEl6rBcp0DO/QcJQQWudHgQ=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.0.0-beta.56.tgz",
+ "integrity": "sha512-TkpqdTt8ivvNBoawwxwFJSHRAQAWvWRuMyQIJfdrmSGdHVaEJ8xn1MkYuORMOogtpsG+ZncmGRAyCEQeMFBPsA==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.0.0-beta.53"
+ "@babel/helper-plugin-utils": "7.0.0-beta.56"
}
},
"@babel/plugin-transform-async-to-generator": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.0.0-beta.53.tgz",
- "integrity": "sha1-REx2HMQhXJeptVb/WMp7p99dQVM=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.0.0-beta.56.tgz",
+ "integrity": "sha512-n34TSk3nFLCnsuC5f2PSb+jdOVXv1UzENnGN/Xu9/epSFVVNLfNR2td0Gx0Rh4CjIef5JZ0tFounyPWWMSh/0Q==",
"dev": true,
"requires": {
- "@babel/helper-module-imports": "7.0.0-beta.53",
- "@babel/helper-plugin-utils": "7.0.0-beta.53",
- "@babel/helper-remap-async-to-generator": "7.0.0-beta.53"
+ "@babel/helper-module-imports": "7.0.0-beta.56",
+ "@babel/helper-plugin-utils": "7.0.0-beta.56",
+ "@babel/helper-remap-async-to-generator": "7.0.0-beta.56"
}
},
"@babel/plugin-transform-block-scoped-functions": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.0.0-beta.53.tgz",
- "integrity": "sha1-CkMiGhsMkM1NCfG0a5Wd0khlf3M=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.0.0-beta.56.tgz",
+ "integrity": "sha512-rgabVaR9M5c7xyuWFMyPN8vT8QkncF9skgA2/O6seiGX8mgl/WjDMkWi2Sm9PFdPc7WEryKh8Rlu/tgupulwSA==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.0.0-beta.53"
+ "@babel/helper-plugin-utils": "7.0.0-beta.56"
}
},
"@babel/plugin-transform-block-scoping": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.0.0-beta.53.tgz",
- "integrity": "sha1-nv1uUMofo5jcqnEZYh2j8fu4IbY=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.0.0-beta.56.tgz",
+ "integrity": "sha512-hqeciuZPUfsZIhJ6MaB68U3+G5eS12ahidn98oUxyOl+BnS/aN9EhSt877mJPlEBe3oQy35qNwg/HG3rq33O2A==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.0.0-beta.53",
- "lodash": "^4.17.5"
+ "@babel/helper-plugin-utils": "7.0.0-beta.56",
+ "lodash": "^4.17.10"
}
},
"@babel/plugin-transform-classes": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.0.0-beta.53.tgz",
- "integrity": "sha1-XcLsMb8emAZqzfDEiHt3RMFL7G4=",
- "dev": true,
- "requires": {
- "@babel/helper-annotate-as-pure": "7.0.0-beta.53",
- "@babel/helper-define-map": "7.0.0-beta.53",
- "@babel/helper-function-name": "7.0.0-beta.53",
- "@babel/helper-optimise-call-expression": "7.0.0-beta.53",
- "@babel/helper-plugin-utils": "7.0.0-beta.53",
- "@babel/helper-replace-supers": "7.0.0-beta.53",
- "@babel/helper-split-export-declaration": "7.0.0-beta.53",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.0.0-beta.56.tgz",
+ "integrity": "sha512-uq0Nvjlkt5gpF+dlvJ1yOZu8liBfOp3QoA/hrP7LZ6XzmYwZOhIUpUbouvKjgvybWiDmNDGcELeC96CL/mtV5Q==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-annotate-as-pure": "7.0.0-beta.56",
+ "@babel/helper-define-map": "7.0.0-beta.56",
+ "@babel/helper-function-name": "7.0.0-beta.56",
+ "@babel/helper-optimise-call-expression": "7.0.0-beta.56",
+ "@babel/helper-plugin-utils": "7.0.0-beta.56",
+ "@babel/helper-replace-supers": "7.0.0-beta.56",
+ "@babel/helper-split-export-declaration": "7.0.0-beta.56",
"globals": "^11.1.0"
- },
- "dependencies": {
- "@babel/code-frame": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.53.tgz",
- "integrity": "sha1-mA0VYLhjV1v1o3eSUDfgEy71kh4=",
- "dev": true,
- "requires": {
- "@babel/highlight": "7.0.0-beta.53"
- }
- },
- "@babel/helper-function-name": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.53.tgz",
- "integrity": "sha1-USgEro6cvOVDHr6hnkdijC7WU/I=",
- "dev": true,
- "requires": {
- "@babel/helper-get-function-arity": "7.0.0-beta.53",
- "@babel/template": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53"
- }
- },
- "@babel/helper-get-function-arity": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.53.tgz",
- "integrity": "sha1-3tiKsp+bHbYch9G7jTijXdp3neY=",
- "dev": true,
- "requires": {
- "@babel/types": "7.0.0-beta.53"
- }
- },
- "@babel/helper-split-export-declaration": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.53.tgz",
- "integrity": "sha1-rvVLix+ZYW6jfJhHhxajeAJjMls=",
- "dev": true,
- "requires": {
- "@babel/types": "7.0.0-beta.53"
- }
- },
- "@babel/highlight": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.53.tgz",
- "integrity": "sha1-9OlS2tF4fSBeGI0+OEzc5JyjaPs=",
- "dev": true,
- "requires": {
- "chalk": "^2.0.0",
- "esutils": "^2.0.2",
- "js-tokens": "^3.0.0"
- }
- },
- "@babel/parser": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.0.0-beta.53.tgz",
- "integrity": "sha1-H0XrYXv5Rj1IKywE00nZ5O2/SJI=",
- "dev": true
- },
- "@babel/template": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.53.tgz",
- "integrity": "sha1-MyIpCQDQsYewpxdDgeHzu3EFDS4=",
- "dev": true,
- "requires": {
- "@babel/code-frame": "7.0.0-beta.53",
- "@babel/parser": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53",
- "lodash": "^4.17.5"
- }
- },
- "@babel/types": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.53.tgz",
- "integrity": "sha1-GaRhwNpRVZXftnQLS0Xce7Dms3U=",
- "dev": true,
- "requires": {
- "esutils": "^2.0.2",
- "lodash": "^4.17.5",
- "to-fast-properties": "^2.0.0"
- }
- },
- "js-tokens": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz",
- "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=",
- "dev": true
- }
}
},
"@babel/plugin-transform-computed-properties": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.0.0-beta.53.tgz",
- "integrity": "sha1-l0fiYIKulO2lMPmNLCBZ6NLbwAU=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.0.0-beta.56.tgz",
+ "integrity": "sha512-U0iHc3aEhgJsW5toS4ZjwWp9bV1l+gsJAt4PI/fXA4XK0DVZEZS82Xq3ozHLp5ccWiqJCCEWYAFys2c/ZPKmjA==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.0.0-beta.53"
+ "@babel/helper-plugin-utils": "7.0.0-beta.56"
}
},
"@babel/plugin-transform-destructuring": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.0.0-beta.53.tgz",
- "integrity": "sha1-DwrbDhptzTWjZkEBYJ7AYv8SenY=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.0.0-beta.56.tgz",
+ "integrity": "sha512-6Jyis4rwPNQ9a8t1PerzymtC0qfgKlI9SOc44xaZfVo2nxzhb09nXrGsjpXywZVepDUWKHXy17XT0ouiQJmrTw==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.0.0-beta.53"
+ "@babel/helper-plugin-utils": "7.0.0-beta.56"
}
},
"@babel/plugin-transform-dotall-regex": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.0.0-beta.53.tgz",
- "integrity": "sha1-TEZHMaRf8Fm36TOsdswFzHBlGkA=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.0.0-beta.56.tgz",
+ "integrity": "sha512-nM7ZXzwdDwviGUleCdDrQ4fGXtTkEFg0HHbZ5LD7XlJrN4goJmi6xHBOoZ8iWdTPrzAuDi+FT87RWCHFDcU4xA==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.0.0-beta.53",
- "@babel/helper-regex": "7.0.0-beta.53",
+ "@babel/helper-plugin-utils": "7.0.0-beta.56",
+ "@babel/helper-regex": "7.0.0-beta.56",
"regexpu-core": "^4.1.3"
}
},
"@babel/plugin-transform-duplicate-keys": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.0.0-beta.53.tgz",
- "integrity": "sha1-D1WZE6v6GCOcpOCPc+7DbF5XuB8=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.0.0-beta.56.tgz",
+ "integrity": "sha512-hnMT8itOVeLuLGtuE+SBpaCyLj97nq2LJwu2Ud6O6Nag1iswDp2MMgTYmFPzPF465LuP4cUp5bmjZcOvFkkoHQ==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.0.0-beta.53"
+ "@babel/helper-plugin-utils": "7.0.0-beta.56"
}
},
"@babel/plugin-transform-exponentiation-operator": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.0.0-beta.53.tgz",
- "integrity": "sha1-PiZxeSBMd1GdhBepsZnyUiIejZU=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.0.0-beta.56.tgz",
+ "integrity": "sha512-t32wjgnTXwOMDd8cIUSpYu3k31EqrYTJsZf/Dw44RDT6EXJzeTKchMsvwd2n8vf02OzjO0a9/qXF5dKl4cK0HQ==",
"dev": true,
"requires": {
- "@babel/helper-builder-binary-assignment-operator-visitor": "7.0.0-beta.53",
- "@babel/helper-plugin-utils": "7.0.0-beta.53"
+ "@babel/helper-builder-binary-assignment-operator-visitor": "7.0.0-beta.56",
+ "@babel/helper-plugin-utils": "7.0.0-beta.56"
}
},
"@babel/plugin-transform-for-of": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.0.0-beta.53.tgz",
- "integrity": "sha1-+gZSFeGFacj3TdUktXIeEdzKlzs=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.0.0-beta.56.tgz",
+ "integrity": "sha512-z4sift6xY65vOpFlRyPrcKNgusCV9NZZGOR9Dxt64XUEWnyxpabHZ9mGe0B3mqJbm168cK7sbxruvnyfyrO2fg==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.0.0-beta.53"
+ "@babel/helper-plugin-utils": "7.0.0-beta.56"
}
},
"@babel/plugin-transform-function-name": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.0.0-beta.53.tgz",
- "integrity": "sha1-Kzpbs2TB4cV+zL/iXGv1XygEET4=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.0.0-beta.56.tgz",
+ "integrity": "sha512-olcHC1WD2L36/vUl/aw5STpv/+O4C/mUGOytQ2NJn0VPKqeaYCBaEboz+4nnttlvTojaxWzBURTl675YvlPcWw==",
"dev": true,
"requires": {
- "@babel/helper-function-name": "7.0.0-beta.53",
- "@babel/helper-plugin-utils": "7.0.0-beta.53"
- },
- "dependencies": {
- "@babel/code-frame": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.53.tgz",
- "integrity": "sha1-mA0VYLhjV1v1o3eSUDfgEy71kh4=",
- "dev": true,
- "requires": {
- "@babel/highlight": "7.0.0-beta.53"
- }
- },
- "@babel/helper-function-name": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.53.tgz",
- "integrity": "sha1-USgEro6cvOVDHr6hnkdijC7WU/I=",
- "dev": true,
- "requires": {
- "@babel/helper-get-function-arity": "7.0.0-beta.53",
- "@babel/template": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53"
- }
- },
- "@babel/helper-get-function-arity": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.53.tgz",
- "integrity": "sha1-3tiKsp+bHbYch9G7jTijXdp3neY=",
- "dev": true,
- "requires": {
- "@babel/types": "7.0.0-beta.53"
- }
- },
- "@babel/highlight": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.53.tgz",
- "integrity": "sha1-9OlS2tF4fSBeGI0+OEzc5JyjaPs=",
- "dev": true,
- "requires": {
- "chalk": "^2.0.0",
- "esutils": "^2.0.2",
- "js-tokens": "^3.0.0"
- }
- },
- "@babel/parser": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.0.0-beta.53.tgz",
- "integrity": "sha1-H0XrYXv5Rj1IKywE00nZ5O2/SJI=",
- "dev": true
- },
- "@babel/template": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.53.tgz",
- "integrity": "sha1-MyIpCQDQsYewpxdDgeHzu3EFDS4=",
- "dev": true,
- "requires": {
- "@babel/code-frame": "7.0.0-beta.53",
- "@babel/parser": "7.0.0-beta.53",
- "@babel/types": "7.0.0-beta.53",
- "lodash": "^4.17.5"
- }
- },
- "@babel/types": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.53.tgz",
- "integrity": "sha1-GaRhwNpRVZXftnQLS0Xce7Dms3U=",
- "dev": true,
- "requires": {
- "esutils": "^2.0.2",
- "lodash": "^4.17.5",
- "to-fast-properties": "^2.0.0"
- }
- },
- "js-tokens": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz",
- "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=",
- "dev": true
- }
+ "@babel/helper-function-name": "7.0.0-beta.56",
+ "@babel/helper-plugin-utils": "7.0.0-beta.56"
}
},
"@babel/plugin-transform-literals": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.0.0-beta.53.tgz",
- "integrity": "sha1-vsTxROmpbvUSHRQwx+vl/QiGV8k=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.0.0-beta.56.tgz",
+ "integrity": "sha512-uz7Hcui2qmf1fA8pl5CsLz8KjM3HuUbEws/59G9kaMOrSIMrGSfeN1zsthfFSJDpFQLwq5NZ0+lPIvuOwE61bA==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.0.0-beta.53"
+ "@babel/helper-plugin-utils": "7.0.0-beta.56"
}
},
"@babel/plugin-transform-modules-amd": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.0.0-beta.53.tgz",
- "integrity": "sha1-WFTXOeZ5IzqId8C0GCaca+t6Miw=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.0.0-beta.56.tgz",
+ "integrity": "sha512-qbYJ9Xfi17D6GWzqs6AIKbT5oN5A4ONwxMzqkvr501ft0JognN4Hc5W5UAyCGdNgY/V6+Qdf1t8Opd+zTcS1FA==",
"dev": true,
"requires": {
- "@babel/helper-module-transforms": "7.0.0-beta.53",
- "@babel/helper-plugin-utils": "7.0.0-beta.53"
+ "@babel/helper-module-transforms": "7.0.0-beta.56",
+ "@babel/helper-plugin-utils": "7.0.0-beta.56"
}
},
"@babel/plugin-transform-modules-commonjs": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.0.0-beta.53.tgz",
- "integrity": "sha1-68P7ocWmyHQ7kJQD7NPn42gcr6U=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.0.0-beta.56.tgz",
+ "integrity": "sha512-48juOe+HB048Km4l7ZzCKptRlfnYGAC5WwPJrDzldHQ8JFFmbrZPoDGPSlDK/3z9JRMldBHioVHvID5WTYPE9g==",
"dev": true,
"requires": {
- "@babel/helper-module-transforms": "7.0.0-beta.53",
- "@babel/helper-plugin-utils": "7.0.0-beta.53",
- "@babel/helper-simple-access": "7.0.0-beta.53"
+ "@babel/helper-module-transforms": "7.0.0-beta.56",
+ "@babel/helper-plugin-utils": "7.0.0-beta.56",
+ "@babel/helper-simple-access": "7.0.0-beta.56"
}
},
"@babel/plugin-transform-modules-systemjs": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.0.0-beta.53.tgz",
- "integrity": "sha1-uA/NnBWXLcaCMhT1JIUnhgu/BY4=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.0.0-beta.56.tgz",
+ "integrity": "sha512-tr2KAI4jhBfZLkSIHU4vlS6I1RmFYfMxM49ese+iPryvj1aH7x1VSz2+DEA/Xr+gM4CTXpWk0Xf2r2u260lPEA==",
"dev": true,
"requires": {
- "@babel/helper-hoist-variables": "7.0.0-beta.53",
- "@babel/helper-plugin-utils": "7.0.0-beta.53"
+ "@babel/helper-hoist-variables": "7.0.0-beta.56",
+ "@babel/helper-plugin-utils": "7.0.0-beta.56"
}
},
"@babel/plugin-transform-modules-umd": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.0.0-beta.53.tgz",
- "integrity": "sha1-Kjar5AodpnbkOhwwcVeOJ70tZ50=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.0.0-beta.56.tgz",
+ "integrity": "sha512-0ItEhFLodomK7FH2FgK+UAphXd95UKyj3SXcRRhbUifvpfnqv0QFgaffI01iEyFnbxdXKpZqESHZR1fV/w1igw==",
"dev": true,
"requires": {
- "@babel/helper-module-transforms": "7.0.0-beta.53",
- "@babel/helper-plugin-utils": "7.0.0-beta.53"
+ "@babel/helper-module-transforms": "7.0.0-beta.56",
+ "@babel/helper-plugin-utils": "7.0.0-beta.56"
}
},
"@babel/plugin-transform-new-target": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.0.0-beta.53.tgz",
- "integrity": "sha1-m3Sz1TtOhUzw42DwLCpEAwccagE=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.0.0-beta.56.tgz",
+ "integrity": "sha512-8r4H92o1LX6xZ3gGCUwrIiMwEoOfUfbflKOzrNQig2ybhX+9thU63m0P7cIU4qgp60mzIDKj2m7bz17s6MCl5g==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.0.0-beta.53"
+ "@babel/helper-plugin-utils": "7.0.0-beta.56"
}
},
"@babel/plugin-transform-object-super": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.0.0-beta.53.tgz",
- "integrity": "sha1-4sTwbts0s9eksnV7oYgp0N8gKcs=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.0.0-beta.56.tgz",
+ "integrity": "sha512-GB6OyxC16aIPE7lm13xfUsoP+zoqCn9PaocXzlGbQbotMoQ+qkmv3Ymq/Oy5YQl3kl5xrxX0JKNuOhYUjhG4YQ==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.0.0-beta.53",
- "@babel/helper-replace-supers": "7.0.0-beta.53"
+ "@babel/helper-plugin-utils": "7.0.0-beta.56",
+ "@babel/helper-replace-supers": "7.0.0-beta.56"
}
},
"@babel/plugin-transform-parameters": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.0.0-beta.53.tgz",
- "integrity": "sha1-7+YM7IzsoNGdXG+hrnm8TjMnnVY=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.0.0-beta.56.tgz",
+ "integrity": "sha512-zhGeuH/eY3kDVfFCWpyc1pWoIyuTZghqazsqJkUKwJMHoqVZuwEvNmpPi9Hhbn+W+LOFt8MJv5dY+kgfbMlwAQ==",
"dev": true,
"requires": {
- "@babel/helper-call-delegate": "7.0.0-beta.53",
- "@babel/helper-get-function-arity": "7.0.0-beta.53",
- "@babel/helper-plugin-utils": "7.0.0-beta.53"
- },
- "dependencies": {
- "@babel/helper-get-function-arity": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.53.tgz",
- "integrity": "sha1-3tiKsp+bHbYch9G7jTijXdp3neY=",
- "dev": true,
- "requires": {
- "@babel/types": "7.0.0-beta.53"
- }
- },
- "@babel/types": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.53.tgz",
- "integrity": "sha1-GaRhwNpRVZXftnQLS0Xce7Dms3U=",
- "dev": true,
- "requires": {
- "esutils": "^2.0.2",
- "lodash": "^4.17.5",
- "to-fast-properties": "^2.0.0"
- }
- }
+ "@babel/helper-call-delegate": "7.0.0-beta.56",
+ "@babel/helper-get-function-arity": "7.0.0-beta.56",
+ "@babel/helper-plugin-utils": "7.0.0-beta.56"
}
},
"@babel/plugin-transform-react-jsx": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.0.0-beta.53.tgz",
- "integrity": "sha1-ZYC3v2Zl8UyFgrn8JmygHwDgoEc=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.0.0-beta.56.tgz",
+ "integrity": "sha512-xg1l6yyWxxE4NdCIs+d3xx9Q03BmktxI9fIfxKaT0y+UjABg6J1eGCJRBPa1s3X212gkUcEmYPjG6jo4ew40Sw==",
"dev": true,
"requires": {
- "@babel/helper-builder-react-jsx": "7.0.0-beta.53",
- "@babel/helper-plugin-utils": "7.0.0-beta.53",
- "@babel/plugin-syntax-jsx": "7.0.0-beta.53"
+ "@babel/helper-builder-react-jsx": "7.0.0-beta.56",
+ "@babel/helper-plugin-utils": "7.0.0-beta.56",
+ "@babel/plugin-syntax-jsx": "7.0.0-beta.56"
}
},
"@babel/plugin-transform-regenerator": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.0.0-beta.53.tgz",
- "integrity": "sha1-T+u/YISvoMHJ7ISX3mjAaV/p2gs=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.0.0-beta.56.tgz",
+ "integrity": "sha512-wSRlSwXSXlpAdAKethZu+JyrnSL1NvLn3VtomlOCqHWhRhjOkjehIBlAe/AmguSn9JTUja0vqBWn1FS8sSnp7Q==",
"dev": true,
"requires": {
"regenerator-transform": "^0.13.3"
}
},
"@babel/plugin-transform-runtime": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.0.0-beta.53.tgz",
- "integrity": "sha1-TefM/ewGl98PcKRqaCKTcUnI4rU=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.0.0-beta.56.tgz",
+ "integrity": "sha512-bzIp/hDJwvN0hiVMlkiwC43N74R49nO+syW2wql8L48Md2z9nfsS0zw3T96oCDBUgGXzOX8uKq9DUKZS9YktTA==",
"dev": true,
"requires": {
- "@babel/helper-module-imports": "7.0.0-beta.53",
- "@babel/helper-plugin-utils": "7.0.0-beta.53"
+ "@babel/helper-module-imports": "7.0.0-beta.56",
+ "@babel/helper-plugin-utils": "7.0.0-beta.56"
}
},
"@babel/plugin-transform-shorthand-properties": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.0.0-beta.53.tgz",
- "integrity": "sha1-38SIG2vXZYoAMew7gWPliPCJjUs=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.0.0-beta.56.tgz",
+ "integrity": "sha512-qfN9LTjglikI4N2K/WkZAJQijWQpsQefsC/sXEN6c4/G9n5ZJFyXt23aXXcjibncKbcTrRpmH0nTeMiZK0A+5A==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.0.0-beta.53"
+ "@babel/helper-plugin-utils": "7.0.0-beta.56"
}
},
"@babel/plugin-transform-spread": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.0.0-beta.53.tgz",
- "integrity": "sha1-g+j2Rsok8cmCKPnxREz2DL1JOLw=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.0.0-beta.56.tgz",
+ "integrity": "sha512-C0EUKGVSU5ttbRe+ATn54oR2jdGzGIA8Uo/0jwtMeTU+6lewpTX8nu+M36JZDIcq2sSu7zxfLiRkErb/PX/Q0g==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.0.0-beta.53"
+ "@babel/helper-plugin-utils": "7.0.0-beta.56"
}
},
"@babel/plugin-transform-sticky-regex": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.0.0-beta.53.tgz",
- "integrity": "sha1-D888mUq92Lq1m6l4L+TZ+KVF1uc=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.0.0-beta.56.tgz",
+ "integrity": "sha512-VGPxbfefemuJg6/UVXf8WaaU9gIZRr31aLBsjDdYfj41N3W55LSvU+6CxCZ/ID6SfNCcQUEyBtZsWMWvv38Dhw==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.0.0-beta.53",
- "@babel/helper-regex": "7.0.0-beta.53"
+ "@babel/helper-plugin-utils": "7.0.0-beta.56",
+ "@babel/helper-regex": "7.0.0-beta.56"
}
},
"@babel/plugin-transform-template-literals": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.0.0-beta.53.tgz",
- "integrity": "sha1-+msLQXEA0j4tsUwd9HorGzl48dk=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.0.0-beta.56.tgz",
+ "integrity": "sha512-VMK/94Mlz24KFg0wc4Y4fAM6FNnx0wnr4A36rMdU54SYM3AEYzQcXtbI4uOCUSGdTOKR5zOiwhNnZFRodi29iA==",
"dev": true,
"requires": {
- "@babel/helper-annotate-as-pure": "7.0.0-beta.53",
- "@babel/helper-plugin-utils": "7.0.0-beta.53"
+ "@babel/helper-annotate-as-pure": "7.0.0-beta.56",
+ "@babel/helper-plugin-utils": "7.0.0-beta.56"
}
},
"@babel/plugin-transform-typeof-symbol": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.0.0-beta.53.tgz",
- "integrity": "sha1-ZarocamqQPYRSDZlcxIJrr1cKis=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.0.0-beta.56.tgz",
+ "integrity": "sha512-BnKyH+AUvnVHyl+1Kt40jfr6+0/DUED9huSdirp1DrKwmjlcu4FliGDNcSSKBfawV4covKT7MBjWpE6s+XNk1g==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.0.0-beta.53"
+ "@babel/helper-plugin-utils": "7.0.0-beta.56"
}
},
"@babel/plugin-transform-unicode-regex": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.0.0-beta.53.tgz",
- "integrity": "sha1-CvdOyAGefVnji+ZNt/YikZQv7SU=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.0.0-beta.56.tgz",
+ "integrity": "sha512-31lEbd5voBJR8ufUuOaRu/r2dxj53S/fs+VNgPqCqvOw7Ql8AuuinYvJjxbzpZ5GqAWLPX1MKBgJ+gsjomXb6g==",
"dev": true,
"requires": {
- "@babel/helper-plugin-utils": "7.0.0-beta.53",
- "@babel/helper-regex": "7.0.0-beta.53",
+ "@babel/helper-plugin-utils": "7.0.0-beta.56",
+ "@babel/helper-regex": "7.0.0-beta.56",
"regexpu-core": "^4.1.3"
}
},
"@babel/preset-env": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.0.0-beta.53.tgz",
- "integrity": "sha1-KyBL9CZ14WbdpaJ1bEHrvyKbs34=",
- "dev": true,
- "requires": {
- "@babel/helper-module-imports": "7.0.0-beta.53",
- "@babel/helper-plugin-utils": "7.0.0-beta.53",
- "@babel/plugin-proposal-async-generator-functions": "7.0.0-beta.53",
- "@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.53",
- "@babel/plugin-proposal-optional-catch-binding": "7.0.0-beta.53",
- "@babel/plugin-proposal-unicode-property-regex": "7.0.0-beta.53",
- "@babel/plugin-syntax-async-generators": "7.0.0-beta.53",
- "@babel/plugin-syntax-object-rest-spread": "7.0.0-beta.53",
- "@babel/plugin-syntax-optional-catch-binding": "7.0.0-beta.53",
- "@babel/plugin-transform-arrow-functions": "7.0.0-beta.53",
- "@babel/plugin-transform-async-to-generator": "7.0.0-beta.53",
- "@babel/plugin-transform-block-scoped-functions": "7.0.0-beta.53",
- "@babel/plugin-transform-block-scoping": "7.0.0-beta.53",
- "@babel/plugin-transform-classes": "7.0.0-beta.53",
- "@babel/plugin-transform-computed-properties": "7.0.0-beta.53",
- "@babel/plugin-transform-destructuring": "7.0.0-beta.53",
- "@babel/plugin-transform-dotall-regex": "7.0.0-beta.53",
- "@babel/plugin-transform-duplicate-keys": "7.0.0-beta.53",
- "@babel/plugin-transform-exponentiation-operator": "7.0.0-beta.53",
- "@babel/plugin-transform-for-of": "7.0.0-beta.53",
- "@babel/plugin-transform-function-name": "7.0.0-beta.53",
- "@babel/plugin-transform-literals": "7.0.0-beta.53",
- "@babel/plugin-transform-modules-amd": "7.0.0-beta.53",
- "@babel/plugin-transform-modules-commonjs": "7.0.0-beta.53",
- "@babel/plugin-transform-modules-systemjs": "7.0.0-beta.53",
- "@babel/plugin-transform-modules-umd": "7.0.0-beta.53",
- "@babel/plugin-transform-new-target": "7.0.0-beta.53",
- "@babel/plugin-transform-object-super": "7.0.0-beta.53",
- "@babel/plugin-transform-parameters": "7.0.0-beta.53",
- "@babel/plugin-transform-regenerator": "7.0.0-beta.53",
- "@babel/plugin-transform-shorthand-properties": "7.0.0-beta.53",
- "@babel/plugin-transform-spread": "7.0.0-beta.53",
- "@babel/plugin-transform-sticky-regex": "7.0.0-beta.53",
- "@babel/plugin-transform-template-literals": "7.0.0-beta.53",
- "@babel/plugin-transform-typeof-symbol": "7.0.0-beta.53",
- "@babel/plugin-transform-unicode-regex": "7.0.0-beta.53",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.0.0-beta.56.tgz",
+ "integrity": "sha512-kFjCCUuMr0Y0N1je1QtOd37WXCU3cEnAqjm4GRlbgWlBPcj7A7ZQ40jMfrPeqVUJBbFiqi/UbOK5iLP/K8wdsA==",
+ "dev": true,
+ "requires": {
+ "@babel/helper-module-imports": "7.0.0-beta.56",
+ "@babel/helper-plugin-utils": "7.0.0-beta.56",
+ "@babel/plugin-proposal-async-generator-functions": "7.0.0-beta.56",
+ "@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.56",
+ "@babel/plugin-proposal-optional-catch-binding": "7.0.0-beta.56",
+ "@babel/plugin-proposal-unicode-property-regex": "7.0.0-beta.56",
+ "@babel/plugin-syntax-async-generators": "7.0.0-beta.56",
+ "@babel/plugin-syntax-object-rest-spread": "7.0.0-beta.56",
+ "@babel/plugin-syntax-optional-catch-binding": "7.0.0-beta.56",
+ "@babel/plugin-transform-arrow-functions": "7.0.0-beta.56",
+ "@babel/plugin-transform-async-to-generator": "7.0.0-beta.56",
+ "@babel/plugin-transform-block-scoped-functions": "7.0.0-beta.56",
+ "@babel/plugin-transform-block-scoping": "7.0.0-beta.56",
+ "@babel/plugin-transform-classes": "7.0.0-beta.56",
+ "@babel/plugin-transform-computed-properties": "7.0.0-beta.56",
+ "@babel/plugin-transform-destructuring": "7.0.0-beta.56",
+ "@babel/plugin-transform-dotall-regex": "7.0.0-beta.56",
+ "@babel/plugin-transform-duplicate-keys": "7.0.0-beta.56",
+ "@babel/plugin-transform-exponentiation-operator": "7.0.0-beta.56",
+ "@babel/plugin-transform-for-of": "7.0.0-beta.56",
+ "@babel/plugin-transform-function-name": "7.0.0-beta.56",
+ "@babel/plugin-transform-literals": "7.0.0-beta.56",
+ "@babel/plugin-transform-modules-amd": "7.0.0-beta.56",
+ "@babel/plugin-transform-modules-commonjs": "7.0.0-beta.56",
+ "@babel/plugin-transform-modules-systemjs": "7.0.0-beta.56",
+ "@babel/plugin-transform-modules-umd": "7.0.0-beta.56",
+ "@babel/plugin-transform-new-target": "7.0.0-beta.56",
+ "@babel/plugin-transform-object-super": "7.0.0-beta.56",
+ "@babel/plugin-transform-parameters": "7.0.0-beta.56",
+ "@babel/plugin-transform-regenerator": "7.0.0-beta.56",
+ "@babel/plugin-transform-shorthand-properties": "7.0.0-beta.56",
+ "@babel/plugin-transform-spread": "7.0.0-beta.56",
+ "@babel/plugin-transform-sticky-regex": "7.0.0-beta.56",
+ "@babel/plugin-transform-template-literals": "7.0.0-beta.56",
+ "@babel/plugin-transform-typeof-symbol": "7.0.0-beta.56",
+ "@babel/plugin-transform-unicode-regex": "7.0.0-beta.56",
"browserslist": "^3.0.0",
"invariant": "^2.2.2",
"js-levenshtein": "^1.1.3",
"semver": "^5.3.0"
}
},
- "@babel/runtime": {
- "version": "7.0.0-beta.53",
- "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.0.0-beta.53.tgz",
- "integrity": "sha1-nfIq40gjzon3kAYFlLg+5XLixdI=",
+ "@babel/runtime-corejs2": {
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/runtime-corejs2/-/runtime-corejs2-7.0.0-beta.56.tgz",
+ "integrity": "sha512-LE2R7zTLAgaM54y/XdyAMzHERY1lv1cyQll3IvgN2VrTVxdlUBO7t/cHpc5iwqqHI85/VRNfGtQZdO2PecCIqg==",
"requires": {
"core-js": "^2.5.7",
"regenerator-runtime": "^0.12.0"
}
},
"@babel/template": {
- "version": "7.0.0-beta.52",
- "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.52.tgz",
- "integrity": "sha1-ROGPrDglH1f5JRHWdI8JWrAvmW4=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.56.tgz",
+ "integrity": "sha512-rsR9K18h0oiJTUmS/ICYREbV8qhPTic4SIqDSkzv9xOxupt7dKj8hWmZQLGPySO5x6cdn8py039o1wPQnsEGHg==",
"dev": true,
"requires": {
- "@babel/code-frame": "7.0.0-beta.52",
- "@babel/parser": "7.0.0-beta.52",
- "@babel/types": "7.0.0-beta.52",
- "lodash": "^4.17.5"
+ "@babel/code-frame": "7.0.0-beta.56",
+ "@babel/parser": "7.0.0-beta.56",
+ "@babel/types": "7.0.0-beta.56",
+ "lodash": "^4.17.10"
}
},
"@babel/traverse": {
- "version": "7.0.0-beta.52",
- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.0.0-beta.52.tgz",
- "integrity": "sha1-m4uplPcmTZhHhYrS/uzCc4xeLvM=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.0.0-beta.56.tgz",
+ "integrity": "sha512-9WTqtKP2Ll+jG68r+JEecXAbdH/kk5inN1VDSDaTgdYtZ82BYUS9XRWMVpc5HB9LJsu2ZEyUA1cGybID7eeOXA==",
"dev": true,
"requires": {
- "@babel/code-frame": "7.0.0-beta.52",
- "@babel/generator": "7.0.0-beta.52",
- "@babel/helper-function-name": "7.0.0-beta.52",
- "@babel/helper-split-export-declaration": "7.0.0-beta.52",
- "@babel/parser": "7.0.0-beta.52",
- "@babel/types": "7.0.0-beta.52",
+ "@babel/code-frame": "7.0.0-beta.56",
+ "@babel/generator": "7.0.0-beta.56",
+ "@babel/helper-function-name": "7.0.0-beta.56",
+ "@babel/helper-split-export-declaration": "7.0.0-beta.56",
+ "@babel/parser": "7.0.0-beta.56",
+ "@babel/types": "7.0.0-beta.56",
"debug": "^3.1.0",
"globals": "^11.1.0",
- "invariant": "^2.2.0",
- "lodash": "^4.17.5"
+ "lodash": "^4.17.10"
}
},
"@babel/types": {
- "version": "7.0.0-beta.52",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.52.tgz",
- "integrity": "sha1-o+ViCxU0slOlCrzyIitSDiOxbaI=",
+ "version": "7.0.0-beta.56",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.56.tgz",
+ "integrity": "sha512-fRIBeHtKxAD3D1E7hYSpG4MnLt0AfzHHs5gfVclOB0NlfLu3qiWU/IqdbK2ixTK61424iEkV1P/VAzndx6ungA==",
"dev": true,
"requires": {
"esutils": "^2.0.2",
- "lodash": "^4.17.5",
+ "lodash": "^4.17.10",
"to-fast-properties": "^2.0.0"
}
},
@@ -3003,14 +1940,14 @@
"@wordpress/a11y": {
"version": "file:packages/a11y",
"requires": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"@wordpress/dom-ready": "file:packages/dom-ready"
}
},
"@wordpress/api-fetch": {
"version": "file:packages/api-fetch",
"requires": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"@wordpress/hooks": "file:packages/hooks",
"@wordpress/i18n": "file:packages/i18n"
}
@@ -3018,21 +1955,21 @@
"@wordpress/autop": {
"version": "file:packages/autop",
"requires": {
- "@babel/runtime": "^7.0.0-beta.52"
+ "@babel/runtime-corejs2": "7.0.0-beta.56"
}
},
"@wordpress/babel-plugin-import-jsx-pragma": {
"version": "file:packages/babel-plugin-import-jsx-pragma",
"dev": true,
"requires": {
- "@babel/runtime": "^7.0.0-beta.52"
+ "@babel/runtime-corejs2": "7.0.0-beta.56"
}
},
"@wordpress/babel-plugin-makepot": {
"version": "file:packages/babel-plugin-makepot",
"dev": true,
"requires": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"gettext-parser": "^1.3.1",
"lodash": "^4.17.10"
}
@@ -3041,12 +1978,12 @@
"version": "file:packages/babel-preset-default",
"dev": true,
"requires": {
- "@babel/plugin-proposal-async-generator-functions": "^7.0.0-beta.52",
- "@babel/plugin-proposal-object-rest-spread": "^7.0.0-beta.52",
- "@babel/plugin-transform-react-jsx": "^7.0.0-beta.52",
- "@babel/plugin-transform-runtime": "^7.0.0-beta.52",
- "@babel/preset-env": "^7.0.0-beta.52",
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/plugin-proposal-async-generator-functions": "7.0.0-beta.56",
+ "@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.56",
+ "@babel/plugin-transform-react-jsx": "7.0.0-beta.56",
+ "@babel/plugin-transform-runtime": "7.0.0-beta.56",
+ "@babel/preset-env": "7.0.0-beta.56",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"@wordpress/browserslist-config": "file:packages/browserslist-config",
"babel-core": "^7.0.0-bridge.0"
}
@@ -3054,7 +1991,7 @@
"@wordpress/blob": {
"version": "file:packages/blob",
"requires": {
- "@babel/runtime": "^7.0.0-beta.52"
+ "@babel/runtime-corejs2": "7.0.0-beta.56"
}
},
"@wordpress/block-serialization-spec-parser": {
@@ -3063,7 +2000,7 @@
"@wordpress/blocks": {
"version": "file:packages/blocks",
"requires": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"@wordpress/autop": "file:packages/autop",
"@wordpress/blob": "file:packages/blob",
"@wordpress/block-serialization-spec-parser": "file:packages/block-serialization-spec-parser",
@@ -3092,7 +2029,7 @@
"@wordpress/components": {
"version": "file:packages/components",
"requires": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"@wordpress/a11y": "file:packages/a11y",
"@wordpress/api-fetch": "file:packages/api-fetch",
"@wordpress/compose": "file:packages/compose",
@@ -3386,7 +2323,7 @@
"@wordpress/compose": {
"version": "file:packages/compose",
"requires": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"@wordpress/element": "file:packages/element",
"@wordpress/is-shallow-equal": "file:packages/is-shallow-equal",
"lodash": "^4.17.10"
@@ -3395,7 +2332,7 @@
"@wordpress/core-data": {
"version": "file:packages/core-data",
"requires": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"@wordpress/api-fetch": "file:packages/api-fetch",
"@wordpress/data": "file:packages/data",
"@wordpress/url": "file:packages/url",
@@ -3408,14 +2345,14 @@
"version": "file:packages/custom-templated-path-webpack-plugin",
"dev": true,
"requires": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"escape-string-regexp": "^1.0.5"
}
},
"@wordpress/data": {
"version": "file:packages/data",
"requires": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"@wordpress/compose": "file:packages/compose",
"@wordpress/deprecated": "file:packages/deprecated",
"@wordpress/element": "file:packages/element",
@@ -3435,7 +2372,7 @@
"@wordpress/date": {
"version": "file:packages/date",
"requires": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"moment": "^2.22.1",
"moment-timezone": "^0.5.16"
}
@@ -3443,13 +2380,13 @@
"@wordpress/deprecated": {
"version": "file:packages/deprecated",
"requires": {
- "@babel/runtime": "^7.0.0-beta.52"
+ "@babel/runtime-corejs2": "7.0.0-beta.56"
}
},
"@wordpress/dom": {
"version": "file:packages/dom",
"requires": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"element-closest": "^2.0.2",
"lodash": "^4.17.10"
}
@@ -3457,13 +2394,13 @@
"@wordpress/dom-ready": {
"version": "file:packages/dom-ready",
"requires": {
- "@babel/runtime": "^7.0.0-beta.52"
+ "@babel/runtime-corejs2": "7.0.0-beta.56"
}
},
"@wordpress/editor": {
"version": "file:packages/editor",
"requires": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"@wordpress/a11y": "file:packages/a11y",
"@wordpress/api-fetch": "file:packages/api-fetch",
"@wordpress/blob": "file:packages/blob",
@@ -3486,7 +2423,6 @@
"@wordpress/viewport": "file:packages/viewport",
"@wordpress/wordcount": "file:packages/wordcount",
"classnames": "^2.2.5",
- "dom-react": "^2.2.1",
"dom-scroll-into-view": "^1.2.1",
"element-closest": "^2.0.2",
"lodash": "^4.17.10",
@@ -3504,9 +2440,7 @@
"@wordpress/element": {
"version": "file:packages/element",
"requires": {
- "@babel/runtime": "^7.0.0-beta.52",
- "@wordpress/deprecated": "file:packages/deprecated",
- "@wordpress/is-shallow-equal": "file:packages/is-shallow-equal",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"lodash": "^4.17.10",
"react": "^16.4.1",
"react-dom": "^16.4.1"
@@ -3525,19 +2459,19 @@
"@wordpress/hooks": {
"version": "file:packages/hooks",
"requires": {
- "@babel/runtime": "^7.0.0-beta.52"
+ "@babel/runtime-corejs2": "7.0.0-beta.56"
}
},
"@wordpress/html-entities": {
"version": "file:packages/html-entities",
"requires": {
- "@babel/runtime": "^7.0.0-beta.52"
+ "@babel/runtime-corejs2": "7.0.0-beta.56"
}
},
"@wordpress/i18n": {
"version": "file:packages/i18n",
"requires": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"gettext-parser": "^1.3.1",
"jed": "^1.1.1",
"lodash": "^4.17.10",
@@ -3547,14 +2481,14 @@
"@wordpress/is-shallow-equal": {
"version": "file:packages/is-shallow-equal",
"requires": {
- "@babel/runtime": "^7.0.0-beta.52"
+ "@babel/runtime-corejs2": "7.0.0-beta.56"
}
},
"@wordpress/jest-console": {
"version": "file:packages/jest-console",
"dev": true,
"requires": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"jest-matcher-utils": "^22.4.3",
"lodash": "^4.17.10"
}
@@ -3564,7 +2498,7 @@
"dev": true,
"requires": {
"@wordpress/jest-console": "file:packages/jest-console",
- "babel-jest": "^23.2.0",
+ "babel-jest": "^23.4.2",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"jest-enzyme": "^6.0.2"
@@ -3573,7 +2507,7 @@
"@wordpress/keycodes": {
"version": "file:packages/keycodes",
"requires": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"lodash": "^4.17.10"
}
},
@@ -3581,7 +2515,7 @@
"version": "file:packages/library-export-default-webpack-plugin",
"dev": true,
"requires": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"lodash": "^4.17.10",
"webpack-sources": "^1.1.0"
}
@@ -3593,7 +2527,7 @@
"@wordpress/nux": {
"version": "file:packages/nux",
"requires": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"@wordpress/components": "file:packages/components",
"@wordpress/compose": "file:packages/compose",
"@wordpress/data": "file:packages/data",
@@ -3606,7 +2540,7 @@
"@wordpress/plugins": {
"version": "file:packages/plugins",
"requires": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"@wordpress/compose": "file:packages/compose",
"@wordpress/element": "file:packages/element",
"@wordpress/hooks": "file:packages/hooks",
@@ -3617,12 +2551,15 @@
"version": "file:packages/postcss-themes",
"dev": true,
"requires": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"postcss": "^6.0.16"
}
},
"@wordpress/redux-routine": {
"version": "file:packages/redux-routine",
+ "requires": {
+ "@babel/runtime-corejs2": "7.0.0-beta.56"
+ },
"dependencies": {
"js-tokens": {
"version": "4.0.0",
@@ -3657,7 +2594,7 @@
"@wordpress/jest-preset-default": "file:packages/jest-preset-default",
"@wordpress/npm-package-json-lint-config": "file:packages/npm-package-json-lint-config",
"cross-spawn": "^5.1.0",
- "jest": "^23.3.0",
+ "jest": "^23.4.2",
"npm-package-json-lint": "^3.3.0",
"read-pkg-up": "^1.0.1",
"resolve-bin": "^0.4.0"
@@ -3666,21 +2603,21 @@
"@wordpress/shortcode": {
"version": "file:packages/shortcode",
"requires": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"lodash": "^4.17.10"
}
},
"@wordpress/url": {
"version": "file:packages/url",
"requires": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"qs": "^6.5.2s"
}
},
"@wordpress/viewport": {
"version": "file:packages/viewport",
"requires": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"@wordpress/compose": "file:packages/compose",
"@wordpress/data": "file:packages/data",
"@wordpress/element": "file:packages/element",
@@ -3690,7 +2627,7 @@
"@wordpress/wordcount": {
"version": "file:packages/wordcount",
"requires": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"lodash": "^4.17.10"
}
},
@@ -3970,6 +2907,12 @@
"es-abstract": "^1.7.0"
}
},
+ "array-iterate": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/array-iterate/-/array-iterate-1.1.2.tgz",
+ "integrity": "sha512-1hWSHTIlG/8wtYD+PPX5AOBtKWngpDFjrsrHgZpe+JdgNGz0udYu6ZIkAa/xuenIUEqFv7DvE2Yr60jxweJSrQ==",
+ "dev": true
+ },
"array-union": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz",
@@ -4507,9 +3450,9 @@
}
},
"babel-jest": {
- "version": "23.4.0",
- "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-23.4.0.tgz",
- "integrity": "sha1-IsNMOS4hdvakw2eZKn/P9p0uhVc=",
+ "version": "23.4.2",
+ "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-23.4.2.tgz",
+ "integrity": "sha512-wg1LJ2tzsafXqPFVgAsYsMCVD5U7kwJZAvbZIxVm27iOewsQw1BR7VZifDlMTEWVo3wasoPPyMdKXWCsfFPr3Q==",
"dev": true,
"requires": {
"babel-plugin-istanbul": "^4.1.6",
@@ -5251,6 +4194,12 @@
"integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==",
"dev": true
},
+ "bail": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/bail/-/bail-1.0.3.tgz",
+ "integrity": "sha512-1X8CnjFVQ+a+KW36uBNMTU5s8+v5FzeqrP7hTG5aTb4aPreSbZJlhwPon9VKMuEVgV++JM+SQrALY3kr7eswdg==",
+ "dev": true
+ },
"balanced-match": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
@@ -5791,6 +4740,12 @@
"integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=",
"dev": true
},
+ "ccount": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/ccount/-/ccount-1.0.3.tgz",
+ "integrity": "sha512-Jt9tIBkRc9POUof7QA/VwWd+58fKkEEfI+/t1/eOlxKM7ZhrczNzMFefge7Ai+39y1pR/pP6cI19guHy3FSLmw==",
+ "dev": true
+ },
"center-align": {
"version": "0.1.3",
"resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz",
@@ -5813,6 +4768,30 @@
"supports-color": "^5.3.0"
}
},
+ "character-entities": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-1.2.2.tgz",
+ "integrity": "sha512-sMoHX6/nBiy3KKfC78dnEalnpn0Az0oSNvqUWYTtYrhRI5iUIYsROU48G+E+kMFQzqXaJ8kHJZ85n7y6/PHgwQ==",
+ "dev": true
+ },
+ "character-entities-html4": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-1.1.2.tgz",
+ "integrity": "sha512-sIrXwyna2+5b0eB9W149izTPJk/KkJTg6mEzDGibwBUkyH1SbDa+nf515Ppdi3MaH35lW0JFJDWeq9Luzes1Iw==",
+ "dev": true
+ },
+ "character-entities-legacy": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-1.1.2.tgz",
+ "integrity": "sha512-9NB2VbXtXYWdXzqrvAHykE/f0QJxzaKIpZ5QzNZrrgQ7Iyxr2vnfS8fCBNVW9nUEZE0lo57nxKRqnzY/dKrwlA==",
+ "dev": true
+ },
+ "character-reference-invalid": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-1.1.2.tgz",
+ "integrity": "sha512-7I/xceXfKyUJmSAn/jw8ve/9DyOP7XxufNYLI9Px7CmsKgEUaZLUTax6nZxGQtaoiZCjpu6cHPj20xC/vqRReQ==",
+ "dev": true
+ },
"chardet": {
"version": "0.4.2",
"resolved": "https://registry.npmjs.org/chardet/-/chardet-0.4.2.tgz",
@@ -6180,6 +5159,16 @@
}
}
},
+ "clone-regexp": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/clone-regexp/-/clone-regexp-1.0.1.tgz",
+ "integrity": "sha512-Fcij9IwRW27XedRIJnSOEupS7RVcXtObJXbcUOX93UCLqqOdRpkvzKywOOSizmEK/Is3S/RHX9dLdfo6R1Q1mw==",
+ "dev": true,
+ "requires": {
+ "is-regexp": "^1.0.0",
+ "is-supported-regexp-flag": "^1.0.0"
+ }
+ },
"clone-response": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz",
@@ -6247,6 +5236,12 @@
"urlgrey": "0.4.4"
}
},
+ "collapse-white-space": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/collapse-white-space/-/collapse-white-space-1.0.4.tgz",
+ "integrity": "sha512-YfQ1tAUZm561vpYD+5eyWN8+UsceQbSrqqlc/6zDY2gtAE+uZLSdkkovhnGpmCThsvKBFakq4EdY/FF93E8XIw==",
+ "dev": true
+ },
"collection-visit": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz",
@@ -7657,11 +6652,6 @@
"esutils": "^2.0.2"
}
},
- "dom-react": {
- "version": "2.2.1",
- "resolved": "https://registry.npmjs.org/dom-react/-/dom-react-2.2.1.tgz",
- "integrity": "sha512-kqvoG+Q5oiJMQzQi245ZVA/X2Py2lBCebGcQzQeR51jOJqVghWBodKoJcitX8VRV+e6ku+9hRS+Bev/zmlSPsg=="
- },
"dom-scroll-into-view": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/dom-scroll-into-view/-/dom-scroll-into-view-1.2.1.tgz",
@@ -8306,6 +7296,15 @@
"strip-eof": "^1.0.0"
}
},
+ "execall": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/execall/-/execall-1.0.0.tgz",
+ "integrity": "sha1-c9CQTjlbPKsGWLCNCewlMH8pu3M=",
+ "dev": true,
+ "requires": {
+ "clone-regexp": "^1.0.0"
+ }
+ },
"exit": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz",
@@ -10187,6 +9186,12 @@
"pinkie-promise": "^2.0.0"
}
},
+ "globjoin": {
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/globjoin/-/globjoin-0.1.4.tgz",
+ "integrity": "sha1-L0SUrIkZ43Z8XLtpHp9GMyQoXUM=",
+ "dev": true
+ },
"globule": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/globule/-/globule-1.2.1.tgz",
@@ -10198,6 +9203,23 @@
"minimatch": "~3.0.2"
}
},
+ "gonzales-pe": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/gonzales-pe/-/gonzales-pe-4.2.3.tgz",
+ "integrity": "sha512-Kjhohco0esHQnOiqqdJeNz/5fyPkOMD/d6XVjwTAoPGUFh0mCollPUTUTa2OZy4dYNAqlPIQdTiNzJTWdd9Htw==",
+ "dev": true,
+ "requires": {
+ "minimist": "1.1.x"
+ },
+ "dependencies": {
+ "minimist": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.1.3.tgz",
+ "integrity": "sha1-O+39kaktOQFvz6ocaB6Pqhoe/ag=",
+ "dev": true
+ }
+ }
+ },
"good-listener": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/good-listener/-/good-listener-1.2.2.tgz",
@@ -10505,6 +9527,12 @@
"whatwg-encoding": "^1.0.1"
}
},
+ "html-tags": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/html-tags/-/html-tags-2.0.0.tgz",
+ "integrity": "sha1-ELMKOGCF9Dzt41PMj6fLDe7qZos=",
+ "dev": true
+ },
"htmlparser2": {
"version": "3.9.2",
"resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.9.2.tgz",
@@ -10602,6 +9630,12 @@
"resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.10.tgz",
"integrity": "sha512-Pgs951kaMm5GXP7MOvxERINe3gsaVjUWFm+UZPSq9xYriQAksyhg0csnS0KXSNRD5NmNdapXEpjxG49+AKh/ug=="
},
+ "import-lazy": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-3.1.0.tgz",
+ "integrity": "sha512-8/gvXvX2JMn0F+CDlSC4l6kOmVaLOO3XLkksI7CI3Ud95KDYJuYur2b9P/PUt/i/pDAMd/DulQsNbbbmRRsDIQ==",
+ "dev": true
+ },
"import-local": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/import-local/-/import-local-1.0.0.tgz",
@@ -10763,6 +9797,28 @@
}
}
},
+ "is-alphabetical": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-1.0.2.tgz",
+ "integrity": "sha512-V0xN4BYezDHcBSKb1QHUFMlR4as/XEuCZBzMJUU4n7+Cbt33SmUnSol+pnXFvLxSHNq2CemUXNdaXV6Flg7+xg==",
+ "dev": true
+ },
+ "is-alphanumeric": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/is-alphanumeric/-/is-alphanumeric-1.0.0.tgz",
+ "integrity": "sha1-Spzvcdr0wAHB2B1j0UDPU/1oifQ=",
+ "dev": true
+ },
+ "is-alphanumerical": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-1.0.2.tgz",
+ "integrity": "sha512-pyfU/0kHdISIgslFfZN9nfY1Gk3MquQgUm1mJTjdkEPpkAKNWuBTSqFwewOpR7N351VkErCiyV71zX7mlQQqsg==",
+ "dev": true,
+ "requires": {
+ "is-alphabetical": "^1.0.0",
+ "is-decimal": "^1.0.0"
+ }
+ },
"is-arrayish": {
"version": "0.2.1",
"resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
@@ -10854,6 +9910,12 @@
"integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=",
"dev": true
},
+ "is-decimal": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-1.0.2.tgz",
+ "integrity": "sha512-TRzl7mOCchnhchN+f3ICUCzYvL9ul7R+TYOsZ8xia++knyZAJfv/uA1FvQXsAnYIl1T3B2X5E/J7Wb1QXiIBXg==",
+ "dev": true
+ },
"is-descriptor": {
"version": "0.1.6",
"resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz",
@@ -10935,6 +9997,12 @@
"is-extglob": "^1.0.0"
}
},
+ "is-hexadecimal": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-1.0.2.tgz",
+ "integrity": "sha512-but/G3sapV3MNyqiDBLrOi4x8uCIw0RY3o/Vb5GT0sMFHrVV7731wFSVy41T5FO1og7G0gXLJh0MkgPRouko/A==",
+ "dev": true
+ },
"is-number": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz",
@@ -11117,6 +10185,12 @@
"integrity": "sha1-ilkRfZMt4d4A8kX83TnOQ/HpOaY=",
"dev": true
},
+ "is-supported-regexp-flag": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/is-supported-regexp-flag/-/is-supported-regexp-flag-1.0.1.tgz",
+ "integrity": "sha512-3vcJecUUrpgCqc/ca0aWeNu64UGgxcvO60K/Fkr1N6RSvfGCTU60UKN68JDmKokgba0rFFJs12EnzOQa14ubKQ==",
+ "dev": true
+ },
"is-svg": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/is-svg/-/is-svg-3.0.0.tgz",
@@ -11153,12 +10227,24 @@
"integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=",
"dev": true
},
+ "is-whitespace-character": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/is-whitespace-character/-/is-whitespace-character-1.0.2.tgz",
+ "integrity": "sha512-SzM+T5GKUCtLhlHFKt2SDAX2RFzfS6joT91F2/WSi9LxgFdsnhfPK/UIA+JhRR2xuyLdrCys2PiFDrtn1fU5hQ==",
+ "dev": true
+ },
"is-windows": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz",
"integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==",
"dev": true
},
+ "is-word-character": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/is-word-character/-/is-word-character-1.0.2.tgz",
+ "integrity": "sha512-T3FlsX8rCHAH8e7RE7PfOPZVFQlcV3XRF9eOOBQ1uf70OxO7CjjSOjeImMPCADBdYWcStAbVbYvJ1m2D3tb+EA==",
+ "dev": true
+ },
"isarray": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
@@ -11324,13 +10410,13 @@
"integrity": "sha1-elSbvZ/+FYWwzQoZHiAwVb7ldLQ="
},
"jest": {
- "version": "23.4.0",
- "resolved": "https://registry.npmjs.org/jest/-/jest-23.4.0.tgz",
- "integrity": "sha1-685j9lKcJ8ZG2AxhCGbwMG9m3L8=",
+ "version": "23.4.2",
+ "resolved": "https://registry.npmjs.org/jest/-/jest-23.4.2.tgz",
+ "integrity": "sha512-w10HGpVFWT1oN8B2coxeiMEsZoggkDaw3i26xHGLU+rsR+LYkBk8qpZCgi+1cD1S6ttPjZDL8E8M99lmNhgTeA==",
"dev": true,
"requires": {
"import-local": "^1.0.0",
- "jest-cli": "^23.4.0"
+ "jest-cli": "^23.4.2"
},
"dependencies": {
"arr-diff": {
@@ -11378,9 +10464,9 @@
}
},
"jest-cli": {
- "version": "23.4.0",
- "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-23.4.0.tgz",
- "integrity": "sha1-0f3R28Qdaa6L1D0AcM4jmI6s2G8=",
+ "version": "23.4.2",
+ "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-23.4.2.tgz",
+ "integrity": "sha512-vaDzy0wRWrgSfz4ZImCqD2gtZqCSoEWp60y3USvGDxA2b4K0rGj2voru6a5scJFjDx5GCiNWKpz2E8IdWDVjdw==",
"dev": true,
"requires": {
"ansi-escapes": "^3.0.0",
@@ -11394,17 +10480,17 @@
"istanbul-lib-coverage": "^1.2.0",
"istanbul-lib-instrument": "^1.10.1",
"istanbul-lib-source-maps": "^1.2.4",
- "jest-changed-files": "^23.4.0",
- "jest-config": "^23.4.0",
+ "jest-changed-files": "^23.4.2",
+ "jest-config": "^23.4.2",
"jest-environment-jsdom": "^23.4.0",
"jest-get-type": "^22.1.0",
- "jest-haste-map": "^23.4.0",
+ "jest-haste-map": "^23.4.1",
"jest-message-util": "^23.4.0",
"jest-regex-util": "^23.3.0",
- "jest-resolve-dependencies": "^23.4.0",
- "jest-runner": "^23.4.0",
- "jest-runtime": "^23.4.0",
- "jest-snapshot": "^23.4.0",
+ "jest-resolve-dependencies": "^23.4.2",
+ "jest-runner": "^23.4.2",
+ "jest-runtime": "^23.4.2",
+ "jest-snapshot": "^23.4.2",
"jest-util": "^23.4.0",
"jest-validate": "^23.4.0",
"jest-watcher": "^23.4.0",
@@ -11535,30 +10621,30 @@
}
},
"jest-changed-files": {
- "version": "23.4.0",
- "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-23.4.0.tgz",
- "integrity": "sha1-8bME+YwjWvXZox7FJCYsXk3jxv8=",
+ "version": "23.4.2",
+ "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-23.4.2.tgz",
+ "integrity": "sha512-EyNhTAUWEfwnK0Is/09LxoqNDOn7mU7S3EHskG52djOFS/z+IT0jT3h3Ql61+dklcG7bJJitIWEMB4Sp1piHmA==",
"dev": true,
"requires": {
"throat": "^4.0.0"
}
},
"jest-config": {
- "version": "23.4.0",
- "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-23.4.0.tgz",
- "integrity": "sha1-ecz41oqg5I+eO+uBuDqlh1xj+j8=",
+ "version": "23.4.2",
+ "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-23.4.2.tgz",
+ "integrity": "sha512-CDJGO4H+7P+T6khaSHEjTxqVaIlmQMEFAyJFOVrAQeM+Xn12iZ+YY8Pluk1RDxi8Jqj9DoE09PHQzASCGePGtg==",
"dev": true,
"requires": {
"babel-core": "^6.0.0",
- "babel-jest": "^23.4.0",
+ "babel-jest": "^23.4.2",
"chalk": "^2.0.1",
"glob": "^7.1.1",
"jest-environment-jsdom": "^23.4.0",
"jest-environment-node": "^23.4.0",
"jest-get-type": "^22.1.0",
- "jest-jasmine2": "^23.4.0",
+ "jest-jasmine2": "^23.4.2",
"jest-regex-util": "^23.3.0",
- "jest-resolve": "^23.4.0",
+ "jest-resolve": "^23.4.1",
"jest-util": "^23.4.0",
"jest-validate": "^23.4.0",
"pretty-format": "^23.2.0"
@@ -11606,6 +10692,16 @@
"source-map": "^0.5.7"
}
},
+ "babel-jest": {
+ "version": "23.4.2",
+ "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-23.4.2.tgz",
+ "integrity": "sha512-wg1LJ2tzsafXqPFVgAsYsMCVD5U7kwJZAvbZIxVm27iOewsQw1BR7VZifDlMTEWVo3wasoPPyMdKXWCsfFPr3Q==",
+ "dev": true,
+ "requires": {
+ "babel-plugin-istanbul": "^4.1.6",
+ "babel-preset-jest": "^23.2.0"
+ }
+ },
"braces": {
"version": "1.8.5",
"resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz",
@@ -11960,9 +11056,9 @@
"dev": true
},
"jest-haste-map": {
- "version": "23.4.0",
- "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-23.4.0.tgz",
- "integrity": "sha1-8qDqpBr3Zs1RAebCkf3GQ1yT7hw=",
+ "version": "23.4.1",
+ "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-23.4.1.tgz",
+ "integrity": "sha512-PGQxOEGAfRbTyJkmZeOKkVSs+KVeWgG625p89KUuq+sIIchY5P8iPIIc+Hw2tJJPBzahU3qopw1kF/qyhDdNBw==",
"dev": true,
"requires": {
"fb-watchman": "^2.0.0",
@@ -12051,11 +11147,12 @@
}
},
"jest-jasmine2": {
- "version": "23.4.0",
- "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-23.4.0.tgz",
- "integrity": "sha1-F85Tn+YI74mNaYZRgUSs8nC+yo8=",
+ "version": "23.4.2",
+ "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-23.4.2.tgz",
+ "integrity": "sha512-MUoqn41XHMQe5u8QvRTH2HahpBNzImnnjS3pV/T7LvrCM6f2zfGdi1Pm+bRbFMLJROqR8VlK8HmsenL2WjrUIQ==",
"dev": true,
"requires": {
+ "babel-traverse": "^6.0.0",
"chalk": "^2.0.1",
"co": "^4.6.0",
"expect": "^23.4.0",
@@ -12064,7 +11161,7 @@
"jest-each": "^23.4.0",
"jest-matcher-utils": "^23.2.0",
"jest-message-util": "^23.4.0",
- "jest-snapshot": "^23.4.0",
+ "jest-snapshot": "^23.4.2",
"jest-util": "^23.4.0",
"pretty-format": "^23.2.0"
},
@@ -12335,9 +11432,9 @@
"dev": true
},
"jest-resolve": {
- "version": "23.4.0",
- "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-23.4.0.tgz",
- "integrity": "sha1-tAYdvNY5G15EXV/YTJ2tX/H/VmI=",
+ "version": "23.4.1",
+ "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-23.4.1.tgz",
+ "integrity": "sha512-VNk4YRNR5gsHhNS0Lp46/DzTT11e+ecbUC61ikE593cKbtdrhrMO+zXkOJaE8YDD5sHxH9W6OfssNn4FkZBzZQ==",
"dev": true,
"requires": {
"browser-resolve": "^1.11.3",
@@ -12346,30 +11443,30 @@
}
},
"jest-resolve-dependencies": {
- "version": "23.4.0",
- "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-23.4.0.tgz",
- "integrity": "sha1-5z785wJipuK/UmPQsjAJoJhnhiA=",
+ "version": "23.4.2",
+ "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-23.4.2.tgz",
+ "integrity": "sha512-JUrU1/1mQAf0eKwKT4+RRnaqcw0UcRzRE38vyO+YnqoXUVidf646iuaKE+NG7E6Gb0+EVPOJ6TgqkaTPdQz78A==",
"dev": true,
"requires": {
"jest-regex-util": "^23.3.0",
- "jest-snapshot": "^23.4.0"
+ "jest-snapshot": "^23.4.2"
}
},
"jest-runner": {
- "version": "23.4.0",
- "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-23.4.0.tgz",
- "integrity": "sha1-GFmyEaJk6lpDt6MCLhGZBnxN/lc=",
+ "version": "23.4.2",
+ "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-23.4.2.tgz",
+ "integrity": "sha512-o+aEdDE7/Gyp8fLYEEf5B8aOUguz76AYcAMl5pueucey2Q50O8uUIXJ7zvt8O6OEJDztR3Kb+osMoh8MVIqgTw==",
"dev": true,
"requires": {
"exit": "^0.1.2",
"graceful-fs": "^4.1.11",
- "jest-config": "^23.4.0",
+ "jest-config": "^23.4.2",
"jest-docblock": "^23.2.0",
- "jest-haste-map": "^23.4.0",
- "jest-jasmine2": "^23.4.0",
+ "jest-haste-map": "^23.4.1",
+ "jest-jasmine2": "^23.4.2",
"jest-leak-detector": "^23.2.0",
"jest-message-util": "^23.4.0",
- "jest-runtime": "^23.4.0",
+ "jest-runtime": "^23.4.2",
"jest-util": "^23.4.0",
"jest-worker": "^23.2.0",
"source-map-support": "^0.5.6",
@@ -12498,9 +11595,9 @@
}
},
"jest-runtime": {
- "version": "23.4.0",
- "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-23.4.0.tgz",
- "integrity": "sha1-ww72Gd71h7k7rUpJONqazLmTa00=",
+ "version": "23.4.2",
+ "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-23.4.2.tgz",
+ "integrity": "sha512-qaUDOi7tcdDe3MH5g5ycEslTpx0voPZvzIYbKjvWxCzCL2JEemLM+7IEe0BeLi2v5wvb/uh3dkb2wQI67uPtCw==",
"dev": true,
"requires": {
"babel-core": "^6.0.0",
@@ -12510,12 +11607,12 @@
"exit": "^0.1.2",
"fast-json-stable-stringify": "^2.0.0",
"graceful-fs": "^4.1.11",
- "jest-config": "^23.4.0",
- "jest-haste-map": "^23.4.0",
+ "jest-config": "^23.4.2",
+ "jest-haste-map": "^23.4.1",
"jest-message-util": "^23.4.0",
"jest-regex-util": "^23.3.0",
- "jest-resolve": "^23.4.0",
- "jest-snapshot": "^23.4.0",
+ "jest-resolve": "^23.4.1",
+ "jest-snapshot": "^23.4.2",
"jest-util": "^23.4.0",
"jest-validate": "^23.4.0",
"micromatch": "^2.3.11",
@@ -12717,18 +11814,17 @@
"dev": true
},
"jest-snapshot": {
- "version": "23.4.0",
- "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-23.4.0.tgz",
- "integrity": "sha1-dGPQNXyr3+HGOZTV4y9wfRAz1hY=",
+ "version": "23.4.2",
+ "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-23.4.2.tgz",
+ "integrity": "sha512-rCBxIURDlVEW1gJgJSpo8l2F2gFwp9U7Yb3CmcABUpmQ8NASpb6LJkEvtcQifAYSi22OL44TSuanq1G6x1GJwg==",
"dev": true,
"requires": {
- "babel-traverse": "^6.0.0",
"babel-types": "^6.0.0",
"chalk": "^2.0.1",
"jest-diff": "^23.2.0",
"jest-matcher-utils": "^23.2.0",
"jest-message-util": "^23.4.0",
- "jest-resolve": "^23.4.0",
+ "jest-resolve": "^23.4.1",
"mkdirp": "^0.5.1",
"natural-compare": "^1.4.0",
"pretty-format": "^23.2.0",
@@ -13274,9 +12370,15 @@
"dev": true
},
"kleur": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/kleur/-/kleur-1.0.1.tgz",
- "integrity": "sha512-8srIZ5BK5PCJw1L/JN741xgNfSjuQNK9ImYbYzv7ZUD3WPfuywaY+yd7lQOphJ+2vwXnMLnRZoAh5X+orRt4LQ==",
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/kleur/-/kleur-2.0.1.tgz",
+ "integrity": "sha512-Zq/jyANIJ2uX8UZjWlqLwbyhcxSXJtT/Y89lClyeZd3l++3ztL1I5SSCYrbcbwSunTjC88N3WuMk0kRDQD6gzA==",
+ "dev": true
+ },
+ "known-css-properties": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/known-css-properties/-/known-css-properties-0.6.1.tgz",
+ "integrity": "sha512-nQRpMcHm1cQ6gmztdvLcIvxocznSMqH/y6XtERrWrHaymOYdDGroRqetJvJycxGEr1aakXiigDgn7JnzuXlk6A==",
"dev": true
},
"lazy-cache": {
@@ -14055,6 +13157,12 @@
"integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=",
"dev": true
},
+ "longest-streak": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-2.0.2.tgz",
+ "integrity": "sha512-TmYTeEYxiAmSVdpbnQDXGtvYOIRsCMg89CVZzwzc2o7GFL1CjoiRPjH5ec0NFAVlAx3fVof9dX/t6KKRAo2OWA==",
+ "dev": true
+ },
"loose-envify": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
@@ -14132,6 +13240,18 @@
"object-visit": "^1.0.0"
}
},
+ "markdown-escapes": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/markdown-escapes/-/markdown-escapes-1.0.2.tgz",
+ "integrity": "sha512-lbRZ2mE3Q9RtLjxZBZ9+IMl68DKIXaVAhwvwn9pmjnPLS0h/6kyBMgNhqi1xFJ/2yv6cSyv0jbiZavZv93JkkA==",
+ "dev": true
+ },
+ "markdown-table": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-1.1.2.tgz",
+ "integrity": "sha512-NcWuJFHDA8V3wkDgR/j4+gZx+YQwstPgfQDV8ndUeWWzta3dnDTBxpVzqS9lkmJAuV5YX35lmyojl6HO5JXAgw==",
+ "dev": true
+ },
"material-colors": {
"version": "1.2.6",
"resolved": "https://registry.npmjs.org/material-colors/-/material-colors-1.2.6.tgz",
@@ -14149,6 +13269,12 @@
"integrity": "sha1-izqsWIuKZuSXXjzepn97sylgH6w=",
"dev": true
},
+ "mathml-tag-names": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/mathml-tag-names/-/mathml-tag-names-2.1.0.tgz",
+ "integrity": "sha512-3Zs9P/0zzwTob2pdgT0CHZuMbnSUSp8MB1bddfm+HDmnFWHGT4jvEZRf+2RuPoa+cjdn/z25SEt5gFTqdhvJAg==",
+ "dev": true
+ },
"md5.js": {
"version": "1.3.4",
"resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.4.tgz",
@@ -14159,6 +13285,16 @@
"inherits": "^2.0.1"
}
},
+ "mdast-util-compact": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/mdast-util-compact/-/mdast-util-compact-1.0.1.tgz",
+ "integrity": "sha1-zbX4TitqLTEU3zO9BdnLMuPECDo=",
+ "dev": true,
+ "requires": {
+ "unist-util-modify-children": "^1.0.0",
+ "unist-util-visit": "^1.1.0"
+ }
+ },
"mdn-data": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-1.1.4.tgz",
@@ -15098,6 +14234,12 @@
"integrity": "sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=",
"dev": true
},
+ "normalize-selector": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/normalize-selector/-/normalize-selector-0.2.0.tgz",
+ "integrity": "sha1-0LFF62kRicY6eNIB3E/bEpPvDAM=",
+ "dev": true
+ },
"normalize-url": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-2.0.1.tgz",
@@ -15706,6 +14848,20 @@
"pbkdf2": "^3.0.3"
}
},
+ "parse-entities": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-1.1.2.tgz",
+ "integrity": "sha512-5N9lmQ7tmxfXf+hO3X6KRG6w7uYO/HL9fHalSySTdyn63C3WNvTM/1R8tn1u1larNcEbo3Slcy2bsVDQqvEpUg==",
+ "dev": true,
+ "requires": {
+ "character-entities": "^1.0.0",
+ "character-entities-legacy": "^1.0.0",
+ "character-reference-invalid": "^1.0.0",
+ "is-alphanumerical": "^1.0.0",
+ "is-decimal": "^1.0.0",
+ "is-hexadecimal": "^1.0.0"
+ }
+ },
"parse-github-repo-url": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/parse-github-repo-url/-/parse-github-repo-url-1.4.1.tgz",
@@ -16214,6 +15370,95 @@
}
}
},
+ "postcss-html": {
+ "version": "0.31.0",
+ "resolved": "https://registry.npmjs.org/postcss-html/-/postcss-html-0.31.0.tgz",
+ "integrity": "sha512-5orIml7dVf17OrHyO39BXMGlklKT884FvkB+gdCtGJ63b1AAeGF7NuXGC1HM83TI0Ip1gZyBowrPuXCOPqqerA==",
+ "dev": true,
+ "requires": {
+ "htmlparser2": "^3.9.2"
+ }
+ },
+ "postcss-less": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/postcss-less/-/postcss-less-2.0.0.tgz",
+ "integrity": "sha512-pPNsVnpCB13nBMOcl5GVh8JGmB0JGFjqkLUDzKdVpptFFKEe9wFdEzvh2j4lD2AD+7qcrUfw9Ta+oi5+Fw7jjQ==",
+ "dev": true,
+ "requires": {
+ "postcss": "^5.2.16"
+ },
+ "dependencies": {
+ "ansi-regex": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
+ "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
+ "dev": true
+ },
+ "ansi-styles": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz",
+ "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=",
+ "dev": true
+ },
+ "chalk": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
+ "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^2.2.1",
+ "escape-string-regexp": "^1.0.2",
+ "has-ansi": "^2.0.0",
+ "strip-ansi": "^3.0.0",
+ "supports-color": "^2.0.0"
+ },
+ "dependencies": {
+ "supports-color": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz",
+ "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=",
+ "dev": true
+ }
+ }
+ },
+ "has-flag": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz",
+ "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=",
+ "dev": true
+ },
+ "postcss": {
+ "version": "5.2.18",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz",
+ "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==",
+ "dev": true,
+ "requires": {
+ "chalk": "^1.1.3",
+ "js-base64": "^2.1.9",
+ "source-map": "^0.5.6",
+ "supports-color": "^3.2.3"
+ }
+ },
+ "strip-ansi": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
+ "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^2.0.0"
+ }
+ },
+ "supports-color": {
+ "version": "3.2.3",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz",
+ "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=",
+ "dev": true,
+ "requires": {
+ "has-flag": "^1.0.0"
+ }
+ }
+ }
+ },
"postcss-load-config": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-1.2.0.tgz",
@@ -16327,6 +15572,22 @@
"schema-utils": "^0.4.0"
}
},
+ "postcss-markdown": {
+ "version": "0.31.0",
+ "resolved": "https://registry.npmjs.org/postcss-markdown/-/postcss-markdown-0.31.0.tgz",
+ "integrity": "sha512-2fKbCxnyACX0ZSRpgZD0XYmVLlz0Sam8cCy423xn08t/EygOYPsK6FOp7gGrLsVXzQVwtN3HNLfcPkiseIZSSA==",
+ "dev": true,
+ "requires": {
+ "remark": "^9.0.0",
+ "unist-util-find-all-after": "^1.0.2"
+ }
+ },
+ "postcss-media-query-parser": {
+ "version": "0.2.3",
+ "resolved": "https://registry.npmjs.org/postcss-media-query-parser/-/postcss-media-query-parser-0.2.3.tgz",
+ "integrity": "sha1-J7Ocb02U+Bsac7j3Y1HGCeXO8kQ=",
+ "dev": true
+ },
"postcss-merge-idents": {
"version": "2.1.7",
"resolved": "https://registry.npmjs.org/postcss-merge-idents/-/postcss-merge-idents-2.1.7.tgz",
@@ -16759,6 +16020,109 @@
"postcss-value-parser": "^3.0.0"
}
},
+ "postcss-reporter": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/postcss-reporter/-/postcss-reporter-5.0.0.tgz",
+ "integrity": "sha512-rBkDbaHAu5uywbCR2XE8a25tats3xSOsGNx6mppK6Q9kSFGKc/FyAzfci+fWM2l+K402p1D0pNcfDGxeje5IKg==",
+ "dev": true,
+ "requires": {
+ "chalk": "^2.0.1",
+ "lodash": "^4.17.4",
+ "log-symbols": "^2.0.0",
+ "postcss": "^6.0.8"
+ }
+ },
+ "postcss-resolve-nested-selector": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmjs.org/postcss-resolve-nested-selector/-/postcss-resolve-nested-selector-0.1.1.tgz",
+ "integrity": "sha1-Kcy8fDfe36wwTp//C/FZaz9qDk4=",
+ "dev": true
+ },
+ "postcss-safe-parser": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/postcss-safe-parser/-/postcss-safe-parser-4.0.1.tgz",
+ "integrity": "sha512-xZsFA3uX8MO3yAda03QrG3/Eg1LN3EPfjjf07vke/46HERLZyHrTsQ9E1r1w1W//fWEhtYNndo2hQplN2cVpCQ==",
+ "dev": true,
+ "requires": {
+ "postcss": "^7.0.0"
+ },
+ "dependencies": {
+ "postcss": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.2.tgz",
+ "integrity": "sha512-fmaUY5370keLUTx+CnwRxtGiuFTcNBLQBqr1oE3WZ/euIYmGAo0OAgOhVJ3ByDnVmOR3PK+0V9VebzfjRIUcqw==",
+ "dev": true,
+ "requires": {
+ "chalk": "^2.4.1",
+ "source-map": "^0.6.1",
+ "supports-color": "^5.4.0"
+ }
+ },
+ "source-map": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
+ "dev": true
+ }
+ }
+ },
+ "postcss-sass": {
+ "version": "0.3.2",
+ "resolved": "https://registry.npmjs.org/postcss-sass/-/postcss-sass-0.3.2.tgz",
+ "integrity": "sha512-0HgxikiZ07VKYr98KT+k7/rAzyMgZlP+3+R8vUti56T2dPdhW0OhPGDQzddxY/N2iDtBVZQqCHRDA09j5I6EWg==",
+ "dev": true,
+ "requires": {
+ "gonzales-pe": "4.2.3",
+ "postcss": "6.0.22"
+ },
+ "dependencies": {
+ "postcss": {
+ "version": "6.0.22",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.22.tgz",
+ "integrity": "sha512-Toc9lLoUASwGqxBSJGTVcOQiDqjK+Z2XlWBg+IgYwQMY9vA2f7iMpXVc1GpPcfTSyM5lkxNo0oDwDRO+wm7XHA==",
+ "dev": true,
+ "requires": {
+ "chalk": "^2.4.1",
+ "source-map": "^0.6.1",
+ "supports-color": "^5.4.0"
+ }
+ },
+ "source-map": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
+ "dev": true
+ }
+ }
+ },
+ "postcss-scss": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/postcss-scss/-/postcss-scss-2.0.0.tgz",
+ "integrity": "sha512-um9zdGKaDZirMm+kZFKKVsnKPF7zF7qBAtIfTSnZXD1jZ0JNZIxdB6TxQOjCnlSzLRInVl2v3YdBh/M881C4ug==",
+ "dev": true,
+ "requires": {
+ "postcss": "^7.0.0"
+ },
+ "dependencies": {
+ "postcss": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.2.tgz",
+ "integrity": "sha512-fmaUY5370keLUTx+CnwRxtGiuFTcNBLQBqr1oE3WZ/euIYmGAo0OAgOhVJ3ByDnVmOR3PK+0V9VebzfjRIUcqw==",
+ "dev": true,
+ "requires": {
+ "chalk": "^2.4.1",
+ "source-map": "^0.6.1",
+ "supports-color": "^5.4.0"
+ }
+ },
+ "source-map": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
+ "dev": true
+ }
+ }
+ },
"postcss-selector-parser": {
"version": "2.2.3",
"resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-2.2.3.tgz",
@@ -16770,6 +16134,12 @@
"uniq": "^1.0.1"
}
},
+ "postcss-styled": {
+ "version": "0.31.0",
+ "resolved": "https://registry.npmjs.org/postcss-styled/-/postcss-styled-0.31.0.tgz",
+ "integrity": "sha512-tyCeU0XuuJJdmLmnklWuvcQe8zFIRoq+zof2K19UqdvoH8+P007vu9ShSRcu7S/LcjB+VWJl1tyqUszgFIjcDQ==",
+ "dev": true
+ },
"postcss-svgo": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-4.0.0.tgz",
@@ -16782,6 +16152,12 @@
"svgo": "^1.0.0"
}
},
+ "postcss-syntax": {
+ "version": "0.31.0",
+ "resolved": "https://registry.npmjs.org/postcss-syntax/-/postcss-syntax-0.31.0.tgz",
+ "integrity": "sha512-siI3tp74W8paHBCfEEeSCta5GUnEEEztAbkyL87/tqwW6wl2o4CbRA6utW30n9gz/FEqe+eOhvVPXpbpqmcdWw==",
+ "dev": true
+ },
"postcss-unique-selectors": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-4.0.0.tgz",
@@ -16959,12 +16335,12 @@
"dev": true
},
"prompts": {
- "version": "0.1.12",
- "resolved": "https://registry.npmjs.org/prompts/-/prompts-0.1.12.tgz",
- "integrity": "sha512-pgR1GE1JM8q8UsHVIgjdK62DPwvrf0kvaKWJ/mfMoCm2lwfIReX/giQ1p0AlMoUXNhQap/8UiOdqi3bOROm/eg==",
+ "version": "0.1.14",
+ "resolved": "https://registry.npmjs.org/prompts/-/prompts-0.1.14.tgz",
+ "integrity": "sha512-rxkyiE9YH6zAz/rZpywySLKkpaj0NMVyNw1qhsubdbjjSgcayjTShDreZGlFMcGSu5sab3bAKPfFk78PB90+8w==",
"dev": true,
"requires": {
- "kleur": "^1.0.0",
+ "kleur": "^2.0.1",
"sisteransi": "^0.1.1"
}
},
@@ -17783,6 +17159,62 @@
}
}
},
+ "remark": {
+ "version": "9.0.0",
+ "resolved": "https://registry.npmjs.org/remark/-/remark-9.0.0.tgz",
+ "integrity": "sha512-amw8rGdD5lHbMEakiEsllmkdBP+/KpjW/PRK6NSGPZKCQowh0BT4IWXDAkRMyG3SB9dKPXWMviFjNusXzXNn3A==",
+ "dev": true,
+ "requires": {
+ "remark-parse": "^5.0.0",
+ "remark-stringify": "^5.0.0",
+ "unified": "^6.0.0"
+ }
+ },
+ "remark-parse": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-5.0.0.tgz",
+ "integrity": "sha512-b3iXszZLH1TLoyUzrATcTQUZrwNl1rE70rVdSruJFlDaJ9z5aMkhrG43Pp68OgfHndL/ADz6V69Zow8cTQu+JA==",
+ "dev": true,
+ "requires": {
+ "collapse-white-space": "^1.0.2",
+ "is-alphabetical": "^1.0.0",
+ "is-decimal": "^1.0.0",
+ "is-whitespace-character": "^1.0.0",
+ "is-word-character": "^1.0.0",
+ "markdown-escapes": "^1.0.0",
+ "parse-entities": "^1.1.0",
+ "repeat-string": "^1.5.4",
+ "state-toggle": "^1.0.0",
+ "trim": "0.0.1",
+ "trim-trailing-lines": "^1.0.0",
+ "unherit": "^1.0.4",
+ "unist-util-remove-position": "^1.0.0",
+ "vfile-location": "^2.0.0",
+ "xtend": "^4.0.1"
+ }
+ },
+ "remark-stringify": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/remark-stringify/-/remark-stringify-5.0.0.tgz",
+ "integrity": "sha512-Ws5MdA69ftqQ/yhRF9XhVV29mhxbfGhbz0Rx5bQH+oJcNhhSM6nCu1EpLod+DjrFGrU0BMPs+czVmJZU7xiS7w==",
+ "dev": true,
+ "requires": {
+ "ccount": "^1.0.0",
+ "is-alphanumeric": "^1.0.0",
+ "is-decimal": "^1.0.0",
+ "is-whitespace-character": "^1.0.0",
+ "longest-streak": "^2.0.1",
+ "markdown-escapes": "^1.0.0",
+ "markdown-table": "^1.1.0",
+ "mdast-util-compact": "^1.0.0",
+ "parse-entities": "^1.0.2",
+ "repeat-string": "^1.5.4",
+ "state-toggle": "^1.0.0",
+ "stringify-entities": "^1.0.1",
+ "unherit": "^1.0.4",
+ "xtend": "^4.0.1"
+ }
+ },
"rememo": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/rememo/-/rememo-3.0.0.tgz",
@@ -18812,6 +18244,12 @@
"integrity": "sha512-2+EPwgbnmOIl8HjGBXXMd9NAu02vLjOO1nWw4kmeRDFyHn+M/ETfHxQUK0oXg8ctgVnl9t3rosNVsZ1jG61nDA==",
"dev": true
},
+ "specificity": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/specificity/-/specificity-0.4.0.tgz",
+ "integrity": "sha512-nGUlURFuoSsmJQ2TBKaO2l7+dBHtRnofSSQdiFKEpd+HBDWXR9/+gtJfgNpe3Nh6o5mqSxDpin/M4YoN7AijGg==",
+ "dev": true
+ },
"split": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/split/-/split-1.0.1.tgz",
@@ -18889,6 +18327,12 @@
"integrity": "sha512-H89UNKr1rQJvI1c/PIR3kiAMBV23yvR7LItZiV74HWZwzt7f3YHuujJ9nJZlt58WlFox7XQsOahexwk7nTe69A==",
"dev": true
},
+ "state-toggle": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/state-toggle/-/state-toggle-1.0.1.tgz",
+ "integrity": "sha512-Qe8QntFrrpWTnHwvwj2FZTgv+PKIsp0B9VxLzLLbSpPXWOgRgc5LVj/aTiSfK1RqIeF9jeC1UeOH8Q8y60A7og==",
+ "dev": true
+ },
"static-extend": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz",
@@ -19018,6 +18462,18 @@
"safe-buffer": "~5.1.0"
}
},
+ "stringify-entities": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-1.3.2.tgz",
+ "integrity": "sha512-nrBAQClJAPN2p+uGCVJRPIPakKeKWZ9GtBCmormE7pWOSlHat7+x5A8gx85M7HM5Dt0BP3pP5RhVW77WdbJJ3A==",
+ "dev": true,
+ "requires": {
+ "character-entities-html4": "^1.0.0",
+ "character-entities-legacy": "^1.0.0",
+ "is-alphanumerical": "^1.0.0",
+ "is-hexadecimal": "^1.0.0"
+ },
+ },
"stringify-object": {
"version": "3.2.2",
"resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-3.2.2.tgz",
@@ -19110,17 +18566,139 @@
"schema-utils": "^0.4.5"
}
},
+ "style-search": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/style-search/-/style-search-0.1.0.tgz",
+ "integrity": "sha1-eVjHk+R+MuB9K1yv5cC/jhLneQI=",
+ "dev": true
+ },
"stylehacks": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/stylehacks/-/stylehacks-4.0.0.tgz",
"integrity": "sha1-ZLMjlRxKJOX8ey7AbBN78y0VXoo=",
"dev": true,
"requires": {
- "browserslist": "^4.0.0",
- "postcss": "^6.0.0",
- "postcss-selector-parser": "^3.0.0"
+ "browserslist": "^4.0.0",
+ "postcss": "^6.0.0",
+ "postcss-selector-parser": "^3.0.0"
+ },
+ "dependencies": {
+ "browserslist": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.0.1.tgz",
+ "integrity": "sha512-QqiiIWchEIkney3wY53/huI7ZErouNAdvOkjorUALAwRcu3tEwOV3Sh6He0DnP38mz1JjBpCBb50jQBmaYuHPw==",
+ "dev": true,
+ "requires": {
+ "caniuse-lite": "^1.0.30000865",
+ "electron-to-chromium": "^1.3.52",
+ "node-releases": "^1.0.0-alpha.10"
+ }
+ },
+ "postcss-selector-parser": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-3.1.1.tgz",
+ "integrity": "sha1-T4dfSvsMllc9XPTXQBGu4lCn6GU=",
+ "dev": true,
+ "requires": {
+ "dot-prop": "^4.1.1",
+ "indexes-of": "^1.0.1",
+ "uniq": "^1.0.1"
+ }
+ }
+ }
+ },
+ "stylelint": {
+ "version": "9.4.0",
+ "resolved": "https://registry.npmjs.org/stylelint/-/stylelint-9.4.0.tgz",
+ "integrity": "sha512-pcw0Dpb4Ib/OfgONhaeF+myA+5iZdsI8dYgWs1++IYN/dgvo90O0FhgMDKb1bMgZVy/A2Q1CCN/PFZ0FLnnRnQ==",
+ "dev": true,
+ "requires": {
+ "autoprefixer": "^9.0.0",
+ "balanced-match": "^1.0.0",
+ "chalk": "^2.4.1",
+ "cosmiconfig": "^5.0.0",
+ "debug": "^3.0.0",
+ "execall": "^1.0.0",
+ "file-entry-cache": "^2.0.0",
+ "get-stdin": "^6.0.0",
+ "globby": "^8.0.0",
+ "globjoin": "^0.1.4",
+ "html-tags": "^2.0.0",
+ "ignore": "^4.0.0",
+ "import-lazy": "^3.1.0",
+ "imurmurhash": "^0.1.4",
+ "known-css-properties": "^0.6.0",
+ "lodash": "^4.17.4",
+ "log-symbols": "^2.0.0",
+ "mathml-tag-names": "^2.0.1",
+ "meow": "^5.0.0",
+ "micromatch": "^2.3.11",
+ "normalize-selector": "^0.2.0",
+ "pify": "^3.0.0",
+ "postcss": "^7.0.0",
+ "postcss-html": "^0.31.0",
+ "postcss-less": "^2.0.0",
+ "postcss-markdown": "^0.31.0",
+ "postcss-media-query-parser": "^0.2.3",
+ "postcss-reporter": "^5.0.0",
+ "postcss-resolve-nested-selector": "^0.1.1",
+ "postcss-safe-parser": "^4.0.0",
+ "postcss-sass": "^0.3.0",
+ "postcss-scss": "^2.0.0",
+ "postcss-selector-parser": "^3.1.0",
+ "postcss-styled": "^0.31.0",
+ "postcss-syntax": "^0.31.0",
+ "postcss-value-parser": "^3.3.0",
+ "resolve-from": "^4.0.0",
+ "signal-exit": "^3.0.2",
+ "specificity": "^0.4.0",
+ "string-width": "^2.1.0",
+ "style-search": "^0.1.0",
+ "sugarss": "^1.0.0",
+ "svg-tags": "^1.0.0",
+ "table": "^4.0.1"
},
"dependencies": {
+ "arr-diff": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz",
+ "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=",
+ "dev": true,
+ "requires": {
+ "arr-flatten": "^1.0.1"
+ }
+ },
+ "array-unique": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz",
+ "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=",
+ "dev": true
+ },
+ "autoprefixer": {
+ "version": "9.1.0",
+ "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-9.1.0.tgz",
+ "integrity": "sha512-BbAIdxNdptG/x4DiGGfpkDVYyqu4nUyNdBB0Utr49Gn3+0RERV1MdHik2FSbbWwhMAuk1KrfVJHe7nEMheGdBA==",
+ "dev": true,
+ "requires": {
+ "browserslist": "^4.0.1",
+ "caniuse-lite": "^1.0.30000872",
+ "normalize-range": "^0.1.2",
+ "num2fraction": "^1.2.2",
+ "postcss": "^7.0.2",
+ "postcss-value-parser": "^3.2.3"
+ }
+ },
+ "braces": {
+ "version": "1.8.5",
+ "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz",
+ "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=",
+ "dev": true,
+ "requires": {
+ "expand-range": "^1.8.1",
+ "preserve": "^0.2.0",
+ "repeat-element": "^1.1.2"
+ }
+ },
"browserslist": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.0.1.tgz",
@@ -19132,6 +18710,166 @@
"node-releases": "^1.0.0-alpha.10"
}
},
+ "caniuse-lite": {
+ "version": "1.0.30000874",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000874.tgz",
+ "integrity": "sha512-29nr1EPiHwrJTAHHsEmTt2h+55L8j2GNFdAcYPlRy2NX6iFz7ZZiepVI7kP/QqlnHLq3KvfWpbmGa0d063U09w==",
+ "dev": true
+ },
+ "expand-brackets": {
+ "version": "0.1.5",
+ "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz",
+ "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=",
+ "dev": true,
+ "requires": {
+ "is-posix-bracket": "^0.1.0"
+ }
+ },
+ "extglob": {
+ "version": "0.3.2",
+ "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz",
+ "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=",
+ "dev": true,
+ "requires": {
+ "is-extglob": "^1.0.0"
+ }
+ },
+ "get-stdin": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-6.0.0.tgz",
+ "integrity": "sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g==",
+ "dev": true
+ },
+ "globby": {
+ "version": "8.0.1",
+ "resolved": "https://registry.npmjs.org/globby/-/globby-8.0.1.tgz",
+ "integrity": "sha512-oMrYrJERnKBLXNLVTqhm3vPEdJ/b2ZE28xN4YARiix1NOIOBPEpOUnm844K1iu/BkphCaf2WNFwMszv8Soi1pw==",
+ "dev": true,
+ "requires": {
+ "array-union": "^1.0.1",
+ "dir-glob": "^2.0.0",
+ "fast-glob": "^2.0.2",
+ "glob": "^7.1.2",
+ "ignore": "^3.3.5",
+ "pify": "^3.0.0",
+ "slash": "^1.0.0"
+ },
+ "dependencies": {
+ "ignore": {
+ "version": "3.3.10",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.10.tgz",
+ "integrity": "sha512-Pgs951kaMm5GXP7MOvxERINe3gsaVjUWFm+UZPSq9xYriQAksyhg0csnS0KXSNRD5NmNdapXEpjxG49+AKh/ug==",
+ "dev": true
+ }
+ }
+ },
+ "ignore": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.3.tgz",
+ "integrity": "sha512-Z/vAH2GGIEATQnBVXMclE2IGV6i0GyVngKThcGZ5kHgHMxLo9Ow2+XHRq1aEKEej5vOF1TPJNbvX6J/anT0M7A==",
+ "dev": true
+ },
+ "kind-of": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",
+ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",
+ "dev": true,
+ "requires": {
+ "is-buffer": "^1.1.5"
+ }
+ },
+ "micromatch": {
+ "version": "2.3.11",
+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz",
+ "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=",
+ "dev": true,
+ "requires": {
+ "arr-diff": "^2.0.0",
+ "array-unique": "^0.2.1",
+ "braces": "^1.8.2",
+ "expand-brackets": "^0.1.4",
+ "extglob": "^0.3.1",
+ "filename-regex": "^2.0.0",
+ "is-extglob": "^1.0.0",
+ "is-glob": "^2.0.1",
+ "kind-of": "^3.0.2",
+ "normalize-path": "^2.0.1",
+ "object.omit": "^2.0.0",
+ "parse-glob": "^3.0.4",
+ "regex-cache": "^0.4.2"
+ }
+ },
+ "pify": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz",
+ "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=",
+ "dev": true
+ },
+ "postcss": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.2.tgz",
+ "integrity": "sha512-fmaUY5370keLUTx+CnwRxtGiuFTcNBLQBqr1oE3WZ/euIYmGAo0OAgOhVJ3ByDnVmOR3PK+0V9VebzfjRIUcqw==",
+ "dev": true,
+ "requires": {
+ "chalk": "^2.4.1",
+ "source-map": "^0.6.1",
+ "supports-color": "^5.4.0"
+ }
+ },
+ "postcss-selector-parser": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-3.1.1.tgz",
+ "integrity": "sha1-T4dfSvsMllc9XPTXQBGu4lCn6GU=",
+ "dev": true,
+ "requires": {
+ "dot-prop": "^4.1.1",
+ "indexes-of": "^1.0.1",
+ "uniq": "^1.0.1"
+ }
+ },
+ "resolve-from": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
+ "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
+ "dev": true
+ },
+ "source-map": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
+ "dev": true
+ }
+ }
+ },
+ "stylelint-config-recommended": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/stylelint-config-recommended/-/stylelint-config-recommended-2.1.0.tgz",
+ "integrity": "sha512-ajMbivOD7JxdsnlS5945KYhvt7L/HwN6YeYF2BH6kE4UCLJR0YvXMf+2j7nQpJyYLZx9uZzU5G1ZOSBiWAc6yA==",
+ "dev": true
+ },
+ "stylelint-config-wordpress": {
+ "version": "13.0.0",
+ "resolved": "https://registry.npmjs.org/stylelint-config-wordpress/-/stylelint-config-wordpress-13.0.0.tgz",
+ "integrity": "sha512-GnrFFlAyf4TBgKAAY574+Qx/mVa2QlDfRALYgVKV8ZPsyazraZLz+z5JGkgH/BFCPKlh+4zRZcS8fbG9wT9pxg==",
+ "dev": true,
+ "requires": {
+ "stylelint-config-recommended": "^2.1.0",
+ "stylelint-scss": "^2.1.0"
+ }
+ },
+ "stylelint-scss": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/stylelint-scss/-/stylelint-scss-2.5.0.tgz",
+ "integrity": "sha512-+joZpza5nQxAyGwzRMancFEl0EH9+1Vy88YzBghRMS0wHulzDPE9fEkBi6ZOlz+I3tYIBI4x9NbqO5/LkbeE3Q==",
+ "dev": true,
+ "requires": {
+ "lodash": "^4.17.4",
+ "postcss-media-query-parser": "^0.2.3",
+ "postcss-resolve-nested-selector": "^0.1.1",
+ "postcss-selector-parser": "^3.1.1",
+ "postcss-value-parser": "^3.3.0"
+ },
+ "dependencies": {
"postcss-selector-parser": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-3.1.1.tgz",
@@ -19145,6 +18883,15 @@
}
}
},
+ "sugarss": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/sugarss/-/sugarss-1.0.1.tgz",
+ "integrity": "sha512-3qgLZytikQQEVn1/FrhY7B68gPUUGY3R1Q1vTiD5xT+Ti1DP/8iZuwFet9ONs5+bmL8pZoDQ6JrQHVgrNlK6mA==",
+ "dev": true,
+ "requires": {
+ "postcss": "^6.0.14"
+ }
+ },
"supports-color": {
"version": "5.4.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz",
@@ -19154,6 +18901,12 @@
"has-flag": "^3.0.0"
}
},
+ "svg-tags": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/svg-tags/-/svg-tags-1.0.0.tgz",
+ "integrity": "sha1-WPcc7jvVGbWdSyqEO2x95krAR2Q=",
+ "dev": true
+ },
"svgo": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/svgo/-/svgo-1.0.5.tgz",
@@ -19537,6 +19290,12 @@
"integrity": "sha512-DlX6dR0lOIRDFxI0mjL9IYg6OTncLm/Zt+JiBhE5OlFcAR8yc9S7FFXU9so0oda47frdM/JFsk7UjNt9vscKcg==",
"dev": true
},
+ "trim": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/trim/-/trim-0.0.1.tgz",
+ "integrity": "sha1-WFhUf2spB1fulczMZm+1AITEYN0=",
+ "dev": true
+ },
"trim-newlines": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz",
@@ -19555,6 +19314,18 @@
"integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=",
"dev": true
},
+ "trim-trailing-lines": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/trim-trailing-lines/-/trim-trailing-lines-1.1.1.tgz",
+ "integrity": "sha512-bWLv9BbWbbd7mlqqs2oQYnLD/U/ZqeJeJwbO0FG2zA1aTq+HTvxfHNKFa/HGCVyJpDiioUYaBhfiT6rgk+l4mg==",
+ "dev": true
+ },
+ "trough": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/trough/-/trough-1.0.3.tgz",
+ "integrity": "sha512-fwkLWH+DimvA4YCy+/nvJd61nWQQ2liO/nF/RjkTpiOGi+zxZzVkhb1mvbHIIW4b/8nDsYI8uTmAlc0nNkRMOw==",
+ "dev": true
+ },
"true-case-path": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/true-case-path/-/true-case-path-1.0.2.tgz",
@@ -19745,6 +19516,16 @@
"integrity": "sha1-YaajIBBiKvoHljvzJSA88SI51gQ=",
"dev": true
},
+ "unherit": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/unherit/-/unherit-1.1.1.tgz",
+ "integrity": "sha512-+XZuV691Cn4zHsK0vkKYwBEwB74T3IZIcxrgn2E4rKwTfFyI1zCh7X7grwh9Re08fdPlarIdyWgI8aVB3F5A5g==",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.1",
+ "xtend": "^4.0.1"
+ }
+ },
"unicode-canonical-property-names-ecmascript": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz",
@@ -19773,6 +19554,20 @@
"integrity": "sha512-2WSLa6OdYd2ng8oqiGIWnJqyFArvhn+5vgx5GTxMbUYjCYKUcuKS62YLFF0R/BDGlB1yzXjQOLtPAfHsgirEpg==",
"dev": true
},
+ "unified": {
+ "version": "6.2.0",
+ "resolved": "https://registry.npmjs.org/unified/-/unified-6.2.0.tgz",
+ "integrity": "sha512-1k+KPhlVtqmG99RaTbAv/usu85fcSRu3wY8X+vnsEhIxNP5VbVIDiXnLqyKIG+UMdyTg0ZX9EI6k2AfjJkHPtA==",
+ "dev": true,
+ "requires": {
+ "bail": "^1.0.0",
+ "extend": "^3.0.0",
+ "is-plain-obj": "^1.1.0",
+ "trough": "^1.0.0",
+ "vfile": "^2.0.0",
+ "x-is-string": "^0.1.0"
+ }
+ },
"union-value": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz",
@@ -19838,6 +19633,63 @@
"imurmurhash": "^0.1.4"
}
},
+ "unist-util-find-all-after": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/unist-util-find-all-after/-/unist-util-find-all-after-1.0.2.tgz",
+ "integrity": "sha512-nDl79mKpffXojLpCimVXnxhlH/jjaTnDuScznU9J4jjsaUtBdDbxmlc109XtcqxY4SDO0SwzngsxxW8DIISt1w==",
+ "dev": true,
+ "requires": {
+ "unist-util-is": "^2.0.0"
+ }
+ },
+ "unist-util-is": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-2.1.2.tgz",
+ "integrity": "sha512-YkXBK/H9raAmG7KXck+UUpnKiNmUdB+aBGrknfQ4EreE1banuzrKABx3jP6Z5Z3fMSPMQQmeXBlKpCbMwBkxVw==",
+ "dev": true
+ },
+ "unist-util-modify-children": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/unist-util-modify-children/-/unist-util-modify-children-1.1.2.tgz",
+ "integrity": "sha512-GRi04yhng1WqBf5RBzPkOtWAadcZS2gvuOgNn/cyJBYNxtTuyYqTKN0eg4rC1YJwGnzrqfRB3dSKm8cNCjNirg==",
+ "dev": true,
+ "requires": {
+ "array-iterate": "^1.0.0"
+ }
+ },
+ "unist-util-remove-position": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/unist-util-remove-position/-/unist-util-remove-position-1.1.2.tgz",
+ "integrity": "sha512-XxoNOBvq1WXRKXxgnSYbtCF76TJrRoe5++pD4cCBsssSiWSnPEktyFrFLE8LTk3JW5mt9hB0Sk5zn4x/JeWY7Q==",
+ "dev": true,
+ "requires": {
+ "unist-util-visit": "^1.1.0"
+ }
+ },
+ "unist-util-stringify-position": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-1.1.2.tgz",
+ "integrity": "sha512-pNCVrk64LZv1kElr0N1wPiHEUoXNVFERp+mlTg/s9R5Lwg87f9bM/3sQB99w+N9D/qnM9ar3+AKDBwo/gm/iQQ==",
+ "dev": true
+ },
+ "unist-util-visit": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-1.4.0.tgz",
+ "integrity": "sha512-FiGu34ziNsZA3ZUteZxSFaczIjGmksfSgdKqBfOejrrfzyUy5b7YrlzT1Bcvi+djkYDituJDy2XB7tGTeBieKw==",
+ "dev": true,
+ "requires": {
+ "unist-util-visit-parents": "^2.0.0"
+ }
+ },
+ "unist-util-visit-parents": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-2.0.1.tgz",
+ "integrity": "sha512-6B0UTiMfdWql4cQ03gDTCSns+64Zkfo2OCbK31Ov0uMizEz+CJeAp0cgZVb5Fhmcd7Bct2iRNywejT0orpbqUA==",
+ "dev": true,
+ "requires": {
+ "unist-util-is": "^2.1.2"
+ }
+ },
"universalify": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",
@@ -20045,6 +19897,41 @@
"extsprintf": "^1.2.0"
}
},
+ "vfile": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/vfile/-/vfile-2.3.0.tgz",
+ "integrity": "sha512-ASt4mBUHcTpMKD/l5Q+WJXNtshlWxOogYyGYYrg4lt/vuRjC1EFQtlAofL5VmtVNIZJzWYFJjzGWZ0Gw8pzW1w==",
+ "dev": true,
+ "requires": {
+ "is-buffer": "^1.1.4",
+ "replace-ext": "1.0.0",
+ "unist-util-stringify-position": "^1.0.0",
+ "vfile-message": "^1.0.0"
+ },
+ "dependencies": {
+ "replace-ext": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz",
+ "integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=",
+ "dev": true
+ }
+ }
+ },
+ "vfile-location": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-2.0.3.tgz",
+ "integrity": "sha512-zM5/l4lfw1CBoPx3Jimxoc5RNDAHHpk6AM6LM0pTIkm5SUSsx8ZekZ0PVdf0WEZ7kjlhSt7ZlqbRL6Cd6dBs6A==",
+ "dev": true
+ },
+ "vfile-message": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-1.0.1.tgz",
+ "integrity": "sha512-vSGCkhNvJzO6VcWC6AlJW4NtYOVtS+RgCaqFIYUjoGIlHnFL+i0LbtYvonDWOMcB97uTPT4PRsyYY7REWC9vug==",
+ "dev": true,
+ "requires": {
+ "unist-util-stringify-position": "^1.1.1"
+ }
+ },
"vinyl": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/vinyl/-/vinyl-1.2.0.tgz",
@@ -21302,6 +21189,12 @@
"safe-buffer": "~5.1.0"
}
},
+ "x-is-string": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/x-is-string/-/x-is-string-0.1.0.tgz",
+ "integrity": "sha1-R0tQhlrzpJqcRlfwWs0UVFj3fYI=",
+ "dev": true
+ },
"xml-name-validator": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz",
diff --git a/package.json b/package.json
index 0a09e4b9d332f..14ad2951c10eb 100644
--- a/package.json
+++ b/package.json
@@ -60,7 +60,7 @@
"rememo": "3.0.0"
},
"devDependencies": {
- "@babel/core": "7.0.0-beta.52",
+ "@babel/core": "7.0.0-beta.56",
"@wordpress/babel-plugin-import-jsx-pragma": "file:packages/babel-plugin-import-jsx-pragma",
"@wordpress/babel-plugin-makepot": "file:packages/babel-plugin-makepot",
"@wordpress/babel-preset-default": "file:packages/babel-preset-default",
@@ -113,6 +113,8 @@
"source-map-loader": "0.2.3",
"sprintf-js": "1.1.1",
"style-loader": "0.20.3",
+ "stylelint": "9.4.0",
+ "stylelint-config-wordpress": "13.0.0",
"symlink-or-copy": "1.2.0",
"uuid": "3.1.0",
"webpack": "4.8.3",
@@ -163,11 +165,13 @@
"fixtures:server-registered": "docker-compose run -w /var/www/html/wp-content/plugins/gutenberg --rm wordpress ./bin/get-server-blocks.php > core-blocks/test/server-registered.json",
"fixtures:generate": "npm run fixtures:server-registered && cross-env GENERATE_MISSING_FIXTURES=y npm run test-unit",
"fixtures:regenerate": "npm run fixtures:clean && npm run fixtures:generate",
- "lint": "npm run lint-js && npm run lint-pkg-json",
+ "lint": "concurrently \"npm run lint-js\" \"npm run lint-pkg-json\" \"npm run lint-css\"",
"lint-js": "eslint .",
"lint-js:fix": "eslint . --fix",
"lint-php": "docker-compose run --rm composer run-script lint",
"lint-pkg-json": "wp-scripts lint-pkg-json ./packages",
+ "lint-css": "stylelint '**/*.scss'",
+ "lint-css:fix": "stylelint '**/*.scss' --fix",
"package-plugin": "./bin/build-plugin-zip.sh",
"postinstall": "npm run build:packages",
"pot-to-php": "./bin/pot-to-php.js",
diff --git a/packages/a11y/package.json b/packages/a11y/package.json
index e81f0d5ece37e..433d973bc7168 100644
--- a/packages/a11y/package.json
+++ b/packages/a11y/package.json
@@ -20,7 +20,7 @@
"main": "build/index.js",
"module": "build-module/index.js",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"@wordpress/dom-ready": "file:../dom-ready"
},
"publishConfig": {
diff --git a/packages/api-fetch/package.json b/packages/api-fetch/package.json
index 465e95da203bc..5866de36d9c2c 100644
--- a/packages/api-fetch/package.json
+++ b/packages/api-fetch/package.json
@@ -20,7 +20,7 @@
"main": "build/index.js",
"module": "build-module/index.js",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"@wordpress/hooks": "file:../hooks",
"@wordpress/i18n": "file:../i18n"
},
diff --git a/packages/api-fetch/src/index.js b/packages/api-fetch/src/index.js
index d8d669841bc8d..a2ebeeff37a9a 100644
--- a/packages/api-fetch/src/index.js
+++ b/packages/api-fetch/src/index.js
@@ -18,6 +18,14 @@ function registerMiddleware( middleware ) {
middlewares.push( middleware );
}
+function checkCloudflareError( error ) {
+ if ( typeof error === 'string' && error.indexOf( 'Cloudflare Ray ID' ) >= 0 ) {
+ throw {
+ code: 'cloudflare_error',
+ };
+ }
+}
+
function apiFetch( options ) {
const raw = ( nextOptions ) => {
const { url, path, body, data, parse = true, ...remainingOptions } = nextOptions;
@@ -68,8 +76,18 @@ function apiFetch( options ) {
throw invalidJsonError;
}
+ /*
+ * Response data is a stream, which will be consumed by the .json() call.
+ * If we need to re-use this data to send to the Cloudflare error handler,
+ * we need a clone of the original response, so the stream can be consumed
+ * in the .text() call, instead.
+ */
+ const responseClone = response.clone();
+
return response.json()
- .catch( () => {
+ .catch( async () => {
+ const text = await responseClone.text();
+ checkCloudflareError( text );
throw invalidJsonError;
} )
.then( ( error ) => {
@@ -78,6 +96,8 @@ function apiFetch( options ) {
message: __( 'An unknown error occurred.' ),
};
+ checkCloudflareError( error );
+
throw error || unknownError;
} );
} );
diff --git a/packages/api-fetch/src/test/index.js b/packages/api-fetch/src/test/index.js
index 4e940e18233ef..47aa4d2303e14 100644
--- a/packages/api-fetch/src/test/index.js
+++ b/packages/api-fetch/src/test/index.js
@@ -32,6 +32,9 @@ describe( 'apiFetch', () => {
message: 'Bad Request',
} );
},
+ clone() {
+ return null;
+ },
} ) );
return apiFetch( { path: '/random' } ).catch( ( body ) => {
diff --git a/packages/autop/package.json b/packages/autop/package.json
index afa31166ef515..536d287ed65da 100644
--- a/packages/autop/package.json
+++ b/packages/autop/package.json
@@ -19,7 +19,7 @@
"main": "build/index.js",
"module": "build-module/index.js",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52"
+ "@babel/runtime-corejs2": "7.0.0-beta.56"
},
"publishConfig": {
"access": "public"
diff --git a/packages/babel-plugin-import-jsx-pragma/package.json b/packages/babel-plugin-import-jsx-pragma/package.json
index a993aa646a749..f2214c8d6da73 100644
--- a/packages/babel-plugin-import-jsx-pragma/package.json
+++ b/packages/babel-plugin-import-jsx-pragma/package.json
@@ -26,14 +26,14 @@
"main": "build/index.js",
"module": "build-module/index.js",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52"
+ "@babel/runtime-corejs2": "7.0.0-beta.56"
},
"devDependencies": {
- "@babel/core": "^7.0.0-beta.52",
- "@babel/plugin-syntax-jsx": "^7.0.0-beta.52"
+ "@babel/core": "7.0.0-beta.56",
+ "@babel/plugin-syntax-jsx": "7.0.0-beta.56"
},
"peerDependencies": {
- "@babel/core": "^7.0.0-beta.52"
+ "@babel/core": "7.0.0-beta.56"
},
"publishConfig": {
"access": "public"
diff --git a/packages/babel-plugin-makepot/package.json b/packages/babel-plugin-makepot/package.json
index f158cc42d0652..d78d5cc95c7d8 100644
--- a/packages/babel-plugin-makepot/package.json
+++ b/packages/babel-plugin-makepot/package.json
@@ -25,16 +25,16 @@
"main": "build/index.js",
"module": "build-module/index.js",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"gettext-parser": "^1.3.1",
"lodash": "^4.17.10"
},
"devDependencies": {
- "@babel/core": "^7.0.0-beta.52",
- "@babel/traverse": "^7.0.0-beta.52"
+ "@babel/core": "7.0.0-beta.56",
+ "@babel/traverse": "7.0.0-beta.56"
},
"peerDependencies": {
- "@babel/core": "^7.0.0-beta.52"
+ "@babel/core": "7.0.0-beta.56"
},
"publishConfig": {
"access": "public"
diff --git a/packages/babel-preset-default/index.js b/packages/babel-preset-default/index.js
index 2e8f3bb532d7c..d62a0c02dd24f 100644
--- a/packages/babel-preset-default/index.js
+++ b/packages/babel-preset-default/index.js
@@ -20,7 +20,7 @@ module.exports = function( api ) {
pragma: 'createElement',
} ],
'@babel/plugin-proposal-async-generator-functions',
- ! isTestEnv && '@babel/plugin-transform-runtime',
+ ! isTestEnv && [ '@babel/plugin-transform-runtime', { corejs: 2 } ],
].filter( Boolean ),
};
};
diff --git a/packages/babel-preset-default/package.json b/packages/babel-preset-default/package.json
index 9f1a5810d09eb..6ce29bd08b011 100644
--- a/packages/babel-preset-default/package.json
+++ b/packages/babel-preset-default/package.json
@@ -23,12 +23,12 @@
},
"main": "index.js",
"dependencies": {
- "@babel/plugin-proposal-async-generator-functions": "^7.0.0-beta.52",
- "@babel/plugin-proposal-object-rest-spread": "^7.0.0-beta.52",
- "@babel/plugin-transform-react-jsx": "^7.0.0-beta.52",
- "@babel/plugin-transform-runtime": "^7.0.0-beta.52",
- "@babel/preset-env": "^7.0.0-beta.52",
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/plugin-proposal-async-generator-functions": "7.0.0-beta.56",
+ "@babel/plugin-proposal-object-rest-spread": "7.0.0-beta.56",
+ "@babel/plugin-transform-react-jsx": "7.0.0-beta.56",
+ "@babel/plugin-transform-runtime": "7.0.0-beta.56",
+ "@babel/preset-env": "7.0.0-beta.56",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"@wordpress/browserslist-config": "file:../browserslist-config",
"babel-core": "^7.0.0-bridge.0"
},
diff --git a/packages/blob/package.json b/packages/blob/package.json
index 36304fa04e524..813b7f5ff688d 100644
--- a/packages/blob/package.json
+++ b/packages/blob/package.json
@@ -19,7 +19,7 @@
"main": "build/index.js",
"module": "build-module/index.js",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52"
+ "@babel/runtime-corejs2": "7.0.0-beta.56"
},
"publishConfig": {
"access": "public"
diff --git a/packages/blocks/package.json b/packages/blocks/package.json
index 20dff08bc09dc..23cdce52c379d 100644
--- a/packages/blocks/package.json
+++ b/packages/blocks/package.json
@@ -20,7 +20,7 @@
"module": "build-module/index.js",
"react-native": "src/index",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"@wordpress/autop": "file:../autop",
"@wordpress/blob": "file:../blob",
"@wordpress/block-serialization-spec-parser": "file:../block-serialization-spec-parser",
diff --git a/packages/blocks/src/api/factory.js b/packages/blocks/src/api/factory.js
index ef9de61959bd5..b7c7474f7dbc3 100644
--- a/packages/blocks/src/api/factory.js
+++ b/packages/blocks/src/api/factory.js
@@ -58,8 +58,6 @@ export function createBlock( name, blockAttributes = {}, innerBlocks = [] ) {
// attributes, and their inner blocks.
return {
clientId,
- // TODO: Remove from block interface in 3.5 "UID" deprecation.
- uid: clientId,
name,
isValid: true,
attributes,
@@ -83,8 +81,6 @@ export function cloneBlock( block, mergeAttributes = {}, newInnerBlocks ) {
return {
...block,
clientId,
- // TODO: Remove from block interface in 3.5 "UID" deprecation.
- uid: uuid(),
attributes: {
...block.attributes,
...mergeAttributes,
diff --git a/packages/blocks/src/api/test/factory.js b/packages/blocks/src/api/test/factory.js
index 12363de75f072..c8fae32809452 100644
--- a/packages/blocks/src/api/test/factory.js
+++ b/packages/blocks/src/api/test/factory.js
@@ -1024,9 +1024,9 @@ describe( 'block factory', () => {
const transformedBlocks = switchToBlockType( block, 'core/updated-text-block' );
- // Make sure the block UIDs are set as expected: the first
+ // Make sure the block client IDs are set as expected: the first
// transformed block whose type matches the "destination" type gets
- // to keep the existing block's UID.
+ // to keep the existing block's client ID.
expect( transformedBlocks ).toHaveLength( 2 );
expect( transformedBlocks[ 0 ] ).toHaveProperty( 'clientId' );
expect( transformedBlocks[ 0 ].clientId ).not.toBe( block.clientId );
diff --git a/packages/components/CONTRIBUTING.md b/packages/components/CONTRIBUTING.md
new file mode 100644
index 0000000000000..cebec43084b1e
--- /dev/null
+++ b/packages/components/CONTRIBUTING.md
@@ -0,0 +1,15 @@
+# Contributing
+
+Thank you for taking the time to contribute.
+
+The following is a set of guidelines for contributing to the `@wordpress/components` package to be considered in addition to the general ones described in our [Contributing Policy](../../CONTRIBUTING.md).
+
+## Examples
+
+Each component needs to include an example in its README.md file to demonstrate the usage of the component.
+
+These examples can be consumed automatically from other projects in order to visualize them in their documentation. To ensure these examples are extractable, compilable and renderable, they should be structured in the following way:
+
+* It has to be included in a `jsx` code block.
+* It has to work out-of-the-box. No additional code should be needed to have working the example.
+* It has to define a React component called `My` which renders the example (i.e.: `MyButton`). Examples for the Higher Order Components should define a `MyComponent` component (i.e.: `MyComponentWithNotices`).
diff --git a/packages/components/package.json b/packages/components/package.json
index 27fb5fbc25178..df13648d43515 100644
--- a/packages/components/package.json
+++ b/packages/components/package.json
@@ -19,7 +19,7 @@
"main": "build/index.js",
"module": "build-module/index.js",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"@wordpress/a11y": "file:../a11y",
"@wordpress/api-fetch": "file:../api-fetch",
"@wordpress/compose": "file:../compose",
diff --git a/packages/components/src/autocomplete/README.md b/packages/components/src/autocomplete/README.md
index fe7a467dfd30b..1a14bf6323724 100644
--- a/packages/components/src/autocomplete/README.md
+++ b/packages/components/src/autocomplete/README.md
@@ -111,7 +111,7 @@ The following is a contrived completer for fresh fruit.
```jsx
import { Autocomplete } from '@wordpress/components';
-function FreshFruitAutocomplete() {
+const MyAutocomplete = () => {
const autocompleters = [
{
name: 'fruit',
diff --git a/packages/components/src/base-control/README.md b/packages/components/src/base-control/README.md
index 1dd091908176d..b79ee413e2190 100644
--- a/packages/components/src/base-control/README.md
+++ b/packages/components/src/base-control/README.md
@@ -9,19 +9,17 @@ Render a BaseControl for a textarea input:
```jsx
import { BaseControl } from '@wordpress/components';
-function MyBaseControl() {
- return (
- (
+
+
- );
-}
+ />
+
+);
```
## Props
diff --git a/packages/components/src/button-group/README.md b/packages/components/src/button-group/README.md
index 34a8965687cd6..2cdf23d037aba 100644
--- a/packages/components/src/button-group/README.md
+++ b/packages/components/src/button-group/README.md
@@ -5,12 +5,10 @@
```jsx
import { Button, ButtonGroup } from '@wordpress/components';
-function MyButtonGroup() {
- return (
-
- Button 1
- Button 2
-
- );
-}
+const MyButtonGroup = () => (
+
+ Button 1
+ Button 2
+
+);
```
diff --git a/packages/components/src/button/README.md b/packages/components/src/button/README.md
index d88151ad2b840..cd68b438d3eee 100644
--- a/packages/components/src/button/README.md
+++ b/packages/components/src/button/README.md
@@ -11,13 +11,11 @@ Renders a button with default style.
```jsx
import { Button } from "@wordpress/components";
-function MyButton() {
- return (
-
- Click me!
-
- );
-}
+const MyButton = () => (
+
+ Click me!
+
+);
```
## Props
diff --git a/packages/components/src/button/style.scss b/packages/components/src/button/style.scss
index f3cf866928c31..f10575fb3e381 100644
--- a/packages/components/src/button/style.scss
+++ b/packages/components/src/button/style.scss
@@ -21,9 +21,9 @@
// Default button style
&.is-default {
color: #555;
- border-color: #cccccc;
+ border-color: #ccc;
background: #f7f7f7;
- box-shadow: inset 0 -1px 0 #cccccc;
+ box-shadow: inset 0 -1px 0 #ccc;
vertical-align: top;
&:hover {
@@ -37,14 +37,15 @@
background: #fafafa;
color: #23282d;
border-color: #999;
- box-shadow: inset 0 -1px 0 #999,
+ box-shadow:
+ inset 0 -1px 0 #999,
0 0 0 2px $blue-medium-200;
}
&:active:not(:disabled):not([aria-disabled="true"]) {
background: #eee;
border-color: #999;
- box-shadow: inset 0 1px 0 #999,
+ box-shadow: inset 0 1px 0 #999,;
}
&:disabled,
@@ -60,56 +61,62 @@
}
&.is-primary {
- background: color( theme( button ) );
- border-color: color( theme( button ) shade( 20% ) ) color( theme( button ) shade( 25% ) ) color( theme( button ) shade( 25% ) );
- box-shadow: inset 0 -1px 0 color( theme( button ) shade( 25% ) );
+ background: color(theme(button));
+ border-color: color(theme(button) shade(20%)) color(theme(button) shade(25%)) color(theme(button) shade(25%));
+ box-shadow: inset 0 -1px 0 color(theme(button) shade(25%));
color: $white;
text-decoration: none;
- text-shadow: 0 -1px 1px color( theme( button ) shade( 30% ) ),
- 1px 0 1px color( theme( button ) shade( 30% ) ),
- 0 1px 1px color( theme( button ) shade( 30% ) ),
- -1px 0 1px color( theme( button ) shade( 30% ) );
+ text-shadow:
+ 0 -1px 1px color(theme(button) shade(30%)),
+ 1px 0 1px color(theme(button) shade(30%)),
+ 0 1px 1px color(theme(button) shade(30%)),
+ -1px 0 1px color(theme(button) shade(30%));
&:hover,
&:focus:not(:disabled):not([aria-disabled="true"]) {
- background: color( theme( button ) shade( 5% ) );
- border-color: color( theme( button ) shade( 50% ) );
- box-shadow: inset 0 -1px 0 color( theme( button ) shade( 50% ) );
+ background: color(theme(button) shade(5%));
+ border-color: color(theme(button) shade(50%));
+ box-shadow: inset 0 -1px 0 color(theme(button) shade(50%));
color: $white;
}
&:focus:not(:disabled):not([aria-disabled="true"]) {
- box-shadow: inset 0 -1px 0 color( theme( button ) shade( 50% ) ),
+ box-shadow:
+ inset 0 -1px 0 color(theme(button) shade(50%)),
0 0 0 2px $blue-medium-200;
}
&:active:not(:disabled):not([aria-disabled="true"]) {
- background: color( theme( button ) shade( 20% ) );
- border-color: color( theme( button ) shade( 50% ) );
- box-shadow: inset 0 1px 0 color( theme( button ) shade( 50% ) );
+ background: color(theme(button) shade(20%));
+ border-color: color(theme(button) shade(50%));
+ box-shadow: inset 0 1px 0 color(theme(button) shade(50%));
vertical-align: top;
}
&:disabled,
&[disabled] {
- color: color( theme( button ) tint( 30% ) ) !important;
- background: color( theme( button ) shade( 30% ) ) !important;
- border-color: color( theme( button ) shade( 20% ) ) !important;
+ color: color(theme(button) tint(30%)) !important;
+ background: color(theme(button) shade(30%)) !important;
+ border-color: color(theme(button) shade(20%)) !important;
box-shadow: none !important;
- text-shadow: 0 -1px 0 rgba( 0, 0, 0, 0.1 ) !important;
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
}
&.is-busy,
&.is-primary.is-busy[disabled] {
color: $white !important;
background-size: 100px 100% !important;
+ // Disable reason: This function call looks nicer when each argument is on its own line.
+ /* stylelint-disable */
background-image: linear-gradient(
-45deg,
- theme( primary ) 28%,
- color( theme( primary ) shade( 30% ) ) 28%,
- color( theme( primary ) shade( 30% ) ) 72%,
- theme( primary ) 72%) !important;
- border-color: color( theme( primary ) shade( 50% ) ) !important;
+ theme(primary) 28%,
+ color(theme(primary) shade(30%)) 28%,
+ color(theme(primary) shade(30%)) 72%,
+ theme(primary) 72%
+ ) !important;
+ /* stylelint-enable */
+ border-color: color(theme(primary) shade(50%)) !important;
}
}
@@ -127,10 +134,11 @@
color: #0073aa;
text-decoration: underline;
transition-property: border, background, color;
- transition-duration: .05s;
+ transition-duration: 0.05s;
transition-timing-function: ease-in-out;
- &:hover, &:active {
+ &:hover,
+ &:active {
color: #00a0d2;
}
@@ -138,7 +146,7 @@
color: #124964;
box-shadow:
0 0 0 1px #5b9dd9,
- 0 0 2px 1px rgba(30, 140, 190, .8);
+ 0 0 2px 1px rgba(30, 140, 190, 0.8);
}
}
@@ -157,7 +165,7 @@
opacity: 0.3;
}
- &:not( :disabled ):not( [aria-disabled="true"] ):focus {
+ &:not(:disabled):not([aria-disabled="true"]):focus {
@include button-style__focus-active;
}
@@ -165,14 +173,14 @@
&.is-busy[disabled] {
animation: components-button__busy-animation 2500ms infinite linear;
background-size: 100px 100% !important;
- background-image: repeating-linear-gradient( -45deg, $light-gray-500, $white 11px, $white 10px, $light-gray-500 20px) !important;
+ background-image: repeating-linear-gradient(-45deg, $light-gray-500, $white 11px, $white 10px, $light-gray-500 20px) !important;
opacity: 1;
}
&.is-large {
height: 30px;
- line-height: 28px;
- padding: 0 12px 2px;
+ line-height: 28px;
+ padding: 0 12px 2px;
}
&.is-small {
@@ -184,5 +192,7 @@
}
@keyframes components-button__busy-animation {
- 0% { background-position: 200px 0; }
+ 0% {
+ background-position: 200px 0;
+ }
}
diff --git a/packages/components/src/checkbox-control/README.md b/packages/components/src/checkbox-control/README.md
index 6b0aa412fd762..2538fda6b3dd0 100644
--- a/packages/components/src/checkbox-control/README.md
+++ b/packages/components/src/checkbox-control/README.md
@@ -10,7 +10,7 @@ Render an is author checkbox:
import { CheckboxControl } from '@wordpress/components';
import { withState } from '@wordpress/compose';
-withState( {
+const MyCheckboxControl = withState( {
isChecked: true,
} )( ( { isChecked, setState } ) => (
{ setState( { isChecked } ) } }
/>
-) )
+) );
```
## Props
diff --git a/packages/components/src/checkbox-control/style.scss b/packages/components/src/checkbox-control/style.scss
index 9971776a52112..98f0b7b6464e6 100644
--- a/packages/components/src/checkbox-control/style.scss
+++ b/packages/components/src/checkbox-control/style.scss
@@ -1,4 +1,4 @@
-.components-checkbox-control__input[type=checkbox] {
+.components-checkbox-control__input[type="checkbox"] {
margin-top: 0;
margin-right: 6px;
-}
\ No newline at end of file
+}
diff --git a/packages/components/src/clipboard-button/README.md b/packages/components/src/clipboard-button/README.md
index 838602f0d5a76..cde05359aa64e 100644
--- a/packages/components/src/clipboard-button/README.md
+++ b/packages/components/src/clipboard-button/README.md
@@ -6,7 +6,7 @@
import { ClipboardButton } from '@wordpress/components';
import { withState } from '@wordpress/compose';
-withState( {
+const MyClipboardButton = withState( {
hasCopied: false,
} )( ( { hasCopied, setState } ) => (
- );
-}
+const MyColorIndicator = () => (
+
+);
```
diff --git a/packages/components/src/color-indicator/style.scss b/packages/components/src/color-indicator/style.scss
index 47d8c5d1ce9cf..3729291268a8e 100644
--- a/packages/components/src/color-indicator/style.scss
+++ b/packages/components/src/color-indicator/style.scss
@@ -1,11 +1,11 @@
.component-color-indicator {
width: 25px;
height: 16px;
- margin-left: .8rem;
- border: 1px solid #DADADA;
+ margin-left: 0.8rem;
+ border: 1px solid #dadada;
display: inline-block;
& + & {
- margin-left: .5rem;
+ margin-left: 0.5rem;
}
}
diff --git a/packages/components/src/color-palette/README.md b/packages/components/src/color-palette/README.md
index 9676785fe3697..f7f4adc51fce2 100644
--- a/packages/components/src/color-palette/README.md
+++ b/packages/components/src/color-palette/README.md
@@ -5,7 +5,7 @@
import { ColorPalette } from '@wordpress/components';
import { withState } from '@wordpress/compose';
-withState( {
+const MyColorPalette = withState( {
color: '#f00',
} )( ( { color, setState } ) => {
const colors = [
@@ -18,8 +18,8 @@ withState( {
setState( { color } ) }
+ onChange={ ( color ) => setState( { color } ) }
/>
)
-} )
+} );
```
diff --git a/packages/components/src/color-palette/style.scss b/packages/components/src/color-palette/style.scss
index ea48cd27c12b4..e1380bbab7904 100644
--- a/packages/components/src/color-palette/style.scss
+++ b/packages/components/src/color-palette/style.scss
@@ -17,10 +17,10 @@ $color-palette-circle-spacing: 14px;
margin-right: $color-palette-circle-spacing;
margin-bottom: $color-palette-circle-spacing;
vertical-align: top;
- transform: scale( 1 );
+ transform: scale(1);
transition: 100ms transform ease;
&:hover {
- transform: scale( 1.2 );
+ transform: scale(1.2);
}
// Ensure that the that
wraps our toggle button with is full height
@@ -38,7 +38,7 @@ $color-palette-circle-spacing: 14px;
border: none;
border-radius: 50%;
background: transparent;
- box-shadow: inset 0 0 0 ( $color-palette-circle-size / 2 );
+ box-shadow: inset 0 0 0 ($color-palette-circle-size / 2);
transition: 100ms box-shadow ease;
cursor: pointer;
@@ -47,20 +47,20 @@ $color-palette-circle-spacing: 14px;
}
&::after {
- content: '';
+ content: "";
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
border-radius: 50%;
- box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2);
+ box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}
&:focus {
outline: none;
&::after {
- content: '';
+ content: "";
border: $border-width solid $dark-gray-400;
width: 32px;
height: 32px;
@@ -90,14 +90,14 @@ $color-palette-circle-spacing: 14px;
position: absolute;
top: 0;
left: 0;
- content: '';
+ content: "";
width: 100%;
height: 100%;
border-bottom: 2px solid $alert-red;
transform:
rotate(45deg)
- translateY( - $color-palette-circle-size / 2 + 1px )
- translateX( - 1px );
+ translateY(- $color-palette-circle-size / 2 + 1px)
+ translateX(- 1px);
}
}
@@ -118,8 +118,8 @@ $color-palette-circle-spacing: 14px;
}
.components-color-palette__custom-color .components-color-palette__custom-color-gradient::before {
- content: '';
- filter: blur( 6px ) saturate( 0.7 ) brightness( 1.1 );
+ content: "";
+ filter: blur(6px) saturate(0.7) brightness(1.1);
display: block;
width: 200%;
height: 200%;
@@ -127,19 +127,20 @@ $color-palette-circle-spacing: 14px;
top: -50%;
left: -50%;
padding-top: 100%;
- transform: scale( 1 );
- background-image: linear-gradient(330deg, transparent 50%, #ff8100 50%),
- linear-gradient(300deg, transparent 50%, #ff5800 50%),
- linear-gradient(270deg, transparent 50%, #c92323 50%),
- linear-gradient(240deg, transparent 50%, #cc42a2 50%),
- linear-gradient(210deg, transparent 50%, #9f49ac 50%),
- linear-gradient(180deg, transparent 50%, #306cd3 50%),
- linear-gradient(150deg, transparent 50%, #179067 50%),
- linear-gradient(120deg, transparent 50%, #0eb5d6 50%),
- linear-gradient(90deg, transparent 50%, #50b517 50%),
- linear-gradient(60deg, transparent 50%, #ede604 50%),
- linear-gradient(30deg, transparent 50%, #ffcc00 50%),
- linear-gradient(0deg, transparent 50%, #feac00 50%);
+ transform: scale(1);
+ background-image:
+ linear-gradient(330deg, transparent 50%, #ff8100 50%),
+ linear-gradient(300deg, transparent 50%, #ff5800 50%),
+ linear-gradient(270deg, transparent 50%, #c92323 50%),
+ linear-gradient(240deg, transparent 50%, #cc42a2 50%),
+ linear-gradient(210deg, transparent 50%, #9f49ac 50%),
+ linear-gradient(180deg, transparent 50%, #306cd3 50%),
+ linear-gradient(150deg, transparent 50%, #179067 50%),
+ linear-gradient(120deg, transparent 50%, #0eb5d6 50%),
+ linear-gradient(90deg, transparent 50%, #50b517 50%),
+ linear-gradient(60deg, transparent 50%, #ede604 50%),
+ linear-gradient(30deg, transparent 50%, #fc0 50%),
+ linear-gradient(0deg, transparent 50%, #feac00 50%);
background-clip: content-box, content-box, content-box, content-box, content-box, content-box, padding-box, padding-box, padding-box, padding-box, padding-box, padding-box;
}
diff --git a/packages/components/src/dashicon/README.md b/packages/components/src/dashicon/README.md
index 3e74a1de14dfc..793c5d01d38e7 100644
--- a/packages/components/src/dashicon/README.md
+++ b/packages/components/src/dashicon/README.md
@@ -5,13 +5,11 @@
```jsx
import { Dashicon } from '@wordpress/components';
-function MyDashicons() {
- return (
-
-
-
-
-
- );
-}
+const MyDashicon = () => (
+
+
+
+
+
+);
```
diff --git a/packages/components/src/date-time/README.md b/packages/components/src/date-time/README.md
index 3ca5a9dc29021..9193617331d90 100644
--- a/packages/components/src/date-time/README.md
+++ b/packages/components/src/date-time/README.md
@@ -9,8 +9,12 @@ Render a DateTimePicker.
```jsx
import { DateTimePicker } from '@wordpress/components';
import { getSettings } from '@wordpress/date';
+import { withState } from '@wordpress/compose';
-function selectTime( date, onUpdateDate ) {
+
+const MyDateTimePicker = withState( {
+ date: new Date(),
+} )( ( { date, setState } ) => {
const settings = getSettings();
// To know if the current timezone is a 12 hour time with look for "a" in the time format.
@@ -25,12 +29,12 @@ function selectTime( date, onUpdateDate ) {
return (
setState( { date } ) }
locale={ settings.l10n.locale }
is12Hour={ is12HourTime }
/>
);
-}
+} );
```
## Props
diff --git a/packages/components/src/date-time/style.scss b/packages/components/src/date-time/style.scss
index 9b6d00e3238c1..a0738635acc83 100644
--- a/packages/components/src/date-time/style.scss
+++ b/packages/components/src/date-time/style.scss
@@ -15,7 +15,7 @@ $datepicker__navigation-disabled-color: lighten($datepicker__muted-color, 10%);
$datepicker__border-color: $light-gray-500;
// Lerna hoist packages, so can't reference with ~
-@import '../../../../node_modules/react-datepicker/src/stylesheets/datepicker';
+@import "../../../../node_modules/react-datepicker/src/stylesheets/datepicker";
.react-datepicker__month-container {
float: none;
@@ -81,9 +81,9 @@ $datepicker__border-color: $light-gray-500;
ul.react-datepicker__time-list {
li.react-datepicker__time-list-item {
&--selected {
- background-color: theme( primary );
+ background-color: theme(primary);
&:hover {
- background-color: theme( primary );
+ background-color: theme(primary);
}
}
}
@@ -94,33 +94,33 @@ $datepicker__border-color: $light-gray-500;
.react-datepicker__day {
&--highlighted {
- background-color: theme( primary );
+ background-color: theme(primary);
&:hover {
- background-color: color( theme( primary ) shade(5%) );
+ background-color: color(theme(primary) shade(5%));
}
}
&--selected,
&--in-selecting-range,
&--in-range {
- background-color: theme( primary );
+ background-color: theme(primary);
&:hover {
- background-color: color( theme( primary ) shade(5%) );
+ background-color: color(theme(primary) shade(5%));
}
}
&--keyboard-selected {
- background-color: color( theme( primary ) tint(5%) );
+ background-color: color(theme(primary) tint(5%));
&:hover {
- background-color: color( theme( primary ) shade(5%) );
+ background-color: color(theme(primary) shade(5%));
}
}
&--in-selecting-range:not(&--in-range) {
- background-color: color( theme( primary ) a(50%) );
+ background-color: color(theme(primary) a(50%));
}
}
.react-datepicker__close-icon::after {
- background-color: theme( primary );
+ background-color: theme(primary);
}
diff --git a/packages/components/src/deprecated.js b/packages/components/src/deprecated.js
deleted file mode 100644
index 1f7714435ea6a..0000000000000
--- a/packages/components/src/deprecated.js
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * External dependencies
- */
-import { mapValues } from 'lodash';
-
-/**
- * WordPress dependencies
- */
-import {
- ifCondition,
- withGlobalEvents,
- withInstanceId,
- withSafeTimeout,
- withState,
-} from '@wordpress/compose';
-import deprecated from '@wordpress/deprecated';
-
-const deprecatedFunctions = {
- ifCondition,
- withGlobalEvents,
- withInstanceId,
- withSafeTimeout,
- withState,
-};
-
-export default mapValues( deprecatedFunctions, ( deprecatedFunction, key ) => {
- return ( ...args ) => {
- deprecated( 'wp.components.' + key, {
- version: '3.5',
- alternative: 'wp.compose.' + key,
- } );
-
- return deprecatedFunction( ...args );
- };
-} );
diff --git a/packages/components/src/disabled/README.md b/packages/components/src/disabled/README.md
index c006ee57a2e1a..3b823b120be1a 100644
--- a/packages/components/src/disabled/README.md
+++ b/packages/components/src/disabled/README.md
@@ -10,7 +10,7 @@ Assuming you have a form component, you can disable all form inputs by wrapping
import { Button, Disabled, TextControl } from '@wordpress/components';
import { withState } from '@wordpress/compose';
-withState( {
+const MyDisabled = withState( {
isDisabled: true,
} )( ( { isDisabled, setState } ) => {
let input = {} } />;
@@ -30,7 +30,7 @@ withState( {
);
-} )
+} );
```
A component can detect if it has been wrapped in a `` by accessing its [context](https://reactjs.org/docs/context.html) using `Disabled.Consumer`.
diff --git a/packages/components/src/disabled/style.scss b/packages/components/src/disabled/style.scss
index 1e6c51a62ff30..8ca29bb801e15 100644
--- a/packages/components/src/disabled/style.scss
+++ b/packages/components/src/disabled/style.scss
@@ -2,8 +2,8 @@
position: relative;
pointer-events: none;
- &:after {
- content: '';
+ &::after {
+ content: "";
position: absolute;
top: 0;
right: 0;
diff --git a/packages/components/src/draggable/README.md b/packages/components/src/draggable/README.md
index 7ba24bdb53cc6..ea069429b7716 100644
--- a/packages/components/src/draggable/README.md
+++ b/packages/components/src/draggable/README.md
@@ -41,20 +41,18 @@ The function called when dragging ends.
```jsx
import { Dashicon, Draggable, Panel, PanelBody } from '@wordpress/components';
-function DraggablePanel() {
- return (
-
- );
-}
+const MyDraggable = () => (
+
+);
```
diff --git a/packages/components/src/draggable/style.scss b/packages/components/src/draggable/style.scss
index 6d4f9845840db..ad046f4e092a3 100644
--- a/packages/components/src/draggable/style.scss
+++ b/packages/components/src/draggable/style.scss
@@ -15,6 +15,6 @@ body.is-dragging-components-draggable {
padding: 20px;
background: transparent;
pointer-events: none;
- z-index: z-index( '.components-draggable__clone' );
+ z-index: z-index(".components-draggable__clone");
opacity: 0.8;
}
diff --git a/packages/components/src/drop-zone/README.md b/packages/components/src/drop-zone/README.md
index bd895447c8afb..55206559ca267 100644
--- a/packages/components/src/drop-zone/README.md
+++ b/packages/components/src/drop-zone/README.md
@@ -8,7 +8,7 @@
import { DropZoneProvider, DropZone } from '@wordpress/components';
import { withState } from '@wordpress/compose';
-withState( {
+const MyDropZone = withState( {
hasDropped: false,
} )( ( { hasDropped, setState } ) => (
diff --git a/packages/components/src/drop-zone/style.scss b/packages/components/src/drop-zone/style.scss
index 06f76420f2c81..65b6795300424 100644
--- a/packages/components/src/drop-zone/style.scss
+++ b/packages/components/src/drop-zone/style.scss
@@ -4,7 +4,7 @@
right: 0;
bottom: 0;
left: 0;
- z-index: z-index( '.components-drop-zone' );
+ z-index: z-index(".components-drop-zone");
visibility: hidden;
opacity: 0;
transition: 0.3s opacity, 0.3s background-color, 0s visibility 0.3s;
@@ -18,7 +18,7 @@
}
&.is-dragging-over-element {
- background-color: rgba( $blue-dark-900, 0.8 );
+ background-color: rgba($blue-dark-900, 0.8);
.components-drop-zone__content {
display: block;
@@ -31,8 +31,8 @@
top: 50%;
left: 0;
right: 0;
- z-index: z-index( '.components-drop-zone__content' );
- transform: translateY( -50% );
+ z-index: z-index(".components-drop-zone__content");
+ transform: translateY(-50%);
width: 100%;
text-align: center;
color: $white;
@@ -41,7 +41,7 @@
}
.components-drop-zone.is-dragging-over-element .components-drop-zone__content {
- transform: translateY( -50% ) scale( 1.05 );
+ transform: translateY(-50%) scale(1.05);
}
.components-drop-zone__content-icon,
diff --git a/packages/components/src/dropdown-menu/README.md b/packages/components/src/dropdown-menu/README.md
index e999f76b7d29b..59aadcc36d6ec 100644
--- a/packages/components/src/dropdown-menu/README.md
+++ b/packages/components/src/dropdown-menu/README.md
@@ -9,36 +9,34 @@ Render a Dropdown Menu with a set of controls:
```jsx
import { DropdownMenu } from '@wordpress/components';
-function DirectionMenu() {
- return (
- console.log( 'up' )
- },
- {
- title: 'Right',
- icon: 'arrow-right-alt',
- onClick: () => console.log( 'right' )
- },
- {
- title: 'Down',
- icon: 'arrow-down-alt',
- onClick: () => console.log( 'down' )
- },
- {
- title: 'Left',
- icon: 'arrow-left-alt',
- onClick: () => console.log( 'left' )
- },
- ] }
- />
- );
-}
+const MyDropdownMenu = () => (
+ console.log( 'up' )
+ },
+ {
+ title: 'Right',
+ icon: 'arrow-right-alt',
+ onClick: () => console.log( 'right' )
+ },
+ {
+ title: 'Down',
+ icon: 'arrow-down-alt',
+ onClick: () => console.log( 'down' )
+ },
+ {
+ title: 'Left',
+ icon: 'arrow-left-alt',
+ onClick: () => console.log( 'left' )
+ },
+ ] }
+ />
+);
```
## Props
diff --git a/packages/components/src/dropdown/README.md b/packages/components/src/dropdown/README.md
index 51d4b0d911ab5..3d4c46bc8f396 100644
--- a/packages/components/src/dropdown/README.md
+++ b/packages/components/src/dropdown/README.md
@@ -10,25 +10,23 @@ and uses render props to render the button and the content.
```jsx
import { Button, Dropdown } from '@wordpress/components';
-function MyDropdownMenu() {
- return (
- (
-
- Toggle Popover!
-
- ) }
- renderContent={ () => (
-
- This is the content of the popover.
-
- ) }
- />
- );
-}
+const MyDropdown = () => (
+ (
+
+ Toggle Popover!
+
+ ) }
+ renderContent={ () => (
+
+ This is the content of the popover.
+
+ ) }
+ />
+);
```
## Props
diff --git a/packages/components/src/external-link/README.md b/packages/components/src/external-link/README.md
index 436632bc9a5a5..73fe8b5c3fbdd 100644
--- a/packages/components/src/external-link/README.md
+++ b/packages/components/src/external-link/README.md
@@ -5,9 +5,7 @@
```jsx
import { ExternalLink } from '@wordpress/components';
-function MyExternalLink() {
- return (
- WordPress.org
- );
-}
+const MyExternalLink = () => (
+ WordPress.org
+);
```
diff --git a/packages/components/src/focusable-iframe/README.md b/packages/components/src/focusable-iframe/README.md
index b612d9bac6343..cbf1571ce53d5 100644
--- a/packages/components/src/focusable-iframe/README.md
+++ b/packages/components/src/focusable-iframe/README.md
@@ -9,14 +9,12 @@ Use as you would a standard `iframe`. You may pass `onFocus` directly as the cal
```jsx
import { FocusableIframe } from '@wordpress/components';
-function MyIframe() {
- return (
- console.log( 'iframe is focused' ) }
- />
- );
-}
+const MyFocusableIframe = () => (
+ console.log( 'iframe is focused' ) }
+ />
+);
```
## Props
diff --git a/packages/components/src/font-size-picker/README.md b/packages/components/src/font-size-picker/README.md
index 8e29b77479c13..8d64411a04eed 100644
--- a/packages/components/src/font-size-picker/README.md
+++ b/packages/components/src/font-size-picker/README.md
@@ -10,7 +10,7 @@ The component renders a series of buttons that allow the user to select predefin
import { FontSizePicker } from '@wordpress/components';
import { withState } from '@wordpress/compose';
-withState( {
+const MyFontSizePicker = withState( {
fontSize: 16,
} )( ( { fontSize, setState } ) => {
const fontSizes = [
diff --git a/packages/components/src/form-file-upload/README.md b/packages/components/src/form-file-upload/README.md
index 65743f587ff0c..987468b83d297 100644
--- a/packages/components/src/form-file-upload/README.md
+++ b/packages/components/src/form-file-upload/README.md
@@ -5,14 +5,12 @@
```jsx
import { FormFileUpload } from '@wordpress/components';
-function MyFormFileUpload() {
- return (
- console.log('new image') }
- >
- Upload
-
- );
-}
+const MyFormFileUpload = () => (
+ console.log('new image') }
+ >
+ Upload
+
+);
```
diff --git a/packages/components/src/form-toggle/README.md b/packages/components/src/form-toggle/README.md
index a2309723fc914..9aeac6cd509cf 100644
--- a/packages/components/src/form-toggle/README.md
+++ b/packages/components/src/form-toggle/README.md
@@ -6,12 +6,12 @@
import { FormToggle } from '@wordpress/components';
import { withState } from '@wordpress/compose';
-withState( {
+const MyFormToggle = withState( {
checked: true,
} )( ( { checked, setState } ) => (
setState( state => ( { checked: ! state.checked } ) ) }
/>
-) )
+) );
```
diff --git a/packages/components/src/form-toggle/style.scss b/packages/components/src/form-toggle/style.scss
index fd7e59500910f..4a92b0f67fe32 100644
--- a/packages/components/src/form-toggle/style.scss
+++ b/packages/components/src/form-toggle/style.scss
@@ -24,7 +24,7 @@ $toggle-border-width: 2px;
// unchecked state
.components-form-toggle__track {
- content: '';
+ content: "";
display: inline-block;
vertical-align: top;
background-color: $white;
@@ -40,8 +40,8 @@ $toggle-border-width: 2px;
position: absolute;
top: $toggle-border-width * 2;
left: $toggle-border-width * 2;
- width: $toggle-height - ( $toggle-border-width * 4 );
- height: $toggle-height - ( $toggle-border-width * 4 );
+ width: $toggle-height - ($toggle-border-width * 4);
+ height: $toggle-height - ($toggle-border-width * 4);
border-radius: 50%;
transition: 0.1s transform ease;
background-color: $dark-gray-300;
@@ -65,8 +65,8 @@ $toggle-border-width: 2px;
// checked state
&.is-checked .components-form-toggle__track {
- background-color: theme( toggle );
- border: $toggle-border-width solid theme( toggle );
+ background-color: theme(toggle);
+ border: $toggle-border-width solid theme(toggle);
border: #{ $toggle-height / 2 } solid transparent; // expand the border to fake a solid in Windows High Contrast Mode
}
@@ -78,17 +78,17 @@ $toggle-border-width: 2px;
.components-form-toggle__thumb {
background-color: $white;
border-width: 0; // zero out the border color to make the thumb invisible in Windows High Contrast Mode
- transform: translateX( $toggle-width - ( $toggle-border-width * 4 ) - ( $toggle-height - ( $toggle-border-width * 4 ) ) );
+ transform: translateX($toggle-width - ($toggle-border-width * 4) - ($toggle-height - ($toggle-border-width * 4)));
}
&::before {
- background-color: theme( toggle );
- border: $toggle-border-width solid theme( toggle );
+ background-color: theme(toggle);
+ border: $toggle-border-width solid theme(toggle);
}
}
}
-.components-form-toggle__input[type=checkbox] {
+.components-form-toggle__input[type="checkbox"] {
position: absolute;
top: 0;
left: 0;
@@ -97,7 +97,7 @@ $toggle-border-width: 2px;
opacity: 0;
margin: 0;
padding: 0;
- z-index: z-index( '.components-form-toggle__input' );
+ z-index: z-index(".components-form-toggle__input");
}
// Ensure on indicator works in normal and Windows high contrast mode both
@@ -108,10 +108,10 @@ $toggle-border-width: 2px;
// this colors the indicator black, then inverts it for normal mode
border: $border-width solid $black;
- filter: invert( 100% ) contrast( 500% ); // this makes the icon white for normal mode, and it makes it dark blue in Windows High Contrast Mode
+ filter: invert(100%) contrast(500%); // this makes the icon white for normal mode, and it makes it dark blue in Windows High Contrast Mode
}
-@supports ( -ms-high-contrast-adjust: auto ) {
+@supports (-ms-high-contrast-adjust: auto) {
// Edge stacks outlines on top of the SVG itself, and when showing them in high contrast mode it means they get inverted again
// Therefore, show a different style for the on indicator only in Edge and IE11
.components-form-toggle .components-form-toggle__on {
diff --git a/packages/components/src/form-token-field/README.md b/packages/components/src/form-token-field/README.md
index 0ff943424840e..8d4a984ea11dd 100644
--- a/packages/components/src/form-token-field/README.md
+++ b/packages/components/src/form-token-field/README.md
@@ -57,7 +57,7 @@ The `value` property is handled in a manner similar to controlled form component
import { FormTokenField } from '@wordpress/components';
import { withState } from '@wordpress/compose';
-withState( {
+const MyFormTokenField = withState( {
tokens: [],
suggestions: [ 'Africa', 'America', 'Antarctica', 'Asia', 'Europe', 'Oceania' ],
} )( ( { tokens, suggestions, setState } ) => (
@@ -67,5 +67,5 @@ withState( {
onChange={ tokens => setState( { tokens } ) }
placeholder="Type a continent"
/>
-) )
+) );
```
diff --git a/packages/components/src/form-token-field/style.scss b/packages/components/src/form-token-field/style.scss
index 49ad0fdbe29e2..800b604b62269 100644
--- a/packages/components/src/form-token-field/style.scss
+++ b/packages/components/src/form-token-field/style.scss
@@ -85,7 +85,7 @@
.components-form-token-field__token-text {
background: transparent;
- color: theme( secondary );
+ color: theme(secondary);
}
.components-form-token-field__remove-token {
@@ -129,7 +129,7 @@
display: inline-block;
line-height: 24px;
background: $light-gray-500;
- transition: all .2s cubic-bezier( .4, 1, .4, 1 );
+ transition: all 0.2s cubic-bezier(0.4, 1, 0.4, 1);
}
.components-form-token-field__token-text {
@@ -157,7 +157,7 @@
background: $white;
max-height: 9em;
overflow-y: scroll;
- transition: all .15s ease-in-out;
+ transition: all 0.15s ease-in-out;
list-style: none;
border-top: $border-width solid $dark-gray-300;
margin: 0;
diff --git a/packages/components/src/higher-order/navigate-regions/README.md b/packages/components/src/higher-order/navigate-regions/README.md
index 22805f838fb12..e741403379deb 100644
--- a/packages/components/src/higher-order/navigate-regions/README.md
+++ b/packages/components/src/higher-order/navigate-regions/README.md
@@ -5,15 +5,15 @@
## Example:
```jsx
-function MyLayout() {
- return (
+import { navigateRegions } from '@wordpress/components';
+
+const MyComponentWithNavigateRegions = navigateRegions(
+ () => (
- );
-}
-
-export default navigateRegions( MyLayout );
+ )
+);
```
diff --git a/packages/components/src/higher-order/navigate-regions/style.scss b/packages/components/src/higher-order/navigate-regions/style.scss
index d6378f3ee68e3..21f8f8b5a728b 100644
--- a/packages/components/src/higher-order/navigate-regions/style.scss
+++ b/packages/components/src/higher-order/navigate-regions/style.scss
@@ -1,6 +1,6 @@
.components-navigate-regions.is-focusing-regions [role="region"] {
- &:focus:after {
- content: '';
+ &:focus::after {
+ content: "";
position: absolute;
top: 0;
bottom: 0;
@@ -8,6 +8,6 @@
right: 0;
pointer-events: none;
outline: 4px solid transparent; // Shown in Windows High Contrast mode.
- @include region_focus( .1s );
+ @include region_focus(0.1s);
}
}
diff --git a/packages/components/src/higher-order/with-api-data/README.md b/packages/components/src/higher-order/with-api-data/README.md
index 6cdb5fd6b94a7..98c5761fc2cf5 100644
--- a/packages/components/src/higher-order/with-api-data/README.md
+++ b/packages/components/src/higher-order/with-api-data/README.md
@@ -14,17 +14,52 @@ Out of the box, it includes:
Consider a post component which displays a placeholder message while it loads, and the post's title once it becomes available:
```jsx
-function MyPost( { post } ) {
- if ( post.isLoading || 'undefined' === typeof post.data ) {
- return Loading...
;
- }
+import { withAPIData } from '@wordpress/components';
+import PropTypes from 'prop-types';
- return { post.data.title.rendered }
;
+class Context extends React.Component {
+ getChildContext() {
+ return {
+ getAPISchema: () => ( {
+ routes: {
+ 'http://demo.wp-api.org/wp-json/wp/v2/posts/(?P[\\d]+)': {
+ methods: [ 'GET' ],
+ },
+ },
+ } ) ,
+ getAPIPostTypeRestBaseMapping: () => {},
+ getAPITaxonomyRestBaseMapping: () => {},
+ };
+ }
+
+ render() {
+ return this.props.children;
+ }
}
-export default withAPIData( ( props, { type } ) => ( {
- post: `/wp/v2/${ type( 'post' ) }/${ props.postId }`
-} ) )( MyPost );
+Context.childContextTypes = {
+ getAPISchema: PropTypes.func,
+ getAPIPostTypeRestBaseMapping: PropTypes.func,
+ getAPITaxonomyRestBaseMapping: PropTypes.func,
+};
+
+const MyPost = withAPIData( ( props, { type } ) => ( {
+ post: `http://demo.wp-api.org/wp-json/wp/v2/posts/${ props.postId }`
+} ) )(
+ ( { post } ) => {
+ if ( post.isLoading || 'undefined' === typeof post.data ) {
+ return Loading...
;
+ }
+
+ return { post.data.title.rendered }
;
+ }
+);
+
+const MyComponentWithAPIData = () => (
+
+
+
+);
```
## Usage
diff --git a/packages/components/src/higher-order/with-constrained-tabbing/README.md b/packages/components/src/higher-order/with-constrained-tabbing/README.md
index 3e29122b8faf2..143d3e857ddf7 100644
--- a/packages/components/src/higher-order/with-constrained-tabbing/README.md
+++ b/packages/components/src/higher-order/with-constrained-tabbing/README.md
@@ -5,3 +5,37 @@
## Usage
Wrap your original component with `withConstrainedTabbing`.
+
+```jsx
+import { withConstrainedTabbing, TextControl, Button } from '@wordpress/components';
+import { withState } from '@wordpress/compose';
+
+const ConstrainedTabbing = withConstrainedTabbing( ( { children } ) => children );
+
+const MyComponentWithConstrainedTabbing = withState( {
+ isConstrainedTabbing: false,
+} )( ( { isConstrainedTabbing, setState } ) => {
+ let form = (
+
+ {} } />
+ {} } />
+
+ );
+ if ( isConstrainedTabbing ) {
+ form = { form } ;
+ }
+
+ const toggleConstrain = () => {
+ setState( ( state ) => ( { isConstrainedTabbing: ! state.isConstrainedTabbing } ) );
+ };
+
+ return (
+
+ { form }
+
+ { isConstrainedTabbing ? 'Disable' : 'Enable' } constrain tabbing
+
+
+ );
+} );
+```
diff --git a/packages/components/src/higher-order/with-context/README.md b/packages/components/src/higher-order/with-context/README.md
index a3743872b5870..3819e86c922c7 100644
--- a/packages/components/src/higher-order/with-context/README.md
+++ b/packages/components/src/higher-order/with-context/README.md
@@ -7,15 +7,38 @@
Wrap your original component with `withContext`, defining a key of context to receive and an optional mapping function.
```jsx
-function OriginalComponent( { favoriteColor } ) {
- return Your favorite color is: { favoriteColor }
;
+import PropTypes from 'prop-types';
+import { withContext } from '@wordpress/components';
+
+class Settings extends React.Component {
+ getChildContext() {
+ return {
+ settings: {
+ favoriteColor: 'purple',
+ },
+ };
+ }
+
+ render() {
+ return this.props.children;
+ }
}
-const EnhancedComponent = withContext( 'settings' )( ( settings ) => {
- return {
- favoriteColor: settings.favoriteColor
- };
-} )( OriginalComponent );
+Settings.childContextTypes = {
+ settings: PropTypes.object,
+};
+
+const EnhancedComponent = withContext( 'settings' )(
+ ( settings ) => ( { favoriteColor: settings.favoriteColor } )
+)(
+ ( { favoriteColor } ) => Your favorite color is: { favoriteColor }
+);
+
+const MyComponentWithContext = () => (
+
+
+
+);
```
The above example assumes that an ancestor component provides a `settings` context containing a key `favoriteColor`. When the enhanced component is rendered, the favorite color setting will be injected as a prop.
diff --git a/packages/components/src/higher-order/with-fallback-styles/README.md b/packages/components/src/higher-order/with-fallback-styles/README.md
new file mode 100644
index 0000000000000..49ed7678613bc
--- /dev/null
+++ b/packages/components/src/higher-order/with-fallback-styles/README.md
@@ -0,0 +1,25 @@
+# withFallbackStyles
+
+## Usage
+
+```jsx
+import { withFallbackStyles, Button } from '@wordpress/components';
+
+const { getComputedStyle } = window;
+
+const MyComponentWithFallbackStyles = withFallbackStyles( ( node, ownProps ) => {
+ const buttonNode = node.querySelector( 'button' );
+ return {
+ fallbackBackgroundColor: getComputedStyle( buttonNode ).backgroundColor,
+ fallbackTextColor: getComputedStyle( buttonNode ).color,
+ };
+} )(
+ ( { fallbackTextColor, fallbackBackgroundColor } ) => (
+
+
My button
+
Text color: { fallbackTextColor }
+
Background color: { fallbackBackgroundColor }
+
+ )
+);
+```
diff --git a/packages/components/src/higher-order/with-filters/README.md b/packages/components/src/higher-order/with-filters/README.md
index 5fc12a0ca0246..244b226445c16 100644
--- a/packages/components/src/higher-order/with-filters/README.md
+++ b/packages/components/src/higher-order/with-filters/README.md
@@ -1,5 +1,4 @@
-withFilters
-==============
+# withFilters
`withFilters` is a part of [Native Gutenberg Extensibility](https://github.com/WordPress/gutenberg/issues/3330). It is also a React [higher-order component](https://facebook.github.io/react/docs/higher-order-components.html).
@@ -8,20 +7,25 @@ Wrapping a component with `withFilters` provides a filtering capability controll
## Usage
```jsx
-/**
- * WordPress dependencies
- */
import { withFilters } from '@wordpress/components';
+import { addFilter } from '@wordpress/hooks';
-function MyCustomElement() {
- return (
+const ComposedComponent = () => Composed component
;
+
+addFilter(
+ 'MyHookName',
+ 'example/filtered-component',
+ ( FilteredComponent ) => () => (
- content
+
+
- );
-}
+ )
+);
-export default withFilters( 'MyCustomElement' )( MyCustomElement );
+const MyComponentWithFilters = withFilters( 'MyHookName' )(
+ () => My component
+);
```
`withFilters` expects a string argument which provides a hook name. It returns a function which can then be used in composing your component. The hook name allows plugin developers to customize or completely override the component passed to this higher-order component using `wp.hooks.addFilter` method.
diff --git a/packages/components/src/higher-order/with-focus-outside/README.md b/packages/components/src/higher-order/with-focus-outside/README.md
index 83cda23cb2bf6..1a8615c6b7a34 100644
--- a/packages/components/src/higher-order/with-focus-outside/README.md
+++ b/packages/components/src/higher-order/with-focus-outside/README.md
@@ -9,17 +9,19 @@ Wrap your original component with `withFocusOutside`, defining a `handleFocusOut
__Note:__ `withFocusOutside` must only be used to wrap the `Component` class.
```jsx
-const EnhancedComponent = withFocusOutside(
- class extends Component {
+import { withFocusOutside, TextControl } from '@wordpress/components';
+
+const MyComponentWithFocusOutside = withFocusOutside(
+ class extends React.Component {
handleFocusOutside() {
- this.props.onFocusOutside();
+ console.log( 'Focus outside' );
}
render() {
return (
-
-
+ { } }/>
+ { } }/>
);
}
diff --git a/packages/components/src/higher-order/with-focus-return/README.md b/packages/components/src/higher-order/with-focus-return/README.md
new file mode 100644
index 0000000000000..c583cded6332c
--- /dev/null
+++ b/packages/components/src/higher-order/with-focus-return/README.md
@@ -0,0 +1,41 @@
+# withFocusReturn
+
+## Usage
+
+```jsx
+import { withFocusReturn, TextControl, Button } from '@wordpress/components';
+import { withState } from '@wordpress/compose';
+
+const EnhancedComponent = withFocusReturn(
+ () => (
+
+ Focus will return to the previous input when this component is unmounted
+ {} }
+ />
+
+ )
+);
+
+const MyComponentWithFocusReturn = withState( {
+ text: '',
+} )( ( { text, setState } ) => {
+ const unmount = () => {
+ document.activeElement.blur();
+ setState( { text: '' } );
+ }
+
+ return (
+
+ setState( { text } ) }
+ />
+ { text && }
+ { text && Unmount }
+
+ );
+} );
+```
diff --git a/packages/components/src/higher-order/with-notices/README.md b/packages/components/src/higher-order/with-notices/README.md
new file mode 100644
index 0000000000000..9ca098a2bffe4
--- /dev/null
+++ b/packages/components/src/higher-order/with-notices/README.md
@@ -0,0 +1,19 @@
+# withNotices
+
+## Usage
+
+```jsx
+import { withNotices, Button } from '@wordpress/components';
+
+const MyComponentWithNotices = withNotices(
+ ( { noticeOperations, noticeUI } ) => {
+ const addError = () => noticeOperations.createErrorNotice( 'Error message' );
+ return (
+
+ { noticeUI }
+ Add error
+
+ )
+ }
+);
+```
diff --git a/packages/components/src/higher-order/with-spoken-messages/README.md b/packages/components/src/higher-order/with-spoken-messages/README.md
new file mode 100644
index 0000000000000..1cb09651b7919
--- /dev/null
+++ b/packages/components/src/higher-order/with-spoken-messages/README.md
@@ -0,0 +1,14 @@
+# withSpokenMessages
+
+## Usage
+
+```jsx
+import { withSpokenMessages, Button } from '@wordpress/components';
+
+const MyComponentWithSpokenMessages = withSpokenMessages( ( { speak, debouncedSpeak } ) => (
+
+ Speak
+ Debounced Speak
+
+) );
+```
diff --git a/packages/components/src/icon-button/README.md b/packages/components/src/icon-button/README.md
index 6c19a4c046227..2d47a5bf3a203 100644
--- a/packages/components/src/icon-button/README.md
+++ b/packages/components/src/icon-button/README.md
@@ -5,12 +5,10 @@
```jsx
import { IconButton } from '@wordpress/components';
-function MyIconButton() {
- return (
-
- );
-}
+const MyIconButton = () => (
+
+);
```
diff --git a/packages/components/src/icon-button/style.scss b/packages/components/src/icon-button/style.scss
index 369f964b321f2..f562a2f2e048b 100644
--- a/packages/components/src/icon-button/style.scss
+++ b/packages/components/src/icon-button/style.scss
@@ -21,15 +21,15 @@
outline: none;
}
- &:not( :disabled ):not( [aria-disabled="true"] ):not( .is-default ):hover {
+ &:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover {
@include button-style__hover;
}
- &:not( :disabled ):not( [aria-disabled="true"] ):not( .is-default ):active {
+ &:not(:disabled):not([aria-disabled="true"]):not(.is-default):active {
@include button-style__active;
}
- &[aria-disabled=true]:focus,
+ &[aria-disabled="true"]:focus,
&:disabled:focus {
box-shadow: none;
}
diff --git a/packages/components/src/index.js b/packages/components/src/index.js
index ed5ccd81136fb..182cb6e111c0d 100644
--- a/packages/components/src/index.js
+++ b/packages/components/src/index.js
@@ -1,8 +1,3 @@
-/**
- * Internal dependencies
- */
-import deprecated from './deprecated';
-
// Components
// eslint-disable-next-line camelcase
export { default as APIProvider, unstable__setApiSettings } from './higher-order/with-api-data/provider';
@@ -73,9 +68,3 @@ export { default as withFocusOutside } from './higher-order/with-focus-outside';
export { default as withFocusReturn } from './higher-order/with-focus-return';
export { default as withNotices } from './higher-order/with-notices';
export { default as withSpokenMessages } from './higher-order/with-spoken-messages';
-
-export const ifCondition = deprecated.ifCondition;
-export const withGlobalEvents = deprecated.withGlobalEvents;
-export const withInstanceId = deprecated.withInstanceId;
-export const withSafeTimeout = deprecated.withSafeTimeout;
-export const withState = deprecated.withState;
diff --git a/packages/components/src/keyboard-shortcuts/README.md b/packages/components/src/keyboard-shortcuts/README.md
index 63987b05b479f..4e1bb1a9dd73f 100644
--- a/packages/components/src/keyboard-shortcuts/README.md
+++ b/packages/components/src/keyboard-shortcuts/README.md
@@ -14,7 +14,7 @@ Render ` ` with a `shortcuts` prop object:
import { KeyboardShortcuts } from '@wordpress/components';
import { withState } from '@wordpress/compose';
-withState( {
+const MyKeyboardShortcuts = withState( {
isAllSelected: false,
} )( ( { isAllSelected, setState } ) => {
const selectAll = () => {
diff --git a/packages/components/src/menu-group/README.md b/packages/components/src/menu-group/README.md
index 6aa7280202c28..b40a902b01370 100644
--- a/packages/components/src/menu-group/README.md
+++ b/packages/components/src/menu-group/README.md
@@ -5,12 +5,10 @@
```jsx
import { MenuGroup, MenuItem } from '@wordpress/components';
-function MyMenuGroup() {
- return (
-
- Setting 1
- Setting 2
-
- );
-}
+const MyMenuGroup = () => (
+
+ Setting 1
+ Setting 2
+
+);
```
diff --git a/packages/components/src/menu-item/README.md b/packages/components/src/menu-item/README.md
index 03e7bfaabad57..c454f7ff933a6 100644
--- a/packages/components/src/menu-item/README.md
+++ b/packages/components/src/menu-item/README.md
@@ -6,7 +6,7 @@
import { MenuItem } from '@wordpress/components';
import { withState } from '@wordpress/compose';
-withState( {
+const MyMenuItem = withState( {
isActive: true,
} )( ( { isActive, setState } ) => (
setState( { mode } ) }
/>
-) )
+) );
```
diff --git a/packages/components/src/modal/README.md b/packages/components/src/modal/README.md
index 8c416614d6507..09de5d1bef662 100644
--- a/packages/components/src/modal/README.md
+++ b/packages/components/src/modal/README.md
@@ -1,5 +1,4 @@
-Modal
-=======
+# Modal
The modal is used to create an accessible modal over an application.
@@ -7,67 +6,28 @@ The modal is used to create an accessible modal over an application.
## Usage
-Render a screen overlay with a modal on top.
-```jsx
-
- This modal is meant to be awesome!
-
-```
+The following example shows you how to properly implement a modal. For the modal to properly work it's important you implement the close logic for the modal properly.
-## Implement close logic
-
-For the modal to properly work it's important you implement the close logic for the modal properly. The following example shows you how to properly implement a modal.
-
-```js
-const { Component, Fragment } = wp.element;
-const { Modal } = wp.components;
-
-class MyModalWrapper extends Component {
- constructor() {
- super( ...arguments );
- this.state = {
- isOpen: true,
- }
-
- this.openModal = this.openModal.bind( this );
- this.closeModal = this.closeModal.bind( this );
- }
-
- openModal() {
- if ( ! this.state.isOpen ) {
- this.setState( { isOpen: true } );
- }
- }
-
- closeModal() {
- if ( this.state.isOpen ) {
- this.setState( { isOpen: false } );
- }
- }
-
- render() {
- return (
-
- Open Modal
- { this.state.isOpen ?
-
-
- My custom close button
-
-
- : null }
-
- );
- }
-}
+```jsx
+import { Button, Modal } from '@wordpress/components';
+import { withState } from '@wordpress/compose';
+
+const MyModal = withState( {
+ isOpen: false,
+} )( ( { isOpen, setState } ) => (
+
+ setState( { isOpen: true } ) }>Open Modal
+ { isOpen ?
+ setState( { isOpen: false } ) }>
+ setState( { isOpen: false } ) }>
+ My custom close button
+
+
+ : null }
+
+) );
```
## Props
diff --git a/packages/components/src/modal/style.scss b/packages/components/src/modal/style.scss
index 888ed193e8b65..e3f5f5027194a 100644
--- a/packages/components/src/modal/style.scss
+++ b/packages/components/src/modal/style.scss
@@ -5,8 +5,8 @@
right: 0;
bottom: 0;
left: 0;
- background-color: rgba( $white, .4 );
- z-index: z-index( '.components-modal__screen-overlay' );
+ background-color: rgba($white, 0.4);
+ z-index: z-index(".components-modal__screen-overlay");
}
// The modal window element.
@@ -24,9 +24,9 @@
position: absolute;
right: auto;
bottom: auto;
- max-width: calc( 100% - #{ $panel-padding } - #{ $panel-padding } );
+ max-width: calc(100% - #{ $panel-padding } - #{ $panel-padding });
margin-right: -50%;
- transform: translate( -50%, 0 );
+ transform: translate(-50%, 0);
top: $panel-padding;
left: 50%;
height: 90%;
@@ -34,8 +34,8 @@
// Show pretty big on desktop breakpoints.
@include break-medium () {
- max-width: calc( #{ $break-medium } - #{ $panel-padding } - #{ $panel-padding } );
- transform: translate( -50%, -30% );
+ max-width: calc(#{ $break-medium } - #{ $panel-padding } - #{ $panel-padding });
+ transform: translate(-50%, -30%);
top: 30%;
left: 50%;
height: 70%;
@@ -83,7 +83,7 @@
.components-modal__content {
// The height of the content is the height of it's parent, minus the header. after that, the offset was 3px.
- height: calc( 100% - #{ $header-height } - #{ $admin-bar-height } );
+ height: calc(100% - #{ $header-height } - #{ $admin-bar-height });
overflow: auto;
padding: $panel-padding;
}
diff --git a/packages/components/src/navigable-container/README.md b/packages/components/src/navigable-container/README.md
index bb30c24234ac7..630c9be46f053 100644
--- a/packages/components/src/navigable-container/README.md
+++ b/packages/components/src/navigable-container/README.md
@@ -1,5 +1,4 @@
-NavigableContainers
-=============
+# NavigableContainers
`NavigableContainer` is a React component to render a container navigable using the keyboard. Only things that are focusable can be navigated to. It will currently always be a `div`.
@@ -38,29 +37,8 @@ The orientation of the menu. It could be "vertical", "horizontal" or "both"
### NavigableMenu
-
A NavigableMenu allows movement up and down (or left and right) the component via the arrow keys. The `tab` key is not handled. The `orientation` prop is used to determine whether the arrow keys used are vertical, horizontal or both.
-### Usage
-
-```jsx
-import { NavigableMenu, Button } from '@wordpress/components';
-
-function onNavigate( index, target ) {
- // ....
-}
-
-function MyMenu() {
- return (
-
- My Button 1
- My Button 2
- My Button 3
-
- );
-}
-```
-
### TabbableContainer
A `TabbableContainer` will only be navigated using the `tab` key. Every intended tabstop must have a tabIndex `0`.
@@ -68,20 +46,28 @@ A `TabbableContainer` will only be navigated using the `tab` key. Every intended
### Usage
```jsx
-import { TabbableContainer, Button } from '@wordpress/components';
+import { NavigableMenu, TabbableContainer, Button } from '@wordpress/components';
function onNavigate( index, target ) {
- // ....
+ console.log( `Navigates to ${ index }`, target );
}
-function MyContainer() {
- return (
+const MyNavigableContainer = () => (
+
+
Navigable Menu:
+
+ Item 1
+ Item 2
+ Item 3
+
+
+
Tabbable Container:
- Section 1
- Section 2
- Section 3
- Section 4
+ Section 1
+ Section 2
+ Section 3
+ Section 4
- );
-}
+
+);
```
diff --git a/packages/components/src/notice/README.md b/packages/components/src/notice/README.md
index 0d0a38518d001..c703639a0aa1a 100644
--- a/packages/components/src/notice/README.md
+++ b/packages/components/src/notice/README.md
@@ -1,5 +1,4 @@
-Notice
-======
+# Notice
This component is used to display notices in editor.
@@ -8,17 +7,21 @@ This component is used to display notices in editor.
To display a plain notice, pass `Notice` a string:
```jsx
-
- An unknown error occurred.
-
+const MyNotice = () => (
+
+ An unknown error occurred.
+
+);
```
For more complex markup, you can pass any JSX element:
```jsx
-
- An error occurred: { errorDetails }
.
-
+const MyNotice = () => (
+
+ An error occurred: { errorDetails }
.
+
+);
```
### Props
diff --git a/packages/components/src/notice/style.scss b/packages/components/src/notice/style.scss
index 2da61c495da2a..7920ff01604a0 100644
--- a/packages/components/src/notice/style.scss
+++ b/packages/components/src/notice/style.scss
@@ -1,4 +1,4 @@
.components-notice-list {
min-width: 300px;
- z-index: z-index( ".components-notice-list" );
+ z-index: z-index(".components-notice-list");
}
diff --git a/packages/components/src/panel/README.md b/packages/components/src/panel/README.md
new file mode 100644
index 0000000000000..9012d96650b4f
--- /dev/null
+++ b/packages/components/src/panel/README.md
@@ -0,0 +1,13 @@
+# Panel
+
+## Usage
+
+```jsx
+import { Panel, PanelBody } from '@wordpress/components';
+
+const MyPanel = () => (
+
+ Panel body
+
+);
+```
diff --git a/packages/components/src/panel/style.scss b/packages/components/src/panel/style.scss
index 51e55bfb205c7..57ac86eec7864 100644
--- a/packages/components/src/panel/style.scss
+++ b/packages/components/src/panel/style.scss
@@ -22,7 +22,7 @@
border-bottom: $border-width solid $light-gray-500;
h3 {
- margin: 0 0 .5em;
+ margin: 0 0 0.5em;
}
&.is-opened {
@@ -84,7 +84,7 @@
position: absolute;
right: $item-spacing;
top: 50%;
- transform: translateY( -50% );
+ transform: translateY(-50%);
}
// mirror the arrow horizontally in RTL languages
diff --git a/packages/components/src/placeholder/README.md b/packages/components/src/placeholder/README.md
new file mode 100644
index 0000000000000..5d4c64a7f64f1
--- /dev/null
+++ b/packages/components/src/placeholder/README.md
@@ -0,0 +1,13 @@
+# Placeholder
+
+## Usage
+```jsx
+import { Placeholder } from '@wordpress/components';
+
+const MyPlaceholder = () => (
+
+);
+```
diff --git a/packages/components/src/placeholder/style.scss b/packages/components/src/placeholder/style.scss
index 9eee059b75002..454e86aefade0 100644
--- a/packages/components/src/placeholder/style.scss
+++ b/packages/components/src/placeholder/style.scss
@@ -37,7 +37,7 @@
width: 100%;
max-width: 280px;
flex-wrap: wrap;
- z-index: z-index( '.components-placeholder__fieldset' );
+ z-index: z-index(".components-placeholder__fieldset");
p {
font-family: $default-font;
diff --git a/packages/components/src/popover/README.md b/packages/components/src/popover/README.md
index 18a01ad0f203d..f071dbcad2a64 100644
--- a/packages/components/src/popover/README.md
+++ b/packages/components/src/popover/README.md
@@ -8,23 +8,26 @@ Popover is a React component to render a floating content modal. It is similar i
Render a Popover within the parent to which it should anchor:
```jsx
-import { Popover } from '@wordpress/components';
-
-function ToggleButton( { isVisible, toggleVisible } ) {
+import { Button, Popover } from '@wordpress/components';
+import { withState } from '@wordpress/compose';
+
+const MyPopover = withState( {
+ isVisible: false,
+} )( ( { isVisible, setState } ) => {
+ const toggleVisible = () => {
+ setState( ( state ) => ( { isVisible: ! state.isVisible } ) );
+ };
return (
-
+
Toggle Popover!
{ isVisible && (
- event.stopPropagation() }
- >
+
Popover is toggled!
) }
-
+
);
-}
+} );
```
If a Popover is returned by your component, it will be shown. To hide the popover, simply omit it from your component's render value.
diff --git a/packages/components/src/popover/style.scss b/packages/components/src/popover/style.scss
index 889e129a1d289..c9d3fdecac4b7 100644
--- a/packages/components/src/popover/style.scss
+++ b/packages/components/src/popover/style.scss
@@ -2,7 +2,7 @@ $arrow-size: 8px;
.components-popover {
position: fixed;
- z-index: z-index( ".components-popover" );
+ z-index: z-index(".components-popover");
left: 50%;
&.is-mobile {
@@ -19,12 +19,12 @@ $arrow-size: 8px;
border: $arrow-size solid $light-gray-500;
}
- &:after {
+ &::after {
border: $arrow-size solid $white;
}
&::before,
- &:after {
+ &::after {
content: "";
position: absolute;
height: 0;
@@ -39,12 +39,12 @@ $arrow-size: 8px;
bottom: - $arrow-size;
}
- &:after {
+ &::after {
bottom: -6px;
}
&::before,
- &:after {
+ &::after {
border-bottom: none;
border-left-color: transparent;
border-right-color: transparent;
@@ -60,12 +60,12 @@ $arrow-size: 8px;
top: -$arrow-size;
}
- &:after {
+ &::after {
top: -6px;
}
&::before,
- &:after {
+ &::after {
border-bottom-style: solid;
border-left-color: transparent;
border-right-color: transparent;
@@ -82,12 +82,12 @@ $arrow-size: 8px;
right: -$arrow-size;
}
- &:after {
+ &::after {
right: -6px;
}
&::before,
- &:after {
+ &::after {
border-bottom-color: transparent;
border-left-style: solid;
border-right: none;
@@ -104,12 +104,12 @@ $arrow-size: 8px;
left: -$arrow-size;
}
- &:after {
+ &::after {
left: -6px;
}
&::before,
- &:after {
+ &::after {
border-bottom-color: transparent;
border-left: none;
border-right-style: solid;
@@ -126,7 +126,7 @@ $arrow-size: 8px;
&.is-bottom {
top: 100%;
- z-index: z-index( ".components-popover.is-bottom" );
+ z-index: z-index(".components-popover.is-bottom");
}
&.is-middle {
@@ -143,7 +143,7 @@ $arrow-size: 8px;
height: 100%;
.components-popover.is-mobile & {
- height: calc( 100% - #{ $panel-header-height } );
+ height: calc(100% - #{ $panel-header-height });
border-top: 0;
}
@@ -160,7 +160,7 @@ $arrow-size: 8px;
.components-popover:not(.is-mobile).is-center & {
left: 50%;
- transform: translateX( -50% );
+ transform: translateX(-50%);
}
.components-popover:not(.is-mobile).is-right & {
@@ -209,5 +209,5 @@ $arrow-size: 8px;
}
.components-popover__close.components-icon-button {
- z-index: z-index( '.components-popover__close' );
+ z-index: z-index(".components-popover__close");
}
diff --git a/packages/components/src/query-controls/README.md b/packages/components/src/query-controls/README.md
new file mode 100644
index 0000000000000..83dd4092e18b6
--- /dev/null
+++ b/packages/components/src/query-controls/README.md
@@ -0,0 +1,42 @@
+# QueryControls
+
+## Usage
+
+```jsx
+import { QueryControls } from '@wordpress/components';
+import { withState } from '@wordpress/compose';
+
+const MyQueryControls = withState( {
+ orderBy: 'title',
+ order: 'asc',
+ category: 1,
+ categories: [
+ {
+ id: 1,
+ name: 'Category 1',
+ parent: 0,
+ },
+ {
+ id: 2,
+ name: 'Category 1b',
+ parent: 1,
+ },
+ {
+ id: 3,
+ name: 'Category 2',
+ parent: 0,
+ },
+ ],
+ numberOfItems: 10,
+} )( ( { orderBy, order, category, categories, numberOfItems, setState } ) => (
+ setState( { orderBy } ) }
+ onOrderChange={ ( order ) => setState( { order } ) }
+ categoriesList={ categories }
+ selectedCategoryId={ category }
+ onCategoryChange={ ( category ) => setState( { category } ) }
+ onNumberOfItemsChange={ ( numberOfItems ) => setState( { numberOfItems } ) }
+ />
+) );
+```
diff --git a/packages/components/src/radio-control/README.md b/packages/components/src/radio-control/README.md
index fe73ea15c6975..88f5379749059 100644
--- a/packages/components/src/radio-control/README.md
+++ b/packages/components/src/radio-control/README.md
@@ -1,5 +1,4 @@
-RadioControl
-=======
+# RadioControl
RadioControl component is used to generate radio input fields.
@@ -8,16 +7,23 @@ RadioControl component is used to generate radio input fields.
Render a user interface to select the user type using radio inputs.
```jsx
-
+import { RadioControl } from '@wordpress/components';
+import { withState } from '@wordpress/compose';
+
+const MyRadioControl = withState( {
+ option: 'a',
+} )( ( { option, setState } ) => (
+ { setState( { option } ) } }
+ />
+) );
```
## Props
diff --git a/packages/components/src/radio-control/style.scss b/packages/components/src/radio-control/style.scss
index 0f79124d3285b..f765cdd34798d 100644
--- a/packages/components/src/radio-control/style.scss
+++ b/packages/components/src/radio-control/style.scss
@@ -7,7 +7,7 @@
margin-bottom: 4px;
}
-.components-radio-control__input[type=radio] {
+.components-radio-control__input[type="radio"] {
margin-top: 0;
margin-right: 6px;
-}
\ No newline at end of file
+}
diff --git a/packages/components/src/range-control/README.md b/packages/components/src/range-control/README.md
index 98f52096d9e25..eabc808b2552e 100644
--- a/packages/components/src/range-control/README.md
+++ b/packages/components/src/range-control/README.md
@@ -1,5 +1,4 @@
-RangeControl
-=======
+# RangeControl
RangeControl component is used to create range slider to input numerical values.
@@ -8,13 +7,20 @@ RangeControl component is used to create range slider to input numerical values.
Render a user interface to select the number of columns between 2 and 10.
```jsx
+import { RadioControl } from '@wordpress/components';
+import { withState } from '@wordpress/compose';
+
+const MyRangeControl = withState( {
+ columns: 2,
+} )( ( { columns, setState } ) => (
setState( { columns } ) }
min={ 2 }
max={ 10 }
/>
+) );
```
## Props
diff --git a/packages/components/src/range-control/style.scss b/packages/components/src/range-control/style.scss
index 4592bfbe2b33b..8cd14cf3940d7 100644
--- a/packages/components/src/range-control/style.scss
+++ b/packages/components/src/range-control/style.scss
@@ -96,7 +96,7 @@
* Track
*/
- // webkit
+ // webkit
&::-webkit-slider-runnable-track {
@include range-track();
margin-top: -4px;
diff --git a/packages/components/src/responsive-wrapper/README.md b/packages/components/src/responsive-wrapper/README.md
new file mode 100644
index 0000000000000..ce325e732ce0e
--- /dev/null
+++ b/packages/components/src/responsive-wrapper/README.md
@@ -0,0 +1,16 @@
+# ResponsiveWrapper
+
+## Usage
+
+```jsx
+import { ResponsiveWrapper } from '@wordpress/components';
+
+const MyResponsiveWrapper = () => (
+
+
+
+);
+```
diff --git a/packages/components/src/sandbox/README.md b/packages/components/src/sandbox/README.md
index adf7a75e795f1..7b1b5cafdb1b9 100644
--- a/packages/components/src/sandbox/README.md
+++ b/packages/components/src/sandbox/README.md
@@ -1,14 +1,17 @@
-This component provides an isolated environment for arbitrary HTML via iframes.
+# Sandbox
-#### To test
+This component provides an isolated environment for arbitrary HTML via iframes.
-Embed the following:
+## Usage
-- Short tweet: https://twitter.com/notnownikki/status/876229494465581056
-- Long tweet with media: https://twitter.com/PattyJenks/status/874034832430424065
-- Video: https://www.youtube.com/watch?v=PfKUdmTq2MI
-- Photo: https://cloudup.com/cQFlxqtY4ob
-- Long tumblr post: http://doctorwho.tumblr.com/post/162052108791
-- Create a custom html block with the following content:
+```jsx
+import { SandBox } from '@wordpress/components';
-This tests that HTML is written into the sandbox correctly in all cases, and that sites that do responsive resizes (e.g. tumblr) don't mess up when put into a small iframe that is also trying to resize.
+const MySandBox = () => (
+
+);
+```
diff --git a/packages/components/src/scroll-lock/README.md b/packages/components/src/scroll-lock/README.md
index d74373e9d2e92..d2ff62e4b96cb 100644
--- a/packages/components/src/scroll-lock/README.md
+++ b/packages/components/src/scroll-lock/README.md
@@ -1,5 +1,4 @@
-ScrollLock
-==========
+# ScrollLock
ScrollLock is a content-free React component for declaratively preventing scroll bleed from modal UI to the page body. This component applies a `lockscroll` class to the `document.documentElement` and `document.scrollingElement` elements to stop the body from scrolling. When it is present, the lock is applied.
@@ -9,13 +8,22 @@ Declare scroll locking as part of modal UI.
```jsx
import { ScrollLock } from '@wordpress/components';
+import { withState } from '@wordpress/compose';
-function Sidebar( { isMobile } ) {
+const MyScrollLock = withState( {
+ isScrollLocked: false,
+} )( ( { isScrollLocked, setState } ) => {
+ const toggleLock = () => {
+ setState( ( state ) => ( { isScrollLocked: ! state.isScrollLocked } ) );
+ };
return (
- Sidebar Content!
- { isMobile &&
}
+
+ Toggle scroll lock
+
+ { isScrollLocked &&
}
+
Scroll locked: { isScrollLocked ? 'Yes' : 'No' }
);
-}
+} );
```
diff --git a/packages/components/src/select-control/README.md b/packages/components/src/select-control/README.md
index 09ec4a041c0bf..83f958c9684d9 100644
--- a/packages/components/src/select-control/README.md
+++ b/packages/components/src/select-control/README.md
@@ -1,5 +1,4 @@
-SelectControl
-=======
+# SelectControl
SelectControl component is used to generate select input fields.
@@ -8,15 +7,23 @@ SelectControl component is used to generate select input fields.
Render a user interface to select the size of an image.
```jsx
+import { SelectControl } from '@wordpress/components';
+import { withState } from '@wordpress/compose';
+
+const MySelectControl = withState( {
+ size: '50%',
+} )( ( { size, setState } ) => (
( {
- value: size,
- label: startCase( name ),
- } ) ) }
- onChange={ onChange }
+ options={ [
+ { label: 'Big', value: '100%' },
+ { label: 'Medium', value: '50%' },
+ { label: 'Small', value: '25%' },
+ ] }
+ onChange={ ( size ) => { setState( { size } ) } }
/>
+) );
```
Render a user interface to select multiple users from a list.
diff --git a/packages/components/src/select-control/style.scss b/packages/components/src/select-control/style.scss
index a0c73a4e8efd8..7da6a7464f12b 100644
--- a/packages/components/src/select-control/style.scss
+++ b/packages/components/src/select-control/style.scss
@@ -1,3 +1,3 @@
.components-select-control__input {
width: 100%;
-}
\ No newline at end of file
+}
diff --git a/packages/components/src/server-side-render/README.md b/packages/components/src/server-side-render/README.md
index 470dbfee11f99..a8cbf404e2307 100644
--- a/packages/components/src/server-side-render/README.md
+++ b/packages/components/src/server-side-render/README.md
@@ -1,5 +1,4 @@
-ServerSideRender
-=======
+# ServerSideRender
ServerSideRender is a component used for server-side rendering a preview of dynamic blocks to display in the editor. Server-side rendering in a block's `edit` function should be limited to blocks that are heavily dependent on existing PHP rendering logic that is heavily intertwined with data, particularly when there are no endpoints available.
@@ -14,10 +13,17 @@ New blocks should be built in conjunction with any necessary REST API endpoints,
Render core/archives preview.
```jsx
+import { ServerSideRender } from '@wordpress/components';
+
+const MyServerSideRender = () => (
+);
```
## Output
diff --git a/packages/components/src/slot-fill/README.md b/packages/components/src/slot-fill/README.md
index 31aac57f17a39..23bbd7b77f941 100644
--- a/packages/components/src/slot-fill/README.md
+++ b/packages/components/src/slot-fill/README.md
@@ -1,5 +1,4 @@
-Slot Fill
-=========
+# Slot Fill
Slot and Fill are a pair of components which enable developers to render elsewhere in a React element tree, a pattern often referred to as "portal" rendering. It is a pattern for component extensibility, where a single Slot may be occupied by an indeterminate number of Fills elsewhere in the application.
@@ -9,39 +8,39 @@ Slot Fill is heavily inspired by the [`react-slot-fill` library](https://github.
At the root of your application, you must render a `SlotFillProvider` which coordinates Slot and Fill rendering.
-```jsx
-import { SlotFillProvider } from '@wordpress/components';
-import { render } from '@wordpress/element';
-import App from './app';
-
-render(
-
-
- ,
- document.getElementById( 'app' )
-);
-```
+Then, render a Slot component anywhere in your application, giving it a name.
-Then, render a Slot component anywhere in your application, giving it a name:
+Any Fill will automatically occupy this Slot space, even if rendered elsewhere in the application.
-```jsx
-const Toolbar = () => (
-
-
-
-);
+You can either use the Fill component directly, or a wrapper component type as in the below example to abstract the slot name from consumer awareness.
-Toolbar.Item = ( { children } ) => (
-
- { children }
-
-);
+```jsx
+import { SlotFillProvider, Slot, Fill, Panel, PanelBody } from '@wordpress/components';
+
+const MySlotFillProvider = () => {
+ const MyPanelSlot = () => (
+
+
+
+
+
+ );
+
+ MyPanelSlot.Content = () => (
+
+ Panel body
+
+ );
+
+ return (
+
+
+
+
+ );
+};
```
-Any Fill will automatically occupy this Slot space, even if rendered elsewhere in the application.
-
-You can either use the Fill component directly, or a wrapper component type as in the above example to abstract the slot name from consumer awareness.
-
There is also `createSlotFill` helper method which was created to simplify the process of matching the corresponding `Slot` and `Fill` components:
```jsx
diff --git a/packages/components/src/spinner/README.md b/packages/components/src/spinner/README.md
new file mode 100644
index 0000000000000..b4978f5f4607c
--- /dev/null
+++ b/packages/components/src/spinner/README.md
@@ -0,0 +1,11 @@
+# Spinner
+
+## Usage
+
+```jsx
+import { Spinner } from '@wordpress/components';
+
+const MySpinner = () => (
+
+);
+```
diff --git a/packages/components/src/style.scss b/packages/components/src/style.scss
index e9b340f9b1725..2440ecea57473 100644
--- a/packages/components/src/style.scss
+++ b/packages/components/src/style.scss
@@ -1,37 +1,37 @@
-@import './autocomplete/style.scss';
-@import './base-control/style.scss';
-@import './button-group/style.scss';
-@import './button/style.scss';
-@import './checkbox-control/style.scss';
-@import './color-indicator/style.scss';
-@import './color-palette/style.scss';
-@import './dashicon/style.scss';
-@import './date-time/style.scss';
-@import './disabled/style.scss';
-@import './draggable/style.scss';
-@import './drop-zone/style.scss';
-@import './dropdown-menu/style.scss';
-@import './external-link/style.scss';
-@import './font-size-picker/style.scss';
-@import './form-file-upload/style.scss';
-@import './form-toggle/style.scss';
-@import './form-token-field/style.scss';
-@import './higher-order/navigate-regions/style.scss';
-@import './icon-button/style.scss';
-@import './menu-group/style.scss';
-@import './menu-item/style.scss';
-@import './modal/style.scss';
-@import './notice/style.scss';
-@import './panel/style.scss';
-@import './placeholder/style.scss';
-@import './popover/style.scss';
-@import './radio-control/style.scss';
-@import './range-control/style.scss';
-@import './responsive-wrapper/style.scss';
-@import './scroll-lock/style.scss';
-@import './select-control/style.scss';
-@import './text-control/style.scss';
-@import './textarea-control/style.scss';
-@import './toggle-control/style.scss';
-@import './toolbar/style.scss';
-@import './tooltip/style.scss';
+@import "./autocomplete/style.scss";
+@import "./base-control/style.scss";
+@import "./button-group/style.scss";
+@import "./button/style.scss";
+@import "./checkbox-control/style.scss";
+@import "./color-indicator/style.scss";
+@import "./color-palette/style.scss";
+@import "./dashicon/style.scss";
+@import "./date-time/style.scss";
+@import "./disabled/style.scss";
+@import "./draggable/style.scss";
+@import "./drop-zone/style.scss";
+@import "./dropdown-menu/style.scss";
+@import "./external-link/style.scss";
+@import "./font-size-picker/style.scss";
+@import "./form-file-upload/style.scss";
+@import "./form-toggle/style.scss";
+@import "./form-token-field/style.scss";
+@import "./higher-order/navigate-regions/style.scss";
+@import "./icon-button/style.scss";
+@import "./menu-group/style.scss";
+@import "./menu-item/style.scss";
+@import "./modal/style.scss";
+@import "./notice/style.scss";
+@import "./panel/style.scss";
+@import "./placeholder/style.scss";
+@import "./popover/style.scss";
+@import "./radio-control/style.scss";
+@import "./range-control/style.scss";
+@import "./responsive-wrapper/style.scss";
+@import "./scroll-lock/style.scss";
+@import "./select-control/style.scss";
+@import "./text-control/style.scss";
+@import "./textarea-control/style.scss";
+@import "./toggle-control/style.scss";
+@import "./toolbar/style.scss";
+@import "./tooltip/style.scss";
diff --git a/packages/components/src/tab-panel/README.md b/packages/components/src/tab-panel/README.md
index e9c54681e2e6d..dd96512c5f043 100644
--- a/packages/components/src/tab-panel/README.md
+++ b/packages/components/src/tab-panel/README.md
@@ -1,5 +1,4 @@
-TabPanel
-=======
+# TabPanel
TabPanel is a React component to render an ARIA-compliant TabPanel. It has two sections: a list of tabs, and the view to show when tabs are chosen. When the list of tabs gets focused, the active tab gets focus (the first tab if there isn't one already). Use the arrow keys to navigate between tabs AND select the newly focused tab at the same time.
@@ -10,38 +9,33 @@ TabPanel is a Function-as-Children component. The function takes `tabName` as an
Renders a TabPanel with each tab representing a paragraph with its title.
```jsx
-
import { TabPanel } from '@wordpress/components';
const onSelect = ( tabName ) => {
console.log( 'Selecting tab', tabName );
};
-function MyTabPanel() {
- return (
-
+const MyTabPanel = () => (
+ {
- return ${ tabName }
;
- }
- }
-
- )
-}
+ name: 'tab2',
+ title: 'Tab 2',
+ className: 'tab-two',
+ },
+ ] }>
+ {
+ ( tabName ) => { tabName }
+ }
+
+);
```
## Props
diff --git a/packages/components/src/text-control/README.md b/packages/components/src/text-control/README.md
index 449c132c36f97..a66e6daadbd5b 100644
--- a/packages/components/src/text-control/README.md
+++ b/packages/components/src/text-control/README.md
@@ -1,5 +1,4 @@
-TextControl
-=======
+# TextControl
TextControl is normally used to generate text input fields. But can be used to generate other input types.
@@ -7,12 +6,20 @@ TextControl is normally used to generate text input fields. But can be used to g
## Usage
Render a user interface to input the name of an additional css class.
+
```jsx
+import { TextControl } from '@wordpress/components';
+import { withState } from '@wordpress/compose';
+
+const MyTextControl = withState( {
+ className: '',
+} )( ( { className, setState } ) => (
setState( { className } ) }
/>
+) );
```
## Props
diff --git a/packages/components/src/textarea-control/README.md b/packages/components/src/textarea-control/README.md
index 850593166b334..c43458971a474 100644
--- a/packages/components/src/textarea-control/README.md
+++ b/packages/components/src/textarea-control/README.md
@@ -1,19 +1,24 @@
-TextareaControl
-=======
+# TextareaControl
TextareaControl is used to generate textarea input fields.
## Usage
-Render a user interface to input the name of an additional CSS class.
```jsx
-
+import { TextareaControl } from '@wordpress/components';
+import { withState } from '@wordpress/compose';
+
+const MyTextareaControl = withState( {
+ text: '',
+} )( ( { text, setState } ) => (
+ setState( { text } ) }
+ />
+) );
```
## Props
diff --git a/packages/components/src/toggle-control/README.md b/packages/components/src/toggle-control/README.md
index 96caf8a17d1ca..c41bb464a44f3 100644
--- a/packages/components/src/toggle-control/README.md
+++ b/packages/components/src/toggle-control/README.md
@@ -1,5 +1,4 @@
-ToggleControl
-=======
+# ToggleControl
ToggleControl is used to generate a toggle user interface.
@@ -8,12 +7,19 @@ ToggleControl is used to generate a toggle user interface.
Render a user interface to change fixed background setting.
```jsx
+import { ToggleControl } from '@wordpress/components';
+import { withState } from '@wordpress/compose';
+
+const MyToggleControl = withState( {
+ hasFixedBackground: false,
+} )( ( { hasFixedBackground, setState } ) => (
checked ? __( 'Has fixed background.' ) : __( 'No fixed background.' ) }
- onChange={ toggleParallax }
+ label="Fixed Background"
+ help={ hasFixedBackground ? 'Has fixed background.' : 'No fixed background.' }
+ checked={ hasFixedBackground }
+ onChange={ () => setState( ( state ) => ( { hasFixedBackground: ! state.hasFixedBackground } ) ) }
/>
+) );
```
## Props
diff --git a/packages/components/src/toolbar/README.md b/packages/components/src/toolbar/README.md
new file mode 100644
index 0000000000000..968d8909fa6bc
--- /dev/null
+++ b/packages/components/src/toolbar/README.md
@@ -0,0 +1,25 @@
+# Toolbar
+
+## Usage
+
+```jsx
+import { Toolbar } from '@wordpress/components';
+import { withState } from '@wordpress/compose';
+
+const MyToolbar = withState( {
+ activeControl: 'up',
+} )( ( { activeControl, setState } ) => {
+ function createThumbsControl( thumbs ) {
+ return {
+ icon: `thumbs-${ thumbs }`,
+ title: `Thumbs ${ thumbs }`,
+ isActive: activeControl === thumbs,
+ onClick: () => setState( { activeControl: thumbs } ),
+ };
+ }
+
+ return (
+
+ );
+} );
+```
diff --git a/packages/components/src/toolbar/style.scss b/packages/components/src/toolbar/style.scss
index 21097d5233680..d4e80b32d082b 100644
--- a/packages/components/src/toolbar/style.scss
+++ b/packages/components/src/toolbar/style.scss
@@ -6,17 +6,17 @@
}
div.components-toolbar {
- &> div {
+ & > div {
// IE11 does not support `position: sticky`, or Flex very well, so use block.
display: inline-block;
- @supports ( position: sticky ) {
+ @supports (position: sticky) {
display: inline-flex;
}
margin: 0;
}
- &> div + div {
+ & > div + div {
margin-left: -3px;
&.has-left-divider {
@@ -27,7 +27,7 @@ div.components-toolbar {
&.has-left-divider::before {
display: inline-block;
- content: '';
+ content: "";
box-sizing: content-box;
background-color: $light-gray-500;
position: absolute;
@@ -52,8 +52,8 @@ div.components-toolbar {
// Unset icon button styles
&:active,
- &:not( [aria-disabled="true"] ):hover,
- &:not( [aria-disabled="true"] ):focus {
+ &:not([aria-disabled="true"]):hover,
+ &:not([aria-disabled="true"]):focus {
outline: none;
box-shadow: none;
background: none;
@@ -76,8 +76,8 @@ div.components-toolbar {
padding: 4px 8px 4px 0;
}
- &[data-subscript]:after {
- content: attr( data-subscript );
+ &[data-subscript]::after {
+ content: attr(data-subscript);
font-family: $default-font;
font-size: $default-font-size;
font-weight: 600;
@@ -87,12 +87,12 @@ div.components-toolbar {
}
// Assign hover style to child element, not the button itself
- &:not( :disabled ):not([aria-disabled="true"]):hover {
+ &:not(:disabled):not([aria-disabled="true"]):hover {
box-shadow: none;
}
- &:not( :disabled ).is-active > svg,
- &:not( :disabled ):hover > svg {
+ &:not(:disabled).is-active > svg,
+ &:not(:disabled):hover > svg {
@include formatting-button-style__hover;
}
@@ -101,7 +101,7 @@ div.components-toolbar {
@include formatting-button-style__active;
}
- &:not(:disabled).is-active[data-subscript]:after {
+ &:not(:disabled).is-active[data-subscript]::after {
color: $white;
}
diff --git a/packages/components/src/tooltip/README.md b/packages/components/src/tooltip/README.md
index c7bd8537b7991..bf155161fd0d6 100644
--- a/packages/components/src/tooltip/README.md
+++ b/packages/components/src/tooltip/README.md
@@ -1,5 +1,4 @@
-Tooltip
-=======
+# Tooltip
Tooltip is a React component to render floating help text relative to a node when it receives focus or when the user places the mouse cursor atop it. If the tooltip exceeds the bounds of the page in the direction it opens, its position will be flipped automatically.
@@ -10,17 +9,15 @@ Accessibility note: the tooltip text is hidden from screen readers and assistive
Render a Tooltip, passing as a child the element to which it should anchor:
```jsx
-import { Tooltip } from '@wordpress/components';
-
-function HelpfulButton() {
- return (
-
-
- Hover for more information
-
-
- );
-}
+import { Tooltip, Button } from '@wordpress/components';
+
+const MyTooltip = () => (
+
+
+ Hover for more information
+
+
+);
```
## Props
diff --git a/packages/components/src/tooltip/style.scss b/packages/components/src/tooltip/style.scss
index 4f4b7e6aafef5..06ce8a290fab3 100644
--- a/packages/components/src/tooltip/style.scss
+++ b/packages/components/src/tooltip/style.scss
@@ -1,15 +1,15 @@
.components-tooltip.components-popover {
- z-index: z-index( '.components-tooltip' );
+ z-index: z-index(".components-tooltip");
&::before {
border-color: transparent;
}
- &.is-top:after {
+ &.is-top::after {
border-top-color: $dark-gray-900;
}
- &.is-bottom:after {
+ &.is-bottom::after {
border-bottom-color: $dark-gray-900;
}
}
diff --git a/packages/components/src/tree-select/README.md b/packages/components/src/tree-select/README.md
index 0d16032c6992d..3924a239d3b93 100644
--- a/packages/components/src/tree-select/README.md
+++ b/packages/components/src/tree-select/README.md
@@ -1,5 +1,4 @@
-TreeSelect
-=======
+# TreeSelect
TreeSelect component is used to generate select input fields.
@@ -8,11 +7,17 @@ TreeSelect component is used to generate select input fields.
Render a user interface to select the parent page in a hierarchy of pages:
```jsx
+import { TreeSelect } from '@wordpress/components';
+import { withState } from '@wordpress/compose';
+
+const MyTreeSelect = withState( {
+ page: 'p21',
+} )( ( { page, setState } ) => (
setState( { page } ) }
+ selectedId={ page }
tree={ [
{
name: 'Page 1',
@@ -40,6 +45,7 @@ Render a user interface to select the parent page in a hierarchy of pages:
},
] }
/>
+) );
```
## Props
diff --git a/packages/compose/package.json b/packages/compose/package.json
index c3403b25ab792..10fcbfa2bc7dc 100644
--- a/packages/compose/package.json
+++ b/packages/compose/package.json
@@ -21,7 +21,7 @@
"module": "build-module/index.js",
"react-native": "src/index",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"@wordpress/element": "file:../element",
"@wordpress/is-shallow-equal": "file:../is-shallow-equal",
"lodash": "^4.17.10"
diff --git a/packages/compose/src/with-instance-id/README.md b/packages/compose/src/with-instance-id/README.md
index 31dd5c3e845f2..c4cca426b107b 100644
--- a/packages/compose/src/with-instance-id/README.md
+++ b/packages/compose/src/with-instance-id/README.md
@@ -10,7 +10,7 @@ Wrapping a component with `withInstanceId` provides a unique `instanceId` to ser
/**
* WordPress dependencies
*/
-import { withInstanceId } from '@wordpress/components';
+import { withInstanceId } from '@wordpress/compose';
function MyCustomElement( { instanceId } ) {
return (
diff --git a/packages/compose/src/with-safe-timeout/README.md b/packages/compose/src/with-safe-timeout/README.md
index 097e652b055b6..b397f7f173f8e 100644
--- a/packages/compose/src/with-safe-timeout/README.md
+++ b/packages/compose/src/with-safe-timeout/README.md
@@ -9,7 +9,7 @@ withSafeTimeout
/**
* WordPress dependencies
*/
-import { withSafeTimeout } from '@wordpress/components';
+import { withSafeTimeout } from '@wordpress/compose';
function MyEffectfulComponent( { setTimeout } ) {
return (
diff --git a/packages/core-data/README.md b/packages/core-data/README.md
index ae7e4395882c1..0afd5d02beb9e 100644
--- a/packages/core-data/README.md
+++ b/packages/core-data/README.md
@@ -14,33 +14,24 @@ npm install @wordpress/core-data --save
## Example
-Below is an example of a component which simply renders a list of categories:
+Below is an example of a component which simply renders a list of authors:
```jsx
const { withSelect } = wp.data;
-function MyCategoriesList( { categories, isRequesting } ) {
- if ( isRequesting ) {
- return 'Loading…';
- }
-
+function MyAuthorsList( { authors } ) {
return (
- { categories.map( ( category ) => (
- { category.name }
+ { authors.map( ( author ) => (
+ { author.name }
) ) }
);
}
-MyCategoriesList = withSelect( ( select ) => {
- const { getCategories, isRequestingCategories } = select( 'core' );
-
- return {
- categories: getCategories(),
- isRequesting: isRequestingCategories(),
- };
-} );
+MyAuthorsList = withSelect( ( select ) => ( {
+ authors: select( 'core' ).getAuthors(),
+} ) );
```
## Actions
diff --git a/packages/core-data/package.json b/packages/core-data/package.json
index b8372c66037ac..a466eff593944 100644
--- a/packages/core-data/package.json
+++ b/packages/core-data/package.json
@@ -20,7 +20,7 @@
"main": "build/index.js",
"module": "build-module/index.js",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"@wordpress/api-fetch": "file:../api-fetch",
"@wordpress/data": "file:../data",
"@wordpress/url": "file:../url",
diff --git a/packages/core-data/src/actions.js b/packages/core-data/src/actions.js
index 06afd03354f97..8ce1befbb86ba 100644
--- a/packages/core-data/src/actions.js
+++ b/packages/core-data/src/actions.js
@@ -2,6 +2,7 @@
* External dependencies
*/
import { castArray } from 'lodash';
+import deprecated from '@wordpress/deprecated';
/**
* Internal dependencies
@@ -21,6 +22,11 @@ import {
* @return {Object} Action object.
*/
export function receiveTerms( taxonomy, terms ) {
+ deprecated( 'wp.data.dispatch("core").receiveTerms', {
+ version: '3.7.0',
+ alternative: 'wp.data.dispatch("core").receiveEntityRecords',
+ plugin: 'Gutenberg',
+ } );
return {
type: 'RECEIVE_TERMS',
taxonomy,
diff --git a/packages/core-data/src/resolvers.js b/packages/core-data/src/resolvers.js
index 7d939de0fac4a..e9ec41f577650 100644
--- a/packages/core-data/src/resolvers.js
+++ b/packages/core-data/src/resolvers.js
@@ -8,6 +8,7 @@ import { find } from 'lodash';
*/
import apiFetch from '@wordpress/api-fetch';
import { addQueryArgs } from '@wordpress/url';
+import deprecated from '@wordpress/deprecated';
/**
* Internal dependencies
@@ -26,6 +27,11 @@ import { getKindEntities } from './entities';
* progress.
*/
export async function* getCategories() {
+ deprecated( 'getCategories resolver', {
+ version: '3.7.0',
+ alternative: 'getEntityRecords resolver',
+ plugin: 'Gutenberg',
+ } );
const categories = await apiFetch( { path: '/wp/v2/categories?per_page=-1' } );
yield receiveTerms( 'categories', categories );
}
diff --git a/packages/core-data/src/selectors.js b/packages/core-data/src/selectors.js
index 1e0fd66f63f11..00af63aa6e147 100644
--- a/packages/core-data/src/selectors.js
+++ b/packages/core-data/src/selectors.js
@@ -8,6 +8,7 @@ import { map, find, get, filter } from 'lodash';
* WordPress dependencies
*/
import { select } from '@wordpress/data';
+import deprecated from '@wordpress/deprecated';
/**
* Internal dependencies
@@ -37,6 +38,11 @@ function isResolving( selectorName, ...args ) {
* @return {Array} Categories list.
*/
export function getTerms( state, taxonomy ) {
+ deprecated( 'wp.data.select("core").getTerms', {
+ version: '3.7.0',
+ alternative: 'wp.data.select("core").getEntityRecords',
+ plugin: 'Gutenberg',
+ } );
return state.terms[ taxonomy ];
}
@@ -48,6 +54,11 @@ export function getTerms( state, taxonomy ) {
* @return {Array} Categories list.
*/
export function getCategories( state ) {
+ deprecated( 'wp.data.select("core").getCategories', {
+ version: '3.7.0',
+ alternative: 'wp.data.select("core").getEntityRecords',
+ plugin: 'Gutenberg',
+ } );
return getTerms( state, 'categories' );
}
@@ -61,6 +72,11 @@ export function getCategories( state ) {
* @return {boolean} Whether a request is in progress for taxonomy's terms.
*/
export function isRequestingTerms( state, taxonomy ) {
+ deprecated( 'wp.data.select("core").isRequestingTerms', {
+ version: '3.7.0',
+ alternative: 'wp.data.select("core").getEntitiesByKind',
+ plugin: 'Gutenberg',
+ } );
return isResolving( 'getTerms', taxonomy );
}
@@ -73,6 +89,11 @@ export function isRequestingTerms( state, taxonomy ) {
* @return {boolean} Whether a request is in progress for categories.
*/
export function isRequestingCategories() {
+ deprecated( 'wp.data.select("core").isRequestingCategories', {
+ version: '3.7.0',
+ alternative: 'wp.data.select("core").getEntitiesByKind',
+ plugin: 'Gutenberg',
+ } );
return isResolving( 'getCategories' );
}
diff --git a/packages/core-data/src/test/resolvers.js b/packages/core-data/src/test/resolvers.js
index 581830a04f3f2..55eef7026b4bb 100644
--- a/packages/core-data/src/test/resolvers.js
+++ b/packages/core-data/src/test/resolvers.js
@@ -31,6 +31,7 @@ describe( 'getCategories', () => {
const fulfillment = getCategories();
const received = ( await fulfillment.next() ).value;
expect( received ).toEqual( receiveTerms( 'categories', CATEGORIES ) );
+ expect( console ).toHaveWarnedWith( 'getCategories resolver is deprecated and will be removed from Gutenberg in 3.7.0. Please use getEntityRecords resolver instead.' );
} );
} );
diff --git a/packages/core-data/src/test/selectors.js b/packages/core-data/src/test/selectors.js
index d06fdc1fc9c3a..35bd9f7bdee31 100644
--- a/packages/core-data/src/test/selectors.js
+++ b/packages/core-data/src/test/selectors.js
@@ -37,6 +37,7 @@ describe( 'getTerms()', () => {
},
} );
expect( getTerms( state, 'categories' ) ).toEqual( [ { id: 1 } ] );
+ expect( console ).toHaveWarnedWith( 'wp.data.select("core").getTerms is deprecated and will be removed from Gutenberg in 3.7.0. Please use wp.data.select("core").getEntityRecords instead.' );
} );
} );
@@ -58,6 +59,7 @@ describe( 'isRequestingCategories()', () => {
it( 'returns false if never requested', () => {
const result = isRequestingCategories();
expect( result ).toBe( false );
+ expect( console ).toHaveWarnedWith( 'wp.data.select("core").isRequestingCategories is deprecated and will be removed from Gutenberg in 3.7.0. Please use wp.data.select("core").getEntitiesByKind instead.' );
} );
it( 'returns false if categories resolution finished', () => {
diff --git a/packages/custom-templated-path-webpack-plugin/package.json b/packages/custom-templated-path-webpack-plugin/package.json
index 6e8d135a96c00..93eebcaddef12 100644
--- a/packages/custom-templated-path-webpack-plugin/package.json
+++ b/packages/custom-templated-path-webpack-plugin/package.json
@@ -24,7 +24,7 @@
"main": "build/index.js",
"module": "build-module/index.js",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"escape-string-regexp": "^1.0.5"
},
"devDependencies": {
diff --git a/packages/data/package.json b/packages/data/package.json
index 1b6f863e2e24c..9541a3a4e1731 100644
--- a/packages/data/package.json
+++ b/packages/data/package.json
@@ -21,7 +21,7 @@
"module": "build-module/index.js",
"react-native": "src/index",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"@wordpress/compose": "file:../compose",
"@wordpress/deprecated": "file:../deprecated",
"@wordpress/element": "file:../element",
diff --git a/packages/date/package.json b/packages/date/package.json
index 013908150673a..3154d03a66e01 100644
--- a/packages/date/package.json
+++ b/packages/date/package.json
@@ -19,7 +19,7 @@
"main": "build/index.js",
"module": "build-module/index.js",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"moment": "^2.22.1",
"moment-timezone": "^0.5.16"
},
diff --git a/packages/deprecated/package.json b/packages/deprecated/package.json
index 85e08c705320f..760396db25b13 100644
--- a/packages/deprecated/package.json
+++ b/packages/deprecated/package.json
@@ -19,7 +19,7 @@
"main": "build/index.js",
"module": "build-module/index.js",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52"
+ "@babel/runtime-corejs2": "7.0.0-beta.56"
},
"publishConfig": {
"access": "public"
diff --git a/packages/dom-ready/package.json b/packages/dom-ready/package.json
index c81ee1f093bec..4c03b45eaf025 100644
--- a/packages/dom-ready/package.json
+++ b/packages/dom-ready/package.json
@@ -19,7 +19,7 @@
"main": "build/index.js",
"module": "build-module/index.js",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52"
+ "@babel/runtime-corejs2": "7.0.0-beta.56"
},
"publishConfig": {
"access": "public"
diff --git a/packages/dom/package.json b/packages/dom/package.json
index 7e59088a74cde..49b5c1547639a 100644
--- a/packages/dom/package.json
+++ b/packages/dom/package.json
@@ -20,7 +20,7 @@
"main": "build/index.js",
"module": "build-module/index.js",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"element-closest": "^2.0.2",
"lodash": "^4.17.10"
},
diff --git a/packages/dom/src/dom.js b/packages/dom/src/dom.js
index 7cc843c32e617..b62311310a383 100644
--- a/packages/dom/src/dom.js
+++ b/packages/dom/src/dom.js
@@ -266,8 +266,9 @@ export function placeCaretAtHorizontalEdge( container, isReverse ) {
return;
}
+ container.focus();
+
if ( ! container.isContentEditable ) {
- container.focus();
return;
}
@@ -276,6 +277,12 @@ export function placeCaretAtHorizontalEdge( container, isReverse ) {
// where `startContainer`, `endContainer` would always be container itself.
const rangeTarget = container[ isReverse ? 'lastChild' : 'firstChild' ];
+ // If no range target, it implies that the container is empty. Focusing is
+ // sufficient for caret to be placed correctly.
+ if ( ! rangeTarget ) {
+ return;
+ }
+
const selection = window.getSelection();
const range = document.createRange();
@@ -284,8 +291,6 @@ export function placeCaretAtHorizontalEdge( container, isReverse ) {
selection.removeAllRanges();
selection.addRange( range );
-
- container.focus();
}
/**
diff --git a/packages/editor/package.json b/packages/editor/package.json
index 68c16609bbac4..d3d94984ce4d8 100644
--- a/packages/editor/package.json
+++ b/packages/editor/package.json
@@ -20,7 +20,7 @@
"module": "build-module/index.js",
"react-native": "src/index",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"@wordpress/a11y": "file:../a11y",
"@wordpress/api-fetch": "file:../api-fetch",
"@wordpress/blob": "file:../blob",
@@ -43,7 +43,6 @@
"@wordpress/viewport": "file:../viewport",
"@wordpress/wordcount": "file:../wordcount",
"classnames": "^2.2.5",
- "dom-react": "^2.2.1",
"dom-scroll-into-view": "^1.2.1",
"element-closest": "^2.0.2",
"lodash": "^4.17.10",
diff --git a/packages/editor/src/components/block-drop-zone/style.scss b/packages/editor/src/components/block-drop-zone/style.scss
index bff3a2b432657..8cbc15a90a1d3 100644
--- a/packages/editor/src/components/block-drop-zone/style.scss
+++ b/packages/editor/src/components/block-drop-zone/style.scss
@@ -1,4 +1,4 @@
- // Dropzones
+// Dropzones
.editor-block-drop-zone {
border: none;
border-radius: 0;
@@ -9,14 +9,14 @@
&.is-close-to-bottom {
background: none;
- border-bottom: 3px solid theme( primary );
+ border-bottom: 3px solid theme(primary);
}
&.is-close-to-top,
&.is-appender.is-close-to-top,
&.is-appender.is-close-to-bottom {
background: none;
- border-top: 3px solid theme( primary );
+ border-top: 3px solid theme(primary);
border-bottom: none;
}
diff --git a/packages/editor/src/components/block-edit/index.js b/packages/editor/src/components/block-edit/index.js
index d42f151da1a89..c4c78f906aef9 100644
--- a/packages/editor/src/components/block-edit/index.js
+++ b/packages/editor/src/components/block-edit/index.js
@@ -8,7 +8,6 @@ import { Component } from '@wordpress/element';
*/
import Edit from './edit';
import { BlockEditContextProvider } from './context';
-import withDeprecatedUniqueId from '../with-deprecated-unique-id';
class BlockEdit extends Component {
constructor( props ) {
@@ -50,4 +49,4 @@ class BlockEdit extends Component {
}
}
-export default withDeprecatedUniqueId( BlockEdit );
+export default BlockEdit;
diff --git a/packages/editor/src/components/block-inspector/style.scss b/packages/editor/src/components/block-inspector/style.scss
index d6b464c8c9ffe..461b22054dd8c 100644
--- a/packages/editor/src/components/block-inspector/style.scss
+++ b/packages/editor/src/components/block-inspector/style.scss
@@ -3,7 +3,7 @@
display: block;
font-size: $default-font-size;
background: $white;
- padding: ( $panel-padding * 2 ) $panel-padding;
+ padding: ($panel-padding * 2) $panel-padding;
text-align: center;
}
diff --git a/packages/editor/src/components/block-list/index.js b/packages/editor/src/components/block-list/index.js
index 53f268ba871e1..ed5c131cae9b2 100644
--- a/packages/editor/src/components/block-list/index.js
+++ b/packages/editor/src/components/block-list/index.js
@@ -1,74 +1,18 @@
-/**
- * External dependencies
- */
-import {
- reduce,
- get,
- map,
-} from 'lodash';
-
/**
* WordPress dependencies
*/
-import { createElement } from '@wordpress/element';
import { withSelect } from '@wordpress/data';
-import deprecated from '@wordpress/deprecated';
/**
* Internal dependencies
*/
import BlockListLayout from './layout';
-const UngroupedLayoutBlockList = withSelect(
- ( select, ownProps ) => ( {
- blockClientIds: select( 'core/editor' ).getBlockOrder( ownProps.rootClientId ),
- } )
-)( BlockListLayout );
-
-const GroupedLayoutBlockList = withSelect(
- ( select, ownProps ) => ( {
- blocks: select( 'core/editor' ).getBlocks( ownProps.rootClientId ),
- } ),
-)( ( {
- blocks,
- layouts,
- ...props
-} ) => map( layouts, ( layout ) => {
- deprecated( 'grouped layout', {
- alternative: 'intermediary nested inner blocks',
- version: '3.5',
- plugin: 'Gutenberg',
- hint: 'See core Columns / Column block for reference implementation',
- } );
-
- // Filter blocks assigned to layout when rendering grouped layouts.
- const layoutBlockClientIds = reduce( blocks, ( result, block ) => {
- if ( get( block, [ 'attributes', 'layout' ] ) === layout.name ) {
- result.push( block.clientId );
- }
-
- return result;
- }, [] );
-
- return (
-
- );
-} ) );
-
-const BlockList = ( props ) => createElement(
- // BlockList can be provided with a layouts configuration, either grouped
- // (blocks adjacent in markup) or ungrouped. This is inferred by the shape
- // of the layouts configuration passed (grouped layout as array).
- Array.isArray( props.layouts ) ?
- GroupedLayoutBlockList :
- UngroupedLayoutBlockList,
- props
-);
+// TODO: This should be refactored to flatten BlockListLayout into this file.
+export default withSelect( ( select, ownProps ) => {
+ const { getBlockOrder } = select( 'core/editor' );
-export default BlockList;
+ return {
+ blockClientIds: getBlockOrder( ownProps.rootClientId ),
+ };
+} )( BlockListLayout );
diff --git a/packages/editor/src/components/block-list/layout.js b/packages/editor/src/components/block-list/layout.js
index e82b3c6f2602e..59a9d8377875a 100644
--- a/packages/editor/src/components/block-list/layout.js
+++ b/packages/editor/src/components/block-list/layout.js
@@ -27,7 +27,6 @@ import { compose } from '@wordpress/compose';
import BlockListBlock from './block';
import IgnoreNestedEvents from './ignore-nested-events';
import DefaultBlockAppender from '../default-block-appender';
-import withDeprecatedUniqueId from '../with-deprecated-unique-id';
class BlockListLayout extends Component {
constructor( props ) {
@@ -239,7 +238,6 @@ class BlockListLayout extends Component {
}
export default compose( [
- withDeprecatedUniqueId,
withSelect( ( select, ownProps ) => {
const {
isSelectionEnabled,
diff --git a/packages/editor/src/components/block-list/style.scss b/packages/editor/src/components/block-list/style.scss
index 3e1e7e16c510e..972761e09a01a 100644
--- a/packages/editor/src/components/block-list/style.scss
+++ b/packages/editor/src/components/block-list/style.scss
@@ -30,7 +30,7 @@
right: 0;
bottom: 0;
left: 0;
- z-index: z-index( '.editor-block-list__block-draggable' );
+ z-index: z-index(".editor-block-list__block-draggable");
> .editor-block-list__block-draggable-inner {
position: absolute;
@@ -99,7 +99,7 @@
}
.editor-block-list__block-edit .reusable-block-edit-panel * {
- z-index: z-index( '.editor-block-list__block-edit .reusable-block-edit-panel *' );
+ z-index: z-index(".editor-block-list__block-edit .reusable-block-edit-panel *");
}
}
@@ -165,23 +165,23 @@
/**
* Notices
*/
- .components-placeholder .components-with-notices-ui {
+ .components-placeholder .components-with-notices-ui {
margin: -10px 20px 12px 20px;
- width: calc( 100% - 40px );
- }
- .components-with-notices-ui {
+ width: calc(100% - 40px);
+ }
+ .components-with-notices-ui {
margin: 0 0 12px 0;
width: 100%;
.notice {
- margin-left: 0px;
- margin-right: 0px;
+ margin-left: 0;
+ margin-right: 0;
p {
font-size: $default-font-size;
}
}
- }
+ }
/**
* Block outline layout
@@ -191,11 +191,11 @@
position: relative;
&::before {
- z-index: z-index( '.editor-block-list__block-edit::before' );
- content: '';
+ z-index: z-index(".editor-block-list__block-edit::before");
+ content: "";
position: absolute;
outline: $border-width solid transparent;
- transition: outline .1s linear;
+ transition: outline 0.1s linear;
pointer-events: none;
// Show wider padding for top level blocks.
@@ -233,7 +233,7 @@
// Hover style
&.is-hovered > .editor-block-list__block-edit::before {
- outline: $border-width solid theme( outlines );
+ outline: $border-width solid theme(outlines);
}
}
@@ -284,13 +284,13 @@
// Warnings
&.has-warning .editor-block-list__block-edit {
- > :not( .editor-warning ) {
+ > :not(.editor-warning) {
pointer-events: none;
user-select: none;
}
}
- &.has-warning:not( .is-hovered ) .editor-block-list__block-edit::before {
+ &.has-warning:not(.is-hovered) .editor-block-list__block-edit::before {
// Use opacity to work in various editor styles.
outline-color: $dark-opacity-light-500;
@@ -299,10 +299,10 @@
}
}
- &.has-warning .editor-block-list__block-edit:after {
- content: '';
+ &.has-warning .editor-block-list__block-edit::after {
+ content: "";
position: absolute;
- background-color: rgba( $light-gray-100, .8 );
+ background-color: rgba($light-gray-100, 0.8);
top: -$block-padding;
bottom: -$block-padding;
@@ -329,7 +329,7 @@
}
// Reusable blocks
- &.is-reusable > .editor-block-list__block-edit:before {
+ &.is-reusable > .editor-block-list__block-edit::before {
// Use opacity to work in various editor styles.
outline: $border-width dashed $dark-opacity-light-500;
@@ -342,7 +342,7 @@
&[data-align="left"],
&[data-align="right"] {
// Without z-index, won't be clickable as "above" adjacent content.
- z-index: z-index( '.editor-block-list__block {core/image aligned left or right}' );
+ z-index: z-index(".editor-block-list__block {core/image aligned left or right}");
width: 100%;
// When images are floated, the block itself should collapse to zero height.
@@ -395,7 +395,7 @@
clear: both;
// Without z-index, the block toolbar will be below an adjecent float
- z-index: z-index( '.editor-block-list__block {core/image aligned wide or fullwide}' );
+ z-index: z-index(".editor-block-list__block {core/image aligned wide or fullwide}");
// Mover and settings above
> .editor-block-mover,
@@ -570,7 +570,7 @@
&.is-hovered {
.editor-block-settings-menu,
.editor-block-mover {
- z-index: z-index( '.editor-block-list__block.is-{selected,hovered} .editor-block-{settings-menu,mover}' );
+ z-index: z-index(".editor-block-list__block.is-{selected,hovered} .editor-block-{settings-menu,mover}");
}
}
}
@@ -633,7 +633,7 @@
border-top: $border-width solid $light-gray-500;
height: $block-toolbar-height;
- transform: translateY( #{ $block-padding + $border-width } );
+ transform: translateY(#{ $block-padding + $border-width });
@include break-small() {
display: none;
@@ -707,16 +707,16 @@
// Insertion point (includes inbetween inserter and insertion indicator)
.editor-block-list__insertion-point {
position: relative;
- z-index: z-index( '.editor-block-list__insertion-point' );
+ z-index: z-index(".editor-block-list__insertion-point");
}
.editor-block-list__insertion-point-indicator {
position: absolute;
- top: calc( 50% - #{ $border-width } );
+ top: calc(50% - #{ $border-width });
height: 2px;
left: 0;
right: 0;
- background: theme( primary );
+ background: theme(primary);
}
.editor-block-list__insertion-point-inserter {
@@ -762,7 +762,7 @@
}
// Don't show the sibling inserter before the selected block.
-.edit-post-layout:not( .has-fixed-toolbar ) {
+.edit-post-layout:not(.has-fixed-toolbar) {
// The child selector is necessary for this to work properly in nested contexts.
.is-selected > .editor-block-list__insertion-point > .editor-block-list__insertion-point-inserter {
opacity: 0;
@@ -805,7 +805,7 @@
font-family: $editor-html-font;
font-size: $text-editor-font-size;
line-height: 150%;
- transition: padding .2s linear;
+ transition: padding 0.2s linear;
&:focus {
box-shadow: none;
@@ -819,7 +819,7 @@
.editor-block-list__block .editor-block-contextual-toolbar {
position: sticky;
- z-index: z-index( '.editor-block-contextual-toolbar' );
+ z-index: z-index(".editor-block-contextual-toolbar");
white-space: nowrap;
text-align: left;
pointer-events: none;
@@ -891,10 +891,10 @@
box-shadow: none;
// Move the block toolbar out of the flow using translate.
- transform: translateY( -$block-toolbar-height -$block-padding -$border-width );
+ transform: translateY(-$block-toolbar-height -$block-padding -$border-width);
// IE11 does not support `position: sticky`.
- @supports ( position: sticky ) {
+ @supports (position: sticky) {
position: sticky;
// Compensate for translate, so the sticky sticks to the top.
@@ -959,7 +959,7 @@
.editor-block-list__breadcrumb {
position: absolute;
line-height: 1;
- z-index: z-index( '.editor-block-list__breadcrumb' );
+ z-index: z-index(".editor-block-list__breadcrumb");
// Position in the top right of the border.
right: -$block-parent-side-ui-clearance;
@@ -978,23 +978,23 @@
font-family: $default-font;
font-size: 11px;
padding: 4px 4px;
- background: theme( outlines );
+ background: theme(outlines);
color: $white;
// Animate in
.editor-block-list__block:hover & {
- @include fade_in( .1s );
+ @include fade_in(0.1s);
}
}
}
.editor-block-list__descendant-arrow::before {
- content: '→';
+ content: "→";
display: inline-block;
padding: 0 4px;
.rtl & {
- content: '←';
+ content: "←";
}
}
@@ -1007,7 +1007,7 @@
// the block and select it. (eg. A fuzzy click target.)
&::before {
bottom: 0;
- content: '';
+ content: "";
left: -$parent-block-padding - $block-padding;
position: absolute;
right: -$parent-block-padding - $block-padding;
diff --git a/packages/editor/src/components/block-mover/index.js b/packages/editor/src/components/block-mover/index.js
index f1c0af092de82..d28d131cbdfc6 100644
--- a/packages/editor/src/components/block-mover/index.js
+++ b/packages/editor/src/components/block-mover/index.js
@@ -19,7 +19,6 @@ import { withInstanceId, compose } from '@wordpress/compose';
*/
import { getBlockMoverDescription } from './mover-description';
import { upArrow, downArrow } from './arrows';
-import withDeprecatedUniqueId from '../with-deprecated-unique-id';
export class BlockMover extends Component {
constructor() {
@@ -107,7 +106,6 @@ export class BlockMover extends Component {
}
export default compose(
- withDeprecatedUniqueId,
withSelect( ( select, { clientIds, rootClientId } ) => {
const { getBlock, getBlockIndex, getTemplateLock } = select( 'core/editor' );
const firstClientId = first( castArray( clientIds ) );
diff --git a/packages/editor/src/components/block-mover/style.scss b/packages/editor/src/components/block-mover/style.scss
index 84044903c1fce..c9bb11ba20298 100644
--- a/packages/editor/src/components/block-mover/style.scss
+++ b/packages/editor/src/components/block-mover/style.scss
@@ -42,7 +42,7 @@
svg {
width: $block-side-ui-width;
height: $block-side-ui-width;
- padding: ( $block-side-ui-width - 18px ) / 2; // this makes the SVG fill the whole available area, without scaling the artwork
+ padding: ($block-side-ui-width - 18px) / 2; // this makes the SVG fill the whole available area, without scaling the artwork
}
// Apply a background in nested contexts, only on desktop
@@ -54,26 +54,26 @@
&:first-child {
margin-bottom: -1px;
}
-
+
&:hover,
&:active,
&:focus {
// Buttons are stacked with overlapping border to look like a unit, so elevate on interactions.
- z-index: z-index( '.editor-block-mover__control' );
+ z-index: z-index(".editor-block-mover__control");
}
}
}
// Hover, active and focus styles
- &:not( :disabled ):not( [aria-disabled="true"] ):hover {
+ &:not(:disabled):not([aria-disabled="true"]):hover {
@include button-style__hover;
}
- &:not( :disabled ):not( [aria-disabled="true"] ):active {
+ &:not(:disabled):not([aria-disabled="true"]):active {
@include button-style__active;
}
- &:not( :disabled ):not( [aria-disabled="true"] ):focus {
+ &:not(:disabled):not([aria-disabled="true"]):focus {
@include button-style__focus-active;
}
}
diff --git a/packages/editor/src/components/block-preview/style.scss b/packages/editor/src/components/block-preview/style.scss
index ac96e94342975..b9eb15d1b1eb3 100644
--- a/packages/editor/src/components/block-preview/style.scss
+++ b/packages/editor/src/components/block-preview/style.scss
@@ -14,7 +14,7 @@
font-family: $editor-font;
> div {
- transform: scale( 0.9 );
+ transform: scale(0.9);
transform-origin: center top;
font-family: $editor-font;
}
diff --git a/packages/editor/src/components/block-settings-menu/index.js b/packages/editor/src/components/block-settings-menu/index.js
index 0b5c4d6cdb433..bf7372600b716 100644
--- a/packages/editor/src/components/block-settings-menu/index.js
+++ b/packages/editor/src/components/block-settings-menu/index.js
@@ -11,7 +11,6 @@ import { __ } from '@wordpress/i18n';
import { Component } from '@wordpress/element';
import { IconButton, Dropdown, NavigableMenu } from '@wordpress/components';
import { withDispatch } from '@wordpress/data';
-import { compose } from '@wordpress/compose';
/**
* Internal dependencies
@@ -25,7 +24,6 @@ import BlockHTMLConvertButton from './block-html-convert-button';
import BlockUnknownConvertButton from './block-unknown-convert-button';
import _BlockSettingsMenuFirstItem from './block-settings-menu-first-item';
import _BlockSettingsMenuPluginsExtension from './block-settings-menu-plugins-extension';
-import withDeprecatedUniqueId from '../with-deprecated-unique-id';
export class BlockSettingsMenu extends Component {
constructor() {
@@ -148,11 +146,8 @@ export class BlockSettingsMenu extends Component {
}
}
-export default compose( [
- withDeprecatedUniqueId,
- withDispatch( ( dispatch ) => ( {
- onSelect( clientId ) {
- dispatch( 'core/editor' ).selectBlock( clientId );
- },
- } ) ),
-] )( BlockSettingsMenu );
+export default withDispatch( ( dispatch ) => ( {
+ onSelect( clientId ) {
+ dispatch( 'core/editor' ).selectBlock( clientId );
+ },
+} ) )( BlockSettingsMenu );
diff --git a/packages/editor/src/components/block-settings-menu/style.scss b/packages/editor/src/components/block-settings-menu/style.scss
index cae9acd6a3715..38cc137a4f059 100644
--- a/packages/editor/src/components/block-settings-menu/style.scss
+++ b/packages/editor/src/components/block-settings-menu/style.scss
@@ -39,20 +39,20 @@
&:hover,
&:active,
&:focus {
- z-index: z-index( '.editor-block-settings-remove' );
+ z-index: z-index(".editor-block-settings-remove");
}
}
}
}
.editor-block-settings-menu__toggle .dashicon {
- transform: rotate( 90deg );
+ transform: rotate(90deg);
}
// Popout menu
.editor-block-settings-menu__popover {
&::before,
- &:after {
+ &::after {
margin-left: 2px;
}
diff --git a/packages/editor/src/components/block-styles/style.scss b/packages/editor/src/components/block-styles/style.scss
index 3c9ea7d3e6145..d95c3c1c42fbb 100644
--- a/packages/editor/src/components/block-styles/style.scss
+++ b/packages/editor/src/components/block-styles/style.scss
@@ -24,7 +24,7 @@
.editor-block-styles__item-preview {
outline: $border-width solid transparent; // Shown in Windows High Contrast mode.
- box-shadow: inset 0 0 0 1px rgba( $dark-gray-900, .2 );
+ box-shadow: inset 0 0 0 1px rgba($dark-gray-900, 0.2);
overflow: hidden;
padding: 0;
text-align: initial;
@@ -33,7 +33,7 @@
height: 60px;
> * {
- transform: scale( 0.7 );
+ transform: scale(0.7);
transform-origin: center center;
font-family: $editor-font;
}
diff --git a/packages/editor/src/components/block-switcher/style.scss b/packages/editor/src/components/block-switcher/style.scss
index f8cc40ac98e49..35fb7c8c96ff8 100644
--- a/packages/editor/src/components/block-switcher/style.scss
+++ b/packages/editor/src/components/block-switcher/style.scss
@@ -11,8 +11,8 @@
// Unset icon button styles.
&:active,
- &:not( :disabled ):not( [aria-disabled="true"] ):hover,
- &:not( [aria-disabled="true"] ):focus {
+ &:not(:disabled):not([aria-disabled="true"]):hover,
+ &:not([aria-disabled="true"]):focus {
outline: none;
box-shadow: none;
background: none;
@@ -20,7 +20,7 @@
}
// Block hover style.
- &:not( :disabled ):hover .editor-block-icon__colors {
+ &:not(:disabled):hover .editor-block-icon__colors {
@include block-style__hover();
}
diff --git a/packages/editor/src/components/block-title/index.js b/packages/editor/src/components/block-title/index.js
index 5c729247d8a25..6629c16768437 100644
--- a/packages/editor/src/components/block-title/index.js
+++ b/packages/editor/src/components/block-title/index.js
@@ -3,12 +3,6 @@
*/
import { withSelect } from '@wordpress/data';
import { getBlockType } from '@wordpress/blocks';
-import { compose } from '@wordpress/compose';
-
-/**
- * Internal dependencies
- */
-import withDeprecatedUniqueId from '../with-deprecated-unique-id';
/**
* Renders the block's configured title as a string, or empty if the title
@@ -37,14 +31,11 @@ export function BlockTitle( { name } ) {
return blockType.title;
}
-export default compose( [
- withDeprecatedUniqueId,
- withSelect( ( select, ownProps ) => {
- const { getBlockName } = select( 'core/editor' );
- const { clientId } = ownProps;
+export default withSelect( ( select, ownProps ) => {
+ const { getBlockName } = select( 'core/editor' );
+ const { clientId } = ownProps;
- return {
- name: getBlockName( clientId ),
- };
- } ),
-] )( BlockTitle );
+ return {
+ name: getBlockName( clientId ),
+ };
+} )( BlockTitle );
diff --git a/packages/editor/src/components/block-toolbar/style.scss b/packages/editor/src/components/block-toolbar/style.scss
index 389659b29aa2d..e0bb8930014a9 100644
--- a/packages/editor/src/components/block-toolbar/style.scss
+++ b/packages/editor/src/components/block-toolbar/style.scss
@@ -15,7 +15,7 @@
// The component is born with a border, but we only need some of them.
.components-toolbar {
- border: 0;
+ border: 0;
border-top: $border-width solid $light-gray-500;
border-bottom: $border-width solid $light-gray-500;
@@ -27,7 +27,7 @@
> div {
// IE11 does not support `position: sticky`, or Flex very well, so use block.
display: block;
- @supports ( position: sticky ) {
+ @supports (position: sticky) {
display: flex;
}
}
diff --git a/packages/editor/src/components/block-types-list/style.scss b/packages/editor/src/components/block-types-list/style.scss
index d8cc42279edfc..a17b125934318 100644
--- a/packages/editor/src/components/block-types-list/style.scss
+++ b/packages/editor/src/components/block-types-list/style.scss
@@ -11,7 +11,7 @@
.editor-block-types-list__item {
display: inline-flex;
flex-direction: column;
- width: calc( 33.3% - 8px );
+ width: calc(33.3% - 8px);
margin: 0 4px 8px 4px;
font-size: $default-font-size;
color: $dark-gray-700;
@@ -88,7 +88,7 @@
// Show a "stacked card" below an item that has children.
.editor-block-types-list__item-icon-stack {
display: block;
- background: rgba( $dark-gray-900, .3 );
+ background: rgba($dark-gray-900, 0.3);
width: 100%;
height: 100%;
position: absolute;
diff --git a/packages/editor/src/components/color-palette/control.scss b/packages/editor/src/components/color-palette/control.scss
index 48ef166e47516..2fa07064fc419 100644
--- a/packages/editor/src/components/color-palette/control.scss
+++ b/packages/editor/src/components/color-palette/control.scss
@@ -1,4 +1,4 @@
.editor-color-palette-control__color-palette {
- margin-top: .6rem;
+ margin-top: 0.6rem;
margin-bottom: 1.4rem;
}
diff --git a/packages/editor/src/components/default-block-appender/index.js b/packages/editor/src/components/default-block-appender/index.js
index e0eb031c72a3b..fc8dd00203d93 100644
--- a/packages/editor/src/components/default-block-appender/index.js
+++ b/packages/editor/src/components/default-block-appender/index.js
@@ -20,7 +20,6 @@ import { DotTip } from '@wordpress/nux';
import BlockDropZone from '../block-drop-zone';
import InserterWithShortcuts from '../inserter-with-shortcuts';
import Inserter from '../inserter';
-import withDeprecatedUniqueId from '../with-deprecated-unique-id';
export function DefaultBlockAppender( {
isLocked,
@@ -66,7 +65,6 @@ export function DefaultBlockAppender( {
);
}
export default compose(
- withDeprecatedUniqueId,
withSelect( ( select, ownProps ) => {
const { getBlockCount, getBlock, getEditorSettings, getTemplateLock } = select( 'core/editor' );
const { isTipVisible } = select( 'core/nux' );
diff --git a/packages/editor/src/components/default-block-appender/style.scss b/packages/editor/src/components/default-block-appender/style.scss
index 9c781dec8b5ec..36e0431beb3c5 100644
--- a/packages/editor/src/components/default-block-appender/style.scss
+++ b/packages/editor/src/components/default-block-appender/style.scss
@@ -1,5 +1,5 @@
.editor-default-block-appender {
- input[type=text].editor-default-block-appender__content { // needs specificity
+ input[type="text"].editor-default-block-appender__content { // needs specificity
border: none;
background: none;
box-shadow: none;
@@ -25,10 +25,10 @@
// Show quick insertion icons faded until hover.
.editor-inserter-with-shortcuts {
- opacity: .5;
+ opacity: 0.5;
transition: opacity 0.2s;
- .components-icon-button:not( :hover ) {
+ .components-icon-button:not(:hover) {
// use opacity to work in various editor styles
color: $dark-opacity-500;
@@ -43,8 +43,8 @@
}
// Show the inserter if mousing over or there is a tip.
- &:not( .has-tip ) {
- .editor-inserter__toggle:not( [aria-expanded="true"] ) {
+ &:not(.has-tip) {
+ .editor-inserter__toggle:not([aria-expanded="true"]) {
opacity: 0;
}
@@ -97,7 +97,7 @@
padding: 4px;
// use opacity to work in various editor styles
- &:not( :hover ) {
+ &:not(:hover) {
color: $dark-opacity-500;
.is-dark-theme & {
@@ -111,7 +111,7 @@
.editor-inserter-with-shortcuts {
right: $block-padding;
display: none; // Don't show on mobile.
- z-index: z-index( '.editor-inserter-with-shortcuts' ); // Elevate above the sibling inserter.
+ z-index: z-index(".editor-inserter-with-shortcuts"); // Elevate above the sibling inserter.
@include break-small {
right: 0;
diff --git a/packages/editor/src/components/document-outline/style.scss b/packages/editor/src/components/document-outline/style.scss
index 784dcf7b03e87..336f53d196687 100644
--- a/packages/editor/src/components/document-outline/style.scss
+++ b/packages/editor/src/components/document-outline/style.scss
@@ -17,23 +17,23 @@
}
&.is-h2 .document-outline__emdash::before {
- content: '—';
+ content: "—";
}
&.is-h3 .document-outline__emdash::before {
- content: '——';
+ content: "——";
}
&.is-h4 .document-outline__emdash::before {
- content: '———';
+ content: "———";
}
&.is-h5 .document-outline__emdash::before {
- content: '————';
+ content: "————";
}
&.is-h6 .document-outline__emdash::before {
- content: '—————';
+ content: "—————";
}
}
diff --git a/packages/editor/src/components/index.js b/packages/editor/src/components/index.js
index 053df2136311d..3e909f4f784f6 100644
--- a/packages/editor/src/components/index.js
+++ b/packages/editor/src/components/index.js
@@ -22,7 +22,7 @@ export { default as RichText } from './rich-text';
export { default as RichTextProvider } from './rich-text/provider';
export { default as MediaPlaceholder } from './media-placeholder';
export { default as MediaUpload } from './media-upload';
-export { default as URLInput, UrlInput } from './url-input';
+export { default as URLInput } from './url-input';
export { default as URLInputButton } from './url-input/button';
// Post Related Components
diff --git a/packages/editor/src/components/inner-blocks/style.scss b/packages/editor/src/components/inner-blocks/style.scss
index 90190c6afc5a7..36ffe038223e4 100644
--- a/packages/editor/src/components/inner-blocks/style.scss
+++ b/packages/editor/src/components/inner-blocks/style.scss
@@ -1,9 +1,9 @@
-.editor-inner-blocks.has-overlay:after {
- content: '';
+.editor-inner-blocks.has-overlay::after {
+ content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
- z-index: z-index( '.editor-inner-blocks__small-screen-overlay:after' );
+ z-index: z-index(".editor-inner-blocks__small-screen-overlay:after");
}
diff --git a/packages/editor/src/components/inserter/style.scss b/packages/editor/src/components/inserter/style.scss
index ad0fe6c29bc75..eb801c06bd669 100644
--- a/packages/editor/src/components/inserter/style.scss
+++ b/packages/editor/src/components/inserter/style.scss
@@ -31,7 +31,7 @@ $block-inserter-search-height: 38px;
cursor: pointer;
border: none;
outline: none;
- transition: color .2s ease;
+ transition: color 0.2s ease;
}
.editor-inserter__menu {
@@ -60,7 +60,7 @@ $block-inserter-search-height: 38px;
margin-top: -1px;
}
-.editor-inserter__menu.is-bottom:after {
+.editor-inserter__menu.is-bottom::after {
border-bottom-color: $white;
}
diff --git a/packages/editor/src/components/media-placeholder/index.js b/packages/editor/src/components/media-placeholder/index.js
index 831280916abc6..f30e68d1cfb6e 100644
--- a/packages/editor/src/components/media-placeholder/index.js
+++ b/packages/editor/src/components/media-placeholder/index.js
@@ -15,7 +15,6 @@ import {
} from '@wordpress/components';
import { __, sprintf } from '@wordpress/i18n';
import { Component } from '@wordpress/element';
-import deprecated from '@wordpress/deprecated';
/**
* Internal dependencies
@@ -53,26 +52,8 @@ class MediaPlaceholder extends Component {
onSubmitSrc( event ) {
event.preventDefault();
- if ( this.state.src ) {
- if ( this.props.onSelectUrl ) {
- // TODO: In removing deprecation, ensure to simplify rendering
- // to avoid checking for `onSelectUrl`. It also allows this
- // function to be simplified to avoid truthiness test on
- // `onSelectURL`, since it's required for the form invoking
- // this function to be rendered at all.
- deprecated( 'MediaPlaceholder `onSelectUrl` prop', {
- alternative: '`onSelectURL` prop',
- plugin: 'Gutenberg',
- version: 'v3.5',
- hint: 'The prop has been renamed.',
- } );
-
- this.props.onSelectUrl( this.state.src );
- }
-
- if ( this.props.onSelectURL ) {
- this.props.onSelectURL( this.state.src );
- }
+ if ( this.state.src && this.props.onSelectURL ) {
+ this.props.onSelectURL( this.state.src );
}
}
@@ -101,7 +82,6 @@ class MediaPlaceholder extends Component {
onSelect,
value = {},
onSelectURL,
- onSelectUrl,
onHTMLDrop = noop,
multiple = false,
notices,
@@ -120,7 +100,7 @@ class MediaPlaceholder extends Component {
onFilesDrop={ this.onFilesUpload }
onHTMLDrop={ onHTMLDrop }
/>
- { ( onSelectUrl || onSelectURL ) && (
+ { onSelectURL && (
key.indexOf( 'data-mce-' ) === 0 ),
- ...elementChildren
- );
-}
-
/**
* Given an HTMLElement from a TinyMCE editor body element, returns equivalent
* WPBlockChildren value. The element may undergo some preprocessing to remove
@@ -173,17 +127,6 @@ export function createBlockChildrenFromTinyMCEElement( element ) {
};
}
-/**
- * Transforms an array of DOM Elements to their corresponding WP element.
- *
- * @param {Array} value DOM Elements.
- *
- * @return {WPElement} WP Element.
- */
-export function domToElement( value ) {
- return nodeListToReact( value || [], createTinyMCEElement );
-}
-
/**
* Given an array of HTMLElement from a TinyMCE editor body element, returns an
* equivalent WPBlockChildren value. The element may undergo some preprocessing
@@ -247,9 +190,6 @@ export function domToFormat( value, format ) {
case 'string':
return domToString( value );
- case 'element':
- return domToElement( value );
-
case 'children':
return domToBlockChildren( value );
}
diff --git a/packages/editor/src/components/rich-text/index.js b/packages/editor/src/components/rich-text/index.js
index e8c0e187c47d2..f4014adbd752f 100644
--- a/packages/editor/src/components/rich-text/index.js
+++ b/packages/editor/src/components/rich-text/index.js
@@ -27,7 +27,6 @@ import { BACKSPACE, DELETE, ENTER, LEFT, RIGHT, rawShortcut } from '@wordpress/k
import { Slot } from '@wordpress/components';
import { withSelect } from '@wordpress/data';
import { rawHandler, children } from '@wordpress/blocks';
-import deprecated from '@wordpress/deprecated';
import { withInstanceId, withSafeTimeout, compose } from '@wordpress/compose';
/**
@@ -921,18 +920,6 @@ RichTextContainer.Content = ( { value, format, tagName: Tag, ...props } ) => {
content = { value } ;
break;
- case 'element':
- // NOTE: In removing this, ensure to remove also every related
- // function from `format.js`, including the `dom-react` dependency.
- deprecated( 'RichText `element` format', {
- version: '3.5',
- plugin: 'Gutenberg',
- alternative: 'the compatible `children` format',
- } );
-
- content = value;
- break;
-
case 'children':
content = { children.toHTML( value ) } ;
break;
diff --git a/packages/editor/src/components/rich-text/style.scss b/packages/editor/src/components/rich-text/style.scss
index 7a0cd842f3096..447e8d5640b23 100644
--- a/packages/editor/src/components/rich-text/style.scss
+++ b/packages/editor/src/components/rich-text/style.scss
@@ -41,7 +41,7 @@
font-size: 14px;
.is-multi-selected & {
- background: darken( $blue-medium-highlight, 15% );
+ background: darken($blue-medium-highlight, 15%);
}
}
@@ -50,7 +50,14 @@
}
&:focus {
- b, i, strong, em, del, ins, sup, sub {
+ b,
+ i,
+ strong,
+ em,
+ del,
+ ins,
+ sup,
+ sub {
&[data-mce-selected] {
padding: 0 2px;
margin: 0 -2px;
diff --git a/packages/editor/src/components/rich-text/test/__snapshots__/format.js.snap b/packages/editor/src/components/rich-text/test/__snapshots__/format.js.snap
index 87da08bd7ecad..f37c07abf9b01 100644
--- a/packages/editor/src/components/rich-text/test/__snapshots__/format.js.snap
+++ b/packages/editor/src/components/rich-text/test/__snapshots__/format.js.snap
@@ -1,15 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`createTinyMCEElement should render a TinyMCE element 1`] = `
-
-`;
-
exports[`domToBlockChildren should return the corresponding element 1`] = `
Array [
Object {
@@ -30,15 +20,3 @@ Array [
},
]
`;
-
-exports[`domToElement should return the corresponding element 1`] = `
-Array [
-
-
- content
-
-
,
-]
-`;
diff --git a/packages/editor/src/components/rich-text/test/format.js b/packages/editor/src/components/rich-text/test/format.js
index fd78aadcbf86a..c55f2a54c24d0 100644
--- a/packages/editor/src/components/rich-text/test/format.js
+++ b/packages/editor/src/components/rich-text/test/format.js
@@ -1,13 +1,3 @@
-/**
- * External dependencies
- */
-import { shallow } from 'enzyme';
-
-/**
- * WordPress dependencies
- */
-import { createElement } from '@wordpress/element';
-
/**
* Internal dependencies
*/
@@ -16,10 +6,7 @@ import {
isTinyMCEBogusElement,
isTinyMCEBogusWrapperElement,
getCleanTextNodeValue,
- createTinyMCEElement,
createBlockChildrenFromTinyMCEElement,
- elementToString,
- domToElement,
domToBlockChildren,
domToString,
} from '../format';
@@ -104,66 +91,6 @@ describe( 'getCleanTextNodeValue', () => {
} );
} );
-describe( 'createTinyMCEElement', () => {
- const type = 'div';
- const children = Child
;
-
- test( 'should return null', () => {
- const props = {
- 'data-mce-bogus': 'all',
- };
-
- expect( createTinyMCEElement( type, props, children ) ).toBeNull();
- } );
-
- test( 'should return children', () => {
- const props = {
- 'data-mce-bogus': '',
- };
-
- const wrapper = createTinyMCEElement( type, props, children );
- expect( wrapper ).toEqual( [ children ] );
- } );
-
- test( 'should render a TinyMCE element', () => {
- const props = {
- 'data-prop': 'hi',
- };
-
- const wrapper = shallow( createTinyMCEElement( type, props, children ) );
- expect( wrapper ).toMatchSnapshot();
- } );
-} );
-
-describe( 'elementToString', () => {
- test( 'should return an empty string for null element', () => {
- expect( elementToString( null ) ).toBe( '' );
- } );
-
- test( 'should return an empty string for an empty array', () => {
- expect( elementToString( [] ) ).toBe( '' );
- } );
-
- test( 'should return the HTML content ', () => {
- const element = createElement( 'div', { className: 'container' },
- createElement( 'strong', {}, 'content' )
- );
- expect( elementToString( element ) ).toBe( 'content
' );
- } );
-} );
-
-describe( 'domToElement', () => {
- test( 'should return an empty array', () => {
- expect( domToElement( [] ) ).toEqual( [] );
- } );
-
- test( 'should return the corresponding element ', () => {
- const domElement = document.createElement( 'div' );
- domElement.innerHTML = 'content
';
- expect( domToElement( domElement.childNodes ) ).toMatchSnapshot();
- } );
-} );
-
describe( 'createBlockChildrenFromTinyMCEElement', () => {
it( 'returns recusrively cleaned tinymce element as block children', () => {
const element = document.createElement( 'div' );
diff --git a/packages/editor/src/components/rich-text/tokens/ui/style.scss b/packages/editor/src/components/rich-text/tokens/ui/style.scss
index 38cfd84fe6915..cbc38140121aa 100644
--- a/packages/editor/src/components/rich-text/tokens/ui/style.scss
+++ b/packages/editor/src/components/rich-text/tokens/ui/style.scss
@@ -3,5 +3,5 @@
z-index: 1;
width: 4px;
margin-left: -2px;
- background: theme( primary );
+ background: theme(primary);
}
diff --git a/packages/editor/src/components/skip-to-selected-block/style.scss b/packages/editor/src/components/skip-to-selected-block/style.scss
index 9fa63f235e947..82195ecadf920 100644
--- a/packages/editor/src/components/skip-to-selected-block/style.scss
+++ b/packages/editor/src/components/skip-to-selected-block/style.scss
@@ -10,11 +10,11 @@
font-weight: 600;
padding: 15px 23px 14px;
background: #f1f1f1;
- color: theme( secondary );
+ color: theme(secondary);
line-height: normal;
- box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
+ box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
text-decoration: none;
outline: none;
- z-index: z-index( '.skip-to-selected-block' );
+ z-index: z-index(".skip-to-selected-block");
}
}
diff --git a/packages/editor/src/components/url-input/index.js b/packages/editor/src/components/url-input/index.js
index 1dc8de94f0482..2fddee9eb3a5d 100644
--- a/packages/editor/src/components/url-input/index.js
+++ b/packages/editor/src/components/url-input/index.js
@@ -15,7 +15,6 @@ import { UP, DOWN, ENTER } from '@wordpress/keycodes';
import { Spinner, withSpokenMessages, Popover } from '@wordpress/components';
import { withInstanceId } from '@wordpress/compose';
import apiFetch from '@wordpress/api-fetch';
-import deprecated from '@wordpress/deprecated';
import { addQueryArgs } from '@wordpress/url';
// Since URLInput is rendered in the context of other inputs, but should be
@@ -242,27 +241,4 @@ class URLInput extends Component {
}
}
-// TODO: As part of deprecation of UrlInput, the temporary passthrough
-// component needs access to the enhanced URLInput class, so it cannot be
-// enhanced as part of its export default. Once the temporary passthrough is
-// removed, this can be moved back to the export statement.
-URLInput = withSpokenMessages( withInstanceId( URLInput ) );
-
-export class UrlInput extends Component {
- constructor() {
- super( ...arguments );
-
- deprecated( 'wp.editor.UrlInput', {
- alternative: 'wp.editor.URLInput',
- plugin: 'Gutenberg',
- version: 'v3.5',
- hint: 'The component has been renamed.',
- } );
- }
-
- render() {
- return ;
- }
-}
-
-export default URLInput;
+export default withSpokenMessages( withInstanceId( URLInput ) );
diff --git a/packages/editor/src/components/url-input/style.scss b/packages/editor/src/components/url-input/style.scss
index 73f622c5ac7b6..f383e32483f18 100644
--- a/packages/editor/src/components/url-input/style.scss
+++ b/packages/editor/src/components/url-input/style.scss
@@ -10,7 +10,7 @@ $input-size: 230px;
position: relative;
padding: 1px;
- input[type=text] {
+ input[type="text"] {
width: 100%;
padding: $input-padding;
border: none;
@@ -34,7 +34,7 @@ $input-size: 230px;
// Suggestions
.editor-url-input__suggestions {
max-height: 200px;
- transition: all .15s ease-in-out;
+ transition: all 0.15s ease-in-out;
list-style: none;
padding: 4px 0;
}
@@ -66,7 +66,7 @@ $input-size: 230px;
&:focus,
&.is-selected {
- background: color( theme( primary ) shade( 15% ) );
+ background: color(theme(primary) shade(15%));
color: $white;
outline: none;
}
@@ -82,7 +82,7 @@ $input-size: 230px;
overflow: visible;
&::after {
- content: '';
+ content: "";
position: absolute;
display: block;
width: 1px;
diff --git a/packages/editor/src/components/warning/style.scss b/packages/editor/src/components/warning/style.scss
index 20fbdeb67d90d..b9346eb244d11 100644
--- a/packages/editor/src/components/warning/style.scss
+++ b/packages/editor/src/components/warning/style.scss
@@ -1,5 +1,5 @@
.editor-block-list__block .editor-warning {
- z-index: z-index( '.editor-warning' );
+ z-index: z-index(".editor-warning");
position: absolute;
top: -$block-padding - $border-width;
right: -$parent-block-padding - $border-width;
@@ -45,9 +45,9 @@
display: flex;
margin: 0 0 $block-padding 0;
}
-
+
.editor-warning__action {
margin: 0 6px 0 0;
margin-left: 0;
}
-}
\ No newline at end of file
+}
diff --git a/packages/editor/src/components/with-deprecated-unique-id/index.js b/packages/editor/src/components/with-deprecated-unique-id/index.js
deleted file mode 100644
index 3b49ec1225969..0000000000000
--- a/packages/editor/src/components/with-deprecated-unique-id/index.js
+++ /dev/null
@@ -1,60 +0,0 @@
-/**
- * External dependencies
- */
-import { forOwn, compact, omit } from 'lodash';
-
-/**
- * WordPress dependencies
- */
-import { createHigherOrderComponent } from '@wordpress/compose';
-import deprecated from '@wordpress/deprecated';
-
-/**
- * Set of deprecated UID props, where each key is the deprecated prop, its
- * value the equivalent replacement.
- *
- * @type {Object}
- */
-const DEPRECATED_UID_PROPS = {
- lastBlockUID: 'lastBlockClientId',
- rootUID: 'rootClientId',
- uid: 'clientId',
- uids: 'clientIds',
-};
-
-/**
- * A higher-order component which replaces any instance of deprecated "UID"
- * prop names with their updated equivalent prop, with a deprecated warning
- * encouraging the developer to update their usage before its pending removal.
- *
- * @param {WPComponent} WrappedComponent Original component.
- *
- * @return {WPComponent} Enhanced component.
- */
-export default createHigherOrderComponent( ( WrappedComponent ) => ( props ) => {
- forOwn( DEPRECATED_UID_PROPS, ( replacement, prop ) => {
- if ( ! props.hasOwnProperty( prop ) ) {
- return;
- }
-
- // Construct deprecated message, including original component's name
- // if possible to retrieve.
- const { name = WrappedComponent.displayName } = WrappedComponent;
- const message = compact( [
- name,
- `The \`${ prop }\` prop`,
- ] ).join( ' ' );
-
- deprecated( message, {
- alternative: `the \`${ replacement }\` prop`,
- plugin: 'Gutenberg',
- version: 'v3.5',
- } );
-
- props = Object.assign( omit( props, prop ), {
- [ replacement ]: props[ prop ],
- } );
- } );
-
- return ;
-} );
diff --git a/packages/editor/src/store/effects/posts.js b/packages/editor/src/store/effects/posts.js
index 9b541cafc5ade..46ddaa04374fe 100644
--- a/packages/editor/src/store/effects/posts.js
+++ b/packages/editor/src/store/effects/posts.js
@@ -9,6 +9,7 @@ import { pick, includes } from 'lodash';
*/
import apiFetch from '@wordpress/api-fetch';
import { __ } from '@wordpress/i18n';
+import { addQueryArgs } from '@wordpress/url';
/**
* Internal dependencies
@@ -256,7 +257,27 @@ export const requestPostUpdateFailure = ( action, store ) => {
const noticeMessage = ! isPublished && publishStatus.indexOf( edits.status ) !== -1 ?
messages[ edits.status ] :
__( 'Updating failed' );
- dispatch( createErrorNotice( noticeMessage, { id: SAVE_POST_NOTICE_ID } ) );
+
+ const cloudflareDetailsLink = addQueryArgs(
+ 'post.php',
+ {
+ post: post.id,
+ action: 'edit',
+ 'classic-editor': '',
+ 'cloudflare-error': '',
+ } );
+
+ const cloudflaredMessage = error && 'cloudflare_error' === error.code ?
+
+ { noticeMessage }
+
+ { __( 'Cloudflare is blocking REST API requests.' ) }
+ { ' ' }
+ { __( 'Learn More' ) }
+
:
+ noticeMessage;
+
+ dispatch( createErrorNotice( cloudflaredMessage, { id: SAVE_POST_NOTICE_ID } ) );
};
/**
diff --git a/packages/editor/src/store/selectors.js b/packages/editor/src/store/selectors.js
index ffabf1c82f701..05ce02ac88234 100644
--- a/packages/editor/src/store/selectors.js
+++ b/packages/editor/src/store/selectors.js
@@ -1185,9 +1185,7 @@ export function getBlockInsertionPoint( state ) {
index = getBlockOrder( state ).length;
}
- // TODO: With deprecation of "UID" nomenclature in 3.5, ensure to remove
- // the `rootUID` property here.
- return { rootUID: rootClientId, rootClientId, layout, index };
+ return { rootClientId, layout, index };
}
/**
@@ -1884,126 +1882,6 @@ export function canUserUseUnfilteredHTML( state ) {
return has( getCurrentPost( state ), [ '_links', 'wp:action-unfiltered_html' ] );
}
-export function getAdjacentBlockUid( state, startUID, modifier ) {
- deprecated( 'getAdjacentBlockUid', {
- alternative: 'getAdjacentBlockClientId',
- version: 'v3.5',
- plugin: 'Gutenberg',
- } );
-
- return getAdjacentBlockClientId( state, startUID, modifier );
-}
-
-export function getBlockRootUID( state, uid ) {
- deprecated( 'getBlockRootUID', {
- alternative: 'getBlockRootClientId',
- version: 'v3.5',
- plugin: 'Gutenberg',
- } );
-
- return getBlockRootClientId( state, uid );
-}
-
-export function getSelectedBlockUID( state ) {
- deprecated( 'getSelectedBlockUID', {
- alternative: 'getSelectedBlockClientId',
- version: 'v3.5',
- plugin: 'Gutenberg',
- } );
-
- return getSelectedBlockClientId( state );
-}
-
-export function getBlocksByUID( state, uids ) {
- deprecated( 'getBlocksByUID', {
- alternative: 'getBlocksByClientId',
- version: 'v3.5',
- plugin: 'Gutenberg',
- } );
-
- return getBlocksByClientId( state, uids );
-}
-
-export function getPreviousBlockUid( state, startUID ) {
- deprecated( 'getPreviousBlockUid', {
- alternative: 'getPreviousBlockClientId',
- version: 'v3.5',
- plugin: 'Gutenberg',
- } );
-
- return getPreviousBlockClientId( state, startUID );
-}
-
-export function getNextBlockUid( state, startUID ) {
- deprecated( 'getNextBlockUid', {
- alternative: 'getNextBlockClientId',
- version: 'v3.5',
- plugin: 'Gutenberg',
- } );
-
- return getNextBlockClientId( state, startUID );
-}
-
-export function getMultiSelectedBlockUids( state ) {
- deprecated( 'getMultiSelectedBlockUids', {
- alternative: 'getMultiSelectedBlockClientIds',
- version: 'v3.5',
- plugin: 'Gutenberg',
- } );
-
- return getMultiSelectedBlockClientIds( state );
-}
-
-export function getFirstMultiSelectedBlockUid( state ) {
- deprecated( 'getFirstMultiSelectedBlockUid', {
- alternative: 'getFirstMultiSelectedBlockClientId',
- version: 'v3.5',
- plugin: 'Gutenberg',
- } );
-
- return getFirstMultiSelectedBlockClientId( state );
-}
-
-export function getLastMultiSelectedBlockUid( state ) {
- deprecated( 'getLastMultiSelectedBlockUid', {
- alternative: 'getLastMultiSelectedBlockClientId',
- version: 'v3.5',
- plugin: 'Gutenberg',
- } );
-
- return getLastMultiSelectedBlockClientId( state );
-}
-
-export function getMultiSelectedBlocksStartUid( state ) {
- deprecated( 'getMultiSelectedBlocksStartUid', {
- alternative: 'getMultiSelectedBlocksStartClientId',
- version: 'v3.5',
- plugin: 'Gutenberg',
- } );
-
- return getMultiSelectedBlocksStartClientId( state );
-}
-
-export function getMultiSelectedBlocksEndUid( state ) {
- deprecated( 'getMultiSelectedBlocksEndUid', {
- alternative: 'getMultiSelectedBlocksEndClientId',
- version: 'v3.5',
- plugin: 'Gutenberg',
- } );
-
- return getMultiSelectedBlocksEndClientId( state );
-}
-
-export function getProvisionalBlockUID( state ) {
- deprecated( 'getProvisionalBlockUID', {
- alternative: 'getProvisionalBlockClientId',
- version: 'v3.5',
- plugin: 'Gutenberg',
- } );
-
- return getProvisionalBlockClientId( state );
-}
-
export function getSharedBlock( state, ref ) {
deprecated( 'getSharedBlock', {
alternative: 'getReusableBlock',
diff --git a/packages/editor/src/store/test/selectors.js b/packages/editor/src/store/test/selectors.js
index a1877d42fea62..33326dd179ba7 100644
--- a/packages/editor/src/store/test/selectors.js
+++ b/packages/editor/src/store/test/selectors.js
@@ -2553,8 +2553,6 @@ describe( 'selectors', () => {
expect( getBlockInsertionPoint( state ) ).toEqual( {
rootClientId: undefined,
- // TODO: To be removed in 3.5 "UID" deprecation.
- rootUID: undefined,
layout: undefined,
index: 1,
} );
@@ -2587,8 +2585,6 @@ describe( 'selectors', () => {
expect( getBlockInsertionPoint( state ) ).toEqual( {
rootClientId: 'clientId1',
- // TODO: To be removed in 3.5 "UID" deprecation.
- rootUID: 'clientId1',
layout: undefined,
index: 1,
} );
@@ -2619,8 +2615,6 @@ describe( 'selectors', () => {
expect( getBlockInsertionPoint( state ) ).toEqual( {
rootClientId: undefined,
- // TODO: To be removed in 3.5 "UID" deprecation.
- rootUID: undefined,
layout: 'wide',
index: 1,
} );
@@ -2653,8 +2647,6 @@ describe( 'selectors', () => {
expect( getBlockInsertionPoint( state ) ).toEqual( {
rootClientId: undefined,
- // TODO: To be removed in 3.5 "UID" deprecation.
- rootUID: undefined,
layout: undefined,
index: 2,
} );
@@ -2687,8 +2679,6 @@ describe( 'selectors', () => {
expect( getBlockInsertionPoint( state ) ).toEqual( {
rootClientId: undefined,
- // TODO: To be removed in 3.5 "UID" deprecation.
- rootUID: undefined,
layout: undefined,
index: 2,
} );
diff --git a/packages/editor/src/style.scss b/packages/editor/src/style.scss
index 840ded74e26f6..1bcd95071a738 100644
--- a/packages/editor/src/style.scss
+++ b/packages/editor/src/style.scss
@@ -1,44 +1,44 @@
-@import './components/autocompleters/style.scss';
-@import './components/block-drop-zone/style.scss';
-@import './components/block-icon/style.scss';
-@import './components/block-inspector/style.scss';
-@import './components/block-list/style.scss';
-@import './components/block-mover/style.scss';
-@import './components/block-preview/style.scss';
-@import './components/block-settings-menu/style.scss';
-@import './components/block-styles/style.scss';
-@import './components/block-switcher/style.scss';
-@import './components/block-toolbar/style.scss';
-@import './components/block-types-list/style.scss';
-@import './components/color-palette/control.scss';
-@import './components/contrast-checker/style.scss';
-@import './components/default-block-appender/style.scss';
-@import './components/document-outline/style.scss';
-@import './components/inner-blocks/style.scss';
-@import './components/inserter-with-shortcuts/style.scss';
-@import './components/inserter/style.scss';
-@import './components/media-placeholder/style.scss';
-@import './components/page-attributes/style.scss';
-@import './components/panel-color-settings/style.scss';
-@import './components/plain-text/style.scss';
-@import './components/post-excerpt/style.scss';
-@import './components/post-featured-image/style.scss';
-@import './components/post-format/style.scss';
-@import './components/post-last-revision/style.scss';
-@import './components/post-permalink/style.scss';
-@import './components/post-publish-panel/style.scss';
-@import './components/post-saved-state/style.scss';
-@import './components/post-taxonomies/style.scss';
-@import './components/post-text-editor/style.scss';
-@import './components/post-title/style.scss';
-@import './components/post-trash/style.scss';
-@import './components/rich-text/core-tokens/image/style.scss';
-@import './components/rich-text/format-toolbar/style.scss';
-@import './components/rich-text/style.scss';
-@import './components/rich-text/tokens/ui/style.scss';
-@import './components/skip-to-selected-block/style.scss';
-@import './components/table-of-contents/style.scss';
-@import './components/template-validation-notice/style.scss';
-@import './components/url-input/style.scss';
-@import './components/warning/style.scss';
-@import './components/writing-flow/style.scss';
+@import "./components/autocompleters/style.scss";
+@import "./components/block-drop-zone/style.scss";
+@import "./components/block-icon/style.scss";
+@import "./components/block-inspector/style.scss";
+@import "./components/block-list/style.scss";
+@import "./components/block-mover/style.scss";
+@import "./components/block-preview/style.scss";
+@import "./components/block-settings-menu/style.scss";
+@import "./components/block-styles/style.scss";
+@import "./components/block-switcher/style.scss";
+@import "./components/block-toolbar/style.scss";
+@import "./components/block-types-list/style.scss";
+@import "./components/color-palette/control.scss";
+@import "./components/contrast-checker/style.scss";
+@import "./components/default-block-appender/style.scss";
+@import "./components/document-outline/style.scss";
+@import "./components/inner-blocks/style.scss";
+@import "./components/inserter-with-shortcuts/style.scss";
+@import "./components/inserter/style.scss";
+@import "./components/media-placeholder/style.scss";
+@import "./components/page-attributes/style.scss";
+@import "./components/panel-color-settings/style.scss";
+@import "./components/plain-text/style.scss";
+@import "./components/post-excerpt/style.scss";
+@import "./components/post-featured-image/style.scss";
+@import "./components/post-format/style.scss";
+@import "./components/post-last-revision/style.scss";
+@import "./components/post-permalink/style.scss";
+@import "./components/post-publish-panel/style.scss";
+@import "./components/post-saved-state/style.scss";
+@import "./components/post-taxonomies/style.scss";
+@import "./components/post-text-editor/style.scss";
+@import "./components/post-title/style.scss";
+@import "./components/post-trash/style.scss";
+@import "./components/rich-text/core-tokens/image/style.scss";
+@import "./components/rich-text/format-toolbar/style.scss";
+@import "./components/rich-text/style.scss";
+@import "./components/rich-text/tokens/ui/style.scss";
+@import "./components/skip-to-selected-block/style.scss";
+@import "./components/table-of-contents/style.scss";
+@import "./components/template-validation-notice/style.scss";
+@import "./components/url-input/style.scss";
+@import "./components/warning/style.scss";
+@import "./components/writing-flow/style.scss";
diff --git a/packages/element/package.json b/packages/element/package.json
index df99d095859e4..7a7a29a3fb28d 100644
--- a/packages/element/package.json
+++ b/packages/element/package.json
@@ -21,9 +21,7 @@
"module": "build-module/index.js",
"react-native": "src/index",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52",
- "@wordpress/deprecated": "file:../deprecated",
- "@wordpress/is-shallow-equal": "file:../is-shallow-equal",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"lodash": "^4.17.10",
"react": "^16.4.1",
"react-dom": "^16.4.1"
diff --git a/packages/element/src/deprecated.js b/packages/element/src/deprecated.js
deleted file mode 100644
index 835d930955605..0000000000000
--- a/packages/element/src/deprecated.js
+++ /dev/null
@@ -1,60 +0,0 @@
-/**
- * External dependencies
- */
-import { flowRight, upperFirst, camelCase } from 'lodash';
-import { Component } from 'react';
-
-/**
- * WordPress dependencies
- */
-import deprecated from '@wordpress/deprecated';
-import isShallowEqual from '@wordpress/is-shallow-equal';
-
-export function createHigherOrderComponent( mapComponentToEnhancedComponent, modifierName ) {
- deprecated( 'wp.element.createHigherOrderComponent', {
- version: '3.5',
- alternative: 'wp.compose.createHigherOrderComponent',
- } );
-
- return ( OriginalComponent ) => {
- const EnhancedComponent = mapComponentToEnhancedComponent( OriginalComponent );
- const { displayName = OriginalComponent.name || 'Component' } = OriginalComponent;
- EnhancedComponent.displayName = `${ upperFirst( camelCase( modifierName ) ) }(${ displayName })`;
-
- return EnhancedComponent;
- };
-}
-
-export const compose = ( ...args ) => {
- deprecated( 'wp.element.compose', {
- version: '3.5',
- alternative: 'wp.compose.compose',
- } );
-
- return flowRight( ...args );
-};
-
-export const pure = ( Wrapped ) => {
- deprecated( 'wp.element.pure', {
- version: '3.5',
- alternative: 'wp.compose.pure',
- } );
-
- if ( Wrapped.prototype instanceof Component ) {
- return class extends Wrapped {
- shouldComponentUpdate( nextProps, nextState ) {
- return ! isShallowEqual( nextProps, this.props ) || ! isShallowEqual( nextState, this.state );
- }
- };
- }
-
- return class extends Component {
- shouldComponentUpdate( nextProps ) {
- return ! isShallowEqual( nextProps, this.props );
- }
-
- render() {
- return ;
- }
- };
-};
diff --git a/packages/element/src/index.js b/packages/element/src/index.js
index 866809c94ad1e..b8369876e0215 100644
--- a/packages/element/src/index.js
+++ b/packages/element/src/index.js
@@ -2,6 +2,3 @@ export * from './react';
export * from './react-platform';
export { default as renderToString } from './serialize';
export { default as RawHTML } from './raw-html';
-
-// deprecated
-export * from './deprecated';
diff --git a/packages/hooks/package.json b/packages/hooks/package.json
index 99e6f9fd7140a..9f9b81efb940b 100644
--- a/packages/hooks/package.json
+++ b/packages/hooks/package.json
@@ -19,7 +19,7 @@
"main": "build/index.js",
"module": "build-module/index.js",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52"
+ "@babel/runtime-corejs2": "7.0.0-beta.56"
},
"devDependencies": {
"benchmark": "^2.1.4"
diff --git a/packages/html-entities/package.json b/packages/html-entities/package.json
index cdb3d9f8aba66..e439efe44dcde 100644
--- a/packages/html-entities/package.json
+++ b/packages/html-entities/package.json
@@ -20,7 +20,7 @@
"main": "build/index.js",
"module": "build-module/index.js",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52"
+ "@babel/runtime-corejs2": "7.0.0-beta.56"
},
"publishConfig": {
"access": "public"
diff --git a/packages/i18n/package.json b/packages/i18n/package.json
index acbc5f6c4f061..4dca28e71e5cd 100644
--- a/packages/i18n/package.json
+++ b/packages/i18n/package.json
@@ -22,7 +22,7 @@
"pot-to-php": "./tools/pot-to-php.js"
},
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"gettext-parser": "^1.3.1",
"jed": "^1.1.1",
"lodash": "^4.17.10",
diff --git a/packages/is-shallow-equal/package.json b/packages/is-shallow-equal/package.json
index 8fb6866e446c1..2e40a81102671 100644
--- a/packages/is-shallow-equal/package.json
+++ b/packages/is-shallow-equal/package.json
@@ -24,7 +24,7 @@
],
"main": "index.js",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52"
+ "@babel/runtime-corejs2": "7.0.0-beta.56"
},
"devDependencies": {
"benchmark": "^2.1.4",
diff --git a/packages/jest-console/package.json b/packages/jest-console/package.json
index 251cc8b8e04a3..cc21d8da88514 100644
--- a/packages/jest-console/package.json
+++ b/packages/jest-console/package.json
@@ -25,7 +25,7 @@
"main": "build/index.js",
"module": "build-module/index.js",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"jest-matcher-utils": "^22.4.3",
"lodash": "^4.17.10"
},
diff --git a/packages/jest-preset-default/package.json b/packages/jest-preset-default/package.json
index b9a3b705a8fc1..c58d0c4fa7d15 100644
--- a/packages/jest-preset-default/package.json
+++ b/packages/jest-preset-default/package.json
@@ -27,7 +27,7 @@
"main": "index.js",
"dependencies": {
"@wordpress/jest-console": "file:../jest-console",
- "babel-jest": "^23.2.0",
+ "babel-jest": "^23.4.2",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"jest-enzyme": "^6.0.2"
diff --git a/packages/keycodes/package.json b/packages/keycodes/package.json
index 99f76708f932e..74d55180019e4 100644
--- a/packages/keycodes/package.json
+++ b/packages/keycodes/package.json
@@ -19,7 +19,7 @@
"main": "build/index.js",
"module": "build-module/index.js",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"lodash": "^4.17.10"
},
"publishConfig": {
diff --git a/packages/library-export-default-webpack-plugin/package.json b/packages/library-export-default-webpack-plugin/package.json
index 605f3ac282fb2..4538fbf8834af 100644
--- a/packages/library-export-default-webpack-plugin/package.json
+++ b/packages/library-export-default-webpack-plugin/package.json
@@ -23,7 +23,7 @@
],
"main": "build/index.js",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"lodash": "^4.17.10",
"webpack-sources": "^1.1.0"
},
diff --git a/packages/nux/package.json b/packages/nux/package.json
index d58ffc30e830f..356431d948744 100644
--- a/packages/nux/package.json
+++ b/packages/nux/package.json
@@ -19,7 +19,7 @@
"main": "build/index.js",
"module": "build-module/index.js",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"@wordpress/components": "file:../components",
"@wordpress/compose": "file:../compose",
"@wordpress/data": "file:../data",
diff --git a/packages/nux/src/components/dot-tip/style.scss b/packages/nux/src/components/dot-tip/style.scss
index 95fa90e0d2c34..4d461e0978dab 100644
--- a/packages/nux/src/components/dot-tip/style.scss
+++ b/packages/nux/src/components/dot-tip/style.scss
@@ -3,24 +3,24 @@ $dot-scale: 3; // How much the pulse animation should scale up by in size
.nux-dot-tip {
&::before,
- &:after {
+ &::after {
border-radius: 100%;
- content: ' ';
+ content: " ";
pointer-events: none;
position: absolute;
}
&::before {
- animation: nux-pulse 1.6s infinite cubic-bezier( 0.17, 0.67, 0.92, 0.62 );
- background: rgba( $blue-medium-800, 0.9 );
+ animation: nux-pulse 1.6s infinite cubic-bezier(0.17, 0.67, 0.92, 0.62);
+ background: rgba($blue-medium-800, 0.9);
height: $dot-size * $dot-scale;
- left: -( $dot-size * $dot-scale ) / 2;
- top: -( $dot-size * $dot-scale ) / 2;
- transform: scale( ( 1 / $dot-scale ) );
- width: $dot-size * $dot-scale
+ left: -($dot-size * $dot-scale) / 2;
+ top: -($dot-size * $dot-scale) / 2;
+ transform: scale((1 / $dot-scale));
+ width: $dot-size * $dot-scale;
}
-
- &:after {
+
+ &::after {
background: $blue-medium-800;
height: $dot-size;
left: -$dot-size / 2;
@@ -30,13 +30,13 @@ $dot-scale: 3; // How much the pulse animation should scale up by in size
@keyframes nux-pulse {
100% {
- background: rgba( $blue-medium-800, 0 );
- transform: scale( 1 );
+ background: rgba($blue-medium-800, 0);
+ transform: scale(1);
}
}
.components-popover__content {
- padding: 5px ( 36px + 5px ) 5px 20px;
+ padding: 5px (36px + 5px) 5px 20px;
width: 350px;
@include break-small {
@@ -73,15 +73,15 @@ $dot-scale: 3; // How much the pulse animation should scale up by in size
}
// Extra specificity so that we can override the styles in .component-popover
- &:not( .is-mobile ).is-left,
- &:not( .is-mobile ).is-center,
- &:not( .is-mobile ).is-right {
+ &:not(.is-mobile).is-left,
+ &:not(.is-mobile).is-center,
+ &:not(.is-mobile).is-right {
// Position tips above popovers
- z-index: z-index( '.nux-dot-tip' );
+ z-index: z-index(".nux-dot-tip");
// On mobile, always position the tip below the dot and fill the width of the viewport
- @media ( max-width: $break-small ) {
+ @media (max-width: $break-small) {
.components-popover__content {
align-self: end;
left: 5px;
diff --git a/packages/nux/src/style.scss b/packages/nux/src/style.scss
index 51dfda92ad72c..0df73ff851e9f 100644
--- a/packages/nux/src/style.scss
+++ b/packages/nux/src/style.scss
@@ -1 +1 @@
-@import './components/dot-tip/style.scss';
+@import "./components/dot-tip/style.scss";
diff --git a/packages/plugins/package.json b/packages/plugins/package.json
index 7d14a366d8366..e6f39269cd58a 100644
--- a/packages/plugins/package.json
+++ b/packages/plugins/package.json
@@ -19,7 +19,7 @@
"main": "build/index.js",
"module": "build-module/index.js",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"@wordpress/compose": "file:../compose",
"@wordpress/element": "file:../element",
"@wordpress/hooks": "file:../hooks",
diff --git a/packages/postcss-themes/package.json b/packages/postcss-themes/package.json
index 32de00a9c6d1f..261d10fe07297 100644
--- a/packages/postcss-themes/package.json
+++ b/packages/postcss-themes/package.json
@@ -26,7 +26,7 @@
],
"main": "build/index.js",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"postcss": "^6.0.16"
},
"publishConfig": {
diff --git a/packages/redux-routine/package.json b/packages/redux-routine/package.json
index 9671643aa325f..b56021a99b2be 100644
--- a/packages/redux-routine/package.json
+++ b/packages/redux-routine/package.json
@@ -1,6 +1,6 @@
{
"name": "@wordpress/redux-routine",
- "version": "1.0.0",
+ "version": "1.0.0-beta.0",
"description": "Redux middleware for generator coroutines.",
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
@@ -20,7 +20,9 @@
},
"main": "build/index.js",
"module": "build-module/index.js",
- "dependencies": {},
+ "dependencies": {
+ "@babel/runtime-corejs2": "7.0.0-beta.56"
+ },
"devDependencies": {
"redux": "^4.0.0"
},
diff --git a/packages/shortcode/package.json b/packages/shortcode/package.json
index be18761c28df0..96955e94bc5c3 100644
--- a/packages/shortcode/package.json
+++ b/packages/shortcode/package.json
@@ -19,7 +19,7 @@
"main": "build/index.js",
"module": "build-module/index.js",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"lodash": "^4.17.10"
},
"publishConfig": {
diff --git a/packages/url/package.json b/packages/url/package.json
index 274ab257a489d..30a703887ff1e 100644
--- a/packages/url/package.json
+++ b/packages/url/package.json
@@ -19,7 +19,7 @@
"main": "build/index.js",
"module": "build-module/index.js",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"qs": "^6.5.2s"
},
"publishConfig": {
diff --git a/packages/viewport/package.json b/packages/viewport/package.json
index 8070590ec2892..fac413e33542a 100644
--- a/packages/viewport/package.json
+++ b/packages/viewport/package.json
@@ -19,7 +19,7 @@
"main": "build/index.js",
"module": "build-module/index.js",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"@wordpress/compose": "file:../compose",
"@wordpress/data": "file:../data",
"@wordpress/element": "file:../element",
diff --git a/packages/wordcount/package.json b/packages/wordcount/package.json
index 9d4cb24de0212..ed02f650b9006 100644
--- a/packages/wordcount/package.json
+++ b/packages/wordcount/package.json
@@ -19,7 +19,7 @@
"main": "build/index.js",
"module": "build-module/index.js",
"dependencies": {
- "@babel/runtime": "^7.0.0-beta.52",
+ "@babel/runtime-corejs2": "7.0.0-beta.56",
"lodash": "^4.17.10"
},
"publishConfig": {
diff --git a/phpunit/class-admin-test.php b/phpunit/class-admin-test.php
index 06fb99a0eff79..b344c7a3919d9 100644
--- a/phpunit/class-admin-test.php
+++ b/phpunit/class-admin-test.php
@@ -89,6 +89,14 @@ function test_gutenberg_can_edit_post() {
) );
update_option( 'page_for_posts', $blog_page_with_content );
$this->assertTrue( gutenberg_can_edit_post( $blog_page_with_content ) );
+
+ add_filter( 'gutenberg_can_edit_post', '__return_false' );
+ $this->assertFalse( gutenberg_can_edit_post( $generic_post_id ) );
+ remove_filter( 'gutenberg_can_edit_post', '__return_false' );
+
+ add_filter( 'gutenberg_can_edit_post', '__return_true' );
+ $this->assertTrue( gutenberg_can_edit_post( $restless_post_id ) );
+ remove_filter( 'gutenberg_can_edit_post', '__return_true' );
}
/**
diff --git a/phpunit/class-gutenberg-rest-api-test.php b/phpunit/class-gutenberg-rest-api-test.php
index 9b65d34d4f948..43dcca0d09a9d 100644
--- a/phpunit/class-gutenberg-rest-api-test.php
+++ b/phpunit/class-gutenberg-rest-api-test.php
@@ -41,58 +41,30 @@ function tearDown() {
* Should return an extra visibility field on response when in edit context.
*/
function test_visibility_field() {
- wp_set_current_user( $this->administrator );
-
$request = new WP_REST_Request( 'GET', '/wp/v2/taxonomies/category' );
$request->set_param( 'context', 'edit' );
- $response = rest_do_request( $request );
-
- $result = $response->get_data();
-
- $this->assertTrue( isset( $result['visibility'] ) );
- $this->assertInternalType( 'array', $result['visibility'] );
- $this->assertArrayHasKey( 'public', $result['visibility'] );
- $this->assertArrayHasKey( 'publicly_queryable', $result['visibility'] );
- $this->assertArrayHasKey( 'show_ui', $result['visibility'] );
- $this->assertArrayHasKey( 'show_admin_column', $result['visibility'] );
- $this->assertArrayHasKey( 'show_in_nav_menus', $result['visibility'] );
- $this->assertArrayHasKey( 'show_in_quick_edit', $result['visibility'] );
- }
-
- /**
- * Should return an extra visibility field on response.
- */
- function test_visibility_field_for_non_admin_roles() {
- wp_set_current_user( $this->editor );
- $request = new WP_REST_Request( 'GET', '/wp/v2/taxonomies/category' );
- $request->set_param( 'context', 'edit' );
- $response = rest_do_request( $request );
-
- $result = $response->get_data();
-
- $this->assertTrue( isset( $result['visibility'] ) );
- $this->assertInternalType( 'array', $result['visibility'] );
- $this->assertArrayHasKey( 'public', $result['visibility'] );
- $this->assertArrayHasKey( 'publicly_queryable', $result['visibility'] );
- $this->assertArrayHasKey( 'show_ui', $result['visibility'] );
- $this->assertArrayHasKey( 'show_admin_column', $result['visibility'] );
- $this->assertArrayHasKey( 'show_in_nav_menus', $result['visibility'] );
- $this->assertArrayHasKey( 'show_in_quick_edit', $result['visibility'] );
-
- /**
- * See https://github.com/WordPress/gutenberg/issues/2545
- *
- * Until that is resolved authors will not be able to set taxonomies.
- * This should definitely be resolved though.
- */
- wp_set_current_user( $this->author );
+ $permitted_users = array(
+ $this->administrator,
+ $this->editor,
+ $this->author,
+ );
- $response = rest_do_request( $request );
+ foreach ( $permitted_users as $user ) {
+ wp_set_current_user( $user );
- $result = $response->get_data();
+ $response = rest_do_request( $request );
+ $result = $response->get_data();
- $this->assertFalse( isset( $result['visibility'] ) );
+ $this->assertTrue( isset( $result['visibility'] ) );
+ $this->assertInternalType( 'array', $result['visibility'] );
+ $this->assertArrayHasKey( 'public', $result['visibility'] );
+ $this->assertArrayHasKey( 'publicly_queryable', $result['visibility'] );
+ $this->assertArrayHasKey( 'show_ui', $result['visibility'] );
+ $this->assertArrayHasKey( 'show_admin_column', $result['visibility'] );
+ $this->assertArrayHasKey( 'show_in_nav_menus', $result['visibility'] );
+ $this->assertArrayHasKey( 'show_in_quick_edit', $result['visibility'] );
+ }
}
/**
diff --git a/test/e2e/specs/__snapshots__/splitting-merging.test.js.snap b/test/e2e/specs/__snapshots__/splitting-merging.test.js.snap
index 3a3351fc00b8d..10f51e1be04b7 100644
--- a/test/e2e/specs/__snapshots__/splitting-merging.test.js.snap
+++ b/test/e2e/specs/__snapshots__/splitting-merging.test.js.snap
@@ -6,6 +6,16 @@ exports[`splitting and merging blocks should delete an empty first line 1`] = `
"
`;
+exports[`splitting and merging blocks should gracefully handle if placing caret in empty container 1`] = `
+"
+Foo
+
+
+
+
+"
+`;
+
exports[`splitting and merging blocks should merge into inline boundary position 1`] = `
"
Bar
diff --git a/test/e2e/specs/block-mover.test.js b/test/e2e/specs/block-mover.test.js
new file mode 100644
index 0000000000000..5d1b77707c244
--- /dev/null
+++ b/test/e2e/specs/block-mover.test.js
@@ -0,0 +1,40 @@
+/**
+ * Internal dependencies
+ */
+import '../support/bootstrap';
+import { newPost, newDesktopBrowserPage } from '../support/utils';
+
+describe( 'block mover', () => {
+ beforeEach( async () => {
+ await newDesktopBrowserPage();
+ await newPost();
+ } );
+
+ it( 'should show block mover when more than one block exists', async () => {
+ // Create a two blocks on the page.
+ await page.click( '.editor-default-block-appender' );
+ await page.keyboard.type( 'First Paragraph' );
+ await page.keyboard.press( 'Enter' );
+ await page.keyboard.type( 'Second Paragraph' );
+
+ // Select a block so the block mover is rendered.
+ await page.focus( '.editor-block-list__block' );
+
+ const blockMover = await page.$$( '.editor-block-mover' );
+ // There should be a block mover.
+ expect( blockMover ).toHaveLength( 1 );
+ } );
+
+ it( 'should hide block mover when only one block exists', async () => {
+ // Create a single block on the page.
+ await page.click( '.editor-default-block-appender' );
+ await page.keyboard.type( 'First Paragraph' );
+
+ // Select a block so the block mover has the possibility of being rendered.
+ await page.focus( '.editor-block-list__block' );
+
+ // Ensure no block mover exists when only one block exists on the page.
+ const blockMover = await page.$$( '.editor-block-mover' );
+ expect( blockMover ).toHaveLength( 0 );
+ } );
+} );
diff --git a/test/e2e/specs/reusable-blocks.test.js b/test/e2e/specs/reusable-blocks.test.js
index 64de7156542b0..412591396880b 100644
--- a/test/e2e/specs/reusable-blocks.test.js
+++ b/test/e2e/specs/reusable-blocks.test.js
@@ -29,8 +29,8 @@ describe( 'Reusable Blocks', () => {
// Remove all blocks from the post so that we're working with a clean slate
await page.evaluate( () => {
const blocks = wp.data.select( 'core/editor' ).getBlocks();
- const uids = blocks.map( ( block ) => block.uid );
- wp.data.dispatch( 'core/editor' ).removeBlocks( uids );
+ const clientIds = blocks.map( ( block ) => block.clientId );
+ wp.data.dispatch( 'core/editor' ).removeBlocks( clientIds );
} );
} );
diff --git a/test/e2e/specs/splitting-merging.test.js b/test/e2e/specs/splitting-merging.test.js
index 5611dfc86ea11..7a65e53e8c011 100644
--- a/test/e2e/specs/splitting-merging.test.js
+++ b/test/e2e/specs/splitting-merging.test.js
@@ -101,4 +101,27 @@ describe( 'splitting and merging blocks', () => {
expect( await getEditedPostContent() ).toMatchSnapshot();
} );
+
+ it( 'should gracefully handle if placing caret in empty container', async () => {
+ // Regression Test: placeCaretAtHorizontalEdge previously did not
+ // account for contentEditables which have no children.
+ //
+ // See: https://github.com/WordPress/gutenberg/issues/8676
+ await insertBlock( 'Paragraph' );
+ await page.keyboard.type( 'Foo' );
+
+ // The regression appeared to only affect paragraphs created while
+ // within an inline boundary.
+ await page.keyboard.down( 'Shift' );
+ await pressTimes( 'ArrowLeft', 3 );
+ await page.keyboard.up( 'Shift' );
+ await pressWithModifier( 'mod', 'b' );
+ await page.keyboard.press( 'ArrowRight' );
+ await page.keyboard.press( 'Enter' );
+ await page.keyboard.press( 'Enter' );
+
+ await page.keyboard.press( 'Backspace' );
+
+ expect( await getEditedPostContent() ).toMatchSnapshot();
+ } );
} );
diff --git a/test/integration/shortcode-converter.spec.js b/test/integration/shortcode-converter.spec.js
index 87ad1c9929251..285cb0d8e4a01 100644
--- a/test/integration/shortcode-converter.spec.js
+++ b/test/integration/shortcode-converter.spec.js
@@ -30,8 +30,6 @@ describe( 'segmentHTMLToShortcodeBlock', () => {
} );
// clientId will always be random.
expectedBlock.clientId = transformed[ 1 ].clientId;
- // TODO: Remove in 3.5 "UID" deprecation.
- expectedBlock.uid = expectedBlock.clientId;
expect( transformed[ 1 ] ).toEqual( expectedBlock );
expect( transformed[ 2 ] ).toBe( `
@@ -49,8 +47,6 @@ describe( 'segmentHTMLToShortcodeBlock', () => {
} );
// clientId will always be random.
firstExpectedBlock.clientId = transformed[ 1 ].clientId;
- // TODO: Remove in 3.5 "UID" deprecation.
- firstExpectedBlock.uid = firstExpectedBlock.clientId;
expect( transformed[ 1 ] ).toEqual( firstExpectedBlock );
expect( transformed[ 2 ] ).toEqual( `
` );
@@ -59,8 +55,6 @@ describe( 'segmentHTMLToShortcodeBlock', () => {
} );
// clientId will always be random.
secondExpectedBlock.clientId = transformed[ 3 ].clientId;
- // TODO: Remove in 3.5 "UID" deprecation.
- secondExpectedBlock.uid = secondExpectedBlock.clientId;
expect( transformed[ 3 ] ).toEqual( secondExpectedBlock );
expect( transformed[ 4 ] ).toEqual( '
' );
expect( transformed ).toHaveLength( 5 );
@@ -79,8 +73,6 @@ describe( 'segmentHTMLToShortcodeBlock', () => {
} );
// clientId will always be random.
firstExpectedBlock.clientId = transformed[ 1 ].clientId;
- // TODO: Remove in 3.5 "UID" deprecation.
- firstExpectedBlock.uid = firstExpectedBlock.clientId;
expect( transformed[ 1 ] ).toEqual( firstExpectedBlock );
expect( transformed[ 2 ] ).toEqual( `
` );
@@ -89,8 +81,6 @@ describe( 'segmentHTMLToShortcodeBlock', () => {
} );
// clientId will always be random.
secondExpectedBlock.clientId = transformed[ 3 ].clientId;
- // TODO: Remove in 3.5 "UID" deprecation.
- secondExpectedBlock.uid = secondExpectedBlock.clientId;
expect( transformed[ 3 ] ).toEqual( secondExpectedBlock );
expect( transformed[ 4 ] ).toEqual( `
` );
@@ -99,8 +89,6 @@ describe( 'segmentHTMLToShortcodeBlock', () => {
} );
// clientId will always be random.
thirdExpectedBlock.clientId = transformed[ 5 ].clientId;
- // TODO: Remove in 3.5 "UID" deprecation.
- thirdExpectedBlock.uid = thirdExpectedBlock.clientId;
expect( transformed[ 5 ] ).toEqual( thirdExpectedBlock );
expect( transformed[ 6 ] ).toEqual( `
` );
@@ -109,8 +97,6 @@ describe( 'segmentHTMLToShortcodeBlock', () => {
} );
// clientId will always be random.
fourthExpectedBlock.clientId = transformed[ 7 ].clientId;
- // TODO: Remove in 3.5 "UID" deprecation.
- fourthExpectedBlock.uid = fourthExpectedBlock.clientId;
expect( transformed[ 7 ] ).toEqual( fourthExpectedBlock );
expect( transformed[ 8 ] ).toEqual( '
' );
expect( transformed ).toHaveLength( 9 );
diff --git a/utils/deprecated.js b/utils/deprecated.js
deleted file mode 100644
index 639fe9e65873a..0000000000000
--- a/utils/deprecated.js
+++ /dev/null
@@ -1,48 +0,0 @@
-/**
- * External dependencies
- */
-import { groupBy } from 'lodash';
-
-/**
- * WordPress dependencies
- */
-import { decodeEntities as decodeEntitiesSource } from '@wordpress/html-entities';
-import deprecated from '@wordpress/deprecated';
-
-/**
- * Returns terms in a tree form.
- *
- * @param {Array} flatTerms Array of terms in flat format.
- *
- * @return {Array} Array of terms in tree format.
- */
-export function buildTermsTree( flatTerms ) {
- deprecated( 'wp.utils.buildTermsTree', {
- version: '3.5',
- plugin: 'Gutenberg',
- } );
- const termsByParent = groupBy( flatTerms, 'parent' );
- const fillWithChildren = ( terms ) => {
- return terms.map( ( term ) => {
- const children = termsByParent[ term.id ];
- return {
- ...term,
- children: children && children.length ?
- fillWithChildren( children ) :
- [],
- };
- } );
- };
-
- return fillWithChildren( termsByParent[ '0' ] || [] );
-}
-
-// entities
-export function decodeEntities( html ) {
- deprecated( 'wp.utils.decodeEntities', {
- version: '3.5',
- alternative: 'wp.htmlEntities.decodeEntities',
- plugin: 'Gutenberg',
- } );
- return decodeEntitiesSource( html );
-}
diff --git a/utils/index.js b/utils/index.js
index d206dc2362eea..027b1e0484a3e 100644
--- a/utils/index.js
+++ b/utils/index.js
@@ -1,3 +1,2 @@
// Deprecations
-export * from './deprecated';
export * from './mediaupload';