WooCommerce Gutenberg Products Block - Version 6.3.2

Version Description

  • 2021-11-17 =

Enhancements

  • Legacy Template Block: allow users to delete the block. (5176)

Bug Fixes

  • Removed WooCommerce block templates from appearing in the template dropdown for a page or post. (5167)
Download this release

Release Info

Developer automattic
Plugin Icon 128x128 WooCommerce Gutenberg Products Block
Version 6.3.2
Comparing to
See all releases

Code changes from version 6.3.1 to 6.3.2

assets/js/blocks/legacy-template/index.tsx CHANGED
@@ -84,12 +84,6 @@ registerBlockType( 'woocommerce/legacy-template', {
84
  type: 'string',
85
  default: 'any',
86
  },
87
- lock: {
88
- type: 'object',
89
- default: {
90
- remove: true,
91
- },
92
- },
93
  },
94
  edit: Edit,
95
  save: () => null,
84
  type: 'string',
85
  default: 'any',
86
  },
 
 
 
 
 
 
87
  },
88
  edit: Edit,
89
  save: () => null,
build/legacy-template.asset.php CHANGED
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wc-settings', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '6b2a2ba7c1e02704773ee262a317f8d2');
1
+ <?php return array('dependencies' => array('wc-settings', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '8530b046ac31aed24977829a0b9fd77e');
build/legacy-template.js CHANGED
@@ -1,3 +1,3 @@
1
- this.wc=this.wc||{},this.wc.blocks=this.wc.blocks||{},this.wc.blocks["legacy-template"]=function(e){function t(t){for(var r,l,i=t[0],u=t[1],a=t[2],d=0,s=[];d<i.length;d++)l=i[d],Object.prototype.hasOwnProperty.call(n,l)&&n[l]&&s.push(n[l][0]),n[l]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(p&&p(t);s.length;)s.shift()();return c.push.apply(c,a||[]),o()}function o(){for(var e,t=0;t<c.length;t++){for(var o=c[t],r=!0,i=1;i<o.length;i++){var u=o[i];0!==n[u]&&(r=!1)}r&&(c.splice(t--,1),e=l(l.s=o[0]))}return e}var r={},n={24:0},c=[];function l(t){if(r[t])return r[t].exports;var o=r[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,l),o.l=!0,o.exports}l.m=e,l.c=r,l.d=function(e,t,o){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(l.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)l.d(o,r,function(t){return e[t]}.bind(null,r));return o},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="";var i=window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[],u=i.push.bind(i);i.push=t,i=i.slice();for(var a=0;a<i.length;a++)t(i[a]);var p=u;return c.push([842,0]),o()}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},12:function(e,t){e.exports=window.wp.blockEditor},24:function(e,t){e.exports=window.wp.blocks},27:function(e,t){e.exports=window.wp.primitives},3:function(e,t){e.exports=window.wp.components},38:function(e,t,o){"use strict";o.d(t,"o",(function(){return c})),o.d(t,"m",(function(){return l})),o.d(t,"l",(function(){return i})),o.d(t,"n",(function(){return u})),o.d(t,"j",(function(){return a})),o.d(t,"e",(function(){return p})),o.d(t,"f",(function(){return d})),o.d(t,"g",(function(){return s})),o.d(t,"k",(function(){return m})),o.d(t,"c",(function(){return b})),o.d(t,"d",(function(){return f})),o.d(t,"h",(function(){return g})),o.d(t,"a",(function(){return w})),o.d(t,"i",(function(){return h})),o.d(t,"b",(function(){return O}));var r,n=o(4),c=Object(n.getSetting)("wcBlocksConfig",{buildPhase:1,pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),l=c.pluginUrl+"images/",i=c.pluginUrl+"build/",u=c.buildPhase,a=null===(r=n.STORE_PAGES.shop)||void 0===r?void 0:r.permalink,p=n.STORE_PAGES.checkout.id,d=n.STORE_PAGES.checkout.permalink,s=n.STORE_PAGES.privacy.permalink,m=(n.STORE_PAGES.privacy.title,n.STORE_PAGES.terms.permalink),b=(n.STORE_PAGES.terms.title,n.STORE_PAGES.cart.id),f=n.STORE_PAGES.cart.permalink,g=(n.STORE_PAGES.myaccount.permalink?n.STORE_PAGES.myaccount.permalink:Object(n.getSetting)("wpLoginUrl","/wp-login.php"),Object(n.getSetting)("shippingCountries",{})),w=Object(n.getSetting)("allowedCountries",{}),h=Object(n.getSetting)("shippingStates",{}),O=Object(n.getSetting)("allowedStates",{})},4:function(e,t){e.exports=window.wc.wcSettings},842:function(e,t,o){e.exports=o(871)},843:function(e,t){},871:function(e,t,o){"use strict";o.r(t);var r=o(0),n=o(24),c=o(38),l=o(12),i=o(3),u=o(1),a=o(892),p=(o(843),{"single-product":{title:Object(u.__)("WooCommerce Single Product Template","woo-gutenberg-products-block"),placeholder:"single-product"},"archive-product":{title:Object(u.__)("WooCommerce Product Archive Template","woo-gutenberg-products-block"),placeholder:"archive-product"},"taxonomy-product_cat":{title:Object(u.__)("WooCommerce Product Taxonomy Template","woo-gutenberg-products-block"),placeholder:"archive-product"},"taxonomy-product_tag":{title:Object(u.__)("WooCommerce Product Tag Template","woo-gutenberg-products-block"),placeholder:"archive-product"}});Object(n.registerBlockType)("woocommerce/legacy-template",{title:Object(u.__)("WooCommerce Legacy Template","woo-gutenberg-products-block"),category:"woocommerce",apiVersion:2,keywords:[Object(u.__)("WooCommerce","woo-gutenberg-products-block")],description:Object(u.__)("Renders legacy WooCommerce PHP templates.","woo-gutenberg-products-block"),supports:{align:!1,html:!1,multiple:!1,reusable:!1,inserter:!1},example:{attributes:{isPreview:!0}},attributes:{template:{type:"string",default:"any"},lock:{type:"object",default:{remove:!0}}},edit:function(e){var t,o,n,d,s=e.attributes,m=Object(l.useBlockProps)(),b=null!==(t=null===(o=p[s.template])||void 0===o?void 0:o.title)&&void 0!==t?t:s.template,f=null!==(n=null===(d=p[s.template])||void 0===d?void 0:d.placeholder)&&void 0!==n?n:"fallback";return Object(r.createElement)("div",m,Object(r.createElement)(i.Placeholder,{icon:a.a,label:b,className:"wp-block-woocommerce-legacy-template__placeholder"},Object(r.createElement)("div",{className:"wp-block-woocommerce-legacy-template__placeholder-copy"},Object(u.sprintf)(
2
  /* translators: %s is the template title */
3
  Object(u.__)("This is an editor placeholder for the %s. On your store this will be replaced by the template and display with your product image(s), title, price, etc. You can move this placeholder around and add further blocks around it to extend the template.","woo-gutenberg-products-block"),b)),Object(r.createElement)("div",{className:"wp-block-woocommerce-legacy-template__placeholder-wireframe"},Object(r.createElement)("img",{className:"wp-block-woocommerce-legacy-template__placeholder-image",src:"".concat(c.m,"template-placeholders/").concat(f,".svg"),alt:b}))))},save:function(){return null}})}});
