Skip to content

Commit 9b710a4

Browse files
Merge pull request #82 from bigboxwc/release/1.14.0
release/1.14.0
2 parents 7c0a688 + cb74dcf commit 9b710a4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1023
-387
lines changed

.eslintrc.js

Lines changed: 141 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,147 @@
11
module.exports = {
2-
root: true,
2+
parser: 'babel-eslint',
33
extends: [
4-
'./eslint/config.js',
4+
'plugin:wordpress/esnext',
5+
'plugin:jsx-a11y/recommended',
6+
],
7+
env: {
8+
browser: false,
9+
es6: true,
10+
node: true,
11+
},
12+
parserOptions: {
13+
sourceType: 'module',
14+
ecmaFeatures: {
15+
jsx: true,
16+
},
17+
},
18+
plugins: [
19+
'wordpress',
20+
'jsx-a11y',
521
],
622
globals: {
7-
wpApiSettings: true,
8-
bigbox: true,
23+
wp: true,
24+
window: true,
25+
document: true,
26+
Backbone: true,
27+
_: true,
928
BigBoxLicenseManager: true,
29+
bigbox: true,
30+
},
31+
rules: {
32+
'array-bracket-spacing': [ 'error', 'always' ],
33+
'arrow-parens': [ 'error', 'always' ],
34+
'arrow-spacing': 'error',
35+
'brace-style': [ 'error', '1tbs' ],
36+
camelcase: [ 'error', { properties: 'never' } ],
37+
'comma-dangle': [ 'error', 'always-multiline' ],
38+
'comma-spacing': 'error',
39+
'comma-style': 'error',
40+
'computed-property-spacing': [ 'error', 'always' ],
41+
'dot-notation': 'error',
42+
'eol-last': 'error',
43+
eqeqeq: 'error',
44+
'func-call-spacing': 'error',
45+
indent: [ 'error', 'tab', { SwitchCase: 1 } ],
46+
'jsx-a11y/label-has-for': [ 'error', {
47+
required: 'id',
48+
} ],
49+
'jsx-a11y/media-has-caption': 'off',
50+
'jsx-a11y/no-noninteractive-tabindex': 'off',
51+
'jsx-a11y/role-has-required-aria-props': 'off',
52+
'jsx-quotes': 'error',
53+
'key-spacing': 'error',
54+
'keyword-spacing': 'error',
55+
'lines-around-comment': 'off',
56+
'no-alert': 'error',
57+
'no-bitwise': 'error',
58+
'no-caller': 'error',
59+
'no-console': 'error',
60+
'no-debugger': 'error',
61+
'no-dupe-args': 'error',
62+
'no-dupe-keys': 'error',
63+
'no-duplicate-case': 'error',
64+
'no-else-return': 'error',
65+
'no-eval': 'error',
66+
'no-extra-semi': 'error',
67+
'no-fallthrough': 'error',
68+
'no-lonely-if': 'error',
69+
'no-mixed-operators': 'error',
70+
'no-mixed-spaces-and-tabs': 'error',
71+
'no-multiple-empty-lines': [ 'error', { max: 1 } ],
72+
'no-multi-spaces': 'error',
73+
'no-multi-str': 'off',
74+
'no-negated-in-lhs': 'error',
75+
'no-nested-ternary': 'error',
76+
'no-redeclare': 'error',
77+
'no-restricted-syntax': [
78+
'error',
79+
{
80+
selector: 'CallExpression[callee.name=/^__|_n|_x$/]:not([arguments.0.type=/^Literal|BinaryExpression$/])',
81+
message: 'Translate function arguments must be string literals.',
82+
},
83+
{
84+
selector: 'CallExpression[callee.name=/^_n|_x$/]:not([arguments.1.type=/^Literal|BinaryExpression$/])',
85+
message: 'Translate function arguments must be string literals.',
86+
},
87+
{
88+
selector: 'CallExpression[callee.name=_nx]:not([arguments.2.type=/^Literal|BinaryExpression$/])',
89+
message: 'Translate function arguments must be string literals.',
90+
},
91+
],
92+
'no-shadow': 'error',
93+
'no-undef': 'error',
94+
'no-undef-init': 'error',
95+
'no-unreachable': 'error',
96+
'no-unsafe-negation': 'error',
97+
'no-unused-expressions': 'error',
98+
'no-unused-vars': 'error',
99+
'no-useless-return': 'error',
100+
'no-whitespace-before-property': 'error',
101+
'object-curly-spacing': [ 'error', 'always' ],
102+
'padded-blocks': [ 'error', 'never' ],
103+
'quote-props': [ 'error', 'as-needed' ],
104+
semi: 'error',
105+
'semi-spacing': 'error',
106+
'space-before-blocks': [ 'error', 'always' ],
107+
'space-before-function-paren': [ 'error', {
108+
anonymous: 'never',
109+
named: 'never',
110+
asyncArrow: 'always',
111+
} ],
112+
'space-in-parens': [ 'error', 'always' ],
113+
'space-infix-ops': [ 'error', { int32Hint: false } ],
114+
'space-unary-ops': [ 'error', {
115+
overrides: {
116+
'!': true,
117+
yield: true,
118+
},
119+
} ],
120+
'valid-jsdoc': [ 'error', {
121+
prefer: {
122+
arg: 'param',
123+
argument: 'param',
124+
extends: 'augments',
125+
returns: 'return',
126+
},
127+
preferType: {
128+
array: 'Array',
129+
bool: 'boolean',
130+
Boolean: 'boolean',
131+
float: 'number',
132+
Float: 'number',
133+
int: 'number',
134+
integer: 'number',
135+
Integer: 'number',
136+
Number: 'number',
137+
object: 'Object',
138+
String: 'string',
139+
Void: 'void',
140+
},
141+
requireParamDescription: false,
142+
requireReturn: false,
143+
} ],
144+
'valid-typeof': 'error',
145+
yoda: 'off',
10146
},
11-
};
147+
};

