Skip to content

Commit

Permalink
Merge pull request #1406 from publishpress/release-3.2.4
Browse files Browse the repository at this point in the history
Release 3.2.4
  • Loading branch information
htmgarcia authored Aug 5, 2024
2 parents 004524d + 48c8d0d commit 108ee18
Show file tree
Hide file tree
Showing 55 changed files with 18,429 additions and 16,373 deletions.
13 changes: 8 additions & 5 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"presets" : [
["env", {
"presets": [
["@babel/preset-env", {
"targets": {
"browsers": ["last 2 versions", "ie >= 10"]
}
}],
"react", "stage-0"
"@babel/preset-react"
],
"plugins": ["transform-object-assign"]
}
"plugins": [
"@babel/plugin-transform-object-assign",
"@babel/plugin-proposal-function-bind"
]
}
2 changes: 0 additions & 2 deletions .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
/bundled/**
/dev-workspace
/dist
/gulpfile.js
/json_translations.sh
/json_translations.sh.dist
/node_modules
Expand Down Expand Up @@ -60,7 +59,6 @@ composer.lock
cs
cypress
cypress.json
gulpfile.js
jest.config.js
jsconfig.json
json_translations.sh.dist
Expand Down
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
/bundled/** export-ignore
/dev-workspace export-ignore
/dist export-ignore
/gulpfile.js export-ignore
/json_translations.sh export-ignore
/json_translations.sh.dist export-ignore
/node_modules export-ignore
Expand Down
1 change: 0 additions & 1 deletion .rsync-filters-pre-build
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
- /bundled/**
- /dev-workspace
- /dist
- /gulpfile.js
- /node_modules
- /package-lock.json
- /package.json
Expand Down
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ We will review and contact you as soon as possible.

## Development

Be sure to initialize Docker first.

1. `cd dev-workspace`
2. `./run`

### React JS and JSX Files

We use [React](https://facebook.github.io/react/) to build part of the user interface.
Expand All @@ -45,19 +50,21 @@ Please check the requirements at [our documentation page](https://publishpress.g

#### Compiling JSX files to JS

Run the command `npm run build_react_dev` just once.
Inside Docker run `composer build:js` or `composer build:js-dev`

#### Compiling SCSS files to CSS

Run the command `npm run compile_css` every time after you make changes to any SCSS file in order to compile to CSS.
Inside Docker run `composer build:css` or `composer build:css-dev`

Please note there are other commands related to CSS compilation that involves specific files from admin. For more details check all the scripts in package.json.
Please note there are other commands related to CSS compilation that involves specific files from admin. For more details check all the scripts in composer.json.

#### Creating a zip installer
#### Minify JS files

You need to have `gulp-cli` installed globally and `gulp` and `gulp-zip` in local. [Click here](https://gulpjs.com/docs/en/getting-started/quick-start/) for more details.
Check the commands related to JS minification in composer.json scripts. All of them uses uglifyjs.

#### Creating a zip installer

Through command line run `gulp bundle`. A zip ready to install as plugin should be generated inside bundled/ folder. This zip will exclude non required files in WordPress, like JSX and SCSS.
Inside Docker run `composer build`.

## License

Expand Down
4 changes: 2 additions & 2 deletions 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: PublishPress Blocks has everything you need to build professional websites with the Gutenberg editor.
* Version: 3.2.3
* Version: 3.2.4
* Author: PublishPress
* Author URI: https://publishpress.com/
* Text Domain: advanced-gutenberg
Expand Down Expand Up @@ -71,7 +71,7 @@
define( 'ADVANCED_GUTENBERG_LOADED', true );

if ( ! defined( 'ADVANCED_GUTENBERG_VERSION' ) ) {
define( 'ADVANCED_GUTENBERG_VERSION', '3.2.3' );
define( 'ADVANCED_GUTENBERG_VERSION', '3.2.4' );
}

if ( ! defined( 'ADVANCED_GUTENBERG_PLUGIN' ) ) {
Expand Down
11 changes: 10 additions & 1 deletion assets/blocks/0-adv-components/datetime.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export function AdvDateTimeControl(props) {
date,
onChangeDate,
onDateClear,
onInvalidDate
onInvalidDate,
placement,
offset
} = props;

return (
Expand Down Expand Up @@ -52,6 +54,8 @@ export function AdvDateTimeControl(props) {
className="advgb-advcalendar-popover"
onClose={ setPopupState.bind( null, false ) }
resize={ false }
placement={ placement }
offset={ offset }
>
<label className="advgb-advcalendar-popover-label">
{ dateLabel }
Expand All @@ -74,6 +78,11 @@ export function AdvDateTimeControl(props) {
)
}

AdvDateTimeControl.defaultProps = {
placement: 'left',
offset: 40
}

export function AdvDaysControl(props) {
const allDays = [
{ slug: 0, label: _x( 'S', 'Sunday first letter', 'advanced-gutenberg' ) }, // Sunday
Expand Down
5 changes: 3 additions & 2 deletions assets/blocks/advtable/block.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
let lastValue = '';

const previewImageData = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAADxCAYAAADiK6r+AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAB5NJREFUeNrs3M+LE/0dwPGZyUTR1gV/0PUiDx68tTyFHnpQilCfHnqueuhBEfwD2mOhh6L24qXQS499CsVLF6TtvZdipQ9alIeqbPEkRSi1uhalbjLTiU/izo7fxE0yyebJvF4wT9x9ds3E+M5nJjtfowgAAAAAAAAAAAAAABZLPMvfPE3Tud0XfEnlvf90Op0vX+hF4PEY9+MFgMYEvYPP57OIPq458OrvGQ+5FTli3/o4D/z/WoOPZxh4POTXIkfsW78Oxf7ua4rY84UIvRJ5Ne7QZrJjkm+PethW23RPa468uiVjBg9NCD4UdRb4ePC18Yhz/NlP9NKbbqG4e7fJjRs3Vk+fPv29AwcOfDdJkqPl+83z3FNPY8Rx3Ps7/7rwtwcPHvz+0qVLf19fX++UIs9K23svBtNM9XiKyIdN8dYg8idPnvzgyJEjP261Wl83vWFLlmX/LoL/w/Xr13927dq156XAu5XYs/KRwKSxt2o6ZE/629vIT506tff+/ftXDh48+PNiiq+KHN6b7vv37NnzzZMnT35y4sSJP928efPlDgZwXLxAzG+iB6Z5UtrSR48efXL8+PFfFw/mgK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2xwmI1lNS9U3Ece5pgwaJPat6h/M2bNxueGxhPlmX/GzT0gcjzeYde3ql3d37v3r2/OnyH8bx69eqfQ9oa9bmZhp6PCv/ixYufFzv9F08d7NytW7f+OGKi59NO9brO0d9tGxsb3bt37/6qOBT5r6cPPuzp06e/O3/+/GeljrJKV9t0Op25HbrnocgH24ULF/78+PHjXziEh9Fevnz52ZUrV34Z6CgLfG5iY79Fnqbp4Pt6W6v/YtG7Tftbu7+la2tr3z5z5sxP9u/f/41J7guWVTGV/7O+vv7puXPnfvPw4cNXxae6xbbZ3zql204/+u4g/uJ783mHnpRCbw0CL92mly9f/trZs2e/tbq6+lG73f5K7/vyPI+ETxMVp7Sbz58//9ft27c/v3r16j9evHix2Y+4U9oGwXcroedzC70fe1yJvRWIPS1N+lbpRSEu3a/YaZLqKe8g4G4p6s3SdO+WJvlgiyYJPZ1yp+PSDg+i71ZijioPTugIfXu83UrU3Sj8/lc06bl6WkPkUeXVqRxweSerE13sNC3wahNZJe5O5eMsquGNuGknejX48mTvBh6Y0BH79lYGIXcDUz040Sf50drEoffurDhPr071LPDAsn7cWSDyeNr3CmAJJnoWOIyvHr5H0xy21zHRQw8iCzygvHQOH5VuBU5TJ3posmeVj2v5GfrUoZV+1BYFpnVSuY0DgQsdsW+/QGZY5Pmkh+21hPaB2IdtIkfsO9umjry22AKxR0PCdl6O0MPn61EU/jHa1JHXHlv/QppoyOF5aJKLnSYGHoWCrn7dJBfGzCX0wHQfdj8CR/QjPq5jis8tuCHRR6JH3NvVOb0XJrL+CwA0Ut3TGgAAAAAAAAAAqPi/AAMAGqyWU8hzlH8AAAAASUVORK5CYII=';

const previewImageDataStripes = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAADxCAYAAADiK6r+AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4dpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD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ZtWvXflHQUVLws30L03S869fr9Z3r9ZZa78Giexn3lnpviTc2Nr5+/vz5Hy8tLX219/vAF6PyfzY3N3998eLF3zx+/Hi786N2Z2n2llbmstWLvt2Pv3PddNxuJw09yoRe6weeuYyvXr365QsXLnzt1KlTn3SuezTzbwqfyuns0jZfvnz5r3v37n1+/fr1v7969arZi7iVWfrBt3OhpzMLvfs6eRzHYS72WkHscWakr2UeFMJM5GKnSvK7vP2A25mom5nRvZ0ZyftLsJ/Q4wlXOsyscD/6di7mIHfjhI7QB+Nt56JuB8XPfwX73VePpxB5kHt0ygacXcn8iC52qhZ4vokkF3cr930STOGJuElH9Hzw2ZG9XXDDhI7YB1vph9wuGNULR/T9vLS279C7/1hnPz0/qicFNyzpxZ0URJ4NXOxUdURPCqbx+el7MMm0fRojetGNSApuUJrZhw8ylwKnqiN60cie5L6fymvoO6Ht51n33UeJOA5yU/D8s/FhbiTPBy50xD54gExZ5Gl22j6Tl9cGpgTDYy9bRI7YR1vei3wuoZfEHpSEbb8coRfvrwdB8ctoadETcHMJPRN8UcjhkOm62Kli4EFR0Pnf6x4YU/rH5hl6weheFrTAEf2Q7/d6GW3uoY8QfSB6xD1o2Og9l9CBj4+PewahA0IHhA4IHRA6IHRA6IDQoVL+L8AA9NQFWmpfe8MAAAAASUVORK5CYII=';

class AdvTable extends Component {
constructor() {
super(...arguments);
Expand Down Expand Up @@ -921,7 +922,7 @@
if (!body.length) {
return (
isPreview ?
<img alt={__('Advanced Table', 'advanced-gutenberg')} width='100%' src={previewImageData}/>
<img alt={__('Advanced Table', 'advanced-gutenberg')} width='100%' src={className.includes('is-style-stripes') ? previewImageDataStripes : previewImageData}/>
:
<Fragment>
<div className="advgb-init-table">
Expand Down
8 changes: 2 additions & 6 deletions assets/blocks/block-controls.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions assets/blocks/block-controls.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
2 changes: 1 addition & 1 deletion assets/blocks/block-controls.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/blocks/block-controls/block-controls.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ import {
return class BlockControlsEdit extends Component {

constructor(props) {
super(...props);
super(props);

this.state = {
taxModOptions: [], // Store modified taxonomy options to decide if selected tax is for "all terms" or "selected terms"
Expand Down
16 changes: 2 additions & 14 deletions assets/blocks/blocks.js

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions assets/blocks/blocks.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/

/** @license React v16.14.0
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
2 changes: 1 addition & 1 deletion assets/blocks/blocks.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/blocks/custom-styles.js

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

Loading

0 comments on commit 108ee18

Please sign in to comment.