1
+ this.wc=this.wc||{},this.wc.blocks=this.wc.blocks||{},this.wc.blocks["legacy-template"]=function(e){function t(t){for(var r,l,i=t[0],u=t[1],a=t[2],d=0,s=[];d<i.length;d++)l=i[d],Object.prototype.hasOwnProperty.call(n,l)&&n[l]&&s.push(n[l][0]),n[l]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);for(p&&p(t);s.length;)s.shift()();return c.push.apply(c,a||[]),o()}function o(){for(var e,t=0;t<c.length;t++){for(var o=c[t],r=!0,i=1;i<o.length;i++){var u=o[i];0!==n[u]&&(r=!1)}r&&(c.splice(t--,1),e=l(l.s=o[0]))}return e}var r={},n={24:0},c=[];function l(t){if(r[t])return r[t].exports;var o=r[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,l),o.l=!0,o.exports}l.m=e,l.c=r,l.d=function(e,t,o){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(l.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)l.d(o,r,function(t){return e[t]}.bind(null,r));return o},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="";var i=window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[],u=i.push.bind(i);i.push=t,i=i.slice();for(var a=0;a<i.length;a++)t(i[a]);var p=u;return c.push([842,0]),o()}({0:function(e,t){e.exports=window.wp.element},1:function(e,t){e.exports=window.wp.i18n},12:function(e,t){e.exports=window.wp.blockEditor},24:function(e,t){e.exports=window.wp.blocks},27:function(e,t){e.exports=window.wp.primitives},3:function(e,t){e.exports=window.wp.components},38:function(e,t,o){"use strict";o.d(t,"o",(function(){return c})),o.d(t,"m",(function(){return l})),o.d(t,"l",(function(){return i})),o.d(t,"n",(function(){return u})),o.d(t,"j",(function(){return a})),o.d(t,"e",(function(){return p})),o.d(t,"f",(function(){return d})),o.d(t,"g",(function(){return s})),o.d(t,"k",(function(){return m})),o.d(t,"c",(function(){return b})),o.d(t,"d",(function(){return f})),o.d(t,"h",(function(){return g})),o.d(t,"a",(function(){return w})),o.d(t,"i",(function(){return h})),o.d(t,"b",(function(){return O}));var r,n=o(4),c=Object(n.getSetting)("wcBlocksConfig",{buildPhase:1,pluginUrl:"",productCount:0,defaultAvatar:"",restApiRoutes:{},wordCountType:"words"}),l=c.pluginUrl+"images/",i=c.pluginUrl+"build/",u=c.buildPhase,a=null===(r=n.STORE_PAGES.shop)||void 0===r?void 0:r.permalink,p=n.STORE_PAGES.checkout.id,d=n.STORE_PAGES.checkout.permalink,s=n.STORE_PAGES.privacy.permalink,m=(n.STORE_PAGES.privacy.title,n.STORE_PAGES.terms.permalink),b=(n.STORE_PAGES.terms.title,n.STORE_PAGES.cart.id),f=n.STORE_PAGES.cart.permalink,g=(n.STORE_PAGES.myaccount.permalink?n.STORE_PAGES.myaccount.permalink:Object(n.getSetting)("wpLoginUrl","/wp-login.php"),Object(n.getSetting)("shippingCountries",{})),w=Object(n.getSetting)("allowedCountries",{}),h=Object(n.getSetting)("shippingStates",{}),O=Object(n.getSetting)("allowedStates",{})},4:function(e,t){e.exports=window.wc.wcSettings},842:function(e,t,o){e.exports=o(871)},843:function(e,t){},871:function(e,t,o){"use strict";o.r(t);var r=o(0),n=o(24),c=o(38),l=o(12),i=o(3),u=o(1),a=o(892),p=(o(843),{"single-product":{title:Object(u.__)("WooCommerce Single Product Template","woo-gutenberg-products-block"),placeholder:"single-product"},"archive-product":{title:Object(u.__)("WooCommerce Product Archive Template","woo-gutenberg-products-block"),placeholder:"archive-product"},"taxonomy-product_cat":{title:Object(u.__)("WooCommerce Product Taxonomy Template","woo-gutenberg-products-block"),placeholder:"archive-product"},"taxonomy-product_tag":{title:Object(u.__)("WooCommerce Product Tag Template","woo-gutenberg-products-block"),placeholder:"archive-product"}});Object(n.registerBlockType)("woocommerce/legacy-template",{title:Object(u.__)("WooCommerce Legacy Template","woo-gutenberg-products-block"),category:"woocommerce",apiVersion:2,keywords:[Object(u.__)("WooCommerce","woo-gutenberg-products-block")],description:Object(u.__)("Renders legacy WooCommerce PHP templates.","woo-gutenberg-products-block"),supports:{align:!1,html:!1,multiple:!1,reusable:!1,inserter:!1},example:{attributes:{isPreview:!0}},attributes:{template:{type:"string",default:"any"}},edit:function(e){var t,o,n,d,s=e.attributes,m=Object(l.useBlockProps)(),b=null!==(t=null===(o=p[s.template])||void 0===o?void 0:o.title)&&void 0!==t?t:s.template,f=null!==(n=null===(d=p[s.template])||void 0===d?void 0:d.placeholder)&&void 0!==n?n:"fallback";return Object(r.createElement)("div",m,Object(r.createElement)(i.Placeholder,{icon:a.a,label:b,className:"wp-block-woocommerce-legacy-template__placeholder"},Object(r.createElement)("div",{className:"wp-block-woocommerce-legacy-template__placeholder-copy"},Object(u.sprintf)(
2
  /* translators: %s is the template title */
3
  Object(u.__)("This is an editor placeholder for the %s. On your store this will be replaced by the template and display with your product image(s), title, price, etc. You can move this placeholder around and add further blocks around it to extend the template.","woo-gutenberg-products-block"),b)),Object(r.createElement)("div",{className:"wp-block-woocommerce-legacy-template__placeholder-wireframe"},Object(r.createElement)("img",{className:"wp-block-woocommerce-legacy-template__placeholder-image",src:"".concat(c.m,"template-placeholders/").concat(f,".svg"),alt:b}))))},save:function(){return null}})}});
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: gutenberg, woocommerce, woo commerce, products, blocks, woocommerce blocks
4
  Requires at least: 5.8
