Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Branch 2.16.3 #731

Merged
merged 24 commits into from
Sep 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
2bb706d
fix: upgrade @babel/runtime-corejs2 from 7.12.1 to 7.13.17 (#365)
snyk-bot Aug 24, 2022
b890bf9
remove unused variable
jamesros161 Aug 24, 2022
951f12b
fix: upgrade @wordpress/hooks from 2.10.0 to 2.12.2 (#366)
snyk-bot Aug 24, 2022
95bc5f7
fix: upgrade @wordpress/dom-ready from 2.11.0 to 2.13.2 (#367)
snyk-bot Aug 24, 2022
9c17d43
fix: package.json & yarn.lock to reduce vulnerabilities (#504)
snyk-bot Aug 24, 2022
2ca19e2
updated yarn.lock
jamesros161 Aug 24, 2022
df4e011
fix: package.json & yarn.lock to reduce vulnerabilities (#562)
snyk-bot Aug 24, 2022
24d6642
update yarn.lock
jamesros161 Aug 24, 2022
ff2a4f1
fix: package.json & yarn.lock to reduce vulnerabilities (#370)
snyk-bot Aug 24, 2022
292d8cc
update yarn.lock
jamesros161 Aug 24, 2022
132f018
update puppeteer & ws
jamesros161 Aug 24, 2022
855c5d0
update 'i'
jamesros161 Aug 24, 2022
1b1d681
update chownr
jamesros161 Aug 24, 2022
e9a9eee
updated url-parse
jamesros161 Aug 24, 2022
399bcab
update follow-redirects
jamesros161 Aug 24, 2022
f4ddfd5
update moment
jamesros161 Aug 24, 2022
18bcb3e
update readme
jamesros161 Aug 24, 2022
ab6b05b
fix 'final private' notices
jamesros161 Aug 29, 2022
8d3ee84
resolves #516 (#730)
jamesros161 Aug 30, 2022
cd3a23c
resolves #401 (#729)
jamesros161 Aug 30, 2022
de6aad0
update version numbers and readme
jamesros161 Aug 30, 2022
489416e
specify nanoid version for postcss
jamesros161 Aug 31, 2022
c6253fa
fix secondary hover color display
jamesros161 Aug 31, 2022
1cd4dc7
update version numbers
jamesros161 Sep 6, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,23 @@ user guide for more information.

## Changelog ##

### 2.16.3 ###
* Bug Fix: Logos using Flex display stretch vertically on iOS [#516](https://github.com/BoldGrid/boldgrid-theme-framework/issues/516)
* Bug Fix: Duplicate Header in Customizer related to Windows display settings [#488](https://github.com/BoldGrid/boldgrid-theme-framework/issues/488)
* Bug Fix: WPForms email confirmation field error [#614](https://github.com/BoldGrid/boldgrid-theme-framework/issues/614)
* Bug Fix: Conflict with PolyLang, Header/Footer Layout Controls do not function [#401](https://github.com/BoldGrid/boldgrid-theme-framework/issues/401)
* Update: Update "postcss" dependancy from 6.0.22 -> 8.2.13 [#370](https://github.com/BoldGrid/boldgrid-theme-framework/pull/370)
* Update: Update "snyk " dependancy from 1.338.0 -> 1.685.0 [#562](https://github.com/BoldGrid/boldgrid-theme-framework/pull/562)
* Update: Update "@wordpress/dom-ready" dependancy from 2.11.0 -> 2.13.2 [#367](https://github.com/BoldGrid/boldgrid-theme-framework/pull/367)
* Update: Update "@wordpress/hooks" dependancy from 2.10.0 -> 2.12.2 [#366](https://github.com/BoldGrid/boldgrid-theme-framework/pull/366)
* Update: Update "@babel/runtime-corejs2" dependancy from 7.12.1 -> 7.13.17 [#365](https://github.com/BoldGrid/boldgrid-theme-framework/pull/365)
* Update: Update "moment" dependancy from 2.24.0 -> 2.29.4 [f4ddfd5](https://github.com/BoldGrid/boldgrid-theme-framework/commit/f4ddfd55dbecc26f492772aa391253374a8dff54)
* Update: Update "follow-redirects" dependacy from 1.5.9 -> 1.15.1 [399bcab](https://github.com/BoldGrid/boldgrid-theme-framework/commit/399bcab7d87c39aa138c729407b0ac322fa9af3c)
* Update: Update "url-parse" dependancy from 1.4.3 -> 1.5.10 [e9a9eee](https://github.com/BoldGrid/boldgrid-theme-framework/commit/e9a9eee394bbce774102a7e67df78ab93bc71714)
* Update: Update "chownr" dependancy from 1.0.1 -> 1.1.4 [1b1d681](https://github.com/BoldGrid/boldgrid-theme-framework/commit/1b1d681f06337e70da7bf79e04316031fcc02d69)
* Update: Update "i" dependancy from 0.3.6 -> 0.3.7 [855c5d0](https://github.com/BoldGrid/boldgrid-theme-framework/commit/855c5d0e6863759372cc027c6514957f65dec023)
* Update: Update "puppeteer" dependancy from 1.9.0 -> 1.20.0 [132f018](https://github.com/BoldGrid/boldgrid-theme-framework/commit/132f018fd79b8de7a6326dd3fa6fd991e9d91f25)

### 2.16.2 ###
* Bug Fix: Dividing by Zero in the Header [#708](https://github.com/BoldGrid/boldgrid-theme-framework/issues/708)
* Bug Fix: Featured Image background for Posts does not display [#717](https://github.com/BoldGrid/boldgrid-theme-framework/issues/717)
Expand Down
2 changes: 2 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ gulp.task('phpDeps', function () {
// Use locally provided FontAwesome dependency.
.pipe(replace(/([ \t]*)wp_enqueue_script\(\s?\'kirki-fontawesome-font\',\s?\'https:\/\/use.fontawesome.com\/30858dc40a.js\',\s?array\(\),\s?\'4.0.7\',\s?(?:true|false)\s?\)\;\s?^(?:[\t ]*(?:\r?\n|\r))*/gm, "$1global $boldgrid_theme_framework;\n$1$bgtfw_configs = $boldgrid_theme_framework->get_configs();\n\n$1if ( ! class_exists( 'BoldGrid_Framework_Styles' ) ) {\n$1\trequire_once $bgtfw_configs['framework']['includes_dir'] . 'class-boldgrid-framework-styles.php';\n$1}\n\n$1$bgtfw_styles = new BoldGrid_Framework_Styles( $bgtfw_configs );\n$1$bgtfw_styles->enqueue_fontawesome();\n\n"))
.pipe( deleteLines( { 'filters': [ /.*sourceMappingURL=.*/i ] } ) )
// Change 'final private' methods to 'private'.
.pipe( replace( /final private function/g, 'private function' ) )
.pipe(gulp.dest(config.dist + '/includes/kirki') );
// Get Kirki CSS.
gulp.src(config.node_modules + '/kirki-toolkit/assets/**/*.{css,json}')
Expand Down
25 changes: 16 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "boldgrid-theme-framework",
"version": "2.16.2",
"version": "2.16.3",
"description": "BoldGrid Theme Framework",
"main": "index.js",
"engines": {
Expand Down Expand Up @@ -52,7 +52,12 @@
"url": "https://github.com/BoldGrid/boldgrid-theme-framework.git"
},
"resolutions": {
"natives": "1.1.6"
"natives": "1.1.6",
"i": "^0.3.7",
"**/chownr": "^1.1.4",
"**/url-parse": "^1.5.10",
"**/follow-redirects": "^1.14.9",
"**/nanoid": "^3.1.22"
},
"devDependencies": {
"@babel/core": "^7.0.0-beta.47",
Expand Down Expand Up @@ -110,7 +115,7 @@
"jshint-stylish": "^2.1.0",
"mini-css-extract-plugin": "^0.4.0",
"mkdirp": "^0.5.1",
"moment": "^2.24.0",
"moment": "^2.29.4",
"multislider": "https://github.com/ippontech/multiSlider.js",
"php-parser": "^3.0.0-prerelease.8",
"pkg-dir": "^3.0.0",
Expand All @@ -132,10 +137,10 @@
"webpack-runtime-public-path-plugin": "^1.1.2"
},
"dependencies": {
"@babel/runtime-corejs2": "^7.12.1",
"@babel/runtime-corejs2": "^7.13.17",
"@boldgrid/components": "^2.16.2",
"@wordpress/dom-ready": "^2.11.0",
"@wordpress/hooks": "^2.10.0",
"@wordpress/dom-ready": "^2.13.2",
"@wordpress/hooks": "^2.12.2",
"Buttons": "https://github.com/boldgrid/Buttons#crio-buttons",
"animate.css": "3.7.2",
"bootstrap-sass": "~3.4.1",
Expand All @@ -154,11 +159,13 @@
"lodash.kebabcase": "^4.1.1",
"lodash.lowercase": "^4.3.0",
"lodash.startcase": "^4.4.0",
"postcss": "^6.0.22",
"postcss": "^8.2.13",
"sass.js": "~0.11.1",
"scssphp": "https://github.com/scssphp/scssphp#v1.10.0",
"smartmenus": "^1.1.0",
"wow.js": "^1.2.2"
}
"wow.js": "^1.2.2",
"snyk": "^1.685.0"
},
"snyk": true
}

5 changes: 2 additions & 3 deletions src/assets/js/customizer/color/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,8 @@ export class Preview {
color = paletteSelector.getColor( color, true );
subcolor = paletteSelector.getColor( subcolor, true );

let alpha = parent.net.brehaut.Color( color );
let subalpha = parent.net.brehaut.Color( subcolor );
let css = '';
let alpha = parent.net.brehaut.Color( color );
let css = '';

location = location.replace( /_/g, '-' );

Expand Down
16 changes: 14 additions & 2 deletions src/assets/js/customizer/controls/bgtfw-menu-locations.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ export default {
let customMenus = [];
Object.keys( _wpCustomizeNavMenusSettings.locationSlugMappedToName ).forEach( menu => {
let isActive = false;
if ( /.*_\d+/.test( menu ) ) {

// Only mark as active if there is a panel for it.
if ( /.*_\d+/.test( menu ) && api.panel( `bgtfw_menu_location_${menu}` ) ) {
isActive = true;
api.controlConstructor.nav_menu_location.prototype.updateMenuLocations( menu, isActive );
customMenus.push( menu );
}
api.controlConstructor.nav_menu_location.prototype.updateMenuLocations( menu, isActive );
} );
let menus = api.control( 'bgtfw_header_layout_custom' ).getConnectedMenus()
.map( menu => menu.replace( 'boldgrid_menu_', '' ) );
Expand Down Expand Up @@ -66,6 +68,11 @@ export default {
if ( /.*_\d+/.test( menu ) ) {
isActive = true;
}

// If there is no panel for this location, mark inactive.
if ( ! api.panel( `bgtfw_menu_location_${menu}` ) ) {
isActive = false;
}
api.controlConstructor.nav_menu_location.prototype.updateMenuLocations( menu, isActive );
} );
} );
Expand Down Expand Up @@ -96,6 +103,11 @@ export default {
}
let panel = api.panel( `bgtfw_menu_location_${ locationId }` );

// If there is no panel for this location quit.
if ( ! panel ) {
return;
}

// Force the active panel state to read JS state set with isActive() and ignore server response.
panel.active.validate = isActive;

Expand Down
16 changes: 15 additions & 1 deletion src/assets/js/customizer/controls/bgtfw-sortable-accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,11 @@ export default {
if ( 'sticky-header' === this.params.location && ! location.includes( 'sticky' ) ) {
return;
}

// Do not include menu locations without a customizer panel.
if ( ! api.panel( `bgtfw_menu_location_${location}` ) ) {
return;
}
attr = `boldgrid_menu_${ location }` === type ? 'selected' : '';
markup += `<option value="boldgrid_menu_${ location }"${ attr }>${ name }</option>`;
} );
Expand Down Expand Up @@ -886,7 +891,16 @@ export default {
* @since 2.0.3
*/
getAllMenuActions() {
return Object.keys( window._wpCustomizeNavMenusSettings.locationSlugMappedToName ).map( item => `boldgrid_menu_${item}` );
var menuLocations = [];

// We only want to list menus that have an associated panel.
$.each( window._wpCustomizeNavMenusSettings.locationSlugMappedToName, ( location ) => {
if ( api.panel( `bgtfw_menu_location_${location}` ) ) {
menuLocations.push( location );
}
} );

return menuLocations.map( location => `bgtfw_menu_${ location }` );
},

/**
Expand Down
7 changes: 5 additions & 2 deletions src/assets/js/customizer/header-layout/header-layout.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
const controlApi = parent.wp.customize;

// Sometimes underscore is needed, when the parent / parent.window are not defined.
const underscore = parent.window._;

parent.window.BOLDGRID.colWidthSliders = parent.window.BOLDGRID.colWidthSliders ?
parent.window.BOLDGRID.colWidthSliders :
{};
Expand Down Expand Up @@ -571,7 +574,7 @@ export class HeaderLayout {
this.brandingNotices( controlApi( 'bgtfw_header_preset_branding' )(), controlApi.control( 'bgtfw_header_preset_branding' ) );
controlApi.control( 'bgtfw_header_preset' ).container.find( '.bgtfw_header_presetcustom' ).on( 'click', () => {
controlApi.section( 'bgtfw_header_layout_advanced' ).activate();
window._.defer( () => {
underscore.defer( () => {
controlApi.control( 'bgtfw_header_layout_position' ).focus();
} );
} );
Expand Down Expand Up @@ -928,7 +931,7 @@ export class HeaderLayout {

if ( 'custom' === stickyHeaderPreset ) {
controlApi.section( 'bgtfw_sticky_header_layout_advanced' ).activate();
window._.defer( () => {
underscore.defer( () => {
controlApi.control( 'bgtfw_sticky_header_layout_custom' ).focus();
} );
requestData.customHeaderLayout = controlApi( 'bgtfw_sticky_header_layout_custom' )();
Expand Down
5 changes: 5 additions & 0 deletions src/assets/js/customizer/menus/extend-title.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ export class SectionExtendTitle {
*/
_bindMenuPanels() {
for ( const location of Object.keys( this.menus ) ) {

// Do not try to bind panels that do not exist.
if ( ! api.panel( `bgtfw_menu_location_${location}` ) ) {
continue;
}
api.panel( `bgtfw_menu_location_${location}` ).expanded.bind( () => this.updateTitle( location ) );
api( `bgtfw_menu_hamburger_${location}`, ( value ) => value.bind( () => this.updateTitle( location ) ) );
api( `bgtfw_menu_hamburger_${location}_toggle`, ( value ) => value.bind( () => this.updateTitle( location ) ) );
Expand Down
8 changes: 7 additions & 1 deletion src/assets/js/customizer/menus/hover-background-toggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,13 @@ export class HoverBackgroundToggle {
* @since 2.0.0
*/
_onLoad() {
this.menus = window._wpCustomizeNavMenusSettings.locationSlugMappedToName;
var menus = window._wpCustomizeNavMenusSettings.locationSlugMappedToName;
this.menus = {};
Object.keys( menus ).forEach( ( menu ) => {
if ( api.panel( `bgtfw_menu_location_${menu}` ) ) {
this.menus[ menu ] = menus[ menu ];
}
} );
this._bindHoverBackgroundToggle();
}
}
Expand Down
6 changes: 6 additions & 0 deletions src/assets/scss/boldgrid/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@
.col-xs-full-width {
width: 100%;
}
@supports (-webkit-touch-callout: none) {
a.bgc_logo.custom-logo-link {
flex-direction: column;
align-items: center;
}
}
}

@media only screen and (min-width: 768px ) and (max-width: 991px) {
Expand Down
2 changes: 1 addition & 1 deletion src/boldgrid-theme-framework.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: BoldGrid Theme Framework
* Plugin URI: https://www.boldgrid.com/docs/configuration-file
* Description: BoldGrid Theme Framework is a library that allows you to easily make BoldGrid themes. Please see our reference guide for more information: https://www.boldgrid.com/docs/configuration-file
* Version: 2.16.2
* Version: 2.16.3
* Author: BoldGrid.com <[email protected]>
* Author URI: https://www.boldgrid.com/
* Text Domain: bgtfw
Expand Down
Loading