@automattic/newspack-blocks 1.64.0 → 1.65.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.
Files changed (189) hide show
  1. package/.cache/babel/02e816c46dd4e4d9a24c9a1b7a59540a.json.gz +0 -0
  2. package/.cache/babel/06ef11d145e318fb48d3a115527879ce.json.gz +0 -0
  3. package/.cache/babel/08d184d8eed1acd6119e8e342bb400bd.json.gz +0 -0
  4. package/.cache/babel/0ec98f305300249477f0877dcfeab93f.json.gz +0 -0
  5. package/.cache/babel/0fc85d33d9c79c26521df1d74d37473e.json.gz +0 -0
  6. package/.cache/babel/1745993d7e6ba90f0d42d2bd650945a5.json.gz +0 -0
  7. package/.cache/babel/1a54b89358e5145c6ef0ce9b6f297420.json.gz +0 -0
  8. package/.cache/babel/1a61c8fad6855deba0b1c1fb600e5d4a.json.gz +0 -0
  9. package/.cache/babel/1c9fb1cadc04d30853d52c2b78719398.json.gz +0 -0
  10. package/.cache/babel/1f75e279f33d30dace0c18b21b746178.json.gz +0 -0
  11. package/.cache/babel/240c25710f01a9ff51938c1864e05565.json.gz +0 -0
  12. package/.cache/babel/243de511af40dccb789c53e2dbbcf8e2.json.gz +0 -0
  13. package/.cache/babel/30cc975abcfadd1df5b5ab14bfef277e.json.gz +0 -0
  14. package/.cache/babel/3521a72b024f8525cb016ecb583e9982.json.gz +0 -0
  15. package/.cache/babel/37bd7f90c2e7ea1e10bf840775d1b262.json.gz +0 -0
  16. package/.cache/babel/428d6e159c9eccd36fcbe1089662a778.json.gz +0 -0
  17. package/.cache/babel/469f215eb2ddc25aa138667dd41fb568.json.gz +0 -0
  18. package/.cache/babel/49194e4a0a36c7ed4c0bff0be7fb831c.json.gz +0 -0
  19. package/.cache/babel/522cbf93af7ec749dde0e2a7dd860c9f.json.gz +0 -0
  20. package/.cache/babel/53d915d1e8c3e78d33ce618b7e71d9c5.json.gz +0 -0
  21. package/.cache/babel/5990820d02b6a8011a024e80353cfd36.json.gz +0 -0
  22. package/.cache/babel/5ee469cfff0fc7181d9e0db8e1d58cf0.json.gz +0 -0
  23. package/.cache/babel/61d00fc8add441f0b915e3af4b518ead.json.gz +0 -0
  24. package/.cache/babel/6366f9a19fda42ebc6432b2767e76d7b.json.gz +0 -0
  25. package/.cache/babel/646a7267e14986e70c74dc9c32ca6a14.json.gz +0 -0
  26. package/.cache/babel/6918a83abb7578c728b9d97982603c3a.json.gz +0 -0
  27. package/.cache/babel/69c189b89f70f48c107cc639db821f60.json.gz +0 -0
  28. package/.cache/babel/6ad227d2c4160c54ee51fdae5d795d99.json.gz +0 -0
  29. package/.cache/babel/6bc5913640b460de4b83482460b5a779.json.gz +0 -0
  30. package/.cache/babel/6d2559360f2fff9e75ddf057cfe0e2a8.json.gz +0 -0
  31. package/.cache/babel/6f2e7ac771a37e6fcde789a298b73e70.json.gz +0 -0
  32. package/.cache/babel/6fab1f402a06436d3986c0c65f2db2c3.json.gz +0 -0
  33. package/.cache/babel/7030a1a5aa29c124ce7c35ac8767ad57.json.gz +0 -0
  34. package/.cache/babel/7464c382b8a939e4e43f9349d76843a8.json.gz +0 -0
  35. package/.cache/babel/7b683070fec6ffe276629b2e43f832ad.json.gz +0 -0
  36. package/.cache/babel/7d413de44cefaf70cc328ba12d417c09.json.gz +0 -0
  37. package/.cache/babel/82dcac9a920b1401a6e4d9116620ad03.json.gz +0 -0
  38. package/.cache/babel/867d3b995951f97af45663f52797290b.json.gz +0 -0
  39. package/.cache/babel/8992b31884c946aa1b70f6db4434a9fc.json.gz +0 -0
  40. package/.cache/babel/8ac1c8e3c1ae359bf87f243091c8d2c5.json.gz +0 -0
  41. package/.cache/babel/8ac84b121ed7e10702015d07c86d96c8.json.gz +0 -0
  42. package/.cache/babel/8e6a90b4bc7afb2e6b93ea86efce5a92.json.gz +0 -0
  43. package/.cache/babel/9dd0c10541b1bd54bcc6f7510f7e1730.json.gz +0 -0
  44. package/.cache/babel/9fa3511f36f06d92dadc26f96928aabb.json.gz +0 -0
  45. package/.cache/babel/a398d30cfa757f570719e381323da904.json.gz +0 -0
  46. package/.cache/babel/a656f81700e8f1a93c995190f8138b3b.json.gz +0 -0
  47. package/.cache/babel/ad43360146aec3cbcdc4c0df3791d848.json.gz +0 -0
  48. package/.cache/babel/ae472f09ef1c3c6b5454d0b05732de38.json.gz +0 -0
  49. package/.cache/babel/b25fb66cc6e303883b249f044f991b93.json.gz +0 -0
  50. package/.cache/babel/b3640e4090ac12187a00703ee311635c.json.gz +0 -0
  51. package/.cache/babel/b3c5c67186d334fd380f7f8c2e6a6362.json.gz +0 -0
  52. package/.cache/babel/b54e20f4b38273a1ede9af6bb4bf20ac.json.gz +0 -0
  53. package/.cache/babel/b96a091a6aca6cb05778f133c1574546.json.gz +0 -0
  54. package/.cache/babel/bc975083d2d7b0e900e81cb5eea4acb0.json.gz +0 -0
  55. package/.cache/babel/c762aee66625f48b1de4e3b329d8c9fe.json.gz +0 -0
  56. package/.cache/babel/c7b72847e8266932199eab550d74d4ec.json.gz +0 -0
  57. package/.cache/babel/cb562dfa06c52220cf31b2d2f3dfe5ed.json.gz +0 -0
  58. package/.cache/babel/cf4e47aa0d80b97616c031301bcf80dc.json.gz +0 -0
  59. package/.cache/babel/d542afdb91386a0759170a6313be13c8.json.gz +0 -0
  60. package/.cache/babel/d57434da1e6dbb2018d47bec96e5839f.json.gz +0 -0
  61. package/.cache/babel/d6d299aa229290555e99154321359054.json.gz +0 -0
  62. package/.cache/babel/dc94026c61aa370892be7ffaa3c0bdbd.json.gz +0 -0
  63. package/.cache/babel/df56e5784cf3decfe6c7a459f29e9d5f.json.gz +0 -0
  64. package/.cache/babel/df57b70cabcb16e5829a049c338eaa16.json.gz +0 -0
  65. package/.cache/babel/e1f3cdff6066c3110a7df739f642ddc8.json.gz +0 -0
  66. package/.cache/babel/e7f2c9b159edbe9062298e90244e7f4a.json.gz +0 -0
  67. package/.cache/babel/ef23c92e697190265fa2e11c69779b88.json.gz +0 -0
  68. package/.cache/babel/ef6aa47361e53540e1b99c4c01708bf9.json.gz +0 -0
  69. package/.cache/babel/efc47462720c1d97fe7176407b3c5bca.json.gz +0 -0
  70. package/.cache/babel/f13abc23689523a1b6b97b9bfdd1aac5.json.gz +0 -0
  71. package/.cache/babel/f3a7c8fc34acb9d199cf63912ac700a6.json.gz +0 -0
  72. package/.cache/babel/f8e24ac6182e943c6a6cd14ed62ee1b4.json.gz +0 -0
  73. package/.cache/babel/fe8f3849250ae54c53096ec8db55a8d6.json.gz +0 -0
  74. package/.cache/babel/ff0e41a8b69788632a0b147d4169dc94.json.gz +0 -0
  75. package/CHANGELOG.md +26 -0
  76. package/README.md +1 -1
  77. package/composer.lock +29 -29
  78. package/dist/carousel/view.asset.php +1 -1
  79. package/dist/carousel/view.css +1 -1
  80. package/dist/carousel/view.js +1 -1
  81. package/dist/carousel/view.rtl.css +1 -1
  82. package/dist/donateStreamlined.asset.php +1 -1
  83. package/dist/donateStreamlined.js +1 -1
  84. package/dist/editor.asset.php +1 -1
  85. package/dist/editor.css +1 -1
  86. package/dist/editor.js +3 -3
  87. package/dist/editor.rtl.css +1 -1
  88. package/dist/placeholder_blocks.asset.php +1 -1
  89. package/dist/placeholder_blocks.js +1 -1
  90. package/newspack-blocks.php +2 -2
  91. package/package.json +4 -4
  92. package/src/blocks/donate/frontend/class-newspack-blocks-donate-renderer.php +11 -7
  93. package/src/blocks/donate/index.js +1 -1
  94. package/src/blocks/iframe/index.js +1 -1
  95. package/src/setup/placeholder-blocks.js +1 -1
  96. package/vendor/autoload.php +1 -1
  97. package/vendor/composer/autoload_real.php +4 -4
  98. package/vendor/composer/autoload_static.php +2 -2
  99. package/vendor/composer/installed.php +2 -2
  100. package/.cache/babel/00255e6096be9e31ec354db849dfefaa.json.gz +0 -0
  101. package/.cache/babel/03ee6a9b413adafb1d24ee7efe4e0de7.json.gz +0 -0
  102. package/.cache/babel/0d4960812610f2f863b7c53527ae85ac.json.gz +0 -0
  103. package/.cache/babel/16467abe1e99b2a2a8f87045f85e0506.json.gz +0 -0
  104. package/.cache/babel/1948e72d907f681ff771881ad6800ee1.json.gz +0 -0
  105. package/.cache/babel/1decfd137cac87a75bd83ffbd39c9106.json.gz +0 -0
  106. package/.cache/babel/1e198a8e712a3bba22d948d278554537.json.gz +0 -0
  107. package/.cache/babel/2143ceff6d186bc13bc902e0f1f33dbf.json.gz +0 -0
  108. package/.cache/babel/28700b83434e4dbfb9a20d7ec0a7e7a4.json.gz +0 -0
  109. package/.cache/babel/2da6786ede3ddda4c86eeac524a6a796.json.gz +0 -0
  110. package/.cache/babel/304b70650e49ebf6752198888bc43128.json.gz +0 -0
  111. package/.cache/babel/3266d1d76445fa1073cfe2cee8994f03.json.gz +0 -0
  112. package/.cache/babel/38b1f9b72e3b22262c5b0fd0a3ea002a.json.gz +0 -0
  113. package/.cache/babel/3975ca3d8d9ca3c68d7ea3f58fb76b47.json.gz +0 -0
  114. package/.cache/babel/3a59b710e9745ef93148d6d74ee7d16f.json.gz +0 -0
  115. package/.cache/babel/3b2c440027c793c8f7978d7622cbfca0.json.gz +0 -0
  116. package/.cache/babel/3e69fe002d9973c0030152a51da9477a.json.gz +0 -0
  117. package/.cache/babel/3fa1dbae1ebf6204aa04a8081e410f2e.json.gz +0 -0
  118. package/.cache/babel/4066dc231d660a35d49e8385006554ea.json.gz +0 -0
  119. package/.cache/babel/41abaaadb68b0657a95fa0c356873def.json.gz +0 -0
  120. package/.cache/babel/424185dd50e91d8dee5fdae43086010e.json.gz +0 -0
  121. package/.cache/babel/427a6423ebde76bcb488747127e47351.json.gz +0 -0
  122. package/.cache/babel/42d045abaed2f2377d3bfdb991b86355.json.gz +0 -0
  123. package/.cache/babel/49af01815525cf34d277637e37ea51bb.json.gz +0 -0
  124. package/.cache/babel/560ec172137a19cd131aab59cb0a064e.json.gz +0 -0
  125. package/.cache/babel/5a94cdb1154d1770a8b0e8cd3145825b.json.gz +0 -0
  126. package/.cache/babel/5d64e475284e52c104df17e26066b17b.json.gz +0 -0
  127. package/.cache/babel/5e04dda33432537a699ab71a27655be2.json.gz +0 -0
  128. package/.cache/babel/603e45ed9b2ffa2115aede8aab567da0.json.gz +0 -0
  129. package/.cache/babel/635c439786b8522888342779b28ee9ee.json.gz +0 -0
  130. package/.cache/babel/63e7b9aa8a81ea06587cc196172bf2ad.json.gz +0 -0
  131. package/.cache/babel/648cffdd5ec4a2446f8935a17b98080b.json.gz +0 -0
  132. package/.cache/babel/650280f633ded45732bbc96abf830024.json.gz +0 -0
  133. package/.cache/babel/6d07c1a0b2768b0433b8f1b9d16eae11.json.gz +0 -0
  134. package/.cache/babel/6ef313cb6d3a59f73a6b78e1a729fb13.json.gz +0 -0
  135. package/.cache/babel/72321dde68f0bb9c334d90d6f4584be8.json.gz +0 -0
  136. package/.cache/babel/7ae2915bb63684e21c41ca8b92d7bdc1.json.gz +0 -0
  137. package/.cache/babel/7c10f4d554daa8efe1e0a4457fb6d27b.json.gz +0 -0
  138. package/.cache/babel/7d9e358dd59181051e4737fd8d105b89.json.gz +0 -0
  139. package/.cache/babel/7e21e4c521dc1687d10e47ca1cba5ccd.json.gz +0 -0
  140. package/.cache/babel/7e5162e3319cd5d6fca6c0db0516aaeb.json.gz +0 -0
  141. package/.cache/babel/803192c922f7d419648bab7e1201b22e.json.gz +0 -0
  142. package/.cache/babel/81fcb17d42a554573a91ef0b1cfe2f82.json.gz +0 -0
  143. package/.cache/babel/84c019d3d643195fb37d08110f15f8c9.json.gz +0 -0
  144. package/.cache/babel/85951ea8f9616aded1673c4f57e92eb7.json.gz +0 -0
  145. package/.cache/babel/8ca686b1603d30fd05ff210182b49660.json.gz +0 -0
  146. package/.cache/babel/8de5c373bbc4b6fbeec373d582935887.json.gz +0 -0
  147. package/.cache/babel/8e35fb010830b9aec84e125915cf4afd.json.gz +0 -0
  148. package/.cache/babel/956daf27323e3b87bf8bf9bbf58881ed.json.gz +0 -0
  149. package/.cache/babel/963b1e44be998c4dcc6845745c377369.json.gz +0 -0
  150. package/.cache/babel/975dfea566db37a1a09322effcd7e124.json.gz +0 -0
  151. package/.cache/babel/a5405f86b8d1485e62a125275507e60f.json.gz +0 -0
  152. package/.cache/babel/a7f7461321ca6fd4360df04bb894c106.json.gz +0 -0
  153. package/.cache/babel/a8a6812e1c7b65cc6d0bdebe2a35c8ca.json.gz +0 -0
  154. package/.cache/babel/aa89cfc4c88fcc465b8d74af824e7f6b.json.gz +0 -0
  155. package/.cache/babel/abfad2632df08f961d60b11fc146d38f.json.gz +0 -0
  156. package/.cache/babel/b3a335ab950f502914013810b43b0ad5.json.gz +0 -0
  157. package/.cache/babel/b6f74d8551c5af82f277e67bc9978c5e.json.gz +0 -0
  158. package/.cache/babel/ba711530bd319618a0510d8361bebb45.json.gz +0 -0
  159. package/.cache/babel/ba77e682225df6126b636458055601d9.json.gz +0 -0
  160. package/.cache/babel/ba99f69b07bc475d53d1121387396514.json.gz +0 -0
  161. package/.cache/babel/bb9a2c39b3e8555b578d242cd4477180.json.gz +0 -0
  162. package/.cache/babel/beaa874c5e01203d9dbe23cb89405276.json.gz +0 -0
  163. package/.cache/babel/c3aa996443e7f377aa423bcc03ffc617.json.gz +0 -0
  164. package/.cache/babel/d1c60b4b717e103f2dddf0dbeb274e89.json.gz +0 -0
  165. package/.cache/babel/d4672090e0dd9a73bfb00bd770b23643.json.gz +0 -0
  166. package/.cache/babel/d515ddc0797ea256ff7271507737e9ce.json.gz +0 -0
  167. package/.cache/babel/d9060b9162e7caf974db0b90b6134727.json.gz +0 -0
  168. package/.cache/babel/dd57b8d31664b147b9f1e3f5cd18cc2a.json.gz +0 -0
  169. package/.cache/babel/e1a2c7e4fc3afe9cc6e03d60f4e4a23d.json.gz +0 -0
  170. package/.cache/babel/e210ff9aa99df972b8d81c4bda70f642.json.gz +0 -0
  171. package/.cache/babel/e259a73f84d5b92b94e6d094719264c3.json.gz +0 -0
  172. package/.cache/babel/e6ce03a9908c9c4dc2c723531f1073f6.json.gz +0 -0
  173. package/.cache/babel/eb3bb371036da362c42db50248d0b180.json.gz +0 -0
  174. package/.cache/babel/ec25bb53826070b7f301e64f02355b8c.json.gz +0 -0
  175. package/.cache/babel/f5211608f22c2e12594eafdbc4e66aa5.json.gz +0 -0
  176. package/.cache/babel/f645b8c88a49718cd778e3595212d4eb.json.gz +0 -0
  177. package/.cache/babel/fca370866bdd67aa150a2e218952090b.json.gz +0 -0
  178. /package/.cache/babel/{573a6a858ebefcfc8d03bcc121ded073.json.gz → 0a3c5c9b515d55e6daf9bb1530a33935.json.gz} +0 -0
  179. /package/.cache/babel/{70f6c01d8c6bc3efc41c97eaf49f7617.json.gz → 251320ac52752952f12b0509db4847e9.json.gz} +0 -0
  180. /package/.cache/babel/{c8b10cf6f706fb669d6dd7564385768d.json.gz → 31bb32d659e37be6cb488e5db5bdeccb.json.gz} +0 -0
  181. /package/.cache/babel/{c715630981a17343a50bde83b59833ff.json.gz → 41a786b05c7e86aa4ee7b0aca2422737.json.gz} +0 -0
  182. /package/.cache/babel/{0c12c4398bbbf2d771b13dd1d0e64097.json.gz → 4b3def64c2dc6c4f40e7d35e18d9cda5.json.gz} +0 -0
  183. /package/.cache/babel/{9ec25be8a78e2838aa277d1211297f45.json.gz → 506a7461434184f7d09f833f61d6bfcf.json.gz} +0 -0
  184. /package/.cache/babel/{eb854e03c810bdb969497b2a36119bfa.json.gz → 89043a36a31c7e92c973b2e0ae512e39.json.gz} +0 -0
  185. /package/.cache/babel/{c1e31e6c217023eb3d3fd5d3de486ac3.json.gz → 91cad33175abac6d33f0c20421ec316f.json.gz} +0 -0
  186. /package/.cache/babel/{8f24517cff634d2e91c19e51be8816cc.json.gz → 9300ec843499931b4743b6f0862a12ad.json.gz} +0 -0
  187. /package/.cache/babel/{281ca171ce8947f87f574df11059e00b.json.gz → 9321b14d86eb18eeecee85b95d36800c.json.gz} +0 -0
  188. /package/.cache/babel/{6333c664d69f13036f42bcf575c8e65d.json.gz → e32fb0d04614c50ee701cf3af842887f.json.gz} +0 -0
  189. /package/.cache/babel/{bd8741020db56bb5d999252812d1d717.json.gz → fac753cac804bb674519703a43aec6aa.json.gz} +0 -0
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '287612073858f52afd34beb9c4228b0a');
1
+ <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'b333eaff370133ba0549c25442386b82');
@@ -1 +1 @@
1
- (()=>{"use strict";var e={r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t);const n=window.wp.element,c=window.wp.i18n,l=window.wp.blockEditor,o=window.wp.blocks,r=window.wp.components,i=window.wp.data,a=window.wp.primitives,s=(0,n.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(a.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"}));const p=function(e){let{icon:t,size:c=24,...l}=e;return(0,n.cloneElement)(t,{width:c,height:c,...l})};var __=c.__,d={"newspack-ads/ad-unit":{title:__("Ad Unit","newspack-blocks"),description:__("Render an ad unit from your inventory.","newspack-blocks"),icon:s,message:__("Place ad units inside your page by installing Newspack Ads.","newspack-blocks"),url:"https://newspack.pub/support/advertising/"}};function w(e,t){var a=t.title,s=t.description,d=t.icon,w=t.message,u=t.url;if(!(0,o.getBlockType)(e)){a=a||e.split("/").pop();(0,o.registerBlockType)(e,{title:a,description:s,icon:d,edit:(0,i.withDispatch)((function(e){return{removeBlocks:e("core/block-editor").removeBlocks}}))((function(e){var t=e.clientId,o=e.removeBlocks,i=(0,l.useBlockProps)();return(0,n.createElement)("div",i,(0,n.createElement)("div",{className:"newspack-blocks-placeholder-block"},(0,n.createElement)("div",{className:"newspack-blocks-placeholder-block__label"},d&&(0,n.createElement)(p,{icon:d}),a),(0,n.createElement)("p",null,(0,n.createElement)("strong",null,(0,c.sprintf)(__('The "%s" block is currently not available.',"newspack-blocks"),a))),w&&(0,n.createElement)("p",null,w),(0,n.createElement)("div",{className:"newspack-blocks-placeholder-block__buttons"},u&&(0,n.createElement)(r.Button,{variant:"primary",target:"_blank",rel:"external",href:u},__("Visit Plugin Page","newspack-blocks")),(0,n.createElement)(r.Button,{variant:"secondary",isDestructive:!0,onClick:function(){return o(t)}},__("Remove Block","newspack-blocks")))))})),supports:{html:!1,lock:!1,reusable:!1,inserter:!1,defaultStylePicker:!1,customClassName:!1,className:!1,alignWide:!1,align:!1,anchor:!1}})}}for(var u in d)w(u,d[u]);var k=window;for(var m in t)k[m]=t[m];t.__esModule&&Object.defineProperty(k,"__esModule",{value:!0})})();
1
+ (()=>{"use strict";var e={r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t);const n=window.wp.element,c=window.wp.i18n,l=window.wp.blockEditor,o=window.wp.blocks,r=window.wp.components,i=window.wp.data,a=window.wp.primitives,s=(0,n.createElement)(a.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,n.createElement)(a.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"}));const p=function(e){let{icon:t,size:c=24,...l}=e;return(0,n.cloneElement)(t,{width:c,height:c,...l})};var __=c.__,d={"newspack-ads/ad-unit":{title:__("Ad Unit","newspack-blocks"),description:__("Render an ad unit from your inventory.","newspack-blocks"),icon:s,message:__("Place ad units inside your page by installing Newspack Ads.","newspack-blocks"),url:"https://help.newspack.com/revenue/advertising/"}};function w(e,t){var a=t.title,s=t.description,d=t.icon,w=t.message,u=t.url;if(!(0,o.getBlockType)(e)){a=a||e.split("/").pop();(0,o.registerBlockType)(e,{title:a,description:s,icon:d,edit:(0,i.withDispatch)((function(e){return{removeBlocks:e("core/block-editor").removeBlocks}}))((function(e){var t=e.clientId,o=e.removeBlocks,i=(0,l.useBlockProps)();return(0,n.createElement)("div",i,(0,n.createElement)("div",{className:"newspack-blocks-placeholder-block"},(0,n.createElement)("div",{className:"newspack-blocks-placeholder-block__label"},d&&(0,n.createElement)(p,{icon:d}),a),(0,n.createElement)("p",null,(0,n.createElement)("strong",null,(0,c.sprintf)(__('The "%s" block is currently not available.',"newspack-blocks"),a))),w&&(0,n.createElement)("p",null,w),(0,n.createElement)("div",{className:"newspack-blocks-placeholder-block__buttons"},u&&(0,n.createElement)(r.Button,{variant:"primary",target:"_blank",rel:"external",href:u},__("Visit Plugin Page","newspack-blocks")),(0,n.createElement)(r.Button,{variant:"secondary",isDestructive:!0,onClick:function(){return o(t)}},__("Remove Block","newspack-blocks")))))})),supports:{html:!1,lock:!1,reusable:!1,inserter:!1,defaultStylePicker:!1,customClassName:!1,className:!1,alignWide:!1,align:!1,anchor:!1}})}}for(var u in d)w(u,d[u]);var k=window;for(var m in t)k[m]=t[m];t.__esModule&&Object.defineProperty(k,"__esModule",{value:!0})})();
@@ -7,7 +7,7 @@
7
7
  * Author URI: https://newspack.blog/
8
8
  * Text Domain: newspack-blocks
9
9
  * Domain Path: /languages
10
- * Version: 1.64.0
10
+ * Version: 1.65.0
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', '1.64.0' );
18
+ define( 'NEWSPACK_BLOCKS__VERSION', '1.65.0' );
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/newspack-blocks",
3
- "version": "1.64.0",
3
+ "version": "1.65.0",
4
4
  "author": "Automattic",
5
5
  "devDependencies": {
6
6
  "@rushstack/eslint-patch": "^1.2.0",
@@ -12,7 +12,7 @@
12
12
  "fetch-mock-jest": "^1.5.1",
13
13
  "html-entities": "^2.3.3",
14
14
  "identity-obj-proxy": "^3.0.0",
15
- "lint-staged": "^13.1.2",
15
+ "lint-staged": "^13.2.0",
16
16
  "newspack-scripts": "^5.0.0",
17
17
  "postcss-scss": "^4.0.6",
18
18
  "prettier": "npm:wp-prettier@^2.6.2-beta-1",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "description": "=== Newspack Blocks === Contributors: (this should be a list of wordpress.org userid's) Donate link: https://example.com/ Tags: comments, spam Requires at least: 4.5 Tested up to: 5.1.1 Stable tag: 0.1.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html",
22
22
  "dependencies": {
23
- "@stripe/stripe-js": "^1.46.0",
23
+ "@stripe/stripe-js": "^1.49.0",
24
24
  "classnames": "^2.3.2",
25
25
  "lodash": "^4.17.21",
26
26
  "newspack-components": "^2.1.0",
@@ -28,7 +28,7 @@
28
28
  "redux": "^4.2.1",
29
29
  "redux-saga": "^1.2.2",
30
30
  "regenerator-runtime": "^0.13.11",
31
- "swiper": "8.4.7"
31
+ "swiper": "9.1.0"
32
32
  },
33
33
  "scripts": {
34
34
  "cm": "newspack-scripts commit",
@@ -110,6 +110,7 @@ class Newspack_Blocks_Donate_Renderer {
110
110
  }
111
111
  }
112
112
 
113
+ $has_css = true;
113
114
  switch ( $handle_slug ) {
114
115
  case 'streamlined':
115
116
  $filename = 'donateStreamlined';
@@ -125,6 +126,7 @@ class Newspack_Blocks_Donate_Renderer {
125
126
  break;
126
127
  case 'modal-checkout-block':
127
128
  $filename = 'donateCheckoutBlock';
129
+ $has_css = false;
128
130
  break;
129
131
  default:
130
132
  $filename = false;
@@ -146,13 +148,15 @@ class Newspack_Blocks_Donate_Renderer {
146
148
  );
147
149
  wp_script_add_data( $handle, 'async', true );
148
150
 
149
- $style_path = NEWSPACK_BLOCKS__BLOCKS_DIRECTORY . $filename . ( is_rtl() ? '.rtl' : '' ) . '.css';
150
- wp_enqueue_style(
151
- $handle,
152
- plugins_url( $style_path, NEWSPACK_BLOCKS__PLUGIN_FILE ),
153
- [],
154
- NEWSPACK_BLOCKS__VERSION
155
- );
151
+ if ( $has_css ) {
152
+ $style_path = NEWSPACK_BLOCKS__BLOCKS_DIRECTORY . $filename . ( is_rtl() ? '.rtl' : '' ) . '.css';
153
+ wp_enqueue_style(
154
+ $handle,
155
+ plugins_url( $style_path, NEWSPACK_BLOCKS__PLUGIN_FILE ),
156
+ [],
157
+ NEWSPACK_BLOCKS__VERSION
158
+ );
159
+ }
156
160
  }
157
161
 
158
162
  /**
@@ -44,7 +44,7 @@ export const settings = {
44
44
  'newspack-blocks'
45
45
  ) }
46
46
  </p>
47
- <ExternalLink href={ __( 'https://newspack.pub/support/blocks/donate-block/' ) }>
47
+ <ExternalLink href="https://help.newspack.com/publishing-and-appearance/blocks/donate-block/">
48
48
  { __( 'Support reference', 'newspack-blocks' ) }
49
49
  </ExternalLink>
50
50
  </>
@@ -33,7 +33,7 @@ export const settings = {
33
33
  description: (
34
34
  <>
35
35
  <p>{ __( 'Embed an iframe.', 'newspack-blocks' ) }</p>
36
- <ExternalLink href={ __( 'https://newspack.pub/support/blocks/iframe-block/' ) }>
36
+ <ExternalLink href="https://help.newspack.com/publishing-and-appearance/blocks/iframe-block/">
37
37
  { __( 'Support reference', 'newspack-blocks' ) }
38
38
  </ExternalLink>
39
39
  </>
@@ -14,7 +14,7 @@ const placeholderBlocks = {
14
14
  description: __( 'Render an ad unit from your inventory.', 'newspack-blocks' ),
15
15
  icon: pullquote,
16
16
  message: __( 'Place ad units inside your page by installing Newspack Ads.', 'newspack-blocks' ),
17
- url: 'https://newspack.pub/support/advertising/',
17
+ url: 'https://help.newspack.com/revenue/advertising/',
18
18
  },
19
19
  };
20
20
 
@@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
22
22
 
23
23
  require_once __DIR__ . '/composer/autoload_real.php';
24
24
 
25
- return ComposerAutoloaderInitc9f4ac3f04fae963d5c1e3c37a012878::getLoader();
25
+ return ComposerAutoloaderInit42c93f0a35788f1ed2bb7d5920fcae4d::getLoader();
@@ -2,7 +2,7 @@
2
2
 
3
3
  // autoload_real.php @generated by Composer
4
4
 
5
- class ComposerAutoloaderInitc9f4ac3f04fae963d5c1e3c37a012878
5
+ class ComposerAutoloaderInit42c93f0a35788f1ed2bb7d5920fcae4d
6
6
  {
7
7
  private static $loader;
8
8
 
@@ -22,12 +22,12 @@ class ComposerAutoloaderInitc9f4ac3f04fae963d5c1e3c37a012878
22
22
  return self::$loader;
23
23
  }
24
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInitc9f4ac3f04fae963d5c1e3c37a012878', 'loadClassLoader'), true, true);
25
+ spl_autoload_register(array('ComposerAutoloaderInit42c93f0a35788f1ed2bb7d5920fcae4d', 'loadClassLoader'), true, true);
26
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27
- spl_autoload_unregister(array('ComposerAutoloaderInitc9f4ac3f04fae963d5c1e3c37a012878', 'loadClassLoader'));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit42c93f0a35788f1ed2bb7d5920fcae4d', 'loadClassLoader'));
28
28
 
29
29
  require __DIR__ . '/autoload_static.php';
30
- call_user_func(\Composer\Autoload\ComposerStaticInitc9f4ac3f04fae963d5c1e3c37a012878::getInitializer($loader));
30
+ call_user_func(\Composer\Autoload\ComposerStaticInit42c93f0a35788f1ed2bb7d5920fcae4d::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 ComposerStaticInitc9f4ac3f04fae963d5c1e3c37a012878
7
+ class ComposerStaticInit42c93f0a35788f1ed2bb7d5920fcae4d
8
8
  {
9
9
  public static $classMap = array (
10
10
  'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
@@ -13,7 +13,7 @@ class ComposerStaticInitc9f4ac3f04fae963d5c1e3c37a012878
13
13
  public static function getInitializer(ClassLoader $loader)
14
14
  {
15
15
  return \Closure::bind(function () use ($loader) {
16
- $loader->classMap = ComposerStaticInitc9f4ac3f04fae963d5c1e3c37a012878::$classMap;
16
+ $loader->classMap = ComposerStaticInit42c93f0a35788f1ed2bb7d5920fcae4d::$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-master',
5
5
  'version' => 'dev-master',
6
- 'reference' => '31da96848de290f1db08f4a2940b60b4453fd25d',
6
+ 'reference' => '3d282ea97dc9ab14a5c54b789d8e08c690128eba',
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-master',
15
15
  'version' => 'dev-master',
16
- 'reference' => '31da96848de290f1db08f4a2940b60b4453fd25d',
16
+ 'reference' => '3d282ea97dc9ab14a5c54b789d8e08c690128eba',
17
17
  'type' => 'wordpress-plugin',
18
18
  'install_path' => __DIR__ . '/../../',
19
19
  'aliases' => array(),