Skip to content

Commit a4f08fb

Browse files
author
prconcepcion
committed
Merge branch 'develop' into fix/3035-theme
2 parents f100be5 + 78873e1 commit a4f08fb

File tree

18 files changed

+1725
-1580
lines changed

18 files changed

+1725
-1580
lines changed

languages/stackable-ultimate-gutenberg-blocks.pot

Lines changed: 1511 additions & 1511 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stackable",
3-
"version": "3.12.10",
3+
"version": "3.12.11",
44
"private": true,
55
"description": "Blocks for everyone",
66
"author": "Benjamin Intal of Gambit",

plugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Author: Gambit Technologies, Inc
77
* Author URI: http://gambit.ph
88
* Text Domain: stackable-ultimate-gutenberg-blocks
9-
* Version: 3.12.10
9+
* Version: 3.12.11
1010
*
1111
* @package Stackable
1212
*/
@@ -24,7 +24,7 @@
2424

2525
defined( 'STACKABLE_SHOW_PRO_NOTICES' ) || define( 'STACKABLE_SHOW_PRO_NOTICES', true );
2626
defined( 'STACKABLE_BUILD' ) || define( 'STACKABLE_BUILD', 'free' );
27-
defined( 'STACKABLE_VERSION' ) || define( 'STACKABLE_VERSION', '3.12.10' );
27+
defined( 'STACKABLE_VERSION' ) || define( 'STACKABLE_VERSION', '3.12.11' );
2828
defined( 'STACKABLE_FILE' ) || define( 'STACKABLE_FILE', __FILE__ );
2929
defined( 'STACKABLE_I18N' ) || define( 'STACKABLE_I18N', 'stackable-ultimate-gutenberg-blocks' ); // Plugin slug.
3030
defined( 'STACKABLE_DESIGN_LIBRARY_URL' ) || define( 'STACKABLE_DESIGN_LIBRARY_URL', 'https://storage.googleapis.com/stackable-plugin-assets' ); // Design Library CDN URL

readme.txt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: blocks, gutenberg, gutenberg blocks, page builder, WordPress blocks
44
Requires at least: 6.1
55
Tested up to: 6.4.3
66
Requires PHP: 7.3
7-
Stable tag: 3.12.10
7+
Stable tag: 3.12.11
88
License: GPLv3
99
License URI: https://www.gnu.org/licenses/gpl-3.0.html
1010

@@ -294,6 +294,17 @@ Nope. Stackable only works with Gutenberg, the new WordPress editor.
294294

295295
== Changelog ==
296296

297+
= 3.12.11 =
298+
* New: You can now use YouTube shorts and unlisted Vimeo videos in the Video Popup block
299+
* Fixed: Ordered Icon List block numerals no longer wrap to the next line
300+
* Fixed: Native list block behaviors no longer create Stackable Icon List Item blocks
301+
* Fixed: Clicking WooCommerce add to cart button no longer changes the Tabs block to the first tab
302+
* Fixed: No longer need to have v2 compatibility enabled for the random order option to work in the Posts block
303+
* Fixed: Carousel block default icon color can now be changed correctly
304+
* Fixed: Pasting a bullet list no longer converts it to a Stackable Icon List block
305+
* Fixed: Frontend scripts now will not initialize more than once
306+
* Fixed: Updated .pot file to allow manual JS strings translations
307+
297308
= 3.12.10 =
298309
* Fixed: (Hotfix update) Some themes can add bullets or numbers on the Icon List block
299310

