Page Builder by SiteOrigin - Version 2.9.4

Version Description

  • 5 December 2018 =
  • Layout block: Set default state to edit mode.
Download this release

Release Info

Developer gpriday
Plugin Icon 128x128 Page Builder by SiteOrigin
Version 2.9.4
Comparing to
See all releases

Code changes from version 2.9.3 to 2.9.4

compat/js/siteorigin-panels-layout-block.js CHANGED
@@ -35,13 +35,13 @@
35
  },
36
 
37
  edit: withState( {
38
- editing: false,
39
  panelsInitialized: false,
40
  loadingPreview: false,
41
  previewInitialized: false,
42
  previewHtml: ''
43
  } )( function ( props ) {
44
- var editing = props.editing || ! props.attributes.panelsData;
45
 
46
  function setupPreview() {
47
  if ( ! editing ) {
@@ -110,11 +110,12 @@
110
 
111
  builderView.on( 'content_change', function () {
112
  props.setAttributes( { panelsData: builderView.getData() } );
 
113
  } );
114
 
115
  $( document ).trigger( 'panels_setup', builderView );
116
 
117
- props.setState( { panelsInitialized: true } );
118
  }
119
  }
120
  if ( editing ) {
35
  },
36
 
37
  edit: withState( {
38
+ editing: true,
39
  panelsInitialized: false,
40
  loadingPreview: false,
41
  previewInitialized: false,
42
  previewHtml: ''
43
  } )( function ( props ) {
44
+ var editing = props.editing;
45
 
46
  function setupPreview() {
47
  if ( ! editing ) {
110
 
111
  builderView.on( 'content_change', function () {
112
  props.setAttributes( { panelsData: builderView.getData() } );
113
+ props.setState( { previewInitialized: false, previewHtml: '' } );
114
  } );
115
 
116
  $( document ).trigger( 'panels_setup', builderView );
117
 
118
+ props.setState( { editing: true, panelsInitialized: true } );
119
  }
120
  }
121
  if ( editing ) {
compat/js/siteorigin-panels-layout-block.min.js CHANGED
@@ -1 +1 @@
1
- !function(e,n,t,i,o,a){var l=i.createElement,r=e.BlockControls,s=a.withState,d=o.Toolbar,c=o.IconButton,p=o.Spinner,u=t.__;n.registerBlockType("siteorigin-panels/layout-block",{title:u("SiteOrigin Layout (in beta)","siteorigin-panels"),description:u("Build a layout using SiteOrigin's Page Builder.","siteorigin-panels"),icon:function(){return l("span",{className:"siteorigin-panels-block-icon"})},category:"layout",supports:{html:!1},attributes:{panelsData:{type:"object"}},edit:s({editing:!1,panelsInitialized:!1,loadingPreview:!1,previewInitialized:!1,previewHtml:""})(function(s){var e=s.editing||!s.attributes.panelsData;if(e)return[l(r,{key:"controls"},l(d,null,l(c,{className:"components-icon-button components-toolbar__control",label:u("Preview layout.","siteorigin-panels"),onClick:function(){s.setState({editing:!1,previewInitialized:!1})},icon:"visibility"}))),l("div",{key:"pageBuilder",className:"siteorigin-panels-layout-block-container",ref:function(e){if(!s.panelsInitialized){var n=jQuery(e),t=new panels.model.builder,i=new panels.view.builder({model:t,config:{editorType:"standalone"}}),o=JSON.parse(JSON.stringify($.extend({},s.attributes.panelsData)));function a(){s.toggleSelection(!1),$(document).on("mouseup",function e(){s.toggleSelection(!0),$(document).off("mouseup",e)})}i.on("row_added",function(){i.$(".so-row-move").off("mousedown",a),i.$(".so-row-move").on("mousedown",a),i.$(".so-widget").off("mousedown",a),i.$(".so-widget").on("mousedown",a)}),i.on("widget_added",function(){i.$(".so-widget").off("mousedown",a),i.$(".so-widget").on("mousedown",a)}),i.render().attach({container:n}).setData(o),i.trigger("builder_resize"),i.on("content_change",function(){s.setAttributes({panelsData:i.getData()})}),$(document).trigger("panels_setup",i),s.setState({panelsInitialized:!0})}}})];var n=!s.editing&&!s.previewHtml&&s.attributes.panelsData;n&&$.post({url:soPanelsBlockEditorAdmin.previewUrl,data:{action:"so_panels_block_editor_preview",panelsData:JSON.stringify(s.attributes.panelsData)}}).then(function(e){s.setState({previewHtml:e,loadingPreview:!1})});var t=s.previewHtml?s.previewHtml:"";return[l(r,{key:"controls"},l(d,null,l(c,{className:"components-icon-button components-toolbar__control",label:u("Edit layout.","siteorigin-panels"),onClick:function(){s.setState({editing:!0,panelsInitialized:!1})},icon:"edit"}))),l("div",{key:"preview",className:"so-panels-block-layout-preview-container"},n?l("div",{className:"so-panels-spinner-container"},l("span",null,l(p))):l("div",{dangerouslySetInnerHTML:{__html:t},ref:function(){e||($(document).trigger("panels_setup_preview"),window.sowb&&$(window.sowb).trigger("setup_widgets"))}}))]}),save:function(){return null}})}(window.wp.editor,window.wp.blocks,window.wp.i18n,window.wp.element,window.wp.components,window.wp.compose);
1
+ !function(e,n,t,i,o,a){var l=i.createElement,r=e.BlockControls,s=a.withState,d=o.Toolbar,p=o.IconButton,c=o.Spinner,u=t.__;n.registerBlockType("siteorigin-panels/layout-block",{title:u("SiteOrigin Layout (in beta)","siteorigin-panels"),description:u("Build a layout using SiteOrigin's Page Builder.","siteorigin-panels"),icon:function(){return l("span",{className:"siteorigin-panels-block-icon"})},category:"layout",supports:{html:!1},attributes:{panelsData:{type:"object"}},edit:s({editing:!0,panelsInitialized:!1,loadingPreview:!1,previewInitialized:!1,previewHtml:""})(function(s){var e=s.editing;if(e)return[l(r,{key:"controls"},l(d,null,l(p,{className:"components-icon-button components-toolbar__control",label:u("Preview layout.","siteorigin-panels"),onClick:function(){s.setState({editing:!1,previewInitialized:!1})},icon:"visibility"}))),l("div",{key:"pageBuilder",className:"siteorigin-panels-layout-block-container",ref:function(e){if(!s.panelsInitialized){var n=jQuery(e),t=new panels.model.builder,i=new panels.view.builder({model:t,config:{editorType:"standalone"}}),o=JSON.parse(JSON.stringify($.extend({},s.attributes.panelsData)));function a(){s.toggleSelection(!1),$(document).on("mouseup",function e(){s.toggleSelection(!0),$(document).off("mouseup",e)})}i.on("row_added",function(){i.$(".so-row-move").off("mousedown",a),i.$(".so-row-move").on("mousedown",a),i.$(".so-widget").off("mousedown",a),i.$(".so-widget").on("mousedown",a)}),i.on("widget_added",function(){i.$(".so-widget").off("mousedown",a),i.$(".so-widget").on("mousedown",a)}),i.render().attach({container:n}).setData(o),i.trigger("builder_resize"),i.on("content_change",function(){s.setAttributes({panelsData:i.getData()}),s.setState({previewInitialized:!1,previewHtml:""})}),$(document).trigger("panels_setup",i),s.setState({editing:!0,panelsInitialized:!0})}}})];var n=!s.editing&&!s.previewHtml&&s.attributes.panelsData;n&&$.post({url:soPanelsBlockEditorAdmin.previewUrl,data:{action:"so_panels_block_editor_preview",panelsData:JSON.stringify(s.attributes.panelsData)}}).then(function(e){s.setState({previewHtml:e,loadingPreview:!1})});var t=s.previewHtml?s.previewHtml:"";return[l(r,{key:"controls"},l(d,null,l(p,{className:"components-icon-button components-toolbar__control",label:u("Edit layout.","siteorigin-panels"),onClick:function(){s.setState({editing:!0,panelsInitialized:!1})},icon:"edit"}))),l("div",{key:"preview",className:"so-panels-block-layout-preview-container"},n?l("div",{className:"so-panels-spinner-container"},l("span",null,l(c))):l("div",{dangerouslySetInnerHTML:{__html:t},ref:function(){e||($(document).trigger("panels_setup_preview"),window.sowb&&$(window.sowb).trigger("setup_widgets"))}}))]}),save:function(){return null}})}(window.wp.editor,window.wp.blocks,window.wp.i18n,window.wp.element,window.wp.components,window.wp.compose);
js/{siteorigin-panels-293.js → siteorigin-panels-294.js} RENAMED
File without changes
js/{siteorigin-panels-293.min.js → siteorigin-panels-294.min.js} RENAMED
File without changes
js/{styling-293.js → styling-294.js} RENAMED
File without changes
js/{styling-293.min.js → styling-294.min.js} RENAMED
File without changes
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Tags: page builder, responsive, widget, widgets, builder, page, admin, gallery, content, cms, pages, post, css, layout, grid
3
  Requires at least: 4.4
4
  Tested up to: 4.9
5
- Stable tag: 2.9.3
6
- Build time: 2018-12-05T10:12:21-08:00
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
  Donate link: https://siteorigin.com/downloads/contribution/
@@ -96,6 +96,9 @@ We've tried to ensure that Page Builder is compatible with most plugin widgets.
96
 
97
  == Changelog ==
98
 
 
 
 
99
  = 2.9.3 - 5 December 2018 =
100
  * Use front end i18n for block editor.
101
  * Ensure contextual menu works in dialogs.
2
  Tags: page builder, responsive, widget, widgets, builder, page, admin, gallery, content, cms, pages, post, css, layout, grid
3
  Requires at least: 4.4
4
  Tested up to: 4.9
5
+ Stable tag: 2.9.4
6
+ Build time: 2018-12-05T15:14:16-08:00
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl.html
9
  Donate link: https://siteorigin.com/downloads/contribution/
96
 
97
  == Changelog ==
98
 
99
+ = 2.9.4 - 5 December 2018 =
100
+ * Layout block: Set default state to edit mode.
101
+
102
  = 2.9.3 - 5 December 2018 =
103
  * Use front end i18n for block editor.
104
  * Ensure contextual menu works in dialogs.
siteorigin-panels.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Page Builder by SiteOrigin
4
  Plugin URI: https://siteorigin.com/page-builder/
5
  Description: A drag and drop, responsive page builder that simplifies building your website.
6
- Version: 2.9.3
7
  Author: SiteOrigin
8
  Author URI: https://siteorigin.com
9
  License: GPL3
@@ -11,12 +11,12 @@ License URI: http://www.gnu.org/licenses/gpl.html
11
  Donate link: http://siteorigin.com/page-builder/#donate
12
  */
13
 
14
- define( 'SITEORIGIN_PANELS_VERSION', '2.9.3' );
15
  if ( ! defined( 'SITEORIGIN_PANELS_JS_SUFFIX' ) ) {
16
  define( 'SITEORIGIN_PANELS_JS_SUFFIX', '.min' );
17
  }
18
  define( 'SITEORIGIN_PANELS_CSS_SUFFIX', '.min' );
19
- define( 'SITEORIGIN_PANELS_VERSION_SUFFIX', '-293' );
20
 
21
  require_once plugin_dir_path( __FILE__ ) . 'inc/functions.php';
22
 
3
  Plugin Name: Page Builder by SiteOrigin
4
  Plugin URI: https://siteorigin.com/page-builder/
5
  Description: A drag and drop, responsive page builder that simplifies building your website.
6
+ Version: 2.9.4
7
  Author: SiteOrigin
8
  Author URI: https://siteorigin.com
9
  License: GPL3
11
  Donate link: http://siteorigin.com/page-builder/#donate
12
  */
13
 
14
+ define( 'SITEORIGIN_PANELS_VERSION', '2.9.4' );
15
  if ( ! defined( 'SITEORIGIN_PANELS_JS_SUFFIX' ) ) {
16
  define( 'SITEORIGIN_PANELS_JS_SUFFIX', '.min' );
17
  }
18
  define( 'SITEORIGIN_PANELS_CSS_SUFFIX', '.min' );
19
+ define( 'SITEORIGIN_PANELS_VERSION_SUFFIX', '-294' );
20
 
21
  require_once plugin_dir_path( __FILE__ ) . 'inc/functions.php';
22