Skip to content

Commit

Permalink
Feature/gutenberg deprecation fix (#52)
Browse files Browse the repository at this point in the history
* updates package-lock

* reimports deprecated functions previous imported from wp.blocks — now wp.editor

* removes unavailable description component

* fixes issues with focus prop

* resolves issues with RichText deprecation error

Raw TinyMCE event handlers for RichText is deprecated and will be removed from gutenberg in 3.0. Please use Documented props, ancestor event handler, or onSetup access to the internal editor instance event hub instead.

* resolves issue that prevents related posts block from searching posts

* resolves issues with recent post block focus

* builds

* increase max width of .components-base-control class for sidebar select dropdowns

* resolves issue with focus and button to remove video or image

* builds

* version bump

* adds block-helpers for template tags

* adds new block_get_excerpt function from template tags

* builds

* removes all urls from block excerpt function
  • Loading branch information
jomurgel authored and gregrickaby committed Jun 1, 2018
1 parent f8d84e7 commit ebc9b4d
Show file tree
Hide file tree
Showing 26 changed files with 7,002 additions and 2,528 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WDS Blocks v1.0.3
# WDS Blocks v1.0.4

WebDevStudios library of Gutenberg blocks.

Expand All @@ -17,8 +17,8 @@ WebDevStudios library of Gutenberg blocks.
WDS Blocks also come with a robust set of options: background image, video, and color support. Plus, text color, custom CSS classes, and [Animate.css](https://daneden.github.io/animate.css/) support. These blocks have been tested with our starter theme, [wd_s](https://github.com/WebDevStudios/wd_s).

## Tested Up To
- [WordPress](https://wordpress.org/) v4.9.5
- [Gutenberg](https://wordpress.org/plugins/gutenberg/) v2.7
- [WordPress](https://wordpress.org/) v4.9.6
- [Gutenberg](https://wordpress.org/plugins/gutenberg/) v2.9.2

## Usage

Expand Down
3,905 changes: 3,904 additions & 1 deletion dist/blocks.build.js

Large diffs are not rendered by default.

39 changes: 39 additions & 0 deletions dist/blocks.editor.build.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
right: 50%;
width: 100vw; }

.components-base-control {
width: 100%; }

.wds-block-title {
background-color: transparent; }

Expand Down Expand Up @@ -77,6 +80,9 @@
right: 50%;
width: 100vw; }

.components-base-control {
width: 100%; }

.wds-background-options .blocks-base-control {
width: 100%; }

Expand Down Expand Up @@ -119,6 +125,9 @@
position: relative;
right: 50%;
width: 100vw; }

.components-base-control {
width: 100%; }
.wp-admin [data-type^="wds"] {
margin-bottom: 30px;
margin-top: 30px;
Expand Down Expand Up @@ -156,6 +165,9 @@
right: 50%;
width: 100vw; }

.components-base-control {
width: 100%; }

.wds-other-options .blocks-base-control {
width: 100%; }
.wp-admin [data-type^="wds"] {
Expand Down Expand Up @@ -195,6 +207,9 @@
right: 50%;
width: 100vw; }

.components-base-control {
width: 100%; }

.editor-block-list__layout .button.wds-button-component {
background-color: transparent;
border: none;
Expand Down Expand Up @@ -246,6 +261,9 @@
right: 50%;
width: 100vw; }

.components-base-control {
width: 100%; }

.gist-block-controls {
padding: 2px; }
.gist-block-controls input[type="url"] {
Expand Down Expand Up @@ -292,6 +310,9 @@
right: 50%;
width: 100vw; }

.components-base-control {
width: 100%; }

.edit-post-visual-editor .editor-block-list__block .wp-block-wds-hero {
min-height: 320px; }
.wp-admin [data-type^="wds"] {
Expand Down Expand Up @@ -330,6 +351,9 @@
position: relative;
right: 50%;
width: 100vw; }

.components-base-control {
width: 100%; }
.wp-admin [data-type^="wds"] {
margin-bottom: 30px;
margin-top: 30px;
Expand Down Expand Up @@ -367,6 +391,9 @@
right: 50%;
width: 100vw; }

.components-base-control {
width: 100%; }

.search-container-list {
border: 1px solid #dedede;
display: -ms-flexbox;
Expand Down Expand Up @@ -484,6 +511,9 @@
right: 50%;
width: 100vw; }

.components-base-control {
width: 100%; }

.wp-block-wds-two-column .content-block-container .components-button svg {
position: relative;
top: 5px; }
Expand Down Expand Up @@ -552,6 +582,9 @@ div[data-type='wds/two-column'] .editor-block-toolbar {
right: 50%;
width: 100vw; }

.components-base-control {
width: 100%; }

.wp-block-wds-recent-posts ul li {
list-style: none; }

Expand Down Expand Up @@ -606,6 +639,9 @@ div[data-type='wds/two-column'] .editor-block-toolbar {
right: 50%;
width: 100vw; }

.components-base-control {
width: 100%; }

.multiselect-wrapper {
border: 1px solid #dedede;
border-bottom: 0;
Expand Down Expand Up @@ -694,3 +730,6 @@ div[data-type='wds/two-column'] .editor-block-toolbar {
position: relative;
right: 50%;
width: 100vw; }

.components-base-control {
width: 100%; }
24 changes: 24 additions & 0 deletions dist/blocks.style.build.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
right: 50%;
width: 100vw; }

.components-base-control {
width: 100%; }

.wds-components-placeholder {
display: -ms-flexbox;
display: flex;
Expand Down Expand Up @@ -122,6 +125,9 @@
right: 50%;
width: 100vw; }

.components-base-control {
width: 100%; }

.wp-block-wds-gihub-gist {
margin-top: 16px; }
.wp-admin [data-type^="wds"] {
Expand Down Expand Up @@ -161,6 +167,9 @@
right: 50%;
width: 100vw; }

.components-base-control {
width: 100%; }

.wp-block-wds-hero {
background-repeat: no-repeat;
background-size: cover;
Expand Down Expand Up @@ -214,6 +223,9 @@
position: relative;
right: 50%;
width: 100vw; }

.components-base-control {
width: 100%; }
.wp-admin [data-type^="wds"] {
margin-bottom: 30px;
margin-top: 30px;
Expand Down Expand Up @@ -251,6 +263,9 @@
right: 50%;
width: 100vw; }

.components-base-control {
width: 100%; }

.wds-search-component-container .search-container-list > .search-selected-container {
padding: 0.625rem 0.625rem 0; }

Expand Down Expand Up @@ -317,6 +332,9 @@
right: 50%;
width: 100vw; }

.components-base-control {
width: 100%; }

/**
* #.# Styles
*
Expand Down Expand Up @@ -380,6 +398,9 @@
right: 50%;
width: 100vw; }

.components-base-control {
width: 100%; }

.wp-block-wds-recent-posts ul.alignleft {
margin-right: 2em; }

Expand Down Expand Up @@ -450,3 +471,6 @@
position: relative;
right: 50%;
width: 100vw; }

.components-base-control {
width: 100%; }
Loading

0 comments on commit ebc9b4d

Please sign in to comment.