Skip to content

Commit

Permalink
Merge pull request #216 from publishpress/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
htmgarcia authored Jan 11, 2021
2 parents c3e9192 + 026ed32 commit a39c27f
Show file tree
Hide file tree
Showing 31 changed files with 441 additions and 112 deletions.
22 changes: 19 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"build_react_dev": "webpack --mode development --watch",
"compile_css": "concurrently --kill-others \"node-sass --output-style compressed src/assets/css/blocks_styles/blocks.scss > src/assets/css/blocks_styles/blocks.min.css\" \"node-sass --output-style expanded src/assets/css/blocks_styles/blocks.scss > src/assets/css/blocks_styles/blocks.css\"",
"compile_css_style": "concurrently --kill-others \"node-sass --output-style expanded src/assets/scss/style.scss > src/assets/css/style.css\" \"node-sass --output-style compressed src/assets/scss/style.scss > src/assets/css/style.min.css\"",
"compile_css_columns": "node-sass --output-style compressed src/assets/scss/columns.scss > src/assets/css/columns.min.css",
"compile_css_main": "node-sass --output-style expanded src/assets/scss/main.scss > src/assets/css/main.css",
"compile_css_settings": "node-sass --output-style expanded src/assets/scss/settings.scss > src/assets/css/settings.css",
"compile_css_profiles": "node-sass --output-style expanded src/assets/scss/profiles.scss > src/assets/css/profiles.css"
Expand All @@ -25,6 +26,7 @@
"concurrently": "^5.3.0",
"counterup2": "^1.0.4",
"html-react-parser": "^0.10.5",
"ini": "^2.0.0",
"jquery": "^3.5.1",
"latinize": "^0.4.1",
"node-sass": "^4.14.1",
Expand All @@ -35,5 +37,6 @@
"waypoints": "^4.0.1",
"webpack": "^4.44.1",
"webpack-cli": "^3.3.12"
}
},
"dependencies": {}
}
4 changes: 2 additions & 2 deletions src/advanced-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: PublishPress Blocks
* Plugin URI: https://publishpress.com/blocks/
* Description: Enhanced tools for Gutenberg editor
* Version: 2.5.0
* Version: 2.5.1
* Tested up to: 5.6
* Author: PublishPress
* Author URI: https://publishpress.com/
Expand Down Expand Up @@ -76,7 +76,7 @@ function advgb_show_error()
}

if (! defined('ADVANCED_GUTENBERG_VERSION')) {
define('ADVANCED_GUTENBERG_VERSION', '2.5.0');
define('ADVANCED_GUTENBERG_VERSION', '2.5.1');
}