src/block/accordion/frontend-accordion.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,17 @@ class StackableAccordion {
121121

122122
const els = document.querySelectorAll( '.stk-block-accordion' )
123123
els.forEach( el => {
124-
el.contentEl = el.querySelector( '.stk-block-accordion__content' )
125-
if ( ! isAnimationDisabled ) {
126-
RO.observe( el )
124+
if ( ! el._StackableHasInitAccordion ) {
125+
el.contentEl = el.querySelector( '.stk-block-accordion__content' )
126+
if ( ! isAnimationDisabled ) {
127+
RO.observe( el )
128+
}
129+
MO.observe( el, {
130+
attributeFilter: [ 'open' ],
131+
attributeOldValue: true,
132+
} )
133+
el._StackableHasInitAccordion = true
127134
}
128-
MO.observe( el, {
129-
attributeFilter: [ 'open' ],
130-
attributeOldValue: true,
131-
} )
132135
} )
133136

134137
const addWrapperHack = el => {

src/block/carousel/frontend-carousel.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,9 +472,12 @@ class StackableCarousel {
472472
init = () => {
473473
const els = document.querySelectorAll( '.stk-block-carousel' )
474474
els.forEach( el => {
475-
const carousel = new _StackableCarousel( el )
476-
el.carousel = carousel
477-
carousel.init()
475+
if ( ! el._StackableHasInitCarousel ) {
476+
const carousel = new _StackableCarousel( el )
477+
el.carousel = carousel
478+
carousel.init()
479+
el._StackableHasInitCarousel = true
480+
}
478481
} )
479482
}
480483
}

src/block/carousel/schema.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import {
1717
import { AttributeObject } from '~stackable/util'
1818
import { version as VERSION } from 'stackable'
1919

20-
export const defaultIconPrev = `<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-left" class="svg-inline--fa fa-chevron-left" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" width="32" height="32"><path fill="currentColor" d="M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"></path></svg>`
21-
export const defaultIconNext = `<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-right" class="svg-inline--fa fa-chevron-right" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" width="32" height="32"><path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path></svg>`
20+
export const defaultIconPrev = `<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-left" class="svg-inline--fa fa-chevron-left" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" width="32" height="32"><path d="M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"></path></svg>`
21+
export const defaultIconNext = `<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-right" class="svg-inline--fa fa-chevron-right" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" width="32" height="32"><path d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path></svg>`
2222

2323
export const attributes = ( version = VERSION ) => {
2424
const attrObject = new AttributeObject()
@@ -80,10 +80,14 @@ export const attributes = ( version = VERSION ) => {
8080
},
8181
arrowIconPrev: {
8282
type: 'string',
83+
source: 'html',
84+
selector: '.stk-block-carousel__button__prev',
8385
default: '',
8486
},
8587
arrowIconNext: {
8688
type: 'string',
89+
source: 'html',
90+
selector: '.stk-block-carousel__button__next',
8791
default: '',
8892
},
8993
arrowPosition: {

src/block/carousel/style.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const Styles = props => {
102102
{ ...propsToPass }
103103
selector=".stk-block-carousel__button"
104104
hoverSelector=".stk-block-carousel__button:hover"
105-
styleRule="color"
105+
styleRule="fill"
106106
attrName="arrowIconColor"
107107
key="arrowIconColor"
108108
hover="all"

src/block/expand/frontend-expand.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,18 @@ class StackableExpand {
4545
}
4646

4747
els.forEach( el => {
48-
el.addEventListener( 'click', onClick )
48+
if ( ! el._StackableHasInitExpand ) {
49+
el.addEventListener( 'click', onClick )
50+
el._StackableHasInitExpand = true
51+
}
4952
} )
5053

5154
blocks.forEach( block => {
52-
fixAriaAttributes( block )
53-
addAriaAttributes( block )
55+
if ( ! block._StackableHasInitExpandFix ) {
56+
fixAriaAttributes( block )
57+
addAriaAttributes( block )
58+
block._StackableHasInitExpandFix = true
59+
}
5460
} )
5561
}
5662
}

src/block/horizontal-scroller/frontend-horizontal-scroller.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ class StackableHorizontalScroller {
1111
let initialClientX = 0
1212

1313
els.forEach( el => {
14+
if ( el._StackableHasInitHorizontalScroller ) {
15+
return
16+
}
1417
// get all links, because we will need to disable them during drag
1518
const children = el.querySelectorAll( '.stk-block-link, a' )
1619

@@ -83,6 +86,8 @@ class StackableHorizontalScroller {
8386
}
8487

8588
el.addEventListener( 'mousedown', mouseDownHandler )
89+
90+
el._StackableHasInitHorizontalScroller = true
8691
} )
8792
}
8893
}

0 commit comments

Comments
 (0)