5
  Tested up to: 5.8
6
  Requires PHP: 7.0
7
- Stable tag: 6.3.1
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -85,6 +85,16 @@ Release and roadmap notes available on the [WooCommerce Developers Blog](https:/
85
 
86
  == Changelog ==
87
 
 
 
 
 
 
 
 
 
 
 
88
  = 6.3.1 - 2021-11-17 =
89
 
90
  #### Bug Fixes
4
  Requires at least: 5.8
5
  Tested up to: 5.8
6
  Requires PHP: 7.0
7
+ Stable tag: 6.3.2
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
85
 
86
  == Changelog ==
87
 
88
+ = 6.3.2 - 2021-11-17 =
89
+
90
+ #### Enhancements
91
+
92
+ - Legacy Template Block: allow users to delete the block. ([5176](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5176))
93
+
94
+ #### Bug Fixes
95
+
96
+ - Removed WooCommerce block templates from appearing in the template dropdown for a page or post. ([5167](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5167))
97
+
98
  = 6.3.1 - 2021-11-17 =
99
 
100
  #### Bug Fixes
src/BlockTemplatesController.php CHANGED
@@ -36,9 +36,9 @@ class BlockTemplatesController {
36
  * Initialization method.
37
  */
38
  protected function init() {
39
- add_filter( 'get_block_templates', array( $this, 'add_block_templates' ), 10, 3 );
40
  add_action( 'template_redirect', array( $this, 'render_block_template' ) );
41
  add_filter( 'pre_get_block_template', array( $this, 'maybe_return_blocks_template' ), 10, 3 );
 
42
  }
43
 
44
  /**
@@ -156,6 +156,16 @@ class BlockTemplatesController {
156
  continue;
157
  }
158
 
 
 
 
 
 
 
 
 
 
 
159
  // It would be custom if the template was modified in the editor, so if it's not custom we can load it from
160
  // the filesystem.
161
  if ( 'custom' !== $template_file->source ) {
@@ -166,13 +176,6 @@ class BlockTemplatesController {
166
  continue;
167
  }
168
 
169
- if ( $post_type &&
170
- isset( $template->post_types ) &&
171
- ! in_array( $post_type, $template->post_types, true )
172
- ) {
173
- continue;
174
- }
175
-
176
  $is_not_custom = false === array_search(
177
  wp_get_theme()->get_stylesheet() . '//' . $template_file->slug,
178
  array_column( $query_result, 'id' ),
@@ -317,6 +320,7 @@ class BlockTemplatesController {
317
  'source' => 'woocommerce',
318
  'title' => BlockTemplateUtils::convert_slug_to_title( $template_slug ),
319
  'description' => '',
 
320
  );
321
  $templates[] = (object) $new_template_item;
322
  }
36
  * Initialization method.
37
  */
38
  protected function init() {
 
39
  add_action( 'template_redirect', array( $this, 'render_block_template' ) );
40
  add_filter( 'pre_get_block_template', array( $this, 'maybe_return_blocks_template' ), 10, 3 );
41
+ add_filter( 'get_block_templates', array( $this, 'add_block_templates' ), 10, 3 );
42
  }
43
 
44
  /**
156
  continue;
157
  }
158
 
159
+ // If the current $post_type is set (e.g. on an Edit Post screen), and isn't included in the available post_types
160
+ // on the template file, then lets skip it so that it doesn't get added. This is typically used to hide templates
161
+ // in the template dropdown on the Edit Post page.
162
+ if ( $post_type &&
163
+ isset( $template_file->post_types ) &&
164
+ ! in_array( $post_type, $template_file->post_types, true )
165
+ ) {
166
+ continue;
167
+ }
168
+
169
  // It would be custom if the template was modified in the editor, so if it's not custom we can load it from
170
  // the filesystem.
171
  if ( 'custom' !== $template_file->source ) {
176
  continue;
177
  }
178
 
 
 
 
 
 
 
 
179
  $is_not_custom = false === array_search(
180
  wp_get_theme()->get_stylesheet() . '//' . $template_file->slug,
181
  array_column( $query_result, 'id' ),
320
  'source' => 'woocommerce',
321
  'title' => BlockTemplateUtils::convert_slug_to_title( $template_slug ),
322
  'description' => '',
323
+ 'post_types' => array(), // Don't appear in any Edit Post template selector dropdown.
324
  );
325
  $templates[] = (object) $new_template_item;
326
  }
src/Package.php CHANGED
@@ -106,7 +106,7 @@ class Package {
106
  NewPackage::class,
107
  function ( $container ) {
108
  // leave for automated version bumping.
109
- $version = '6.3.1';
110
  return new NewPackage(
111
  $version,
112
  dirname( __DIR__ ),
106
  NewPackage::class,
107
  function ( $container ) {
108
  // leave for automated version bumping.
109
+ $version = '6.3.2';
110
  return new NewPackage(
111
  $version,
112
  dirname( __DIR__ ),
src/Utils/BlockTemplateUtils.php CHANGED
@@ -108,6 +108,7 @@ class BlockTemplateUtils {
108
  $template->status = $post->post_status;
109
  $template->has_theme_file = $has_theme_file;
110
  $template->is_custom = true;
 
111
 
112
  return $template;
113
  }
@@ -135,6 +136,7 @@ class BlockTemplateUtils {
135
  $template->status = 'publish';
136
  $template->has_theme_file = true;
137
  $template->is_custom = false; // Templates loaded from the filesystem aren't custom, ones that have been edited and loaded from the DB are.
 
138
  return $template;
139
  }
140
 
108
  $template->status = $post->post_status;
109
  $template->has_theme_file = $has_theme_file;
110
  $template->is_custom = true;
111
+ $template->post_types = array(); // Don't appear in any Edit Post template selector dropdown.
112
 
113
  return $template;
114
  }
136
  $template->status = 'publish';
137
  $template->has_theme_file = true;
138
  $template->is_custom = false; // Templates loaded from the filesystem aren't custom, ones that have been edited and loaded from the DB are.
139
+ $template->post_types = array(); // Don't appear in any Edit Post template selector dropdown.
140
  return $template;
141
  }
142
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit2cad5efe5a80ce2cf6de6964289dd66a::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit604c92811d901d152d5a291ba3188dcf::getLoader();
vendor/autoload_packages.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp2cad5efe5a80ce2cf6de6964289dd66a;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp604c92811d901d152d5a291ba3188dcf;
9
 
10
  // phpcs:ignore
11
 
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit2cad5efe5a80ce2cf6de6964289dd66a
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit2cad5efe5a80ce2cf6de6964289dd66a
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit2cad5efe5a80ce2cf6de6964289dd66a', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
- spl_autoload_unregister(array('ComposerAutoloaderInit2cad5efe5a80ce2cf6de6964289dd66a', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit2cad5efe5a80ce2cf6de6964289dd66a::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit604c92811d901d152d5a291ba3188dcf
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit604c92811d901d152d5a291ba3188dcf', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit604c92811d901d152d5a291ba3188dcf', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInit604c92811d901d152d5a291ba3188dcf::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit2cad5efe5a80ce2cf6de6964289dd66a
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'C' =>
@@ -41,9 +41,9 @@ class ComposerStaticInit2cad5efe5a80ce2cf6de6964289dd66a
41
  public static function getInitializer(ClassLoader $loader)
42
  {
43
  return \Closure::bind(function () use ($loader) {
44
- $loader->prefixLengthsPsr4 = ComposerStaticInit2cad5efe5a80ce2cf6de6964289dd66a::$prefixLengthsPsr4;
45
- $loader->prefixDirsPsr4 = ComposerStaticInit2cad5efe5a80ce2cf6de6964289dd66a::$prefixDirsPsr4;
46
- $loader->classMap = ComposerStaticInit2cad5efe5a80ce2cf6de6964289dd66a::$classMap;
47
 
48
  }, null, ClassLoader::class);
49
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit604c92811d901d152d5a291ba3188dcf
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'C' =>
41
  public static function getInitializer(ClassLoader $loader)
42
  {
43
  return \Closure::bind(function () use ($loader) {
44
+ $loader->prefixLengthsPsr4 = ComposerStaticInit604c92811d901d152d5a291ba3188dcf::$prefixLengthsPsr4;
45
+ $loader->prefixDirsPsr4 = ComposerStaticInit604c92811d901d152d5a291ba3188dcf::$prefixDirsPsr4;
46
+ $loader->classMap = ComposerStaticInit604c92811d901d152d5a291ba3188dcf::$classMap;
47
 
48
  }, null, ClassLoader::class);
49
  }
vendor/composer/installed.php CHANGED
@@ -5,7 +5,7 @@
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
- 'reference' => '66add7628e81683ae0e95ce87409ad2d9116f0d3',
9
  'name' => 'woocommerce/woocommerce-blocks',
10
  'dev' => false,
11
  ),
@@ -46,7 +46,7 @@
46
  'type' => 'wordpress-plugin',
47
  'install_path' => __DIR__ . '/../../',
48
  'aliases' => array(),
49
- 'reference' => '66add7628e81683ae0e95ce87409ad2d9116f0d3',
50
  'dev_requirement' => false,
51
  ),
52
  ),
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
+ 'reference' => '6de45aba36091cbcad9179d09eb38b81d13aab22',
9
  'name' => 'woocommerce/woocommerce-blocks',
10
  'dev' => false,
11
  ),
46
  'type' => 'wordpress-plugin',
47
  'install_path' => __DIR__ . '/../../',
48
  'aliases' => array(),
49
+ 'reference' => '6de45aba36091cbcad9179d09eb38b81d13aab22',
50
  'dev_requirement' => false,
51
  ),
52
  ),
vendor/composer/jetpack_autoload_psr4.php CHANGED
@@ -11,11 +11,11 @@ return array(
11
  'path' => array( $vendorDir . '/composer/installers/src/Composer/Installers' )
12
  ),
13
  'Automattic\\WooCommerce\\Blocks\\Tests\\' => array(
14
- 'version' => '6.3.1.0',
15
  'path' => array( $baseDir . '/tests/php' )
16
  ),
17
  'Automattic\\WooCommerce\\Blocks\\' => array(
18
- 'version' => '6.3.1.0',
19
  'path' => array( $baseDir . '/src' )
20
  ),
21
  'Automattic\\Jetpack\\Autoloader\\' => array(
11
  'path' => array( $vendorDir . '/composer/installers/src/Composer/Installers' )
12
  ),
13
  'Automattic\\WooCommerce\\Blocks\\Tests\\' => array(
14
+ 'version' => '6.3.2.0',
15
  'path' => array( $baseDir . '/tests/php' )
16
  ),
17
  'Automattic\\WooCommerce\\Blocks\\' => array(
18
+ 'version' => '6.3.2.0',
19
  'path' => array( $baseDir . '/src' )
20
  ),
21
  'Automattic\\Jetpack\\Autoloader\\' => array(
vendor/jetpack-autoloader/class-autoloader-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp2cad5efe5a80ce2cf6de6964289dd66a;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp604c92811d901d152d5a291ba3188dcf;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-autoloader-locator.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp2cad5efe5a80ce2cf6de6964289dd66a;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp604c92811d901d152d5a291ba3188dcf;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-autoloader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp2cad5efe5a80ce2cf6de6964289dd66a;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp604c92811d901d152d5a291ba3188dcf;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-container.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp2cad5efe5a80ce2cf6de6964289dd66a;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp604c92811d901d152d5a291ba3188dcf;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-hook-manager.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp2cad5efe5a80ce2cf6de6964289dd66a;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp604c92811d901d152d5a291ba3188dcf;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-latest-autoloader-guard.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp2cad5efe5a80ce2cf6de6964289dd66a;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp604c92811d901d152d5a291ba3188dcf;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-manifest-reader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp2cad5efe5a80ce2cf6de6964289dd66a;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp604c92811d901d152d5a291ba3188dcf;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-path-processor.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp2cad5efe5a80ce2cf6de6964289dd66a;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp604c92811d901d152d5a291ba3188dcf;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-php-autoloader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp2cad5efe5a80ce2cf6de6964289dd66a;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp604c92811d901d152d5a291ba3188dcf;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-plugin-locator.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp2cad5efe5a80ce2cf6de6964289dd66a;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp604c92811d901d152d5a291ba3188dcf;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-plugins-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp2cad5efe5a80ce2cf6de6964289dd66a;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp604c92811d901d152d5a291ba3188dcf;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-shutdown-handler.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp2cad5efe5a80ce2cf6de6964289dd66a;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp604c92811d901d152d5a291ba3188dcf;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-version-loader.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp2cad5efe5a80ce2cf6de6964289dd66a;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp604c92811d901d152d5a291ba3188dcf;
9
 
10
  // phpcs:ignore
11
 
vendor/jetpack-autoloader/class-version-selector.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
- namespace Automattic\Jetpack\Autoloader\jp2cad5efe5a80ce2cf6de6964289dd66a;
9
 
10
  // phpcs:ignore
11
 
5
  * @package automattic/jetpack-autoloader
6
  */
7
 
8
+ namespace Automattic\Jetpack\Autoloader\jp604c92811d901d152d5a291ba3188dcf;
9
 
10
  // phpcs:ignore
11
 
woocommerce-gutenberg-products-block.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WooCommerce Blocks
4
  * Plugin URI: https://github.com/woocommerce/woocommerce-gutenberg-products-block
5
  * Description: WooCommerce blocks for the Gutenberg editor.
6
- * Version: 6.3.1
7
  * Author: Automattic
8
  * Author URI: https://woocommerce.com
9
  * Text Domain: woo-gutenberg-products-block
3
  * Plugin Name: WooCommerce Blocks
4
  * Plugin URI: https://github.com/woocommerce/woocommerce-gutenberg-products-block
5
  * Description: WooCommerce blocks for the Gutenberg editor.
6
+ * Version: 6.3.2
7
  * Author: Automattic
8
  * Author URI: https://woocommerce.com
9
  * Text Domain: woo-gutenberg-products-block