if (! defined('ADVANCED_GUTENBERG_PLUGIN')) {
Expand Down
3 changes: 3 additions & 0 deletions src/assets/blocks/advaccordion/accordion.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@
default: ''
}
},
supports: {
anchor: true,
},
edit: compose([
withDispatch( ( dispatch, { clientId }, { select } ) => {
const {
Expand Down
3 changes: 3 additions & 0 deletions src/assets/blocks/advbutton/block.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,9 @@ import {AdvColorControl} from "../0-adv-components/components.jsx";
{ name: 'squared', label: __( 'Squared', 'advanced-gutenberg' ) },
{ name: 'squared-outline', label: __( 'Squared Outline', 'advanced-gutenberg' ) },
],
supports: {
anchor: true,
},
edit: AdvButton,
save: function ( { attributes } ) {
const {
Expand Down
1 change: 1 addition & 0 deletions src/assets/blocks/advimage/block.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@
},
supports: {
align: true,
anchor: true
},
edit: AdvImage,
save: ( { attributes } ) => {
Expand Down
3 changes: 3 additions & 0 deletions src/assets/blocks/advlist/block.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,9 @@
],
};
},
supports: {
anchor: true,
},
edit: AdvList,
save: function ({attributes}) {
const {
Expand Down
1 change: 1 addition & 0 deletions src/assets/blocks/advtable/block.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1501,6 +1501,7 @@
},
supports: {
align: true,
anchor: true
},
styles: [
{name: 'default', label: __('Default', 'advanced-gutenberg'), isDefault: true},
Expand Down
3 changes: 3 additions & 0 deletions src/assets/blocks/advtabs/block.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,9 @@
isPreview: true
},
},
supports: {
anchor: true
},
edit: compose(
withDispatch( (dispatch, { clientId }, { select }) => {
const {
Expand Down
3 changes: 3 additions & 0 deletions src/assets/blocks/advvideo/block.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,9 @@
isPreview: true
},
},
supports: {
anchor: true
},
edit: AdvVideo,
save: function ( { attributes } ) {
const {
Expand Down
51 changes: 47 additions & 4 deletions src/assets/blocks/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -6252,6 +6252,9 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
default: ''
}
},
supports: {
anchor: true
},
edit: compose([withDispatch(function (dispatch, _ref2, _ref3) {
var clientId = _ref2.clientId;
var select = _ref3.select;
Expand Down Expand Up @@ -7640,6 +7643,9 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
}]
},
styles: [{ name: 'default', label: __('Default', 'advanced-gutenberg'), isDefault: true }, { name: 'outlined', label: __('Outlined', 'advanced-gutenberg') }, { name: 'squared', label: __('Squared', 'advanced-gutenberg') }, { name: 'squared-outline', label: __('Squared Outline', 'advanced-gutenberg') }],
supports: {
anchor: true
},
edit: AdvButton,
save: function save(_ref) {
var attributes = _ref.attributes;
Expand Down Expand Up @@ -9093,7 +9099,8 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
}
},
supports: {
align: true
align: true,
anchor: true
},
edit: AdvImage,
save: function save(_ref3) {
Expand Down Expand Up @@ -9692,6 +9699,9 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
});
},

supports: {
anchor: true
},
edit: AdvList,
save: function save(_ref3) {
var attributes = _ref3.attributes;
Expand Down Expand Up @@ -11466,7 +11476,8 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
}
},
supports: {
align: true
align: true,
anchor: true
},
styles: [{ name: 'default', label: __('Default', 'advanced-gutenberg'), isDefault: true }, { name: 'stripes', label: __('Stripes', 'advanced-gutenberg') }],
edit: AdvTable,
Expand Down Expand Up @@ -12436,6 +12447,9 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
isPreview: true
}
},
supports: {
anchor: true
},
edit: compose(withDispatch(function (dispatch, _ref10, _ref11) {
var clientId = _ref10.clientId;
var select = _ref11.select;
Expand Down Expand Up @@ -13648,6 +13662,9 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
isPreview: true
}
},
supports: {
anchor: true
},
edit: AdvVideo,
save: function save(_ref4) {
var attributes = _ref4.attributes;
Expand Down Expand Up @@ -15862,6 +15879,9 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
isPreview: true
}
},
supports: {
anchor: true
},
edit: AdvContactForm,
save: function save(_ref) {
var attributes = _ref.attributes;
Expand Down Expand Up @@ -16751,6 +16771,9 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
isPreview: true
}
},
supports: {
anchor: true
},
edit: AdvCountUp,
save: AdvCountUpSave
});
Expand Down Expand Up @@ -17742,6 +17765,9 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
isPreview: true
}
},
supports: {
anchor: true
},
edit: AdvImageSlider,
save: function save(_ref3) {
var attributes = _ref3.attributes;
Expand Down Expand Up @@ -20687,6 +20713,9 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
isPreview: true
}
},
supports: {
anchor: true
},
edit: LoginFormEdit,
save: function save(_ref3) {
var attributes = _ref3.attributes;
Expand Down Expand Up @@ -22373,6 +22402,9 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
isPreview: true
}
},
supports: {
anchor: true
},
edit: AdvMap,
save: function save(_ref2) {
var attributes = _ref2.attributes;
Expand Down Expand Up @@ -22953,6 +22985,9 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
isPreview: true
}
},
supports: {
anchor: true
},
edit: AdvNewsletter,
save: function save(_ref) {
var attributes = _ref.attributes;
Expand Down Expand Up @@ -24373,7 +24408,8 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
}
},
supports: {
align: true
align: true,
anchor: true
},
styles: [{ name: 'default', label: __('Default', 'advanced-gutenberg'), isDefault: true }, { name: 'classic', label: __('Classic', 'advanced-gutenberg') }],
edit: SearchBarEdit,
Expand Down Expand Up @@ -25005,6 +25041,9 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
isPreview: true
}
},
supports: {
anchor: true
},
edit: AdvSocialBlock,
save: function save(_ref2) {
var attributes = _ref2.attributes;
Expand Down Expand Up @@ -25532,7 +25571,8 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
}
},
supports: {
multiple: false
multiple: false,
anchor: true
},
edit: SummaryBlock,
save: function save(_ref) {
Expand Down Expand Up @@ -27833,6 +27873,9 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
isPreview: true
}
},
supports: {
anchor: true
},
edit: AdvProductsEdit,
save: function save(_ref) {
var attributes = _ref.attributes;
Expand Down
3 changes: 3 additions & 0 deletions src/assets/blocks/contact-form/block.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,9 @@
isPreview: true
},
},
supports: {
anchor: true
},
edit: AdvContactForm,
save: function ( { attributes } ) {
const {
Expand Down
3 changes: 3 additions & 0 deletions src/assets/blocks/count-up/block.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,9 @@
isPreview: true
},
},
supports: {
anchor: true
},
edit: AdvCountUp,
save: AdvCountUpSave,
} );
Expand Down
3 changes: 3 additions & 0 deletions src/assets/blocks/images-slider/block.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,9 @@
isPreview: true
},
},
supports: {
anchor: true
},
edit: AdvImageSlider,
save: function ({attributes}) {
const {
Expand Down
3 changes: 3 additions & 0 deletions src/assets/blocks/login-form/block.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,9 @@ import {AdvColorControl} from "../0-adv-components/components.jsx";
isPreview: true
},
},
supports: {
anchor: true
},
edit: LoginFormEdit,
save: function ( { attributes } ) {
const {
Expand Down
3 changes: 3 additions & 0 deletions src/assets/blocks/map/block.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1463,6 +1463,9 @@
isPreview: true
},
},
supports: {
anchor: true
},
edit: AdvMap,
save: function ( { attributes } ) {
const {
Expand Down
3 changes: 3 additions & 0 deletions src/assets/blocks/newsletter/block.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,9 @@
isPreview: true
},
},
supports: {
anchor: true
},
edit: AdvNewsletter,
save: function ( { attributes } ) {
const {
Expand Down
1 change: 1 addition & 0 deletions src/assets/blocks/search-bar/block.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ import {AdvColorControl} from "../0-adv-components/components.jsx";
},
supports: {
align: true,
anchor: true
},
styles: [
{ name: 'default', label: __( 'Default', 'advanced-gutenberg' ), isDefault: true },
Expand Down
3 changes: 3 additions & 0 deletions src/assets/blocks/social-links/block.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,9 @@
isPreview: true
},
},
supports: {
anchor: true
},
edit: AdvSocialBlock,
save: function ( { attributes } ) {
const { items, align, iconSize, iconSpace } = attributes;
Expand Down
Loading

0 comments on commit a39c27f

Please sign in to comment.