CHANGELOG.md

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,38 @@
1-
## [1.13.0] - 2018-08-14
1+
## [1.14.0] - 2018-08-25
2+
3+
### New
4+
5+
- WooCommerce Product Vendors support: https://woocommerce.com/products/product-vendors/
6+
- Improved Gutenberg 3.5+ button support.
7+
- Improved horizontal navigation user experience.
8+
- Option to hide inventory counts in the product catalog.
9+
- WooCommerce 3.5 template compatibility.
10+
11+
## [1.13.0] - 2018-08-14
212

313
### New
414

515
- Improve keyboard accessibility user interface.
616
- Allow CSS color variables to be overridden in a child theme.
717
- Gutenberg 3.5 compatibility (including custom font size support).
818

9-
## [1.12.1] - 2018-08-02
19+
## [1.12.1] - 2018-08-02
1020

1121
### Fix
1222

1323
- Improved CSS architecture for easier child theme development.
1424
- Ensure shop category list uses rounded corners.
1525
- Fix syntax errors in `apply_filters()` calls.
1626

17-
## [1.12.0] - 2018-07-30
27+
## [1.12.0] - 2018-07-30
1828

1929
### New
2030

2131
- Improved UI for cart totals and shipping.
2232
- WooCommerce 3.4.4 compatibility.
2333
- Add Social Icons.
24-
- Can be used inline with `<i class="bigbox-icon bigbox-icon--twitter"></i>`.
25-
- Automatically applied to menu item links with social URLs.
34+
- Can be used inline with `<i class="bigbox-icon bigbox-icon--twitter"></i>`.
35+
- Automatically applied to menu item links with social URLs.
2636

2737
### Fix
2838

@@ -32,13 +42,13 @@
3242
- Ensure WooCommece alert's are always 100% width.
3343
- Update to WordPress Coding Standards 1.0.0
3444

35-
## [1.11.3] - 2018-07-24
45+
## [1.11.3] - 2018-07-24
3646

3747
### Fix
3848

3949
- Avoid double faux inputs on FacetWP filters.
4050

41-
## [1.11.2] - 2018-07-24
51+
## [1.11.2] - 2018-07-24
4252

4353
### Fix
4454

@@ -48,15 +58,15 @@
4858
- Spacing above checkout completion button.
4959
- Ensure dynamic "Information" color is used for `.button--color-information` class.
5060

51-
## [1.11.1] - 2018-07-21
61+
## [1.11.1] - 2018-07-21
5262

5363
### Fix
5464

5565
- Ensure out of stock variations cannot be added to the cart.
5666
- Spacing on cart totals.
5767
- Ensure footer remains sticky when using widgets.
5868

59-
## [1.11.0] - 2018-07-20
69+
## [1.11.0] - 2018-07-20
6070

