@automattic/newspack-blocks 4.5.4 → 4.5.5

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.
@@ -1 +1 @@
1
- .newspack-ui iframe[name=newspack_modal_checkout_iframe]{border:none;height:calc(100% + var(--newspack-ui-spacer-8, 48px));margin:calc(var(--newspack-ui-spacer-5, 24px)*-1);max-width:unset;width:calc(100% + var(--newspack-ui-spacer-8, 48px))}.newspack-blocks__modal-container{align-items:center;display:flex;inset:0;justify-content:center;overflow:hidden;pointer-events:none;position:fixed;visibility:hidden;z-index:-1}.newspack-blocks__modal-container__overlay{background:rgba(0,0,0,.5);inset:0;opacity:0;position:absolute;transition:opacity .1s linear;z-index:1}.newspack-blocks__modal-container[data-state=open]{pointer-events:auto;visibility:visible;z-index:99999}.newspack-blocks__modal-container[data-state=open] .newspack-blocks__modal-container__overlay{opacity:1}.newspack-blocks__modal-container[data-state=open] .newspack-blocks__modal{opacity:1;transform:translateY(0)}.newspack-blocks__modal-container .newspack-blocks__modal{background:#fff;border-radius:6px;display:flex;flex-direction:column;justify-content:space-between;max-height:90%;max-width:600px;min-height:300px;opacity:0;overflow:auto;position:relative;transform:translateY(50px);transition:transform .1s linear,opacity .1s linear;width:100%;z-index:2}.newspack-blocks__modal-container .newspack-blocks__modal__header{align-items:center;border-bottom:1px solid #ddd;box-sizing:border-box;display:flex;height:64px;justify-content:space-between;padding:24px}.newspack-blocks__modal-container .newspack-blocks__modal__header h2{font-size:16px}.newspack-blocks__modal-container .newspack-blocks__modal__content{flex-grow:1;position:relative}.newspack-blocks__modal-container .newspack-blocks__modal__content>*{border:0;border-radius:6px;height:100%;width:100%}.newspack-blocks__modal-container .newspack-blocks__modal__close{background:transparent;border:0;color:#111;cursor:pointer;padding:8px}.newspack-blocks__modal-container .newspack-blocks__modal__close:focus,.newspack-blocks__modal-container .newspack-blocks__modal__close:hover{color:#767676}.newspack-blocks__modal-container .newspack-blocks__modal__close svg{display:block}.newspack-blocks__modal-container .newspack-blocks__spinner{align-items:center;background:#fff;border-radius:5px;bottom:0;display:flex;justify-content:center;position:absolute;top:0;width:calc(100% - 24px)}.newspack-blocks__modal-container .newspack-blocks__spinner>span{animation:spin 1s linear infinite;border:2px solid #fff;border-radius:50%;border-top-color:#767676;height:25px;margin-right:-12.5px;margin-top:-12.5px;width:25px}.newspack-blocks__modal-variation .newspack-blocks__selection>:first-child{margin-top:0}.newspack-blocks__modal-variation .newspack-blocks__selection h3{margin:0}.newspack-blocks__modal-variation .newspack-blocks__selection h3+p{margin-top:calc(var(--newspack-ui-spacer-base, 8px)/2)}.newspack-blocks__modal-variation .newspack-blocks__options{display:flex;flex-wrap:wrap;gap:var(--newspack-ui-spacer-2,12px);list-style:none;margin:var(--newspack-ui-spacer-5,24px) 0 0;padding:0}.newspack-blocks__modal-variation .newspack-blocks__options__item{border:1px solid var(--newspack-ui-color-border,#ddd);border-radius:var(--newspack-ui-border-radius-m,6px);display:flex;flex:1 1 100%;flex-direction:column;text-align:center}@media(min-width:600px){.newspack-blocks__modal-variation .newspack-blocks__options__item{flex:1 1 30%;max-width:calc(33.3333% - 10px)}.newspack-blocks__modal-variation .newspack-blocks__options__item:first-child:nth-last-child(2),.newspack-blocks__modal-variation .newspack-blocks__options__item:first-child:nth-last-child(2)~li{flex:1 1 40%;max-width:calc(50% - 10px)}}.newspack-blocks__modal-variation .newspack-blocks__options__item .summary{font-size:var(--newspack-ui-font-size-xs,14px);height:100%;line-height:var(--newspack-ui-line-height-xs,1.4286);padding:var(--newspack-ui-spacer-5,24px) var(--newspack-ui-spacer-2,12px);position:relative}.newspack-blocks__modal-variation .newspack-blocks__options__item .summary .price .suggested-prefix,.newspack-blocks__modal-variation .newspack-blocks__options__item .summary .price del{color:var(--newspack-ui-color-neutral-60,#6c6c6c);right:0;position:absolute;top:calc(var(--newspack-ui-spacer-base, 8px)*.75);width:100%}.newspack-blocks__modal-variation .newspack-blocks__options__item .summary .price>.amount>bdi,.newspack-blocks__modal-variation .newspack-blocks__options__item .summary .price>.suggested-text>.amount>bdi,.newspack-blocks__modal-variation .newspack-blocks__options__item .summary .price>ins>.amount>bdi{color:initial;display:block;font-size:var(--newspack-ui-font-size-xl,clamp(1.375rem,.394rem + 2.008vw,2rem));font-weight:600;line-height:var(--newspack-ui-line-height-xl,1.375)}.newspack-blocks__modal-variation .newspack-blocks__options__item .variation{border-top:1px solid var(--newspack-ui-color-border,#ddd);font-size:var(--newspack-ui-font-size-xs,14px);font-weight:600;line-height:var(--newspack-ui-line-height-xs,1.4286);margin-top:auto;padding:var(--newspack-ui-spacer-2,12px)}.newspack-blocks__modal-variation .newspack-blocks__options__item form{border-top:1px solid var(--newspack-ui-color-border,#ddd);padding:var(--newspack-ui-spacer-2,12px) var(--newspack-ui-spacer-2,12px) 0}.newspack-blocks__modal-variation .newspack-blocks__options__item form button{display:block;margin-top:0!important;width:100%}@keyframes spin{0%{transform:rotate(0deg)}50%{transform:rotate(-180deg)}to{transform:rotate(-1turn)}}.modal-processing{opacity:.5}
1
+ .newspack-ui iframe[name=newspack_modal_checkout_iframe]{border:none;height:calc(100% + var(--newspack-ui-spacer-9, 48px));margin:calc(var(--newspack-ui-spacer-5, 24px)*-1);max-width:unset;width:calc(100% + var(--newspack-ui-spacer-9, 48px))}.newspack-blocks__modal-container{align-items:center;display:flex;inset:0;justify-content:center;overflow:hidden;pointer-events:none;position:fixed;visibility:hidden;z-index:-1}.newspack-blocks__modal-container__overlay{background:rgba(0,0,0,.5);inset:0;opacity:0;position:absolute;transition:opacity .1s linear;z-index:1}.newspack-blocks__modal-container[data-state=open]{pointer-events:auto;visibility:visible;z-index:99999}.newspack-blocks__modal-container[data-state=open] .newspack-blocks__modal-container__overlay{opacity:1}.newspack-blocks__modal-container[data-state=open] .newspack-blocks__modal{opacity:1;transform:translateY(0)}.newspack-blocks__modal-container .newspack-blocks__modal{background:#fff;border-radius:6px;display:flex;flex-direction:column;justify-content:space-between;max-height:90%;max-width:600px;min-height:300px;opacity:0;overflow:auto;position:relative;transform:translateY(50px);transition:transform .1s linear,opacity .1s linear;width:100%;z-index:2}.newspack-blocks__modal-container .newspack-blocks__modal__header{align-items:center;border-bottom:1px solid #ddd;box-sizing:border-box;display:flex;height:64px;justify-content:space-between;padding:24px}.newspack-blocks__modal-container .newspack-blocks__modal__header h2{font-size:16px}.newspack-blocks__modal-container .newspack-blocks__modal__content{flex-grow:1;position:relative}.newspack-blocks__modal-container .newspack-blocks__modal__content>*{border:0;border-radius:6px;height:100%;width:100%}.newspack-blocks__modal-container .newspack-blocks__modal__close{background:transparent;border:0;color:#111;cursor:pointer;padding:8px}.newspack-blocks__modal-container .newspack-blocks__modal__close:focus,.newspack-blocks__modal-container .newspack-blocks__modal__close:hover{color:#767676}.newspack-blocks__modal-container .newspack-blocks__modal__close svg{display:block}.newspack-blocks__modal-container .newspack-blocks__spinner{align-items:center;background:#fff;border-radius:5px;bottom:0;display:flex;justify-content:center;position:absolute;top:0;width:calc(100% - 24px)}.newspack-blocks__modal-container .newspack-blocks__spinner>span{animation:spin 1s linear infinite;border:2px solid #fff;border-radius:50%;border-top-color:#767676;height:25px;margin-right:-12.5px;margin-top:-12.5px;width:25px}.newspack-blocks__modal-variation .newspack-blocks__selection>:first-child{margin-top:0}.newspack-blocks__modal-variation .newspack-blocks__selection h3{margin:0}.newspack-blocks__modal-variation .newspack-blocks__selection h3+p{margin-top:calc(var(--newspack-ui-spacer-base, 8px)/2)}.newspack-blocks__modal-variation .newspack-blocks__options{display:flex;flex-wrap:wrap;gap:var(--newspack-ui-spacer-2,12px);list-style:none;margin:var(--newspack-ui-spacer-5,24px) 0 0;padding:0}.newspack-blocks__modal-variation .newspack-blocks__options__item{border:1px solid var(--newspack-ui-color-border,#ddd);border-radius:var(--newspack-ui-border-radius-m,6px);display:flex;flex:1 1 100%;flex-direction:column;text-align:center}@media(min-width:600px){.newspack-blocks__modal-variation .newspack-blocks__options__item{flex:1 1 30%;max-width:calc(33.3333% - 10px)}.newspack-blocks__modal-variation .newspack-blocks__options__item:first-child:nth-last-child(2),.newspack-blocks__modal-variation .newspack-blocks__options__item:first-child:nth-last-child(2)~li{flex:1 1 40%;max-width:calc(50% - 10px)}}.newspack-blocks__modal-variation .newspack-blocks__options__item .summary{font-size:var(--newspack-ui-font-size-xs,14px);height:100%;line-height:var(--newspack-ui-line-height-xs,1.4286);padding:var(--newspack-ui-spacer-5,24px) var(--newspack-ui-spacer-2,12px);position:relative}.newspack-blocks__modal-variation .newspack-blocks__options__item .summary .price .suggested-prefix,.newspack-blocks__modal-variation .newspack-blocks__options__item .summary .price del{color:var(--newspack-ui-color-neutral-60,#6c6c6c);right:0;position:absolute;top:calc(var(--newspack-ui-spacer-base, 8px)*.75);width:100%}.newspack-blocks__modal-variation .newspack-blocks__options__item .summary .price>.amount>bdi,.newspack-blocks__modal-variation .newspack-blocks__options__item .summary .price>.suggested-text>.amount>bdi,.newspack-blocks__modal-variation .newspack-blocks__options__item .summary .price>ins>.amount>bdi{color:initial;display:block;font-size:var(--newspack-ui-font-size-xl,clamp(1.375rem,.394rem + 2.008vw,2rem));font-weight:600;line-height:var(--newspack-ui-line-height-xl,1.375)}.newspack-blocks__modal-variation .newspack-blocks__options__item .variation{border-top:1px solid var(--newspack-ui-color-border,#ddd);font-size:var(--newspack-ui-font-size-xs,14px);font-weight:600;line-height:var(--newspack-ui-line-height-xs,1.4286);margin-top:auto;padding:var(--newspack-ui-spacer-2,12px)}.newspack-blocks__modal-variation .newspack-blocks__options__item form{border-top:1px solid var(--newspack-ui-color-border,#ddd);padding:var(--newspack-ui-spacer-2,12px) var(--newspack-ui-spacer-2,12px) 0}.newspack-blocks__modal-variation .newspack-blocks__options__item form button{display:block;margin-top:0!important;width:100%}@keyframes spin{0%{transform:rotate(0deg)}50%{transform:rotate(-180deg)}to{transform:rotate(-1turn)}}.modal-processing{opacity:.5}
@@ -1 +1 @@
1
- <?php return array('dependencies' => array(), 'version' => '4f3f70a9011f0284bcc8');
1
+ <?php return array('dependencies' => array(), 'version' => 'e93a12fa2819716cd025');
package/dist/modal.css CHANGED
@@ -1 +1 @@
1
- .newspack-ui iframe[name=newspack_modal_checkout_iframe]{border:none;height:calc(100% + var(--newspack-ui-spacer-8, 48px));margin:calc(var(--newspack-ui-spacer-5, 24px)*-1);max-width:unset;width:calc(100% + var(--newspack-ui-spacer-8, 48px))}.newspack-blocks__modal-container{align-items:center;display:flex;inset:0;justify-content:center;overflow:hidden;pointer-events:none;position:fixed;visibility:hidden;z-index:-1}.newspack-blocks__modal-container__overlay{background:rgba(0,0,0,.5);inset:0;opacity:0;position:absolute;transition:opacity .1s linear;z-index:1}.newspack-blocks__modal-container[data-state=open]{pointer-events:auto;visibility:visible;z-index:99999}.newspack-blocks__modal-container[data-state=open] .newspack-blocks__modal-container__overlay{opacity:1}.newspack-blocks__modal-container[data-state=open] .newspack-blocks__modal{opacity:1;transform:translateY(0)}.newspack-blocks__modal-container .newspack-blocks__modal{background:#fff;border-radius:6px;display:flex;flex-direction:column;justify-content:space-between;max-height:90%;max-width:600px;min-height:300px;opacity:0;overflow:auto;position:relative;transform:translateY(50px);transition:transform .1s linear,opacity .1s linear;width:100%;z-index:2}.newspack-blocks__modal-container .newspack-blocks__modal__header{align-items:center;border-bottom:1px solid #ddd;box-sizing:border-box;display:flex;height:64px;justify-content:space-between;padding:24px}.newspack-blocks__modal-container .newspack-blocks__modal__header h2{font-size:16px}.newspack-blocks__modal-container .newspack-blocks__modal__content{flex-grow:1;position:relative}.newspack-blocks__modal-container .newspack-blocks__modal__content>*{border:0;border-radius:6px;height:100%;width:100%}.newspack-blocks__modal-container .newspack-blocks__modal__close{background:transparent;border:0;color:#111;cursor:pointer;padding:8px}.newspack-blocks__modal-container .newspack-blocks__modal__close:focus,.newspack-blocks__modal-container .newspack-blocks__modal__close:hover{color:#767676}.newspack-blocks__modal-container .newspack-blocks__modal__close svg{display:block}.newspack-blocks__modal-container .newspack-blocks__spinner{align-items:center;background:#fff;border-radius:5px;bottom:0;display:flex;justify-content:center;position:absolute;top:0;width:calc(100% - 24px)}.newspack-blocks__modal-container .newspack-blocks__spinner>span{animation:spin 1s linear infinite;border:2px solid #fff;border-radius:50%;border-top-color:#767676;height:25px;margin-left:-12.5px;margin-top:-12.5px;width:25px}.newspack-blocks__modal-variation .newspack-blocks__selection>:first-child{margin-top:0}.newspack-blocks__modal-variation .newspack-blocks__selection h3{margin:0}.newspack-blocks__modal-variation .newspack-blocks__selection h3+p{margin-top:calc(var(--newspack-ui-spacer-base, 8px)/2)}.newspack-blocks__modal-variation .newspack-blocks__options{display:flex;flex-wrap:wrap;gap:var(--newspack-ui-spacer-2,12px);list-style:none;margin:var(--newspack-ui-spacer-5,24px) 0 0;padding:0}.newspack-blocks__modal-variation .newspack-blocks__options__item{border:1px solid var(--newspack-ui-color-border,#ddd);border-radius:var(--newspack-ui-border-radius-m,6px);display:flex;flex:1 1 100%;flex-direction:column;text-align:center}@media(min-width:600px){.newspack-blocks__modal-variation .newspack-blocks__options__item{flex:1 1 30%;max-width:calc(33.3333% - 10px)}.newspack-blocks__modal-variation .newspack-blocks__options__item:first-child:nth-last-child(2),.newspack-blocks__modal-variation .newspack-blocks__options__item:first-child:nth-last-child(2)~li{flex:1 1 40%;max-width:calc(50% - 10px)}}.newspack-blocks__modal-variation .newspack-blocks__options__item .summary{font-size:var(--newspack-ui-font-size-xs,14px);height:100%;line-height:var(--newspack-ui-line-height-xs,1.4286);padding:var(--newspack-ui-spacer-5,24px) var(--newspack-ui-spacer-2,12px);position:relative}.newspack-blocks__modal-variation .newspack-blocks__options__item .summary .price .suggested-prefix,.newspack-blocks__modal-variation .newspack-blocks__options__item .summary .price del{color:var(--newspack-ui-color-neutral-60,#6c6c6c);left:0;position:absolute;top:calc(var(--newspack-ui-spacer-base, 8px)*.75);width:100%}.newspack-blocks__modal-variation .newspack-blocks__options__item .summary .price>.amount>bdi,.newspack-blocks__modal-variation .newspack-blocks__options__item .summary .price>.suggested-text>.amount>bdi,.newspack-blocks__modal-variation .newspack-blocks__options__item .summary .price>ins>.amount>bdi{color:initial;display:block;font-size:var(--newspack-ui-font-size-xl,clamp(1.375rem,.394rem + 2.008vw,2rem));font-weight:600;line-height:var(--newspack-ui-line-height-xl,1.375)}.newspack-blocks__modal-variation .newspack-blocks__options__item .variation{border-top:1px solid var(--newspack-ui-color-border,#ddd);font-size:var(--newspack-ui-font-size-xs,14px);font-weight:600;line-height:var(--newspack-ui-line-height-xs,1.4286);margin-top:auto;padding:var(--newspack-ui-spacer-2,12px)}.newspack-blocks__modal-variation .newspack-blocks__options__item form{border-top:1px solid var(--newspack-ui-color-border,#ddd);padding:var(--newspack-ui-spacer-2,12px) var(--newspack-ui-spacer-2,12px) 0}.newspack-blocks__modal-variation .newspack-blocks__options__item form button{display:block;margin-top:0!important;width:100%}@keyframes spin{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}to{transform:rotate(1turn)}}.modal-processing{opacity:.5}
1
+ .newspack-ui iframe[name=newspack_modal_checkout_iframe]{border:none;height:calc(100% + var(--newspack-ui-spacer-9, 48px));margin:calc(var(--newspack-ui-spacer-5, 24px)*-1);max-width:unset;width:calc(100% + var(--newspack-ui-spacer-9, 48px))}.newspack-blocks__modal-container{align-items:center;display:flex;inset:0;justify-content:center;overflow:hidden;pointer-events:none;position:fixed;visibility:hidden;z-index:-1}.newspack-blocks__modal-container__overlay{background:rgba(0,0,0,.5);inset:0;opacity:0;position:absolute;transition:opacity .1s linear;z-index:1}.newspack-blocks__modal-container[data-state=open]{pointer-events:auto;visibility:visible;z-index:99999}.newspack-blocks__modal-container[data-state=open] .newspack-blocks__modal-container__overlay{opacity:1}.newspack-blocks__modal-container[data-state=open] .newspack-blocks__modal{opacity:1;transform:translateY(0)}.newspack-blocks__modal-container .newspack-blocks__modal{background:#fff;border-radius:6px;display:flex;flex-direction:column;justify-content:space-between;max-height:90%;max-width:600px;min-height:300px;opacity:0;overflow:auto;position:relative;transform:translateY(50px);transition:transform .1s linear,opacity .1s linear;width:100%;z-index:2}.newspack-blocks__modal-container .newspack-blocks__modal__header{align-items:center;border-bottom:1px solid #ddd;box-sizing:border-box;display:flex;height:64px;justify-content:space-between;padding:24px}.newspack-blocks__modal-container .newspack-blocks__modal__header h2{font-size:16px}.newspack-blocks__modal-container .newspack-blocks__modal__content{flex-grow:1;position:relative}.newspack-blocks__modal-container .newspack-blocks__modal__content>*{border:0;border-radius:6px;height:100%;width:100%}.newspack-blocks__modal-container .newspack-blocks__modal__close{background:transparent;border:0;color:#111;cursor:pointer;padding:8px}.newspack-blocks__modal-container .newspack-blocks__modal__close:focus,.newspack-blocks__modal-container .newspack-blocks__modal__close:hover{color:#767676}.newspack-blocks__modal-container .newspack-blocks__modal__close svg{display:block}.newspack-blocks__modal-container .newspack-blocks__spinner{align-items:center;background:#fff;border-radius:5px;bottom:0;display:flex;justify-content:center;position:absolute;top:0;width:calc(100% - 24px)}.newspack-blocks__modal-container .newspack-blocks__spinner>span{animation:spin 1s linear infinite;border:2px solid #fff;border-radius:50%;border-top-color:#767676;height:25px;margin-left:-12.5px;margin-top:-12.5px;width:25px}.newspack-blocks__modal-variation .newspack-blocks__selection>:first-child{margin-top:0}.newspack-blocks__modal-variation .newspack-blocks__selection h3{margin:0}.newspack-blocks__modal-variation .newspack-blocks__selection h3+p{margin-top:calc(var(--newspack-ui-spacer-base, 8px)/2)}.newspack-blocks__modal-variation .newspack-blocks__options{display:flex;flex-wrap:wrap;gap:var(--newspack-ui-spacer-2,12px);list-style:none;margin:var(--newspack-ui-spacer-5,24px) 0 0;padding:0}.newspack-blocks__modal-variation .newspack-blocks__options__item{border:1px solid var(--newspack-ui-color-border,#ddd);border-radius:var(--newspack-ui-border-radius-m,6px);display:flex;flex:1 1 100%;flex-direction:column;text-align:center}@media(min-width:600px){.newspack-blocks__modal-variation .newspack-blocks__options__item{flex:1 1 30%;max-width:calc(33.3333% - 10px)}.newspack-blocks__modal-variation .newspack-blocks__options__item:first-child:nth-last-child(2),.newspack-blocks__modal-variation .newspack-blocks__options__item:first-child:nth-last-child(2)~li{flex:1 1 40%;max-width:calc(50% - 10px)}}.newspack-blocks__modal-variation .newspack-blocks__options__item .summary{font-size:var(--newspack-ui-font-size-xs,14px);height:100%;line-height:var(--newspack-ui-line-height-xs,1.4286);padding:var(--newspack-ui-spacer-5,24px) var(--newspack-ui-spacer-2,12px);position:relative}.newspack-blocks__modal-variation .newspack-blocks__options__item .summary .price .suggested-prefix,.newspack-blocks__modal-variation .newspack-blocks__options__item .summary .price del{color:var(--newspack-ui-color-neutral-60,#6c6c6c);left:0;position:absolute;top:calc(var(--newspack-ui-spacer-base, 8px)*.75);width:100%}.newspack-blocks__modal-variation .newspack-blocks__options__item .summary .price>.amount>bdi,.newspack-blocks__modal-variation .newspack-blocks__options__item .summary .price>.suggested-text>.amount>bdi,.newspack-blocks__modal-variation .newspack-blocks__options__item .summary .price>ins>.amount>bdi{color:initial;display:block;font-size:var(--newspack-ui-font-size-xl,clamp(1.375rem,.394rem + 2.008vw,2rem));font-weight:600;line-height:var(--newspack-ui-line-height-xl,1.375)}.newspack-blocks__modal-variation .newspack-blocks__options__item .variation{border-top:1px solid var(--newspack-ui-color-border,#ddd);font-size:var(--newspack-ui-font-size-xs,14px);font-weight:600;line-height:var(--newspack-ui-line-height-xs,1.4286);margin-top:auto;padding:var(--newspack-ui-spacer-2,12px)}.newspack-blocks__modal-variation .newspack-blocks__options__item form{border-top:1px solid var(--newspack-ui-color-border,#ddd);padding:var(--newspack-ui-spacer-2,12px) var(--newspack-ui-spacer-2,12px) 0}.newspack-blocks__modal-variation .newspack-blocks__options__item form button{display:block;margin-top:0!important;width:100%}@keyframes spin{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}to{transform:rotate(1turn)}}.modal-processing{opacity:.5}
@@ -171,6 +171,7 @@ final class Modal_Checkout {
171
171
  add_filter( 'googlesitekit_adsense_tag_blocked', [ __CLASS__, 'is_modal_checkout' ] );
172
172
  add_filter( 'jetpack_active_modules', [ __CLASS__, 'jetpack_active_modules' ] );
173
173
  add_filter( 'woocommerce_checkout_update_order_review_expired', [ __CLASS__, 'is_not_modal_checkout_filter' ] );
174
+ add_filter( 'woocommerce_checkout_registration_enabled', [ __CLASS__, 'is_modal_checkout_filter' ] );
174
175
 
175
176
  // Make the current cart price available to the JavaScript.
176
177
  add_action( 'wp_ajax_get_cart_total', [ __CLASS__, 'get_cart_total_js' ] );
@@ -1529,7 +1530,7 @@ final class Modal_Checkout {
1529
1530
  /* translators: 1: Checkout button confirmation text. 2: Order total. */
1530
1531
  __( '%1$s: %2$s', 'newspack-blocks' ),
1531
1532
  self::get_modal_checkout_labels( 'checkout_confirm' ),
1532
- '<span class="cart-price">' . html_entity_decode( $total ) . '</span>'
1533
+ '<span class="cart-price">' . html_entity_decode( $total, ENT_COMPAT ) . '</span>'
1533
1534
  );
1534
1535
  }
1535
1536
 
@@ -1542,7 +1543,7 @@ final class Modal_Checkout {
1542
1543
  return;
1543
1544
  }
1544
1545
  $total = \wp_strip_all_tags( \wc_price( $cart->total ) );
1545
- echo esc_html( html_entity_decode( $total ) );
1546
+ echo esc_html( html_entity_decode( $total, ENT_COMPAT ) );
1546
1547
  wp_die();
1547
1548
  }
1548
1549
 
@@ -1787,7 +1788,19 @@ final class Modal_Checkout {
1787
1788
  }
1788
1789
 
1789
1790
  /**
1790
- * Filter the a value dependent on the page not being modal checkout.
1791
+ * Filter a value to true dependent on the page not being modal checkout.
1792
+ *
1793
+ * @param bool $value The value.
1794
+ */
1795
+ public static function is_modal_checkout_filter( $value ) {
1796
+ if ( self::is_modal_checkout() ) {
1797
+ return true;
1798
+ }
1799
+ return $value;
1800
+ }
1801
+
1802
+ /**
1803
+ * Filter a value to false dependent on the page not being modal checkout.
1791
1804
  *
1792
1805
  * @param bool $value The value.
1793
1806
  */
@@ -1101,7 +1101,7 @@ class Newspack_Blocks {
1101
1101
  }
1102
1102
 
1103
1103
  // Set excerpt length (https://core.trac.wordpress.org/ticket/29533#comment:3).
1104
- $excerpt = force_balance_tags( html_entity_decode( wp_trim_words( htmlentities( $excerpt ), $excerpt_length, static::more_excerpt() ) ) );
1104
+ $excerpt = force_balance_tags( html_entity_decode( wp_trim_words( htmlentities( $excerpt, ENT_COMPAT ), $excerpt_length, static::more_excerpt(), ENT_COMPAT ) ) );
1105
1105
 
1106
1106
  return $excerpt;
1107
1107
  };
@@ -7,7 +7,7 @@
7
7
  * Author URI: https://newspack.com/
8
8
  * Text Domain: newspack-blocks
9
9
  * Domain Path: /languages
10
- * Version: 4.5.4
10
+ * Version: 4.5.5
11
11
  *
12
12
  * @package Newspack_Blocks
13
13
  */
@@ -15,7 +15,7 @@
15
15
  define( 'NEWSPACK_BLOCKS__PLUGIN_FILE', __FILE__ );
16
16
  define( 'NEWSPACK_BLOCKS__BLOCKS_DIRECTORY', 'dist/' );
17
17
  define( 'NEWSPACK_BLOCKS__PLUGIN_DIR', plugin_dir_path( NEWSPACK_BLOCKS__PLUGIN_FILE ) );
18
- define( 'NEWSPACK_BLOCKS__VERSION', '4.5.4' );
18
+ define( 'NEWSPACK_BLOCKS__VERSION', '4.5.5' );
19
19
 
20
20
  require_once NEWSPACK_BLOCKS__PLUGIN_DIR . 'includes/class-newspack-blocks.php';
21
21
  require_once NEWSPACK_BLOCKS__PLUGIN_DIR . 'includes/class-newspack-blocks-api.php';
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@automattic/newspack-blocks",
3
- "version": "4.5.4",
3
+ "version": "4.5.5",
4
4
  "author": "Automattic",
5
5
  "devDependencies": {
6
- "@rushstack/eslint-patch": "^1.10.4",
6
+ "@rushstack/eslint-patch": "^1.10.5",
7
7
  "@testing-library/dom": "^10.4.0",
8
8
  "@testing-library/user-event": "^14.5.2",
9
- "@types/lodash": "^4.17.13",
10
- "@wordpress/browserslist-config": "^6.13.0",
9
+ "@types/lodash": "^4.17.14",
10
+ "@wordpress/browserslist-config": "^6.15.0",
11
11
  "eslint": "^8.57.0",
12
12
  "fetch-mock-jest": "^1.5.1",
13
13
  "html-entities": "^2.5.2",
14
14
  "identity-obj-proxy": "^3.0.0",
15
- "lint-staged": "^15.2.10",
15
+ "lint-staged": "^15.3.0",
16
16
  "newspack-components": "^3.1.0",
17
17
  "newspack-scripts": "^5.5.2",
18
18
  "postcss-scss": "^4.0.9"
@@ -23,7 +23,7 @@
23
23
  "redux": "^5.0.0",
24
24
  "redux-saga": "^1.3.0",
25
25
  "regenerator-runtime": "^0.14.1",
26
- "swiper": "11.1.15"
26
+ "swiper": "11.2.1"
27
27
  },
28
28
  "scripts": {
29
29
  "cm": "newspack-scripts commit",
@@ -5,10 +5,10 @@
5
5
  .newspack-ui {
6
6
  iframe[name="newspack_modal_checkout_iframe"] {
7
7
  border: none;
8
- height: calc(100% + var(--newspack-ui-spacer-8, 48px));
8
+ height: calc(100% + var(--newspack-ui-spacer-9, 48px));
9
9
  margin: calc(-1 * var(--newspack-ui-spacer-5, 24px));
10
10
  max-width: unset;
11
- width: calc(100% + var(--newspack-ui-spacer-8, 48px));
11
+ width: calc(100% + var(--newspack-ui-spacer-9, 48px));
12
12
  }
13
13
  }
14
14
 
@@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
22
22
 
23
23
  require_once __DIR__ . '/composer/autoload_real.php';
24
24
 
25
- return ComposerAutoloaderInit3e17d58a0803267dfec544712fe104b7::getLoader();
25
+ return ComposerAutoloaderInite66b634ff28b4d5301c83e99a1608ca6::getLoader();
@@ -2,7 +2,7 @@
2
2
 
3
3
  // autoload_real.php @generated by Composer
4
4
 
5
- class ComposerAutoloaderInit3e17d58a0803267dfec544712fe104b7
5
+ class ComposerAutoloaderInite66b634ff28b4d5301c83e99a1608ca6
6
6
  {
7
7
  private static $loader;
8
8
 
@@ -22,12 +22,12 @@ class ComposerAutoloaderInit3e17d58a0803267dfec544712fe104b7
22
22
  return self::$loader;
23
23
  }
24
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit3e17d58a0803267dfec544712fe104b7', 'loadClassLoader'), true, true);
25
+ spl_autoload_register(array('ComposerAutoloaderInite66b634ff28b4d5301c83e99a1608ca6', 'loadClassLoader'), true, true);
26
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
- spl_autoload_unregister(array('ComposerAutoloaderInit3e17d58a0803267dfec544712fe104b7', 'loadClassLoader'));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInite66b634ff28b4d5301c83e99a1608ca6', 'loadClassLoader'));
28
28
 
29
29
  require __DIR__ . '/autoload_static.php';
30
- call_user_func(\Composer\Autoload\ComposerStaticInit3e17d58a0803267dfec544712fe104b7::getInitializer($loader));
30
+ call_user_func(\Composer\Autoload\ComposerStaticInite66b634ff28b4d5301c83e99a1608ca6::getInitializer($loader));
31
31
 
32
32
  $loader->register(true);
33
33
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  namespace Composer\Autoload;
6
6
 
7
- class ComposerStaticInit3e17d58a0803267dfec544712fe104b7
7
+ class ComposerStaticInite66b634ff28b4d5301c83e99a1608ca6
8
8
  {
9
9
  public static $classMap = array (
10
10
  'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
@@ -13,7 +13,7 @@ class ComposerStaticInit3e17d58a0803267dfec544712fe104b7
13
13
  public static function getInitializer(ClassLoader $loader)
14
14
  {
15
15
  return \Closure::bind(function () use ($loader) {
16
- $loader->classMap = ComposerStaticInit3e17d58a0803267dfec544712fe104b7::$classMap;
16
+ $loader->classMap = ComposerStaticInite66b634ff28b4d5301c83e99a1608ca6::$classMap;
17
17
 
18
18
  }, null, ClassLoader::class);
19
19
  }
@@ -3,7 +3,7 @@
3
3
  'name' => 'automattic/newspack-blocks',
4
4
  'pretty_version' => 'dev-trunk',
5
5
  'version' => 'dev-trunk',
6
- 'reference' => '54df06a30d2221aa39a8eb2c8ca2705dd7b79b43',
6
+ 'reference' => '833598b2901e47fce5ae996db1c467423a6db4fb',
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' => '54df06a30d2221aa39a8eb2c8ca2705dd7b79b43',
16
+ 'reference' => '833598b2901e47fce5ae996db1c467423a6db4fb',
17
17
  'type' => 'wordpress-plugin',
18
18
  'install_path' => __DIR__ . '/../../',
19
19
  'aliases' => array(),