Skip to content

Commit

Permalink
Merge pull request #1260 from publishpress/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
htmgarcia authored Mar 29, 2023
2 parents d1b3fb7 + f2c0190 commit 1f90962
Show file tree
Hide file tree
Showing 15 changed files with 102 additions and 66 deletions.
6 changes: 3 additions & 3 deletions src/advanced-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Plugin Name: PublishPress Blocks
* Plugin URI: https://publishpress.com/blocks/
* Description: PublishPress Blocks has everything you need to build professional websites with the Gutenberg editor.
* Version: 3.1.4
* Tested up to: 6.1.1
* Version: 3.1.4.1
* Tested up to: 6.2
* Author: PublishPress
* Author URI: https://publishpress.com/
* License: GPL2
Expand Down Expand Up @@ -56,7 +56,7 @@
if (! defined('ADVANCED_GUTENBERG_LOADED')) {

if (! defined('ADVANCED_GUTENBERG_VERSION')) {
define('ADVANCED_GUTENBERG_VERSION', '3.1.4');
define('ADVANCED_GUTENBERG_VERSION', '3.1.4.1');
}

if (! defined('ADVANCED_GUTENBERG_PLUGIN')) {
Expand Down
7 changes: 4 additions & 3 deletions src/assets/blocks/0-adv-components/datetime.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const { applyFilters } = wp.hooks;
export function AdvDateTimeControl(props) {
const [popupState, setPopupState] = useState( false );
const togglePopup = () => {
setPopupState( ( state ) => ! state );
setPopupState( ! popupState );
};

const {
Expand All @@ -30,7 +30,7 @@ export function AdvDateTimeControl(props) {
<Button
isLink
icon="calendar"
onClick={ () => setPopupState( togglePopup ) }
onClick={ togglePopup }
>
<Tooltip text={ __( 'Change date', 'advanced-gutenberg' ) }>
<span>
Expand All @@ -51,13 +51,14 @@ export function AdvDateTimeControl(props) {
<Popover
className="advgb-advcalendar-popover"
onClose={ setPopupState.bind( null, false ) }
resize={ false }
>
<label className="advgb-advcalendar-popover-label">
{ dateLabel }
<Button
icon="no-alt"
className="advgb-advcalendar-remove-icon"
onClick={ () => setPopupState( togglePopup ) }
onClick={ togglePopup }
/>
</label>
<DateTimePicker
Expand Down
2 changes: 1 addition & 1 deletion src/assets/blocks/block-controls.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/assets/blocks/block-controls.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/assets/blocks/blocks.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/assets/blocks/blocks.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/assets/blocks/editor.js

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

2 changes: 1 addition & 1 deletion src/assets/blocks/editor.js.map

Large diffs are not rendered by default.

16 changes: 12 additions & 4 deletions src/assets/blocks/woo-products/block.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
const { addQueryArgs } = wp.url;

let fetchingQueue = null;
let initSlider = null;

const previewImageData = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAAD8CAYAAABetbkgAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAEtNJREFUeNrsnc9rHOcZx2d217Zix7EdYwXbiZ3QuBAcamwoOeQSCDaUuufQU26lvfR/aG4NuaWGQA+FnnrsoRBICRRDcXIpxhAamoAV21hEiWwpkhzF0u5W3+mOOx7P7M7Mvjt6f3w+MKyktXfnnff5vs/zPu+vKAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABombitL+r1eq1+H4AjDLe3t90R+kjIVT8TwUPwAq/yvqlGIDYk8HjM5yJqgPrCH5r0+vGUAi8TdZz7GW8OMF7cwwmvUwk+nkLkeYHnRR7j3QFqi32YE/kTwm8i9nhKkReJW1enoncHQOhPinzcFY367sOZCb1A5PEYkXcmeHcARF4u8kHu9QlvX8ez96bo25eJu7OwsPDz+fn5X+80DD+N4/gA9QlQovThcGNra+vG0tLSn95+++2/Xr169eFI3J3Ra5wTfdowxDv6qiz2yh62wJs/Ju6dq/vxxx//6PX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Lfyv0+yPfdJwm9V/OGsr8PRsLtF4g4vfFsXz5C6ACF2ioSej8Xqhcl5dKoYLKznvLmBiMRpzeXijkr9E6mUYgQPMAT3jzKeel+rh8+KBB6kQOeTuhqMUb7fQ1zHj3KCDzbAHRH73dLQneEDgj9Sac5jB7Prm8XiH3YROy9mjcWF9zkoOTmOxmPnxc4QgeEXhy6D6Mnh9P6uYbgkdCrhO21hF7g1aMCkXdzITveHKCZVx+UhO2N6DW4sbhE7HGJyDt4c4DKXr1I8IXz3SeNnWepLbqRV8/PlMtf44bVEDrAeKFPupL/UzVsbyy6ErFHY0J1vDlAudCjqDjJVpZ4qyXyqYSXE3uZly/6DsQOUCz0Ii//xL+rK3IjohvNmotKBI/AAaqLvUz0jQVuVHyZM7XiWX0HQKiin0bgMxdhgacHgApiNyFsAAAAAAAAAAAAAAAAAAAAAAAAAAAAx/mvAAMAfkZbyu3sQ/cAAAAASUVORK5CYII=';

Expand Down Expand Up @@ -66,6 +67,10 @@
.removeAttr('tabindex')
.removeAttr('role')
.removeAttr('aria-describedby');

if (initSlider) {
clearTimeout(initSlider);
}
}
}

Expand Down Expand Up @@ -158,10 +163,13 @@
} )
} ).then( () => {
if (viewType === 'slider') {
jQuery(`#block-${self.props.clientId} .advgb-products-block.slider-view .advgb-products-wrapper:not(.slick-initialized)`).slick( {
dots: true,
adaptiveHeight: true,
} );
const $ = jQuery;
initSlider = setTimeout(function () {
$(`#block-${self.props.clientId} .advgb-products-block.slider-view .advgb-products-wrapper:not(.slick-initialized)`).slick( {
dots: true,
adaptiveHeight: true,
} );
}, 100 );
}
} )
}, 500 );
Expand Down
2 changes: 1 addition & 1 deletion src/assets/css/blocks.css

Large diffs are not rendered by default.

Loading

0 comments on commit 1f90962

Please sign in to comment.