6171
### New
6272

@@ -87,7 +97,7 @@
8797
- Output product sale flash via `bigbox_woocommerce_loop_product_price_before` and `bigbox_woocommerce_product_price_after`
8898
- Add `product__meta` class to all product card meta items.
8999

90-
## [1.10.0] - 2018-07-11
100+
## [1.10.0] - 2018-07-11
91101

92102
### New
93103

app/class-integrations.php

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,30 +96,38 @@ public function instantiate_integration( $integration ) {
9696
*/
9797
public function get_integrations() {
9898
$integrations = [
99-
'woocommerce' => [
99+
'woocommerce' => [
100100
'slug' => 'woocommerce',
101101
'class' => Integration\WooCommerce::class,
102102
'dependencies' => [
103103
defined( 'WC_PLUGIN_FILE' ) && WC_PLUGIN_FILE,
104104
],
105105
],
106-
'woocommerce-brands' => [
106+
'woocommerce-brands' => [
107107
'slug' => 'woocommerce-brands',
108108
'class' => Integration\WooCommerce_Brands::class,
109109
'dependencies' => [
110110
defined( 'WC_PLUGIN_FILE' ) && WC_PLUGIN_FILE,
111111
defined( 'WC_BRANDS_VERSION' ) && WC_BRANDS_VERSION,
112112
],
113113
],
114-
'facetwp' => [
114+
'woocommerce-product-vendors' => [
115+
'slug' => 'woocommerce-product-vendors',
116+
'class' => Integration\WooCommerce_Product_Vendors::class,
117+
'dependencies' => [
118+
defined( 'WC_PLUGIN_FILE' ) && WC_PLUGIN_FILE,
119+
defined( 'WC_PRODUCT_VENDORS_VERSION' ) && WC_PRODUCT_VENDORS_VERSION,
120+
],
121+
],
122+
'facetwp' => [
115123
'slug' => 'facetwp',
116124
'class' => Integration\FacetWP::class,
117125
'dependencies' => [
118126
defined( 'WC_PLUGIN_FILE' ) && WC_PLUGIN_FILE,
119127
defined( 'FACETWP_VERSION' ) && FACETWP_VERSION,
120128
],
121129
],
122-
'gutenberg' => [
130+
'gutenberg' => [
123131
'slug' => 'gutenberg',
124132
'class' => Integration\Gutenberg::class,
125133
'dependencies' => [

app/class-theme.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public function load_helpers() {
5454
'widgets',
5555
'wordpress',
5656
'lazyload',
57+
'extras',
5758
];
5859

5960
foreach ( $helpers as $file ) {

app/class-themefactory.php

Lines changed: 0 additions & 44 deletions
This file was deleted.

app/customize/controls/colors.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function bigbox_customize_register_colors_controls( $wp_customize ) {
116116
$wp_customize,
117117
'bigbox-colors-element-missing',
118118
[
119-
'label' => __( ' Want to see something else here?', 'bigbox' ),
119+
'label' => __( '📦 Want to see something else here?', 'bigbox' ),
120120
'content' => '<p>' . __( 'Want specific control over an individual element\'s color?', 'bigbox' ) . '</p><p><a href="https://bigboxwc.com/account/support" target="_blank" rel="noopener noreferrer">' . __( 'Contact us with a suggestion &rarr;', 'bigbox' ) . '</a></p>',
121121
'priority' => 9999,
122122
'section' => 'colors-elements',

app/customize/output/danger.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
'selectors' => [
3434
'.card.card--color-danger',
3535
'.woocommerce-error',
36+
'.wcpv-registration-message.wcpv-shortcode-registration-form-errors',
3637
],
3738
'declarations' => [
3839
'color' => esc_attr( $danger ),
@@ -45,6 +46,7 @@
4546
[
4647
'selectors' => [
4748
'.button--color-danger',
49+
'.woocommerce-orders-table__cell-order-actions .woocommerce-button.cancel',
4850
],
4951
'declarations' => [
5052
'background-color' => esc_attr( $danger ),

app/customize/output/gray-200.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
'.wc-social-login',
3434
'.woocommerce-OrderUpdate',
3535
'.woocommerce-shipping-address',
36+
'.tax-wcpv_product_vendors .woocommerce-products-header__title img',
3637
],
3738
'declarations' => [
3839
'border-color' => esc_attr( $gray200 ),

0 commit comments

Comments
 (0)