@automattic/newspack-blocks 4.23.0 → 4.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -361,14 +361,19 @@ domReady( () => {
361
361
  if ( variationModal ) {
362
362
  variationModal.querySelectorAll( `form[target="${ IFRAME_NAME }"]` ).forEach( singleVariationForm => {
363
363
  // Fill in the hidden params in the variation modal.
364
- [ 'after_success_behavior', 'after_success_url', 'after_success_button_label', 'gate_post_id', 'newspack_popup_id' ].forEach(
365
- hiddenParam => {
366
- const existingInputs = singleVariationForm.querySelectorAll( 'input[name="' + hiddenParam + '"]' );
367
- if ( 0 === existingInputs.length ) {
368
- singleVariationForm.prepend( createHiddenInput( hiddenParam, checkoutData[ hiddenParam ] ) );
369
- }
364
+ [
365
+ 'after_success_behavior',
366
+ 'after_success_url',
367
+ 'after_success_button_label',
368
+ 'gate_post_id',
369
+ 'newspack_popup_id',
370
+ 'prompt_title',
371
+ ].forEach( hiddenParam => {
372
+ const existingInputs = singleVariationForm.querySelectorAll( 'input[name="' + hiddenParam + '"]' );
373
+ if ( 0 === existingInputs.length ) {
374
+ singleVariationForm.prepend( createHiddenInput( hiddenParam, checkoutData[ hiddenParam ] ) );
370
375
  }
371
- );
376
+ } );
372
377
 
373
378
  // Append the product data hidden inputs.
374
379
  const variationData = singleVariationForm.dataset.checkout;
@@ -3,7 +3,7 @@
3
3
  'name' => 'automattic/newspack-blocks',
4
4
  'pretty_version' => 'dev-trunk',
5
5
  'version' => 'dev-trunk',
6
- 'reference' => 'c27b16673efd539e3a6680cb605637d242282eb6',
6
+ 'reference' => '313651c308ffe9ab1ec80cb1a14faacc2d4f979c',
7
7
  'type' => 'wordpress-plugin',
8
8
  'install_path' => __DIR__ . '/../../',
9
9
  'aliases' => array(),
@@ -13,7 +13,7 @@
13
13
  'automattic/newspack-blocks' => array(
14
14
  'pretty_version' => 'dev-trunk',
15
15
  'version' => 'dev-trunk',
16
- 'reference' => 'c27b16673efd539e3a6680cb605637d242282eb6',
16
+ 'reference' => '313651c308ffe9ab1ec80cb1a14faacc2d4f979c',
17
17
  'type' => 'wordpress-plugin',
18
18
  'install_path' => __DIR__ . '/../../',
19
19
  'aliases' => array(),