@wordpress/block-library 8.27.2 → 8.28.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 (1445) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/archives/index.js +5 -4
  3. package/build/archives/index.js.map +1 -1
  4. package/build/archives/init.js +1 -2
  5. package/build/archives/init.js.map +1 -1
  6. package/build/audio/deprecated.js +1 -2
  7. package/build/audio/deprecated.js.map +1 -1
  8. package/build/audio/edit.js +1 -2
  9. package/build/audio/edit.js.map +1 -1
  10. package/build/audio/edit.native.js +1 -2
  11. package/build/audio/edit.native.js.map +1 -1
  12. package/build/audio/index.js +5 -4
  13. package/build/audio/index.js.map +1 -1
  14. package/build/audio/init.js +1 -2
  15. package/build/audio/init.js.map +1 -1
  16. package/build/audio/transforms.js +1 -2
  17. package/build/audio/transforms.js.map +1 -1
  18. package/build/audio/transforms.native.js +1 -2
  19. package/build/audio/transforms.native.js.map +1 -1
  20. package/build/avatar/index.js +5 -4
  21. package/build/avatar/index.js.map +1 -1
  22. package/build/avatar/init.js +1 -2
  23. package/build/avatar/init.js.map +1 -1
  24. package/build/avatar/user-control.js +1 -2
  25. package/build/avatar/user-control.js.map +1 -1
  26. package/build/block/deprecated.js +65 -0
  27. package/build/block/deprecated.js.map +1 -0
  28. package/build/block/edit-title.native.js +1 -2
  29. package/build/block/edit-title.native.js.map +1 -1
  30. package/build/block/edit.js +92 -101
  31. package/build/block/edit.js.map +1 -1
  32. package/build/block/index.js +26 -8
  33. package/build/block/index.js.map +1 -1
  34. package/build/block/init.js +1 -2
  35. package/build/block/init.js.map +1 -1
  36. package/build/button/color-background.native.js +1 -2
  37. package/build/button/color-background.native.js.map +1 -1
  38. package/build/button/constants.js +3 -6
  39. package/build/button/constants.js.map +1 -1
  40. package/build/button/deprecated.js +1 -2
  41. package/build/button/deprecated.js.map +1 -1
  42. package/build/button/edit.js +1 -2
  43. package/build/button/edit.js.map +1 -1
  44. package/build/button/edit.native.js +1 -3
  45. package/build/button/edit.native.js.map +1 -1
  46. package/build/button/index.js +9 -6
  47. package/build/button/index.js.map +1 -1
  48. package/build/button/init.js +1 -2
  49. package/build/button/init.js.map +1 -1
  50. package/build/buttons/deprecated.js +1 -2
  51. package/build/buttons/deprecated.js.map +1 -1
  52. package/build/buttons/edit.js +5 -13
  53. package/build/buttons/edit.js.map +1 -1
  54. package/build/buttons/edit.native.js +2 -5
  55. package/build/buttons/edit.native.js.map +1 -1
  56. package/build/buttons/index.js +6 -4
  57. package/build/buttons/index.js.map +1 -1
  58. package/build/buttons/init.js +1 -2
  59. package/build/buttons/init.js.map +1 -1
  60. package/build/buttons/transforms.js +1 -2
  61. package/build/buttons/transforms.js.map +1 -1
  62. package/build/buttons/transforms.native.js +1 -2
  63. package/build/buttons/transforms.native.js.map +1 -1
  64. package/build/calendar/index.js +5 -4
  65. package/build/calendar/index.js.map +1 -1
  66. package/build/calendar/init.js +1 -2
  67. package/build/calendar/init.js.map +1 -1
  68. package/build/calendar/transforms.js +1 -2
  69. package/build/calendar/transforms.js.map +1 -1
  70. package/build/categories/index.js +5 -4
  71. package/build/categories/index.js.map +1 -1
  72. package/build/categories/init.js +1 -2
  73. package/build/categories/init.js.map +1 -1
  74. package/build/code/edit.native.js +1 -2
  75. package/build/code/edit.native.js.map +1 -1
  76. package/build/code/index.js +5 -5
  77. package/build/code/index.js.map +1 -1
  78. package/build/code/init.js +1 -2
  79. package/build/code/init.js.map +1 -1
  80. package/build/code/transforms.js +1 -2
  81. package/build/code/transforms.js.map +1 -1
  82. package/build/code/transforms.native.js +1 -2
  83. package/build/code/transforms.native.js.map +1 -1
  84. package/build/column/column-preview.native.js +1 -2
  85. package/build/column/column-preview.native.js.map +1 -1
  86. package/build/column/deprecated.js +1 -2
  87. package/build/column/deprecated.js.map +1 -1
  88. package/build/column/edit.js +1 -2
  89. package/build/column/edit.js.map +1 -1
  90. package/build/column/edit.native.js +1 -2
  91. package/build/column/edit.native.js.map +1 -1
  92. package/build/column/index.js +7 -5
  93. package/build/column/index.js.map +1 -1
  94. package/build/column/init.js +1 -2
  95. package/build/column/init.js.map +1 -1
  96. package/build/columns/deprecated.js +1 -2
  97. package/build/columns/deprecated.js.map +1 -1
  98. package/build/columns/edit.js +53 -76
  99. package/build/columns/edit.js.map +1 -1
  100. package/build/columns/edit.native.js +1 -14
  101. package/build/columns/edit.native.js.map +1 -1
  102. package/build/columns/index.js +8 -5
  103. package/build/columns/index.js.map +1 -1
  104. package/build/columns/init.js +1 -2
  105. package/build/columns/init.js.map +1 -1
  106. package/build/columns/transforms.js +1 -2
  107. package/build/columns/transforms.js.map +1 -1
  108. package/build/columns/transforms.native.js +1 -2
  109. package/build/columns/transforms.native.js.map +1 -1
  110. package/build/columns/variations.js +1 -2
  111. package/build/columns/variations.js.map +1 -1
  112. package/build/comment-author-avatar/index.js +5 -4
  113. package/build/comment-author-avatar/index.js.map +1 -1
  114. package/build/comment-author-avatar/init.js +1 -2
  115. package/build/comment-author-avatar/init.js.map +1 -1
  116. package/build/comment-author-name/deprecated.js +1 -2
  117. package/build/comment-author-name/deprecated.js.map +1 -1
  118. package/build/comment-author-name/index.js +5 -4
  119. package/build/comment-author-name/index.js.map +1 -1
  120. package/build/comment-author-name/init.js +1 -2
  121. package/build/comment-author-name/init.js.map +1 -1
  122. package/build/comment-content/index.js +2 -4
  123. package/build/comment-content/index.js.map +1 -1
  124. package/build/comment-content/init.js +1 -2
  125. package/build/comment-content/init.js.map +1 -1
  126. package/build/comment-date/deprecated.js +1 -2
  127. package/build/comment-date/deprecated.js.map +1 -1
  128. package/build/comment-date/index.js +5 -4
  129. package/build/comment-date/index.js.map +1 -1
  130. package/build/comment-date/init.js +1 -2
  131. package/build/comment-date/init.js.map +1 -1
  132. package/build/comment-edit-link/index.js +5 -4
  133. package/build/comment-edit-link/index.js.map +1 -1
  134. package/build/comment-edit-link/init.js +1 -2
  135. package/build/comment-edit-link/init.js.map +1 -1
  136. package/build/comment-reply-link/edit.js +1 -2
  137. package/build/comment-reply-link/edit.js.map +1 -1
  138. package/build/comment-reply-link/index.js +2 -4
  139. package/build/comment-reply-link/index.js.map +1 -1
  140. package/build/comment-reply-link/init.js +1 -2
  141. package/build/comment-reply-link/init.js.map +1 -1
  142. package/build/comment-template/index.js +5 -4
  143. package/build/comment-template/index.js.map +1 -1
  144. package/build/comment-template/init.js +1 -2
  145. package/build/comment-template/init.js.map +1 -1
  146. package/build/comments/deprecated.js +1 -2
  147. package/build/comments/deprecated.js.map +1 -1
  148. package/build/comments/edit/template.js +1 -2
  149. package/build/comments/edit/template.js.map +1 -1
  150. package/build/comments/index.js +2 -4
  151. package/build/comments/index.js.map +1 -1
  152. package/build/comments/init.js +1 -2
  153. package/build/comments/init.js.map +1 -1
  154. package/build/comments-pagination/edit.js +1 -3
  155. package/build/comments-pagination/edit.js.map +1 -1
  156. package/build/comments-pagination/index.js +6 -4
  157. package/build/comments-pagination/index.js.map +1 -1
  158. package/build/comments-pagination/init.js +1 -2
  159. package/build/comments-pagination/init.js.map +1 -1
  160. package/build/comments-pagination-next/index.js +5 -4
  161. package/build/comments-pagination-next/index.js.map +1 -1
  162. package/build/comments-pagination-next/init.js +1 -2
  163. package/build/comments-pagination-next/init.js.map +1 -1
  164. package/build/comments-pagination-numbers/index.js +5 -4
  165. package/build/comments-pagination-numbers/index.js.map +1 -1
  166. package/build/comments-pagination-numbers/init.js +1 -2
  167. package/build/comments-pagination-numbers/init.js.map +1 -1
  168. package/build/comments-pagination-previous/index.js +5 -4
  169. package/build/comments-pagination-previous/index.js.map +1 -1
  170. package/build/comments-pagination-previous/init.js +1 -2
  171. package/build/comments-pagination-previous/init.js.map +1 -1
  172. package/build/comments-title/deprecated.js +4 -2
  173. package/build/comments-title/deprecated.js.map +1 -1
  174. package/build/comments-title/index.js +5 -4
  175. package/build/comments-title/index.js.map +1 -1
  176. package/build/comments-title/init.js +1 -2
  177. package/build/comments-title/init.js.map +1 -1
  178. package/build/cover/controls.native.js +1 -2
  179. package/build/cover/controls.native.js.map +1 -1
  180. package/build/cover/deprecated.js +1 -2
  181. package/build/cover/deprecated.js.map +1 -1
  182. package/build/cover/edit/color-utils.js +3 -6
  183. package/build/cover/edit/color-utils.js.map +1 -1
  184. package/build/cover/edit/index.js +1 -2
  185. package/build/cover/edit/index.js.map +1 -1
  186. package/build/cover/edit/inspector-controls.js +3 -3
  187. package/build/cover/edit/inspector-controls.js.map +1 -1
  188. package/build/cover/edit.native.js +1 -2
  189. package/build/cover/edit.native.js.map +1 -1
  190. package/build/cover/focal-point-settings-button.native.js +1 -2
  191. package/build/cover/focal-point-settings-button.native.js.map +1 -1
  192. package/build/cover/index.js +5 -4
  193. package/build/cover/index.js.map +1 -1
  194. package/build/cover/init.js +1 -2
  195. package/build/cover/init.js.map +1 -1
  196. package/build/cover/overlay-color-settings.native.js +1 -2
  197. package/build/cover/overlay-color-settings.native.js.map +1 -1
  198. package/build/cover/shared.js +7 -14
  199. package/build/cover/shared.js.map +1 -1
  200. package/build/cover/transforms.js +1 -2
  201. package/build/cover/transforms.js.map +1 -1
  202. package/build/cover/transforms.native.js +1 -2
  203. package/build/cover/transforms.native.js.map +1 -1
  204. package/build/cover/variations.js +1 -2
  205. package/build/cover/variations.js.map +1 -1
  206. package/build/details/edit.js +1 -2
  207. package/build/details/edit.js.map +1 -1
  208. package/build/details/index.js +5 -4
  209. package/build/details/index.js.map +1 -1
  210. package/build/details/init.js +1 -2
  211. package/build/details/init.js.map +1 -1
  212. package/build/embed/constants.js +2 -4
  213. package/build/embed/constants.js.map +1 -1
  214. package/build/embed/deprecated.js +4 -2
  215. package/build/embed/deprecated.js.map +1 -1
  216. package/build/embed/edit.js +1 -2
  217. package/build/embed/edit.js.map +1 -1
  218. package/build/embed/edit.native.js +1 -2
  219. package/build/embed/edit.native.js.map +1 -1
  220. package/build/embed/embed-controls.js +1 -2
  221. package/build/embed/embed-controls.js.map +1 -1
  222. package/build/embed/embed-controls.native.js +1 -2
  223. package/build/embed/embed-controls.native.js.map +1 -1
  224. package/build/embed/embed-link-settings.native.js +1 -2
  225. package/build/embed/embed-link-settings.native.js.map +1 -1
  226. package/build/embed/embed-loading.js +1 -2
  227. package/build/embed/embed-loading.js.map +1 -1
  228. package/build/embed/embed-loading.native.js +1 -2
  229. package/build/embed/embed-loading.native.js.map +1 -1
  230. package/build/embed/embed-no-preview.native.js +1 -2
  231. package/build/embed/embed-no-preview.native.js.map +1 -1
  232. package/build/embed/embed-placeholder.js +2 -3
  233. package/build/embed/embed-placeholder.js.map +1 -1
  234. package/build/embed/embed-placeholder.native.js +1 -2
  235. package/build/embed/embed-placeholder.native.js.map +1 -1
  236. package/build/embed/embed-preview.js +1 -2
  237. package/build/embed/embed-preview.js.map +1 -1
  238. package/build/embed/embed-preview.native.js +1 -2
  239. package/build/embed/embed-preview.native.js.map +1 -1
  240. package/build/embed/icons.js +20 -40
  241. package/build/embed/icons.js.map +1 -1
  242. package/build/embed/index.js +5 -4
  243. package/build/embed/index.js.map +1 -1
  244. package/build/embed/init.js +1 -2
  245. package/build/embed/init.js.map +1 -1
  246. package/build/embed/transforms.js +4 -2
  247. package/build/embed/transforms.js.map +1 -1
  248. package/build/embed/transforms.native.js +1 -2
  249. package/build/embed/transforms.native.js.map +1 -1
  250. package/build/embed/util.js +4 -2
  251. package/build/embed/util.js.map +1 -1
  252. package/build/embed/variations.js +1 -2
  253. package/build/embed/variations.js.map +1 -1
  254. package/build/embed/wp-embed-preview.native.js +1 -2
  255. package/build/embed/wp-embed-preview.native.js.map +1 -1
  256. package/build/file/deprecated.js +1 -2
  257. package/build/file/deprecated.js.map +1 -1
  258. package/build/file/edit.js +3 -6
  259. package/build/file/edit.js.map +1 -1
  260. package/build/file/edit.native.js +1 -2
  261. package/build/file/edit.native.js.map +1 -1
  262. package/build/file/index.js +2 -4
  263. package/build/file/index.js.map +1 -1
  264. package/build/file/init.js +1 -2
  265. package/build/file/init.js.map +1 -1
  266. package/build/file/transforms.js +1 -2
  267. package/build/file/transforms.js.map +1 -1
  268. package/build/file/transforms.native.js +1 -2
  269. package/build/file/transforms.native.js.map +1 -1
  270. package/build/file/view.js +2 -0
  271. package/build/file/view.js.map +1 -1
  272. package/build/footnotes/format.js +6 -4
  273. package/build/footnotes/format.js.map +1 -1
  274. package/build/footnotes/index.js +5 -4
  275. package/build/footnotes/index.js.map +1 -1
  276. package/build/footnotes/init.js +1 -2
  277. package/build/footnotes/init.js.map +1 -1
  278. package/build/form/edit.js +1 -4
  279. package/build/form/edit.js.map +1 -1
  280. package/build/form/index.js +3 -4
  281. package/build/form/index.js.map +1 -1
  282. package/build/form/init.js +1 -2
  283. package/build/form/init.js.map +1 -1
  284. package/build/form/save.js +1 -2
  285. package/build/form/save.js.map +1 -1
  286. package/build/form/utils.js +2 -4
  287. package/build/form/utils.js.map +1 -1
  288. package/build/form/variations.js +1 -2
  289. package/build/form/variations.js.map +1 -1
  290. package/build/form/view.js +2 -0
  291. package/build/form/view.js.map +1 -1
  292. package/build/form-input/deprecated.js +1 -3
  293. package/build/form-input/deprecated.js.map +1 -1
  294. package/build/form-input/edit.js +1 -2
  295. package/build/form-input/edit.js.map +1 -1
  296. package/build/form-input/index.js +2 -4
  297. package/build/form-input/index.js.map +1 -1
  298. package/build/form-input/init.js +1 -2
  299. package/build/form-input/init.js.map +1 -1
  300. package/build/form-input/variations.js +1 -2
  301. package/build/form-input/variations.js.map +1 -1
  302. package/build/form-submission-notification/edit.js +1 -2
  303. package/build/form-submission-notification/edit.js.map +1 -1
  304. package/build/form-submission-notification/index.js +2 -4
  305. package/build/form-submission-notification/index.js.map +1 -1
  306. package/build/form-submission-notification/init.js +1 -2
  307. package/build/form-submission-notification/init.js.map +1 -1
  308. package/build/form-submission-notification/variations.js +1 -2
  309. package/build/form-submission-notification/variations.js.map +1 -1
  310. package/build/form-submit-button/edit.js +1 -3
  311. package/build/form-submit-button/edit.js.map +1 -1
  312. package/build/form-submit-button/index.js +3 -4
  313. package/build/form-submit-button/index.js.map +1 -1
  314. package/build/form-submit-button/init.js +1 -2
  315. package/build/form-submit-button/init.js.map +1 -1
  316. package/build/form-submit-button/save.js +1 -2
  317. package/build/form-submit-button/save.js.map +1 -1
  318. package/build/freeform/convert-to-blocks-button.js +1 -2
  319. package/build/freeform/convert-to-blocks-button.js.map +1 -1
  320. package/build/freeform/edit.native.js +1 -2
  321. package/build/freeform/edit.native.js.map +1 -1
  322. package/build/freeform/index.js +2 -4
  323. package/build/freeform/index.js.map +1 -1
  324. package/build/freeform/init.js +1 -2
  325. package/build/freeform/init.js.map +1 -1
  326. package/build/gallery/constants.js +5 -10
  327. package/build/gallery/constants.js.map +1 -1
  328. package/build/gallery/deprecated.js +1 -2
  329. package/build/gallery/deprecated.js.map +1 -1
  330. package/build/gallery/edit-wrapper.js +1 -2
  331. package/build/gallery/edit-wrapper.js.map +1 -1
  332. package/build/gallery/edit.js +20 -27
  333. package/build/gallery/edit.js.map +1 -1
  334. package/build/gallery/gallery.native.js +1 -3
  335. package/build/gallery/gallery.native.js.map +1 -1
  336. package/build/gallery/index.js +6 -4
  337. package/build/gallery/index.js.map +1 -1
  338. package/build/gallery/init.js +1 -2
  339. package/build/gallery/init.js.map +1 -1
  340. package/build/gallery/shared-icon.js +1 -2
  341. package/build/gallery/shared-icon.js.map +1 -1
  342. package/build/gallery/transforms.js +1 -2
  343. package/build/gallery/transforms.js.map +1 -1
  344. package/build/gallery/transforms.native.js +1 -2
  345. package/build/gallery/transforms.native.js.map +1 -1
  346. package/build/gallery/v1/constants.js +3 -6
  347. package/build/gallery/v1/constants.js.map +1 -1
  348. package/build/gallery/v1/edit.js +1 -2
  349. package/build/gallery/v1/edit.js.map +1 -1
  350. package/build/gallery/v1/gallery-button.native.js +1 -2
  351. package/build/gallery/v1/gallery-button.native.js.map +1 -1
  352. package/build/gallery/v1/gallery-image.js +1 -3
  353. package/build/gallery/v1/gallery-image.js.map +1 -1
  354. package/build/gallery/v1/gallery-image.native.js +1 -2
  355. package/build/gallery/v1/gallery-image.native.js.map +1 -1
  356. package/build/gallery/v1/gallery.js +1 -2
  357. package/build/gallery/v1/gallery.js.map +1 -1
  358. package/build/gallery/v1/gallery.native.js +1 -2
  359. package/build/gallery/v1/gallery.native.js.map +1 -1
  360. package/build/gallery/v1/tiles.native.js +1 -2
  361. package/build/gallery/v1/tiles.native.js.map +1 -1
  362. package/build/group/deprecated.js +1 -2
  363. package/build/group/deprecated.js.map +1 -1
  364. package/build/group/edit.js +3 -4
  365. package/build/group/edit.js.map +1 -1
  366. package/build/group/edit.native.js +1 -2
  367. package/build/group/edit.native.js.map +1 -1
  368. package/build/group/index.js +5 -4
  369. package/build/group/index.js.map +1 -1
  370. package/build/group/init.js +1 -2
  371. package/build/group/init.js.map +1 -1
  372. package/build/group/placeholder.js +1 -2
  373. package/build/group/placeholder.js.map +1 -1
  374. package/build/group/transforms.js +1 -2
  375. package/build/group/transforms.js.map +1 -1
  376. package/build/group/variations.js +1 -2
  377. package/build/group/variations.js.map +1 -1
  378. package/build/heading/deprecated.js +1 -2
  379. package/build/heading/deprecated.js.map +1 -1
  380. package/build/heading/edit.js +1 -2
  381. package/build/heading/edit.js.map +1 -1
  382. package/build/heading/edit.native.js +1 -2
  383. package/build/heading/edit.native.js.map +1 -1
  384. package/build/heading/index.js +6 -5
  385. package/build/heading/index.js.map +1 -1
  386. package/build/heading/init.js +1 -2
  387. package/build/heading/init.js.map +1 -1
  388. package/build/heading/transforms.js +1 -2
  389. package/build/heading/transforms.js.map +1 -1
  390. package/build/heading/transforms.native.js +1 -2
  391. package/build/heading/transforms.native.js.map +1 -1
  392. package/build/home-link/index.js +5 -4
  393. package/build/home-link/index.js.map +1 -1
  394. package/build/home-link/init.js +1 -2
  395. package/build/home-link/init.js.map +1 -1
  396. package/build/html/index.js +6 -5
  397. package/build/html/index.js.map +1 -1
  398. package/build/html/init.js +1 -2
  399. package/build/html/init.js.map +1 -1
  400. package/build/html/transforms.js +1 -2
  401. package/build/html/transforms.js.map +1 -1
  402. package/build/html/transforms.native.js +1 -2
  403. package/build/html/transforms.native.js.map +1 -1
  404. package/build/image/constants.js +8 -16
  405. package/build/image/constants.js.map +1 -1
  406. package/build/image/deprecated.js +1 -2
  407. package/build/image/deprecated.js.map +1 -1
  408. package/build/image/edit.js +21 -21
  409. package/build/image/edit.js.map +1 -1
  410. package/build/image/edit.native.js +1 -2
  411. package/build/image/edit.native.js.map +1 -1
  412. package/build/image/image.js +41 -43
  413. package/build/image/image.js.map +1 -1
  414. package/build/image/index.js +6 -4
  415. package/build/image/index.js.map +1 -1
  416. package/build/image/init.js +1 -2
  417. package/build/image/init.js.map +1 -1
  418. package/build/image/save.js +2 -0
  419. package/build/image/save.js.map +1 -1
  420. package/build/image/transforms.js +1 -2
  421. package/build/image/transforms.js.map +1 -1
  422. package/build/image/transforms.native.js +1 -2
  423. package/build/image/transforms.native.js.map +1 -1
  424. package/build/image/view.js +266 -369
  425. package/build/image/view.js.map +1 -1
  426. package/build/index.js +3 -4
  427. package/build/index.js.map +1 -1
  428. package/build/index.native.js +4 -6
  429. package/build/index.native.js.map +1 -1
  430. package/build/latest-comments/index.js +5 -4
  431. package/build/latest-comments/index.js.map +1 -1
  432. package/build/latest-comments/init.js +1 -2
  433. package/build/latest-comments/init.js.map +1 -1
  434. package/build/latest-posts/constants.js +3 -6
  435. package/build/latest-posts/constants.js.map +1 -1
  436. package/build/latest-posts/deprecated.js +4 -2
  437. package/build/latest-posts/deprecated.js.map +1 -1
  438. package/build/latest-posts/edit.native.js +1 -2
  439. package/build/latest-posts/edit.native.js.map +1 -1
  440. package/build/latest-posts/index.js +5 -4
  441. package/build/latest-posts/index.js.map +1 -1
  442. package/build/latest-posts/init.js +1 -2
  443. package/build/latest-posts/init.js.map +1 -1
  444. package/build/list/deprecated.js +1 -2
  445. package/build/list/deprecated.js.map +1 -1
  446. package/build/list/edit.js +0 -1
  447. package/build/list/edit.js.map +1 -1
  448. package/build/list/index.js +7 -5
  449. package/build/list/index.js.map +1 -1
  450. package/build/list/init.js +1 -2
  451. package/build/list/init.js.map +1 -1
  452. package/build/list/ordered-list-settings.js +1 -2
  453. package/build/list/ordered-list-settings.js.map +1 -1
  454. package/build/list/tag-name.js +1 -2
  455. package/build/list/tag-name.js.map +1 -1
  456. package/build/list/tag-name.native.js +1 -2
  457. package/build/list/tag-name.native.js.map +1 -1
  458. package/build/list/transforms.js +1 -2
  459. package/build/list/transforms.js.map +1 -1
  460. package/build/list/transforms.native.js +1 -2
  461. package/build/list/transforms.native.js.map +1 -1
  462. package/build/list-item/edit.js +0 -1
  463. package/build/list-item/edit.js.map +1 -1
  464. package/build/list-item/edit.native.js +0 -1
  465. package/build/list-item/edit.native.js.map +1 -1
  466. package/build/list-item/index.js +6 -4
  467. package/build/list-item/index.js.map +1 -1
  468. package/build/list-item/init.js +1 -2
  469. package/build/list-item/init.js.map +1 -1
  470. package/build/list-item/transforms.js +1 -2
  471. package/build/list-item/transforms.js.map +1 -1
  472. package/build/loginout/index.js +5 -4
  473. package/build/loginout/index.js.map +1 -1
  474. package/build/loginout/init.js +1 -2
  475. package/build/loginout/init.js.map +1 -1
  476. package/build/media-text/constants.js +5 -10
  477. package/build/media-text/constants.js.map +1 -1
  478. package/build/media-text/deprecated.js +1 -2
  479. package/build/media-text/deprecated.js.map +1 -1
  480. package/build/media-text/edit.js +13 -12
  481. package/build/media-text/edit.js.map +1 -1
  482. package/build/media-text/edit.native.js +2 -3
  483. package/build/media-text/edit.native.js.map +1 -1
  484. package/build/media-text/icon-retry.native.js +1 -2
  485. package/build/media-text/icon-retry.native.js.map +1 -1
  486. package/build/media-text/index.js +5 -4
  487. package/build/media-text/index.js.map +1 -1
  488. package/build/media-text/init.js +1 -2
  489. package/build/media-text/init.js.map +1 -1
  490. package/build/media-text/media-container.js +1 -2
  491. package/build/media-text/media-container.js.map +1 -1
  492. package/build/media-text/media-container.native.js +1 -2
  493. package/build/media-text/media-container.native.js.map +1 -1
  494. package/build/media-text/transforms.js +1 -2
  495. package/build/media-text/transforms.js.map +1 -1
  496. package/build/media-text/transforms.native.js +1 -2
  497. package/build/media-text/transforms.native.js.map +1 -1
  498. package/build/missing/edit.js +1 -2
  499. package/build/missing/edit.js.map +1 -1
  500. package/build/missing/edit.native.js +1 -2
  501. package/build/missing/edit.native.js.map +1 -1
  502. package/build/missing/index.js +6 -5
  503. package/build/missing/index.js.map +1 -1
  504. package/build/missing/init.js +1 -2
  505. package/build/missing/init.js.map +1 -1
  506. package/build/more/edit.native.js +1 -2
  507. package/build/more/edit.native.js.map +1 -1
  508. package/build/more/index.js +6 -5
  509. package/build/more/index.js.map +1 -1
  510. package/build/more/init.js +1 -2
  511. package/build/more/init.js.map +1 -1
  512. package/build/more/transforms.js +1 -2
  513. package/build/more/transforms.js.map +1 -1
  514. package/build/more/transforms.native.js +1 -2
  515. package/build/more/transforms.native.js.map +1 -1
  516. package/build/navigation/constants.js +6 -13
  517. package/build/navigation/constants.js.map +1 -1
  518. package/build/navigation/deprecated.js +1 -2
  519. package/build/navigation/deprecated.js.map +1 -1
  520. package/build/navigation/edit/deleted-navigation-warning.js +1 -2
  521. package/build/navigation/edit/deleted-navigation-warning.js.map +1 -1
  522. package/build/navigation/edit/index.js +3 -5
  523. package/build/navigation/edit/index.js.map +1 -1
  524. package/build/navigation/edit/inner-blocks.js +1 -5
  525. package/build/navigation/edit/inner-blocks.js.map +1 -1
  526. package/build/navigation/edit/manage-menus-button.js +1 -2
  527. package/build/navigation/edit/manage-menus-button.js.map +1 -1
  528. package/build/navigation/edit/menu-inspector-controls.js +1 -2
  529. package/build/navigation/edit/menu-inspector-controls.js.map +1 -1
  530. package/build/navigation/edit/navigation-menu-selector.js +1 -2
  531. package/build/navigation/edit/navigation-menu-selector.js.map +1 -1
  532. package/build/navigation/edit/placeholder/placeholder-preview.js +1 -2
  533. package/build/navigation/edit/placeholder/placeholder-preview.js.map +1 -1
  534. package/build/navigation/edit/unsaved-inner-blocks.js +1 -5
  535. package/build/navigation/edit/unsaved-inner-blocks.js.map +1 -1
  536. package/build/navigation/edit/use-convert-classic-menu-to-block-menu.js +5 -10
  537. package/build/navigation/edit/use-convert-classic-menu-to-block-menu.js.map +1 -1
  538. package/build/navigation/edit/use-create-navigation-menu.js +4 -8
  539. package/build/navigation/edit/use-create-navigation-menu.js.map +1 -1
  540. package/build/navigation/edit/use-navigation-notice.js +1 -2
  541. package/build/navigation/edit/use-navigation-notice.js.map +1 -1
  542. package/build/navigation/index.js +3 -4
  543. package/build/navigation/index.js.map +1 -1
  544. package/build/navigation/init.js +1 -2
  545. package/build/navigation/init.js.map +1 -1
  546. package/build/navigation/view.js +2 -0
  547. package/build/navigation/view.js.map +1 -1
  548. package/build/navigation-link/edit.js +12 -6
  549. package/build/navigation-link/edit.js.map +1 -1
  550. package/build/navigation-link/index.js +7 -5
  551. package/build/navigation-link/index.js.map +1 -1
  552. package/build/navigation-link/init.js +1 -2
  553. package/build/navigation-link/init.js.map +1 -1
  554. package/build/navigation-link/link-ui.js +114 -47
  555. package/build/navigation-link/link-ui.js.map +1 -1
  556. package/build/navigation-link/transforms.js +1 -2
  557. package/build/navigation-link/transforms.js.map +1 -1
  558. package/build/navigation-submenu/index.js +21 -8
  559. package/build/navigation-submenu/index.js.map +1 -1
  560. package/build/navigation-submenu/init.js +1 -2
  561. package/build/navigation-submenu/init.js.map +1 -1
  562. package/build/navigation-submenu/transforms.js +1 -2
  563. package/build/navigation-submenu/transforms.js.map +1 -1
  564. package/build/nextpage/edit.native.js +1 -2
  565. package/build/nextpage/edit.native.js.map +1 -1
  566. package/build/nextpage/index.js +6 -5
  567. package/build/nextpage/index.js.map +1 -1
  568. package/build/nextpage/init.js +1 -2
  569. package/build/nextpage/init.js.map +1 -1
  570. package/build/nextpage/transforms.js +1 -2
  571. package/build/nextpage/transforms.js.map +1 -1
  572. package/build/nextpage/transforms.native.js +1 -2
  573. package/build/nextpage/transforms.native.js.map +1 -1
  574. package/build/page-list/convert-to-links-modal.js +1 -2
  575. package/build/page-list/convert-to-links-modal.js.map +1 -1
  576. package/build/page-list/edit.js +0 -1
  577. package/build/page-list/edit.js.map +1 -1
  578. package/build/page-list/index.js +6 -4
  579. package/build/page-list/index.js.map +1 -1
  580. package/build/page-list/init.js +1 -2
  581. package/build/page-list/init.js.map +1 -1
  582. package/build/page-list-item/index.js +6 -5
  583. package/build/page-list-item/index.js.map +1 -1
  584. package/build/page-list-item/init.js +1 -2
  585. package/build/page-list-item/init.js.map +1 -1
  586. package/build/paragraph/deprecated.js +1 -2
  587. package/build/paragraph/deprecated.js.map +1 -1
  588. package/build/paragraph/edit.js +4 -5
  589. package/build/paragraph/edit.js.map +1 -1
  590. package/build/paragraph/edit.native.js +1 -2
  591. package/build/paragraph/edit.native.js.map +1 -1
  592. package/build/paragraph/index.js +6 -5
  593. package/build/paragraph/index.js.map +1 -1
  594. package/build/paragraph/init.js +1 -2
  595. package/build/paragraph/init.js.map +1 -1
  596. package/build/paragraph/transforms.js +5 -3
  597. package/build/paragraph/transforms.js.map +1 -1
  598. package/build/paragraph/transforms.native.js +1 -2
  599. package/build/paragraph/transforms.native.js.map +1 -1
  600. package/build/pattern/edit.js +1 -2
  601. package/build/pattern/edit.js.map +1 -1
  602. package/build/pattern/index.js +6 -5
  603. package/build/pattern/index.js.map +1 -1
  604. package/build/pattern/init.js +1 -2
  605. package/build/pattern/init.js.map +1 -1
  606. package/build/post-author/edit.js +1 -2
  607. package/build/post-author/edit.js.map +1 -1
  608. package/build/post-author/index.js +5 -4
  609. package/build/post-author/index.js.map +1 -1
  610. package/build/post-author/init.js +1 -2
  611. package/build/post-author/init.js.map +1 -1
  612. package/build/post-author-biography/edit.js +1 -2
  613. package/build/post-author-biography/edit.js.map +1 -1
  614. package/build/post-author-biography/index.js +5 -4
  615. package/build/post-author-biography/index.js.map +1 -1
  616. package/build/post-author-biography/init.js +1 -2
  617. package/build/post-author-biography/init.js.map +1 -1
  618. package/build/post-author-name/edit.js +1 -2
  619. package/build/post-author-name/edit.js.map +1 -1
  620. package/build/post-author-name/index.js +5 -4
  621. package/build/post-author-name/index.js.map +1 -1
  622. package/build/post-author-name/init.js +1 -2
  623. package/build/post-author-name/init.js.map +1 -1
  624. package/build/post-author-name/transforms.js +1 -2
  625. package/build/post-author-name/transforms.js.map +1 -1
  626. package/build/post-comment/edit.js +1 -3
  627. package/build/post-comment/edit.js.map +1 -1
  628. package/build/post-comment/index.js +7 -5
  629. package/build/post-comment/index.js.map +1 -1
  630. package/build/post-comment/init.js +1 -2
  631. package/build/post-comment/init.js.map +1 -1
  632. package/build/post-comments-count/index.js +5 -4
  633. package/build/post-comments-count/index.js.map +1 -1
  634. package/build/post-comments-count/init.js +1 -2
  635. package/build/post-comments-count/init.js.map +1 -1
  636. package/build/post-comments-form/form.js +1 -2
  637. package/build/post-comments-form/form.js.map +1 -1
  638. package/build/post-comments-form/index.js +2 -4
  639. package/build/post-comments-form/index.js.map +1 -1
  640. package/build/post-comments-form/init.js +1 -2
  641. package/build/post-comments-form/init.js.map +1 -1
  642. package/build/post-comments-link/edit.js +1 -2
  643. package/build/post-comments-link/edit.js.map +1 -1
  644. package/build/post-comments-link/index.js +5 -4
  645. package/build/post-comments-link/index.js.map +1 -1
  646. package/build/post-comments-link/init.js +1 -2
  647. package/build/post-comments-link/init.js.map +1 -1
  648. package/build/post-content/index.js +2 -4
  649. package/build/post-content/index.js.map +1 -1
  650. package/build/post-content/init.js +1 -2
  651. package/build/post-content/init.js.map +1 -1
  652. package/build/post-date/deprecated.js +1 -2
  653. package/build/post-date/deprecated.js.map +1 -1
  654. package/build/post-date/index.js +5 -4
  655. package/build/post-date/index.js.map +1 -1
  656. package/build/post-date/init.js +1 -2
  657. package/build/post-date/init.js.map +1 -1
  658. package/build/post-date/variations.js +1 -2
  659. package/build/post-date/variations.js.map +1 -1
  660. package/build/post-excerpt/index.js +5 -4
  661. package/build/post-excerpt/index.js.map +1 -1
  662. package/build/post-excerpt/init.js +1 -2
  663. package/build/post-excerpt/init.js.map +1 -1
  664. package/build/post-excerpt/transforms.js +1 -2
  665. package/build/post-excerpt/transforms.js.map +1 -1
  666. package/build/post-featured-image/dimension-controls.js +1 -2
  667. package/build/post-featured-image/dimension-controls.js.map +1 -1
  668. package/build/post-featured-image/index.js +5 -4
  669. package/build/post-featured-image/index.js.map +1 -1
  670. package/build/post-featured-image/init.js +1 -2
  671. package/build/post-featured-image/init.js.map +1 -1
  672. package/build/post-featured-image/overlay.js +1 -2
  673. package/build/post-featured-image/overlay.js.map +1 -1
  674. package/build/post-navigation-link/edit.js +5 -5
  675. package/build/post-navigation-link/edit.js.map +1 -1
  676. package/build/post-navigation-link/index.js +5 -7
  677. package/build/post-navigation-link/index.js.map +1 -1
  678. package/build/post-navigation-link/init.js +1 -2
  679. package/build/post-navigation-link/init.js.map +1 -1
  680. package/build/post-navigation-link/variations.js +1 -2
  681. package/build/post-navigation-link/variations.js.map +1 -1
  682. package/build/post-template/edit.js +5 -6
  683. package/build/post-template/edit.js.map +1 -1
  684. package/build/post-template/index.js +5 -4
  685. package/build/post-template/index.js.map +1 -1
  686. package/build/post-template/init.js +1 -2
  687. package/build/post-template/init.js.map +1 -1
  688. package/build/post-terms/index.js +5 -4
  689. package/build/post-terms/index.js.map +1 -1
  690. package/build/post-terms/init.js +1 -2
  691. package/build/post-terms/init.js.map +1 -1
  692. package/build/post-time-to-read/edit.js +1 -2
  693. package/build/post-time-to-read/edit.js.map +1 -1
  694. package/build/post-time-to-read/icon.js +1 -2
  695. package/build/post-time-to-read/icon.js.map +1 -1
  696. package/build/post-time-to-read/index.js +5 -4
  697. package/build/post-time-to-read/index.js.map +1 -1
  698. package/build/post-time-to-read/init.js +1 -2
  699. package/build/post-time-to-read/init.js.map +1 -1
  700. package/build/post-title/deprecated.js +1 -2
  701. package/build/post-title/deprecated.js.map +1 -1
  702. package/build/post-title/index.js +5 -4
  703. package/build/post-title/index.js.map +1 -1
  704. package/build/post-title/init.js +1 -2
  705. package/build/post-title/init.js.map +1 -1
  706. package/build/preformatted/index.js +5 -5
  707. package/build/preformatted/index.js.map +1 -1
  708. package/build/preformatted/init.js +1 -2
  709. package/build/preformatted/init.js.map +1 -1
  710. package/build/preformatted/transforms.js +1 -2
  711. package/build/preformatted/transforms.js.map +1 -1
  712. package/build/preformatted/transforms.native.js +1 -2
  713. package/build/preformatted/transforms.native.js.map +1 -1
  714. package/build/pullquote/blockquote.js +1 -2
  715. package/build/pullquote/blockquote.js.map +1 -1
  716. package/build/pullquote/deprecated.js +1 -2
  717. package/build/pullquote/deprecated.js.map +1 -1
  718. package/build/pullquote/edit.js +1 -2
  719. package/build/pullquote/edit.js.map +1 -1
  720. package/build/pullquote/edit.native.js +1 -2
  721. package/build/pullquote/edit.native.js.map +1 -1
  722. package/build/pullquote/figure.js +1 -2
  723. package/build/pullquote/figure.js.map +1 -1
  724. package/build/pullquote/index.js +5 -4
  725. package/build/pullquote/index.js.map +1 -1
  726. package/build/pullquote/init.js +1 -2
  727. package/build/pullquote/init.js.map +1 -1
  728. package/build/pullquote/shared.js +1 -2
  729. package/build/pullquote/shared.js.map +1 -1
  730. package/build/pullquote/transforms.js +1 -2
  731. package/build/pullquote/transforms.js.map +1 -1
  732. package/build/pullquote/transforms.native.js +1 -2
  733. package/build/pullquote/transforms.native.js.map +1 -1
  734. package/build/query/deprecated.js +1 -2
  735. package/build/query/deprecated.js.map +1 -1
  736. package/build/query/edit/index.js +1 -2
  737. package/build/query/edit/index.js.map +1 -1
  738. package/build/query/edit/inspector-controls/author-control.js +1 -2
  739. package/build/query/edit/inspector-controls/author-control.js.map +1 -1
  740. package/build/query/edit/inspector-controls/create-new-post-link.js +1 -2
  741. package/build/query/edit/inspector-controls/create-new-post-link.js.map +1 -1
  742. package/build/query/edit/inspector-controls/order-control.js +1 -2
  743. package/build/query/edit/inspector-controls/order-control.js.map +1 -1
  744. package/build/query/edit/inspector-controls/parent-control.js +1 -2
  745. package/build/query/edit/inspector-controls/parent-control.js.map +1 -1
  746. package/build/query/icons.js +4 -8
  747. package/build/query/icons.js.map +1 -1
  748. package/build/query/index.js +5 -7
  749. package/build/query/index.js.map +1 -1
  750. package/build/query/init.js +1 -2
  751. package/build/query/init.js.map +1 -1
  752. package/build/query/variations.js +1 -2
  753. package/build/query/variations.js.map +1 -1
  754. package/build/query/view.js +7 -42
  755. package/build/query/view.js.map +1 -1
  756. package/build/query-no-results/index.js +5 -4
  757. package/build/query-no-results/index.js.map +1 -1
  758. package/build/query-no-results/init.js +1 -2
  759. package/build/query-no-results/init.js.map +1 -1
  760. package/build/query-pagination/deprecated.js +1 -2
  761. package/build/query-pagination/deprecated.js.map +1 -1
  762. package/build/query-pagination/edit.js +1 -3
  763. package/build/query-pagination/edit.js.map +1 -1
  764. package/build/query-pagination/index.js +7 -5
  765. package/build/query-pagination/index.js.map +1 -1
  766. package/build/query-pagination/init.js +1 -2
  767. package/build/query-pagination/init.js.map +1 -1
  768. package/build/query-pagination-next/index.js +5 -4
  769. package/build/query-pagination-next/index.js.map +1 -1
  770. package/build/query-pagination-next/init.js +1 -2
  771. package/build/query-pagination-next/init.js.map +1 -1
  772. package/build/query-pagination-numbers/index.js +5 -4
  773. package/build/query-pagination-numbers/index.js.map +1 -1
  774. package/build/query-pagination-numbers/init.js +1 -2
  775. package/build/query-pagination-numbers/init.js.map +1 -1
  776. package/build/query-pagination-previous/index.js +5 -4
  777. package/build/query-pagination-previous/index.js.map +1 -1
  778. package/build/query-pagination-previous/init.js +1 -2
  779. package/build/query-pagination-previous/init.js.map +1 -1
  780. package/build/query-title/deprecated.js +1 -2
  781. package/build/query-title/deprecated.js.map +1 -1
  782. package/build/query-title/index.js +5 -4
  783. package/build/query-title/index.js.map +1 -1
  784. package/build/query-title/init.js +1 -2
  785. package/build/query-title/init.js.map +1 -1
  786. package/build/query-title/variations.js +1 -2
  787. package/build/query-title/variations.js.map +1 -1
  788. package/build/quote/deprecated.js +1 -2
  789. package/build/quote/deprecated.js.map +1 -1
  790. package/build/quote/index.js +5 -4
  791. package/build/quote/index.js.map +1 -1
  792. package/build/quote/init.js +1 -2
  793. package/build/quote/init.js.map +1 -1
  794. package/build/quote/transforms.js +1 -2
  795. package/build/quote/transforms.js.map +1 -1
  796. package/build/quote/transforms.native.js +1 -2
  797. package/build/quote/transforms.native.js.map +1 -1
  798. package/build/read-more/index.js +5 -4
  799. package/build/read-more/index.js.map +1 -1
  800. package/build/read-more/init.js +1 -2
  801. package/build/read-more/init.js.map +1 -1
  802. package/build/rss/index.js +6 -5
  803. package/build/rss/index.js.map +1 -1
  804. package/build/rss/init.js +1 -2
  805. package/build/rss/init.js.map +1 -1
  806. package/build/search/icons.js +6 -12
  807. package/build/search/icons.js.map +1 -1
  808. package/build/search/index.js +2 -4
  809. package/build/search/index.js.map +1 -1
  810. package/build/search/init.js +1 -2
  811. package/build/search/init.js.map +1 -1
  812. package/build/search/utils.js +3 -6
  813. package/build/search/utils.js.map +1 -1
  814. package/build/search/variations.js +1 -2
  815. package/build/search/variations.js.map +1 -1
  816. package/build/search/view.js +2 -0
  817. package/build/search/view.js.map +1 -1
  818. package/build/separator/deprecated.js +1 -2
  819. package/build/separator/deprecated.js.map +1 -1
  820. package/build/separator/index.js +5 -4
  821. package/build/separator/index.js.map +1 -1
  822. package/build/separator/init.js +1 -2
  823. package/build/separator/init.js.map +1 -1
  824. package/build/separator/separator-settings.native.js +1 -2
  825. package/build/separator/separator-settings.native.js.map +1 -1
  826. package/build/separator/transforms.js +1 -2
  827. package/build/separator/transforms.js.map +1 -1
  828. package/build/separator/transforms.native.js +1 -2
  829. package/build/separator/transforms.native.js.map +1 -1
  830. package/build/shortcode/edit.native.js +1 -2
  831. package/build/shortcode/edit.native.js.map +1 -1
  832. package/build/shortcode/index.js +2 -4
  833. package/build/shortcode/index.js.map +1 -1
  834. package/build/shortcode/init.js +1 -2
  835. package/build/shortcode/init.js.map +1 -1
  836. package/build/shortcode/transforms.js +1 -2
  837. package/build/shortcode/transforms.js.map +1 -1
  838. package/build/shortcode/transforms.native.js +1 -2
  839. package/build/shortcode/transforms.native.js.map +1 -1
  840. package/build/site-logo/edit.js +0 -1
  841. package/build/site-logo/edit.js.map +1 -1
  842. package/build/site-logo/index.js +5 -4
  843. package/build/site-logo/index.js.map +1 -1
  844. package/build/site-logo/init.js +1 -2
  845. package/build/site-logo/init.js.map +1 -1
  846. package/build/site-logo/transforms.js +1 -2
  847. package/build/site-logo/transforms.js.map +1 -1
  848. package/build/site-tagline/deprecated.js +1 -2
  849. package/build/site-tagline/deprecated.js.map +1 -1
  850. package/build/site-tagline/icon.js +1 -2
  851. package/build/site-tagline/icon.js.map +1 -1
  852. package/build/site-tagline/index.js +5 -4
  853. package/build/site-tagline/index.js.map +1 -1
  854. package/build/site-tagline/init.js +1 -2
  855. package/build/site-tagline/init.js.map +1 -1
  856. package/build/site-title/deprecated.js +1 -2
  857. package/build/site-title/deprecated.js.map +1 -1
  858. package/build/site-title/index.js +5 -4
  859. package/build/site-title/index.js.map +1 -1
  860. package/build/site-title/init.js +1 -2
  861. package/build/site-title/init.js.map +1 -1
  862. package/build/site-title/transforms.js +1 -2
  863. package/build/site-title/transforms.js.map +1 -1
  864. package/build/social-link/edit.js +1 -2
  865. package/build/social-link/edit.js.map +1 -1
  866. package/build/social-link/edit.native.js +1 -2
  867. package/build/social-link/edit.native.js.map +1 -1
  868. package/build/social-link/icons/patreon.js +3 -10
  869. package/build/social-link/icons/patreon.js.map +1 -1
  870. package/build/social-link/index.js +6 -5
  871. package/build/social-link/index.js.map +1 -1
  872. package/build/social-link/init.js +1 -2
  873. package/build/social-link/init.js.map +1 -1
  874. package/build/social-link/variations.js +1 -2
  875. package/build/social-link/variations.js.map +1 -1
  876. package/build/social-links/deprecated.js +1 -2
  877. package/build/social-links/deprecated.js.map +1 -1
  878. package/build/social-links/edit.js +1 -4
  879. package/build/social-links/edit.js.map +1 -1
  880. package/build/social-links/edit.native.js +1 -6
  881. package/build/social-links/edit.native.js.map +1 -1
  882. package/build/social-links/index.js +6 -4
  883. package/build/social-links/index.js.map +1 -1
  884. package/build/social-links/init.js +1 -2
  885. package/build/social-links/init.js.map +1 -1
  886. package/build/spacer/constants.js +1 -2
  887. package/build/spacer/constants.js.map +1 -1
  888. package/build/spacer/controls.native.js +2 -4
  889. package/build/spacer/controls.native.js.map +1 -1
  890. package/build/spacer/deprecated.js +1 -2
  891. package/build/spacer/deprecated.js.map +1 -1
  892. package/build/spacer/edit.js +1 -2
  893. package/build/spacer/edit.js.map +1 -1
  894. package/build/spacer/edit.native.js +3 -4
  895. package/build/spacer/edit.native.js.map +1 -1
  896. package/build/spacer/index.js +5 -4
  897. package/build/spacer/index.js.map +1 -1
  898. package/build/spacer/init.js +1 -2
  899. package/build/spacer/init.js.map +1 -1
  900. package/build/table/deprecated.js +1 -2
  901. package/build/table/deprecated.js.map +1 -1
  902. package/build/table/edit.js +1 -2
  903. package/build/table/edit.js.map +1 -1
  904. package/build/table/index.js +6 -5
  905. package/build/table/index.js.map +1 -1
  906. package/build/table/init.js +1 -2
  907. package/build/table/init.js.map +1 -1
  908. package/build/table/transforms.js +1 -2
  909. package/build/table/transforms.js.map +1 -1
  910. package/build/table/transforms.native.js +1 -2
  911. package/build/table/transforms.native.js.map +1 -1
  912. package/build/table-of-contents/index.js +5 -4
  913. package/build/table-of-contents/index.js.map +1 -1
  914. package/build/table-of-contents/init.js +1 -2
  915. package/build/table-of-contents/init.js.map +1 -1
  916. package/build/tag-cloud/edit.js +1 -2
  917. package/build/tag-cloud/edit.js.map +1 -1
  918. package/build/tag-cloud/index.js +5 -4
  919. package/build/tag-cloud/index.js.map +1 -1
  920. package/build/tag-cloud/init.js +1 -2
  921. package/build/tag-cloud/init.js.map +1 -1
  922. package/build/tag-cloud/transforms.js +1 -2
  923. package/build/tag-cloud/transforms.js.map +1 -1
  924. package/build/template-part/edit/index.js +6 -10
  925. package/build/template-part/edit/index.js.map +1 -1
  926. package/build/template-part/index.js +9 -8
  927. package/build/template-part/index.js.map +1 -1
  928. package/build/template-part/init.js +1 -2
  929. package/build/template-part/init.js.map +1 -1
  930. package/build/term-description/index.js +5 -4
  931. package/build/term-description/index.js.map +1 -1
  932. package/build/term-description/init.js +1 -2
  933. package/build/term-description/init.js.map +1 -1
  934. package/build/text-columns/index.js +6 -5
  935. package/build/text-columns/index.js.map +1 -1
  936. package/build/text-columns/init.js +1 -2
  937. package/build/text-columns/init.js.map +1 -1
  938. package/build/text-columns/transforms.js +1 -2
  939. package/build/text-columns/transforms.js.map +1 -1
  940. package/build/text-columns/transforms.native.js +1 -2
  941. package/build/text-columns/transforms.native.js.map +1 -1
  942. package/build/utils/constants.js +1 -2
  943. package/build/utils/constants.js.map +1 -1
  944. package/build/utils/hooks.js +1 -2
  945. package/build/utils/hooks.js.map +1 -1
  946. package/build/utils/transformation-categories.native.js +1 -2
  947. package/build/utils/transformation-categories.native.js.map +1 -1
  948. package/build/verse/deprecated.js +1 -2
  949. package/build/verse/deprecated.js.map +1 -1
  950. package/build/verse/index.js +5 -5
  951. package/build/verse/index.js.map +1 -1
  952. package/build/verse/init.js +1 -2
  953. package/build/verse/init.js.map +1 -1
  954. package/build/verse/transforms.js +1 -2
  955. package/build/verse/transforms.js.map +1 -1
  956. package/build/verse/transforms.native.js +1 -2
  957. package/build/verse/transforms.native.js.map +1 -1
  958. package/build/video/deprecated.js +4 -2
  959. package/build/video/deprecated.js.map +1 -1
  960. package/build/video/edit-common-settings.js +1 -2
  961. package/build/video/edit-common-settings.js.map +1 -1
  962. package/build/video/edit.js +1 -2
  963. package/build/video/edit.js.map +1 -1
  964. package/build/video/edit.native.js +1 -2
  965. package/build/video/edit.native.js.map +1 -1
  966. package/build/video/icon-retry.native.js +1 -2
  967. package/build/video/icon-retry.native.js.map +1 -1
  968. package/build/video/index.js +5 -4
  969. package/build/video/index.js.map +1 -1
  970. package/build/video/init.js +1 -2
  971. package/build/video/init.js.map +1 -1
  972. package/build/video/transforms.js +1 -2
  973. package/build/video/transforms.js.map +1 -1
  974. package/build/video/transforms.native.js +1 -2
  975. package/build/video/transforms.native.js.map +1 -1
  976. package/build-module/archives/index.js +3 -0
  977. package/build-module/archives/index.js.map +1 -1
  978. package/build-module/audio/index.js +3 -0
  979. package/build-module/audio/index.js.map +1 -1
  980. package/build-module/avatar/index.js +3 -0
  981. package/build-module/avatar/index.js.map +1 -1
  982. package/build-module/block/deprecated.js +59 -0
  983. package/build-module/block/deprecated.js.map +1 -0
  984. package/build-module/block/edit.js +92 -101
  985. package/build-module/block/edit.js.map +1 -1
  986. package/build-module/block/index.js +24 -4
  987. package/build-module/block/index.js.map +1 -1
  988. package/build-module/button/edit.native.js +0 -1
  989. package/build-module/button/edit.native.js.map +1 -1
  990. package/build-module/button/index.js +7 -2
  991. package/build-module/button/index.js.map +1 -1
  992. package/build-module/buttons/edit.js +4 -11
  993. package/build-module/buttons/edit.js.map +1 -1
  994. package/build-module/buttons/edit.native.js +2 -5
  995. package/build-module/buttons/edit.native.js.map +1 -1
  996. package/build-module/buttons/index.js +4 -0
  997. package/build-module/buttons/index.js.map +1 -1
  998. package/build-module/calendar/index.js +3 -0
  999. package/build-module/calendar/index.js.map +1 -1
  1000. package/build-module/categories/index.js +3 -0
  1001. package/build-module/categories/index.js.map +1 -1
  1002. package/build-module/code/index.js +3 -1
  1003. package/build-module/code/index.js.map +1 -1
  1004. package/build-module/column/index.js +5 -1
  1005. package/build-module/column/index.js.map +1 -1
  1006. package/build-module/columns/edit.js +53 -76
  1007. package/build-module/columns/edit.js.map +1 -1
  1008. package/build-module/columns/edit.native.js +0 -12
  1009. package/build-module/columns/edit.native.js.map +1 -1
  1010. package/build-module/columns/index.js +6 -1
  1011. package/build-module/columns/index.js.map +1 -1
  1012. package/build-module/comment-author-avatar/index.js +3 -0
  1013. package/build-module/comment-author-avatar/index.js.map +1 -1
  1014. package/build-module/comment-author-name/index.js +3 -0
  1015. package/build-module/comment-author-name/index.js.map +1 -1
  1016. package/build-module/comment-date/index.js +3 -0
  1017. package/build-module/comment-date/index.js.map +1 -1
  1018. package/build-module/comment-edit-link/index.js +3 -0
  1019. package/build-module/comment-edit-link/index.js.map +1 -1
  1020. package/build-module/comment-template/index.js +3 -0
  1021. package/build-module/comment-template/index.js.map +1 -1
  1022. package/build-module/comments-pagination/edit.js +1 -3
  1023. package/build-module/comments-pagination/edit.js.map +1 -1
  1024. package/build-module/comments-pagination/index.js +4 -0
  1025. package/build-module/comments-pagination/index.js.map +1 -1
  1026. package/build-module/comments-pagination-next/index.js +3 -0
  1027. package/build-module/comments-pagination-next/index.js.map +1 -1
  1028. package/build-module/comments-pagination-numbers/index.js +3 -0
  1029. package/build-module/comments-pagination-numbers/index.js.map +1 -1
  1030. package/build-module/comments-pagination-previous/index.js +3 -0
  1031. package/build-module/comments-pagination-previous/index.js.map +1 -1
  1032. package/build-module/comments-title/deprecated.js +3 -0
  1033. package/build-module/comments-title/deprecated.js.map +1 -1
  1034. package/build-module/comments-title/index.js +3 -0
  1035. package/build-module/comments-title/index.js.map +1 -1
  1036. package/build-module/cover/edit/inspector-controls.js +3 -3
  1037. package/build-module/cover/edit/inspector-controls.js.map +1 -1
  1038. package/build-module/cover/index.js +3 -0
  1039. package/build-module/cover/index.js.map +1 -1
  1040. package/build-module/details/index.js +3 -0
  1041. package/build-module/details/index.js.map +1 -1
  1042. package/build-module/embed/deprecated.js +3 -0
  1043. package/build-module/embed/deprecated.js.map +1 -1
  1044. package/build-module/embed/embed-placeholder.js +1 -1
  1045. package/build-module/embed/embed-placeholder.js.map +1 -1
  1046. package/build-module/embed/index.js +3 -0
  1047. package/build-module/embed/index.js.map +1 -1
  1048. package/build-module/embed/transforms.js +3 -0
  1049. package/build-module/embed/transforms.js.map +1 -1
  1050. package/build-module/embed/util.js +3 -0
  1051. package/build-module/embed/util.js.map +1 -1
  1052. package/build-module/file/view.js +2 -0
  1053. package/build-module/file/view.js.map +1 -1
  1054. package/build-module/footnotes/format.js +4 -0
  1055. package/build-module/footnotes/format.js.map +1 -1
  1056. package/build-module/footnotes/index.js +3 -0
  1057. package/build-module/footnotes/index.js.map +1 -1
  1058. package/build-module/form/edit.js +0 -2
  1059. package/build-module/form/edit.js.map +1 -1
  1060. package/build-module/form/index.js +1 -0
  1061. package/build-module/form/index.js.map +1 -1
  1062. package/build-module/form/view.js +2 -0
  1063. package/build-module/form/view.js.map +1 -1
  1064. package/build-module/form-input/deprecated.js +0 -1
  1065. package/build-module/form-input/deprecated.js.map +1 -1
  1066. package/build-module/form-submit-button/edit.js +0 -1
  1067. package/build-module/form-submit-button/edit.js.map +1 -1
  1068. package/build-module/form-submit-button/index.js +1 -0
  1069. package/build-module/form-submit-button/index.js.map +1 -1
  1070. package/build-module/gallery/edit.js +19 -25
  1071. package/build-module/gallery/edit.js.map +1 -1
  1072. package/build-module/gallery/gallery.native.js +0 -1
  1073. package/build-module/gallery/gallery.native.js.map +1 -1
  1074. package/build-module/gallery/index.js +4 -0
  1075. package/build-module/gallery/index.js.map +1 -1
  1076. package/build-module/gallery/v1/gallery-image.js +0 -1
  1077. package/build-module/gallery/v1/gallery-image.js.map +1 -1
  1078. package/build-module/group/index.js +3 -0
  1079. package/build-module/group/index.js.map +1 -1
  1080. package/build-module/heading/index.js +4 -1
  1081. package/build-module/heading/index.js.map +1 -1
  1082. package/build-module/home-link/index.js +3 -0
  1083. package/build-module/home-link/index.js.map +1 -1
  1084. package/build-module/html/index.js +4 -1
  1085. package/build-module/html/index.js.map +1 -1
  1086. package/build-module/image/edit.js +21 -20
  1087. package/build-module/image/edit.js.map +1 -1
  1088. package/build-module/image/image.js +42 -44
  1089. package/build-module/image/image.js.map +1 -1
  1090. package/build-module/image/index.js +4 -0
  1091. package/build-module/image/index.js.map +1 -1
  1092. package/build-module/image/save.js +3 -1
  1093. package/build-module/image/save.js.map +1 -1
  1094. package/build-module/image/view.js +266 -368
  1095. package/build-module/image/view.js.map +1 -1
  1096. package/build-module/latest-comments/index.js +3 -0
  1097. package/build-module/latest-comments/index.js.map +1 -1
  1098. package/build-module/latest-posts/deprecated.js +3 -0
  1099. package/build-module/latest-posts/deprecated.js.map +1 -1
  1100. package/build-module/latest-posts/index.js +3 -0
  1101. package/build-module/latest-posts/index.js.map +1 -1
  1102. package/build-module/list/edit.js +0 -1
  1103. package/build-module/list/edit.js.map +1 -1
  1104. package/build-module/list/index.js +5 -1
  1105. package/build-module/list/index.js.map +1 -1
  1106. package/build-module/list-item/edit.js +0 -1
  1107. package/build-module/list-item/edit.js.map +1 -1
  1108. package/build-module/list-item/edit.native.js +0 -1
  1109. package/build-module/list-item/edit.native.js.map +1 -1
  1110. package/build-module/list-item/index.js +4 -0
  1111. package/build-module/list-item/index.js.map +1 -1
  1112. package/build-module/loginout/index.js +3 -0
  1113. package/build-module/loginout/index.js.map +1 -1
  1114. package/build-module/media-text/edit.js +12 -10
  1115. package/build-module/media-text/edit.js.map +1 -1
  1116. package/build-module/media-text/edit.native.js +1 -1
  1117. package/build-module/media-text/edit.native.js.map +1 -1
  1118. package/build-module/media-text/index.js +3 -0
  1119. package/build-module/media-text/index.js.map +1 -1
  1120. package/build-module/missing/index.js +4 -1
  1121. package/build-module/missing/index.js.map +1 -1
  1122. package/build-module/more/index.js +4 -1
  1123. package/build-module/more/index.js.map +1 -1
  1124. package/build-module/navigation/constants.js +0 -1
  1125. package/build-module/navigation/constants.js.map +1 -1
  1126. package/build-module/navigation/edit/index.js +0 -1
  1127. package/build-module/navigation/edit/index.js.map +1 -1
  1128. package/build-module/navigation/edit/inner-blocks.js +2 -6
  1129. package/build-module/navigation/edit/inner-blocks.js.map +1 -1
  1130. package/build-module/navigation/edit/unsaved-inner-blocks.js +3 -7
  1131. package/build-module/navigation/edit/unsaved-inner-blocks.js.map +1 -1
  1132. package/build-module/navigation/index.js +1 -0
  1133. package/build-module/navigation/index.js.map +1 -1
  1134. package/build-module/navigation/view.js +2 -0
  1135. package/build-module/navigation/view.js.map +1 -1
  1136. package/build-module/navigation-link/edit.js +11 -6
  1137. package/build-module/navigation-link/edit.js.map +1 -1
  1138. package/build-module/navigation-link/index.js +5 -1
  1139. package/build-module/navigation-link/index.js.map +1 -1
  1140. package/build-module/navigation-link/link-ui.js +116 -51
  1141. package/build-module/navigation-link/link-ui.js.map +1 -1
  1142. package/build-module/navigation-submenu/index.js +19 -4
  1143. package/build-module/navigation-submenu/index.js.map +1 -1
  1144. package/build-module/nextpage/index.js +4 -1
  1145. package/build-module/nextpage/index.js.map +1 -1
  1146. package/build-module/page-list/edit.js +0 -1
  1147. package/build-module/page-list/edit.js.map +1 -1
  1148. package/build-module/page-list/index.js +4 -0
  1149. package/build-module/page-list/index.js.map +1 -1
  1150. package/build-module/page-list-item/index.js +4 -1
  1151. package/build-module/page-list-item/index.js.map +1 -1
  1152. package/build-module/paragraph/edit.js +3 -3
  1153. package/build-module/paragraph/edit.js.map +1 -1
  1154. package/build-module/paragraph/index.js +4 -1
  1155. package/build-module/paragraph/index.js.map +1 -1
  1156. package/build-module/paragraph/transforms.js +4 -1
  1157. package/build-module/paragraph/transforms.js.map +1 -1
  1158. package/build-module/pattern/index.js +4 -1
  1159. package/build-module/pattern/index.js.map +1 -1
  1160. package/build-module/post-author/index.js +3 -0
  1161. package/build-module/post-author/index.js.map +1 -1
  1162. package/build-module/post-author-biography/index.js +3 -0
  1163. package/build-module/post-author-biography/index.js.map +1 -1
  1164. package/build-module/post-author-name/index.js +3 -0
  1165. package/build-module/post-author-name/index.js.map +1 -1
  1166. package/build-module/post-comment/edit.js +1 -3
  1167. package/build-module/post-comment/edit.js.map +1 -1
  1168. package/build-module/post-comment/index.js +5 -1
  1169. package/build-module/post-comment/index.js.map +1 -1
  1170. package/build-module/post-comments-count/index.js +3 -0
  1171. package/build-module/post-comments-count/index.js.map +1 -1
  1172. package/build-module/post-comments-link/index.js +3 -0
  1173. package/build-module/post-comments-link/index.js.map +1 -1
  1174. package/build-module/post-date/index.js +3 -0
  1175. package/build-module/post-date/index.js.map +1 -1
  1176. package/build-module/post-excerpt/index.js +3 -0
  1177. package/build-module/post-excerpt/index.js.map +1 -1
  1178. package/build-module/post-featured-image/index.js +3 -0
  1179. package/build-module/post-featured-image/index.js.map +1 -1
  1180. package/build-module/post-navigation-link/edit.js +5 -5
  1181. package/build-module/post-navigation-link/edit.js.map +1 -1
  1182. package/build-module/post-navigation-link/index.js +3 -3
  1183. package/build-module/post-navigation-link/index.js.map +1 -1
  1184. package/build-module/post-template/edit.js +5 -6
  1185. package/build-module/post-template/edit.js.map +1 -1
  1186. package/build-module/post-template/index.js +3 -0
  1187. package/build-module/post-template/index.js.map +1 -1
  1188. package/build-module/post-terms/index.js +3 -0
  1189. package/build-module/post-terms/index.js.map +1 -1
  1190. package/build-module/post-time-to-read/index.js +3 -0
  1191. package/build-module/post-time-to-read/index.js.map +1 -1
  1192. package/build-module/post-title/index.js +3 -0
  1193. package/build-module/post-title/index.js.map +1 -1
  1194. package/build-module/preformatted/index.js +3 -1
  1195. package/build-module/preformatted/index.js.map +1 -1
  1196. package/build-module/pullquote/index.js +3 -0
  1197. package/build-module/pullquote/index.js.map +1 -1
  1198. package/build-module/query/index.js +3 -3
  1199. package/build-module/query/index.js.map +1 -1
  1200. package/build-module/query/view.js +5 -40
  1201. package/build-module/query/view.js.map +1 -1
  1202. package/build-module/query-no-results/index.js +3 -0
  1203. package/build-module/query-no-results/index.js.map +1 -1
  1204. package/build-module/query-pagination/edit.js +1 -3
  1205. package/build-module/query-pagination/edit.js.map +1 -1
  1206. package/build-module/query-pagination/index.js +5 -1
  1207. package/build-module/query-pagination/index.js.map +1 -1
  1208. package/build-module/query-pagination-next/index.js +3 -0
  1209. package/build-module/query-pagination-next/index.js.map +1 -1
  1210. package/build-module/query-pagination-numbers/index.js +3 -0
  1211. package/build-module/query-pagination-numbers/index.js.map +1 -1
  1212. package/build-module/query-pagination-previous/index.js +3 -0
  1213. package/build-module/query-pagination-previous/index.js.map +1 -1
  1214. package/build-module/query-title/index.js +3 -0
  1215. package/build-module/query-title/index.js.map +1 -1
  1216. package/build-module/quote/index.js +3 -0
  1217. package/build-module/quote/index.js.map +1 -1
  1218. package/build-module/read-more/index.js +3 -0
  1219. package/build-module/read-more/index.js.map +1 -1
  1220. package/build-module/rss/index.js +4 -1
  1221. package/build-module/rss/index.js.map +1 -1
  1222. package/build-module/search/view.js +2 -0
  1223. package/build-module/search/view.js.map +1 -1
  1224. package/build-module/separator/index.js +3 -0
  1225. package/build-module/separator/index.js.map +1 -1
  1226. package/build-module/site-logo/edit.js +0 -1
  1227. package/build-module/site-logo/edit.js.map +1 -1
  1228. package/build-module/site-logo/index.js +3 -0
  1229. package/build-module/site-logo/index.js.map +1 -1
  1230. package/build-module/site-tagline/index.js +3 -0
  1231. package/build-module/site-tagline/index.js.map +1 -1
  1232. package/build-module/site-title/index.js +3 -0
  1233. package/build-module/site-title/index.js.map +1 -1
  1234. package/build-module/social-link/icons/patreon.js +4 -11
  1235. package/build-module/social-link/icons/patreon.js.map +1 -1
  1236. package/build-module/social-link/index.js +4 -1
  1237. package/build-module/social-link/index.js.map +1 -1
  1238. package/build-module/social-links/edit.js +0 -2
  1239. package/build-module/social-links/edit.js.map +1 -1
  1240. package/build-module/social-links/edit.native.js +0 -3
  1241. package/build-module/social-links/edit.native.js.map +1 -1
  1242. package/build-module/social-links/index.js +4 -0
  1243. package/build-module/social-links/index.js.map +1 -1
  1244. package/build-module/spacer/index.js +3 -0
  1245. package/build-module/spacer/index.js.map +1 -1
  1246. package/build-module/table/index.js +4 -1
  1247. package/build-module/table/index.js.map +1 -1
  1248. package/build-module/table-of-contents/index.js +3 -0
  1249. package/build-module/table-of-contents/index.js.map +1 -1
  1250. package/build-module/tag-cloud/index.js +3 -0
  1251. package/build-module/tag-cloud/index.js.map +1 -1
  1252. package/build-module/template-part/edit/index.js +6 -10
  1253. package/build-module/template-part/edit/index.js.map +1 -1
  1254. package/build-module/template-part/index.js +7 -4
  1255. package/build-module/template-part/index.js.map +1 -1
  1256. package/build-module/term-description/index.js +3 -0
  1257. package/build-module/term-description/index.js.map +1 -1
  1258. package/build-module/text-columns/index.js +4 -1
  1259. package/build-module/text-columns/index.js.map +1 -1
  1260. package/build-module/verse/index.js +3 -1
  1261. package/build-module/verse/index.js.map +1 -1
  1262. package/build-module/video/deprecated.js +3 -0
  1263. package/build-module/video/deprecated.js.map +1 -1
  1264. package/build-module/video/index.js +3 -0
  1265. package/build-module/video/index.js.map +1 -1
  1266. package/build-style/editor-rtl.css +10 -1
  1267. package/build-style/editor.css +10 -1
  1268. package/build-style/embed/editor-rtl.css +5 -1
  1269. package/build-style/embed/editor.css +5 -1
  1270. package/build-style/image/style-rtl.css +6 -6
  1271. package/build-style/image/style.css +6 -6
  1272. package/build-style/navigation-link/style-rtl.css +22 -0
  1273. package/build-style/navigation-link/style.css +22 -0
  1274. package/build-style/{query/style.css → post-content/editor-rtl.css} +3 -41
  1275. package/build-style/{query/style-rtl.css → post-content/editor.css} +3 -41
  1276. package/build-style/separator/style-rtl.css +2 -2
  1277. package/build-style/separator/style.css +2 -2
  1278. package/build-style/social-links/style-rtl.css +2 -2
  1279. package/build-style/social-links/style.css +2 -2
  1280. package/build-style/style-rtl.css +32 -10
  1281. package/build-style/style.css +32 -10
  1282. package/package.json +34 -34
  1283. package/src/archives/block.json +3 -0
  1284. package/src/audio/block.json +3 -0
  1285. package/src/avatar/block.json +3 -0
  1286. package/src/block/block.json +6 -3
  1287. package/src/block/deprecated.js +57 -0
  1288. package/src/block/edit.js +150 -148
  1289. package/src/block/index.js +21 -0
  1290. package/src/block/index.php +15 -2
  1291. package/src/button/block.json +7 -2
  1292. package/src/buttons/block.json +4 -0
  1293. package/src/buttons/edit.js +4 -13
  1294. package/src/buttons/edit.native.js +2 -6
  1295. package/src/calendar/block.json +3 -0
  1296. package/src/categories/block.json +3 -0
  1297. package/src/code/block.json +3 -0
  1298. package/src/column/block.json +5 -1
  1299. package/src/columns/block.json +6 -1
  1300. package/src/columns/edit.js +91 -123
  1301. package/src/columns/edit.native.js +0 -12
  1302. package/src/comment-author-avatar/block.json +3 -0
  1303. package/src/comment-author-name/block.json +3 -0
  1304. package/src/comment-date/block.json +3 -0
  1305. package/src/comment-edit-link/block.json +3 -0
  1306. package/src/comment-template/block.json +3 -0
  1307. package/src/comments-pagination/block.json +8 -0
  1308. package/src/comments-pagination/edit.js +0 -6
  1309. package/src/comments-pagination-next/block.json +3 -0
  1310. package/src/comments-pagination-numbers/block.json +3 -0
  1311. package/src/comments-pagination-previous/block.json +3 -0
  1312. package/src/comments-title/block.json +3 -0
  1313. package/src/cover/block.json +3 -0
  1314. package/src/cover/edit/inspector-controls.js +3 -2
  1315. package/src/cover/test/edit.js +2 -2
  1316. package/src/details/block.json +3 -0
  1317. package/src/editor.scss +1 -0
  1318. package/src/embed/block.json +3 -0
  1319. package/src/embed/editor.scss +8 -2
  1320. package/src/embed/embed-placeholder.js +1 -1
  1321. package/src/file/index.php +11 -7
  1322. package/src/file/view.js +9 -5
  1323. package/src/footnotes/block.json +3 -0
  1324. package/src/footnotes/format.js +10 -0
  1325. package/src/form/block.json +9 -0
  1326. package/src/form/edit.js +0 -11
  1327. package/src/form/index.php +2 -2
  1328. package/src/form/view.js +2 -0
  1329. package/src/form-submit-button/block.json +1 -0
  1330. package/src/form-submit-button/edit.js +0 -1
  1331. package/src/gallery/block.json +4 -0
  1332. package/src/gallery/edit.js +26 -35
  1333. package/src/gallery/gallery.native.js +0 -1
  1334. package/src/gallery/index.php +51 -21
  1335. package/src/gallery/test/index.native.js +1 -1
  1336. package/src/group/block.json +3 -0
  1337. package/src/heading/block.json +4 -1
  1338. package/src/heading/test/__snapshots__/index.native.js.snap +6 -0
  1339. package/src/heading/test/index.native.js +24 -9
  1340. package/src/home-link/block.json +3 -0
  1341. package/src/home-link/index.php +4 -1
  1342. package/src/html/block.json +4 -1
  1343. package/src/image/block.json +4 -0
  1344. package/src/image/edit.js +16 -14
  1345. package/src/image/image.js +58 -74
  1346. package/src/image/index.php +123 -166
  1347. package/src/image/save.js +3 -0
  1348. package/src/image/style.scss +2 -2
  1349. package/src/image/view.js +392 -499
  1350. package/src/latest-comments/block.json +3 -0
  1351. package/src/latest-posts/block.json +3 -0
  1352. package/src/list/block.json +5 -1
  1353. package/src/list/edit.js +0 -1
  1354. package/src/list-item/block.json +4 -0
  1355. package/src/list-item/edit.js +0 -1
  1356. package/src/list-item/edit.native.js +0 -1
  1357. package/src/loginout/block.json +3 -0
  1358. package/src/media-text/block.json +3 -0
  1359. package/src/media-text/edit.js +12 -12
  1360. package/src/media-text/edit.native.js +1 -1
  1361. package/src/missing/block.json +4 -1
  1362. package/src/more/block.json +4 -1
  1363. package/src/navigation/block.json +13 -0
  1364. package/src/navigation/constants.js +0 -14
  1365. package/src/navigation/edit/inner-blocks.js +2 -18
  1366. package/src/navigation/edit/unsaved-inner-blocks.js +3 -19
  1367. package/src/navigation/index.php +77 -40
  1368. package/src/navigation/view.js +184 -171
  1369. package/src/navigation-link/block.json +9 -1
  1370. package/src/navigation-link/edit.js +10 -11
  1371. package/src/navigation-link/index.php +31 -110
  1372. package/src/navigation-link/link-ui.js +216 -111
  1373. package/src/navigation-link/style.scss +26 -0
  1374. package/src/navigation-submenu/block.json +4 -1
  1375. package/src/navigation-submenu/index.js +11 -4
  1376. package/src/nextpage/block.json +4 -1
  1377. package/src/page-list/block.json +4 -0
  1378. package/src/page-list/edit.js +0 -1
  1379. package/src/page-list-item/block.json +4 -1
  1380. package/src/paragraph/block.json +4 -1
  1381. package/src/paragraph/edit.js +3 -3
  1382. package/src/pattern/block.json +4 -1
  1383. package/src/post-author/block.json +3 -0
  1384. package/src/post-author-biography/block.json +3 -0
  1385. package/src/post-author-name/block.json +3 -0
  1386. package/src/post-comment/block.json +12 -1
  1387. package/src/post-comment/edit.js +0 -9
  1388. package/src/post-comments-count/block.json +3 -0
  1389. package/src/post-comments-link/block.json +3 -0
  1390. package/src/post-content/editor.scss +4 -0
  1391. package/src/post-date/block.json +3 -0
  1392. package/src/post-excerpt/block.json +3 -0
  1393. package/src/post-featured-image/block.json +3 -0
  1394. package/src/post-navigation-link/block.json +3 -3
  1395. package/src/post-navigation-link/edit.js +1 -7
  1396. package/src/post-navigation-link/index.php +2 -5
  1397. package/src/post-template/block.json +3 -0
  1398. package/src/post-template/edit.js +5 -5
  1399. package/src/post-terms/block.json +3 -0
  1400. package/src/post-terms/index.php +2 -2
  1401. package/src/post-time-to-read/block.json +3 -0
  1402. package/src/post-title/block.json +3 -0
  1403. package/src/preformatted/block.json +3 -0
  1404. package/src/pullquote/block.json +3 -0
  1405. package/src/query/block.json +3 -3
  1406. package/src/query/index.php +41 -65
  1407. package/src/query/view.js +43 -71
  1408. package/src/query-no-results/block.json +3 -0
  1409. package/src/query-pagination/block.json +9 -1
  1410. package/src/query-pagination/edit.js +0 -6
  1411. package/src/query-pagination-next/block.json +3 -0
  1412. package/src/query-pagination-numbers/block.json +3 -0
  1413. package/src/query-pagination-previous/block.json +3 -0
  1414. package/src/query-title/block.json +3 -0
  1415. package/src/quote/block.json +3 -0
  1416. package/src/read-more/block.json +3 -0
  1417. package/src/rss/block.json +4 -1
  1418. package/src/search/index.php +11 -7
  1419. package/src/search/view.js +64 -60
  1420. package/src/separator/block.json +3 -0
  1421. package/src/separator/style.scss +3 -3
  1422. package/src/site-logo/block.json +3 -0
  1423. package/src/site-tagline/block.json +3 -0
  1424. package/src/site-title/block.json +3 -0
  1425. package/src/social-link/block.json +4 -1
  1426. package/src/social-link/icons/patreon.js +3 -4
  1427. package/src/social-link/index.php +1 -1
  1428. package/src/social-link/socials-with-bg.scss +1 -1
  1429. package/src/social-link/socials-without-bg.scss +1 -1
  1430. package/src/social-links/block.json +4 -0
  1431. package/src/social-links/edit.js +0 -3
  1432. package/src/social-links/edit.native.js +0 -6
  1433. package/src/spacer/block.json +3 -0
  1434. package/src/table/block.json +4 -1
  1435. package/src/table-of-contents/block.json +3 -0
  1436. package/src/tag-cloud/block.json +3 -0
  1437. package/src/template-part/block.json +4 -1
  1438. package/src/template-part/edit/index.js +6 -9
  1439. package/src/template-part/index.js +4 -4
  1440. package/src/template-part/index.php +9 -9
  1441. package/src/term-description/block.json +3 -0
  1442. package/src/text-columns/block.json +4 -1
  1443. package/src/verse/block.json +3 -0
  1444. package/src/video/block.json +3 -0
  1445. package/src/query/style.scss +0 -52
@@ -1 +1 @@
1
- {"version":3,"names":["_util","require","_embedControls","_interopRequireDefault","_icons","_embedLoading","_embedPlaceholder","_embedPreview","_classnames","_i18n","_element","_data","_blockEditor","_coreData","_primitives","_url","EmbedEdit","props","attributes","providerNameSlug","previewable","responsive","url","attributesUrl","isSelected","onReplace","setAttributes","insertBlocksAfter","onFocus","defaultEmbedInfo","title","_x","icon","embedContentIcon","getEmbedInfoByProvider","setURL","useState","isEditingURL","setIsEditingURL","invalidateResolution","useDispatch","coreStore","preview","fetching","themeSupportsResponsive","cannotEmbed","useSelect","select","getEmbedPreview","isPreviewEmbedFallback","isRequestingEmbedPreview","getThemeSupports","embedPreview","previewIsFallback","badEmbedProvider","html","type","undefined","wordpressCantEmbed","data","status","validPreview","getMergedAttributes","getMergedAttributesWithPreview","toggleResponsive","allowResponsive","className","newAllowResponsive","getClassNames","useEffect","newURL","replace","getAuthority","URL","host","toString","mergedAttributes","upgradedBlock","createUpgradedEmbedBlock","blockProps","useBlockProps","_react","createElement","View","default","label","sprintf","__","showEmbedPlaceholder","onSubmit","event","preventDefault","blockClass","removeAspectRatioClasses","value","onChange","target","fallback","tryAgain","caption","classFromPreview","classnames","Fragment","showEditButton","blockSupportsResponsive","switchBackToURLInput","onCaptionChange","_default","exports"],"sources":["@wordpress/block-library/src/embed/edit.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport {\n\tcreateUpgradedEmbedBlock,\n\tgetClassNames,\n\tremoveAspectRatioClasses,\n\tfallback,\n\tgetEmbedInfoByProvider,\n\tgetMergedAttributesWithPreview,\n} from './util';\nimport EmbedControls from './embed-controls';\nimport { embedContentIcon } from './icons';\nimport EmbedLoading from './embed-loading';\nimport EmbedPlaceholder from './embed-placeholder';\nimport EmbedPreview from './embed-preview';\n\n/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { __, _x, sprintf } from '@wordpress/i18n';\nimport { useState, useEffect } from '@wordpress/element';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { useBlockProps } from '@wordpress/block-editor';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { View } from '@wordpress/primitives';\nimport { getAuthority } from '@wordpress/url';\n\nconst EmbedEdit = ( props ) => {\n\tconst {\n\t\tattributes: {\n\t\t\tproviderNameSlug,\n\t\t\tpreviewable,\n\t\t\tresponsive,\n\t\t\turl: attributesUrl,\n\t\t},\n\t\tattributes,\n\t\tisSelected,\n\t\tonReplace,\n\t\tsetAttributes,\n\t\tinsertBlocksAfter,\n\t\tonFocus,\n\t} = props;\n\n\tconst defaultEmbedInfo = {\n\t\ttitle: _x( 'Embed', 'block title' ),\n\t\ticon: embedContentIcon,\n\t};\n\tconst { icon, title } =\n\t\tgetEmbedInfoByProvider( providerNameSlug ) || defaultEmbedInfo;\n\n\tconst [ url, setURL ] = useState( attributesUrl );\n\tconst [ isEditingURL, setIsEditingURL ] = useState( false );\n\tconst { invalidateResolution } = useDispatch( coreStore );\n\n\tconst { preview, fetching, themeSupportsResponsive, cannotEmbed } =\n\t\tuseSelect(\n\t\t\t( select ) => {\n\t\t\t\tconst {\n\t\t\t\t\tgetEmbedPreview,\n\t\t\t\t\tisPreviewEmbedFallback,\n\t\t\t\t\tisRequestingEmbedPreview,\n\t\t\t\t\tgetThemeSupports,\n\t\t\t\t} = select( coreStore );\n\t\t\t\tif ( ! attributesUrl ) {\n\t\t\t\t\treturn { fetching: false, cannotEmbed: false };\n\t\t\t\t}\n\n\t\t\t\tconst embedPreview = getEmbedPreview( attributesUrl );\n\t\t\t\tconst previewIsFallback =\n\t\t\t\t\tisPreviewEmbedFallback( attributesUrl );\n\n\t\t\t\t// The external oEmbed provider does not exist. We got no type info and no html.\n\t\t\t\tconst badEmbedProvider =\n\t\t\t\t\tembedPreview?.html === false &&\n\t\t\t\t\tembedPreview?.type === undefined;\n\t\t\t\t// Some WordPress URLs that can't be embedded will cause the API to return\n\t\t\t\t// a valid JSON response with no HTML and `data.status` set to 404, rather\n\t\t\t\t// than generating a fallback response as other embeds do.\n\t\t\t\tconst wordpressCantEmbed = embedPreview?.data?.status === 404;\n\t\t\t\tconst validPreview =\n\t\t\t\t\t!! embedPreview &&\n\t\t\t\t\t! badEmbedProvider &&\n\t\t\t\t\t! wordpressCantEmbed;\n\t\t\t\treturn {\n\t\t\t\t\tpreview: validPreview ? embedPreview : undefined,\n\t\t\t\t\tfetching: isRequestingEmbedPreview( attributesUrl ),\n\t\t\t\t\tthemeSupportsResponsive:\n\t\t\t\t\t\tgetThemeSupports()[ 'responsive-embeds' ],\n\t\t\t\t\tcannotEmbed: ! validPreview || previewIsFallback,\n\t\t\t\t};\n\t\t\t},\n\t\t\t[ attributesUrl ]\n\t\t);\n\n\t/**\n\t * Returns the attributes derived from the preview, merged with the current attributes.\n\t *\n\t * @return {Object} Merged attributes.\n\t */\n\tconst getMergedAttributes = () =>\n\t\tgetMergedAttributesWithPreview(\n\t\t\tattributes,\n\t\t\tpreview,\n\t\t\ttitle,\n\t\t\tresponsive\n\t\t);\n\n\tconst toggleResponsive = () => {\n\t\tconst { allowResponsive, className } = attributes;\n\t\tconst { html } = preview;\n\t\tconst newAllowResponsive = ! allowResponsive;\n\n\t\tsetAttributes( {\n\t\t\tallowResponsive: newAllowResponsive,\n\t\t\tclassName: getClassNames(\n\t\t\t\thtml,\n\t\t\t\tclassName,\n\t\t\t\tresponsive && newAllowResponsive\n\t\t\t),\n\t\t} );\n\t};\n\n\tuseEffect( () => {\n\t\tif ( preview?.html || ! cannotEmbed || fetching ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// At this stage, we're not fetching the preview and know it can't be embedded,\n\t\t// so try removing any trailing slash, and resubmit.\n\t\tconst newURL = attributesUrl.replace( /\\/$/, '' );\n\t\tsetURL( newURL );\n\t\tsetIsEditingURL( false );\n\t\tsetAttributes( { url: newURL } );\n\t}, [ preview?.html, attributesUrl, cannotEmbed, fetching, setAttributes ] );\n\n\t// Try a different provider in case the embed url is not supported.\n\tuseEffect( () => {\n\t\tif ( ! cannotEmbed || fetching || ! url ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Until X provider is supported in WordPress, as a workaround we use Twitter provider.\n\t\tif ( getAuthority( url ) === 'x.com' ) {\n\t\t\tconst newURL = new URL( url );\n\t\t\tnewURL.host = 'twitter.com';\n\t\t\tsetAttributes( { url: newURL.toString() } );\n\t\t}\n\t}, [ url, cannotEmbed, fetching, setAttributes ] );\n\n\t// Handle incoming preview.\n\tuseEffect( () => {\n\t\tif ( preview && ! isEditingURL ) {\n\t\t\t// When obtaining an incoming preview,\n\t\t\t// we set the attributes derived from the preview data.\n\t\t\tconst mergedAttributes = getMergedAttributes();\n\t\t\tsetAttributes( mergedAttributes );\n\n\t\t\tif ( onReplace ) {\n\t\t\t\tconst upgradedBlock = createUpgradedEmbedBlock(\n\t\t\t\t\tprops,\n\t\t\t\t\tmergedAttributes\n\t\t\t\t);\n\n\t\t\t\tif ( upgradedBlock ) {\n\t\t\t\t\tonReplace( upgradedBlock );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}, [ preview, isEditingURL ] );\n\n\tconst blockProps = useBlockProps();\n\n\tif ( fetching ) {\n\t\treturn (\n\t\t\t<View { ...blockProps }>\n\t\t\t\t<EmbedLoading />\n\t\t\t</View>\n\t\t);\n\t}\n\n\t// translators: %s: type of embed e.g: \"YouTube\", \"Twitter\", etc. \"Embed\" is used when no specific type exists\n\tconst label = sprintf( __( '%s URL' ), title );\n\n\t// No preview, or we can't embed the current URL, or we've clicked the edit button.\n\tconst showEmbedPlaceholder = ! preview || cannotEmbed || isEditingURL;\n\n\tif ( showEmbedPlaceholder ) {\n\t\treturn (\n\t\t\t<View { ...blockProps }>\n\t\t\t\t<EmbedPlaceholder\n\t\t\t\t\ticon={ icon }\n\t\t\t\t\tlabel={ label }\n\t\t\t\t\tonFocus={ onFocus }\n\t\t\t\t\tonSubmit={ ( event ) => {\n\t\t\t\t\t\tif ( event ) {\n\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// If the embed URL was changed, we need to reset the aspect ratio class.\n\t\t\t\t\t\t// To do this we have to remove the existing ratio class so it can be recalculated.\n\t\t\t\t\t\tconst blockClass = removeAspectRatioClasses(\n\t\t\t\t\t\t\tattributes.className\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tsetIsEditingURL( false );\n\t\t\t\t\t\tsetAttributes( { url, className: blockClass } );\n\t\t\t\t\t} }\n\t\t\t\t\tvalue={ url }\n\t\t\t\t\tcannotEmbed={ cannotEmbed }\n\t\t\t\t\tonChange={ ( event ) => setURL( event.target.value ) }\n\t\t\t\t\tfallback={ () => fallback( url, onReplace ) }\n\t\t\t\t\ttryAgain={ () => {\n\t\t\t\t\t\tinvalidateResolution( 'getEmbedPreview', [ url ] );\n\t\t\t\t\t} }\n\t\t\t\t/>\n\t\t\t</View>\n\t\t);\n\t}\n\n\t// Even though we set attributes that get derived from the preview,\n\t// we don't access them directly because for the initial render,\n\t// the `setAttributes` call will not have taken effect. If we're\n\t// rendering responsive content, setting the responsive classes\n\t// after the preview has been rendered can result in unwanted\n\t// clipping or scrollbars. The `getAttributesFromPreview` function\n\t// that `getMergedAttributes` uses is memoized so that we're not\n\t// calculating them on every render.\n\tconst {\n\t\tcaption,\n\t\ttype,\n\t\tallowResponsive,\n\t\tclassName: classFromPreview,\n\t} = getMergedAttributes();\n\tconst className = classnames( classFromPreview, props.className );\n\n\treturn (\n\t\t<>\n\t\t\t<EmbedControls\n\t\t\t\tshowEditButton={ preview && ! cannotEmbed }\n\t\t\t\tthemeSupportsResponsive={ themeSupportsResponsive }\n\t\t\t\tblockSupportsResponsive={ responsive }\n\t\t\t\tallowResponsive={ allowResponsive }\n\t\t\t\ttoggleResponsive={ toggleResponsive }\n\t\t\t\tswitchBackToURLInput={ () => setIsEditingURL( true ) }\n\t\t\t/>\n\t\t\t<View { ...blockProps }>\n\t\t\t\t<EmbedPreview\n\t\t\t\t\tpreview={ preview }\n\t\t\t\t\tpreviewable={ previewable }\n\t\t\t\t\tclassName={ className }\n\t\t\t\t\turl={ url }\n\t\t\t\t\ttype={ type }\n\t\t\t\t\tcaption={ caption }\n\t\t\t\t\tonCaptionChange={ ( value ) =>\n\t\t\t\t\t\tsetAttributes( { caption: value } )\n\t\t\t\t\t}\n\t\t\t\t\tisSelected={ isSelected }\n\t\t\t\t\ticon={ icon }\n\t\t\t\t\tlabel={ label }\n\t\t\t\t\tinsertBlocksAfter={ insertBlocksAfter }\n\t\t\t\t/>\n\t\t\t</View>\n\t\t</>\n\t);\n};\n\nexport default EmbedEdit;\n"],"mappings":";;;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AAQA,IAAAC,cAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,iBAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,aAAA,GAAAJ,sBAAA,CAAAF,OAAA;AAKA,IAAAO,WAAA,GAAAL,sBAAA,CAAAF,OAAA;AAKA,IAAAQ,KAAA,GAAAR,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AACA,IAAAU,KAAA,GAAAV,OAAA;AACA,IAAAW,YAAA,GAAAX,OAAA;AACA,IAAAY,SAAA,GAAAZ,OAAA;AACA,IAAAa,WAAA,GAAAb,OAAA;AACA,IAAAc,IAAA,GAAAd,OAAA;AA/BA;AACA;AACA;;AAeA;AACA;AACA;;AAGA;AACA;AACA;;AASA,MAAMe,SAAS,GAAKC,KAAK,IAAM;EAC9B,MAAM;IACLC,UAAU,EAAE;MACXC,gBAAgB;MAChBC,WAAW;MACXC,UAAU;MACVC,GAAG,EAAEC;IACN,CAAC;IACDL,UAAU;IACVM,UAAU;IACVC,SAAS;IACTC,aAAa;IACbC,iBAAiB;IACjBC;EACD,CAAC,GAAGX,KAAK;E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,aAAA,EAAAD,MAAA,CAAAqB,QAAA,QACC,IAAArB,MAAA,CAAAC,aAAA,EAAChF,cAAA,CAAAkF,OAAa;IACbmB,cAAc,EAAG7D,OAAO,IAAI,CAAEG,WAAa;IAC3CD,uBAAuB,EAAGA,uBAAyB;IACnD4D,uBAAuB,EAAGnF,UAAY;IACtC4C,eAAe,EAAGA,eAAiB;IACnCD,gBAAgB,EAAGA,gBAAkB;IACrCyC,oBAAoB,EAAGA,CAAA,KAAMnE,eAAe,CAAE,IAAK;EAAG,CACtD,CAAC,EACF,IAAA2C,MAAA,CAAAC,aAAA,EAACpE,WAAA,CAAAqE,IAAI;IAAA,GAAMJ;EAAU,GACpB,IAAAE,MAAA,CAAAC,aAAA,EAAC3E,aAAA,CAAA6E,OAAY;IACZ1C,OAAO,EAAGA,OAAS;IACnBtB,WAAW,EAAGA,WAAa;IAC3B8C,SAAS,EAAGA,SAAW;IACvB5C,GAAG,EAAGA,GAAK;IACXkC,IAAI,EAAGA,IAAM;IACb2C,OAAO,EAAGA,OAAS;IACnBO,eAAe,EAAKZ,KAAK,IACxBpE,aAAa,CAAE;MAAEyE,OAAO,EAAEL;IAAM,CAAE,CAClC;IACDtE,UAAU,EAAGA,UAAY;IACzBQ,IAAI,EAAGA,IAAM;IACbqD,KAAK,EAAGA,KAAO;IACf1D,iBAAiB,EAAGA;EAAmB,CACvC,CACI,CACL,CAAC;AAEL,CAAC;AAAC,IAAAgF,QAAA,GAEa3F,SAAS;AAAA4F,OAAA,CAAAxB,OAAA,GAAAuB,QAAA"}
1
+ {"version":3,"names":["_util","require","_embedControls","_interopRequireDefault","_icons","_embedLoading","_embedPlaceholder","_embedPreview","_classnames","_i18n","_element","_data","_blockEditor","_coreData","_primitives","_url","EmbedEdit","props","attributes","providerNameSlug","previewable","responsive","url","attributesUrl","isSelected","onReplace","setAttributes","insertBlocksAfter","onFocus","defaultEmbedInfo","title","_x","icon","embedContentIcon","getEmbedInfoByProvider","setURL","useState","isEditingURL","setIsEditingURL","invalidateResolution","useDispatch","coreStore","preview","fetching","themeSupportsResponsive","cannotEmbed","useSelect","select","getEmbedPreview","isPreviewEmbedFallback","isRequestingEmbedPreview","getThemeSupports","embedPreview","previewIsFallback","badEmbedProvider","html","type","undefined","wordpressCantEmbed","data","status","validPreview","getMergedAttributes","getMergedAttributesWithPreview","toggleResponsive","allowResponsive","className","newAllowResponsive","getClassNames","useEffect","newURL","replace","getAuthority","URL","host","toString","mergedAttributes","upgradedBlock","createUpgradedEmbedBlock","blockProps","useBlockProps","_react","createElement","View","default","label","sprintf","__","showEmbedPlaceholder","onSubmit","event","preventDefault","blockClass","removeAspectRatioClasses","value","onChange","target","fallback","tryAgain","caption","classFromPreview","classnames","Fragment","showEditButton","blockSupportsResponsive","switchBackToURLInput","onCaptionChange","_default","exports"],"sources":["@wordpress/block-library/src/embed/edit.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport {\n\tcreateUpgradedEmbedBlock,\n\tgetClassNames,\n\tremoveAspectRatioClasses,\n\tfallback,\n\tgetEmbedInfoByProvider,\n\tgetMergedAttributesWithPreview,\n} from './util';\nimport EmbedControls from './embed-controls';\nimport { embedContentIcon } from './icons';\nimport EmbedLoading from './embed-loading';\nimport EmbedPlaceholder from './embed-placeholder';\nimport EmbedPreview from './embed-preview';\n\n/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { __, _x, sprintf } from '@wordpress/i18n';\nimport { useState, useEffect } from '@wordpress/element';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { useBlockProps } from '@wordpress/block-editor';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { View } from '@wordpress/primitives';\nimport { getAuthority } from '@wordpress/url';\n\nconst EmbedEdit = ( props ) => {\n\tconst {\n\t\tattributes: {\n\t\t\tproviderNameSlug,\n\t\t\tpreviewable,\n\t\t\tresponsive,\n\t\t\turl: attributesUrl,\n\t\t},\n\t\tattributes,\n\t\tisSelected,\n\t\tonReplace,\n\t\tsetAttributes,\n\t\tinsertBlocksAfter,\n\t\tonFocus,\n\t} = props;\n\n\tconst defaultEmbedInfo = {\n\t\ttitle: _x( 'Embed', 'block title' ),\n\t\ticon: embedContentIcon,\n\t};\n\tconst { icon, title } =\n\t\tgetEmbedInfoByProvider( providerNameSlug ) || defaultEmbedInfo;\n\n\tconst [ url, setURL ] = useState( attributesUrl );\n\tconst [ isEditingURL, setIsEditingURL ] = useState( false );\n\tconst { invalidateResolution } = useDispatch( coreStore );\n\n\tconst { preview, fetching, themeSupportsResponsive, cannotEmbed } =\n\t\tuseSelect(\n\t\t\t( select ) => {\n\t\t\t\tconst {\n\t\t\t\t\tgetEmbedPreview,\n\t\t\t\t\tisPreviewEmbedFallback,\n\t\t\t\t\tisRequestingEmbedPreview,\n\t\t\t\t\tgetThemeSupports,\n\t\t\t\t} = select( coreStore );\n\t\t\t\tif ( ! attributesUrl ) {\n\t\t\t\t\treturn { fetching: false, cannotEmbed: false };\n\t\t\t\t}\n\n\t\t\t\tconst embedPreview = getEmbedPreview( attributesUrl );\n\t\t\t\tconst previewIsFallback =\n\t\t\t\t\tisPreviewEmbedFallback( attributesUrl );\n\n\t\t\t\t// The external oEmbed provider does not exist. We got no type info and no html.\n\t\t\t\tconst badEmbedProvider =\n\t\t\t\t\tembedPreview?.html === false &&\n\t\t\t\t\tembedPreview?.type === undefined;\n\t\t\t\t// Some WordPress URLs that can't be embedded will cause the API to return\n\t\t\t\t// a valid JSON response with no HTML and `data.status` set to 404, rather\n\t\t\t\t// than generating a fallback response as other embeds do.\n\t\t\t\tconst wordpressCantEmbed = embedPreview?.data?.status === 404;\n\t\t\t\tconst validPreview =\n\t\t\t\t\t!! embedPreview &&\n\t\t\t\t\t! badEmbedProvider &&\n\t\t\t\t\t! wordpressCantEmbed;\n\t\t\t\treturn {\n\t\t\t\t\tpreview: validPreview ? embedPreview : undefined,\n\t\t\t\t\tfetching: isRequestingEmbedPreview( attributesUrl ),\n\t\t\t\t\tthemeSupportsResponsive:\n\t\t\t\t\t\tgetThemeSupports()[ 'responsive-embeds' ],\n\t\t\t\t\tcannotEmbed: ! validPreview || previewIsFallback,\n\t\t\t\t};\n\t\t\t},\n\t\t\t[ attributesUrl ]\n\t\t);\n\n\t/**\n\t * Returns the attributes derived from the preview, merged with the current attributes.\n\t *\n\t * @return {Object} Merged attributes.\n\t */\n\tconst getMergedAttributes = () =>\n\t\tgetMergedAttributesWithPreview(\n\t\t\tattributes,\n\t\t\tpreview,\n\t\t\ttitle,\n\t\t\tresponsive\n\t\t);\n\n\tconst toggleResponsive = () => {\n\t\tconst { allowResponsive, className } = attributes;\n\t\tconst { html } = preview;\n\t\tconst newAllowResponsive = ! allowResponsive;\n\n\t\tsetAttributes( {\n\t\t\tallowResponsive: newAllowResponsive,\n\t\t\tclassName: getClassNames(\n\t\t\t\thtml,\n\t\t\t\tclassName,\n\t\t\t\tresponsive && newAllowResponsive\n\t\t\t),\n\t\t} );\n\t};\n\n\tuseEffect( () => {\n\t\tif ( preview?.html || ! cannotEmbed || fetching ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// At this stage, we're not fetching the preview and know it can't be embedded,\n\t\t// so try removing any trailing slash, and resubmit.\n\t\tconst newURL = attributesUrl.replace( /\\/$/, '' );\n\t\tsetURL( newURL );\n\t\tsetIsEditingURL( false );\n\t\tsetAttributes( { url: newURL } );\n\t}, [ preview?.html, attributesUrl, cannotEmbed, fetching, setAttributes ] );\n\n\t// Try a different provider in case the embed url is not supported.\n\tuseEffect( () => {\n\t\tif ( ! cannotEmbed || fetching || ! url ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Until X provider is supported in WordPress, as a workaround we use Twitter provider.\n\t\tif ( getAuthority( url ) === 'x.com' ) {\n\t\t\tconst newURL = new URL( url );\n\t\t\tnewURL.host = 'twitter.com';\n\t\t\tsetAttributes( { url: newURL.toString() } );\n\t\t}\n\t}, [ url, cannotEmbed, fetching, setAttributes ] );\n\n\t// Handle incoming preview.\n\tuseEffect( () => {\n\t\tif ( preview && ! isEditingURL ) {\n\t\t\t// When obtaining an incoming preview,\n\t\t\t// we set the attributes derived from the preview data.\n\t\t\tconst mergedAttributes = getMergedAttributes();\n\t\t\tsetAttributes( mergedAttributes );\n\n\t\t\tif ( onReplace ) {\n\t\t\t\tconst upgradedBlock = createUpgradedEmbedBlock(\n\t\t\t\t\tprops,\n\t\t\t\t\tmergedAttributes\n\t\t\t\t);\n\n\t\t\t\tif ( upgradedBlock ) {\n\t\t\t\t\tonReplace( upgradedBlock );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}, [ preview, isEditingURL ] );\n\n\tconst blockProps = useBlockProps();\n\n\tif ( fetching ) {\n\t\treturn (\n\t\t\t<View { ...blockProps }>\n\t\t\t\t<EmbedLoading />\n\t\t\t</View>\n\t\t);\n\t}\n\n\t// translators: %s: type of embed e.g: \"YouTube\", \"Twitter\", etc. \"Embed\" is used when no specific type exists\n\tconst label = sprintf( __( '%s URL' ), title );\n\n\t// No preview, or we can't embed the current URL, or we've clicked the edit button.\n\tconst showEmbedPlaceholder = ! preview || cannotEmbed || isEditingURL;\n\n\tif ( showEmbedPlaceholder ) {\n\t\treturn (\n\t\t\t<View { ...blockProps }>\n\t\t\t\t<EmbedPlaceholder\n\t\t\t\t\ticon={ icon }\n\t\t\t\t\tlabel={ label }\n\t\t\t\t\tonFocus={ onFocus }\n\t\t\t\t\tonSubmit={ ( event ) => {\n\t\t\t\t\t\tif ( event ) {\n\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// If the embed URL was changed, we need to reset the aspect ratio class.\n\t\t\t\t\t\t// To do this we have to remove the existing ratio class so it can be recalculated.\n\t\t\t\t\t\tconst blockClass = removeAspectRatioClasses(\n\t\t\t\t\t\t\tattributes.className\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tsetIsEditingURL( false );\n\t\t\t\t\t\tsetAttributes( { url, className: blockClass } );\n\t\t\t\t\t} }\n\t\t\t\t\tvalue={ url }\n\t\t\t\t\tcannotEmbed={ cannotEmbed }\n\t\t\t\t\tonChange={ ( event ) => setURL( event.target.value ) }\n\t\t\t\t\tfallback={ () => fallback( url, onReplace ) }\n\t\t\t\t\ttryAgain={ () => {\n\t\t\t\t\t\tinvalidateResolution( 'getEmbedPreview', [ url ] );\n\t\t\t\t\t} }\n\t\t\t\t/>\n\t\t\t</View>\n\t\t);\n\t}\n\n\t// Even though we set attributes that get derived from the preview,\n\t// we don't access them directly because for the initial render,\n\t// the `setAttributes` call will not have taken effect. If we're\n\t// rendering responsive content, setting the responsive classes\n\t// after the preview has been rendered can result in unwanted\n\t// clipping or scrollbars. The `getAttributesFromPreview` function\n\t// that `getMergedAttributes` uses is memoized so that we're not\n\t// calculating them on every render.\n\tconst {\n\t\tcaption,\n\t\ttype,\n\t\tallowResponsive,\n\t\tclassName: classFromPreview,\n\t} = getMergedAttributes();\n\tconst className = classnames( classFromPreview, props.className );\n\n\treturn (\n\t\t<>\n\t\t\t<EmbedControls\n\t\t\t\tshowEditButton={ preview && ! cannotEmbed }\n\t\t\t\tthemeSupportsResponsive={ themeSupportsResponsive }\n\t\t\t\tblockSupportsResponsive={ responsive }\n\t\t\t\tallowResponsive={ allowResponsive }\n\t\t\t\ttoggleResponsive={ toggleResponsive }\n\t\t\t\tswitchBackToURLInput={ () => setIsEditingURL( true ) }\n\t\t\t/>\n\t\t\t<View { ...blockProps }>\n\t\t\t\t<EmbedPreview\n\t\t\t\t\tpreview={ preview }\n\t\t\t\t\tpreviewable={ previewable }\n\t\t\t\t\tclassName={ className }\n\t\t\t\t\turl={ url }\n\t\t\t\t\ttype={ type }\n\t\t\t\t\tcaption={ caption }\n\t\t\t\t\tonCaptionChange={ ( value ) =>\n\t\t\t\t\t\tsetAttributes( { caption: value } )\n\t\t\t\t\t}\n\t\t\t\t\tisSelected={ isSelected }\n\t\t\t\t\ticon={ icon }\n\t\t\t\t\tlabel={ label }\n\t\t\t\t\tinsertBlocksAfter={ insertB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CAAC,EACF,IAAA2C,MAAA,CAAAC,aAAA,EAACpE,WAAA,CAAAqE,IAAI;IAAA,GAAMJ;EAAU,GACpB,IAAAE,MAAA,CAAAC,aAAA,EAAC3E,aAAA,CAAA6E,OAAY;IACZ1C,OAAO,EAAGA,OAAS;IACnBtB,WAAW,EAAGA,WAAa;IAC3B8C,SAAS,EAAGA,SAAW;IACvB5C,GAAG,EAAGA,GAAK;IACXkC,IAAI,EAAGA,IAAM;IACb2C,OAAO,EAAGA,OAAS;IACnBO,eAAe,EAAKZ,KAAK,IACxBpE,aAAa,CAAE;MAAEyE,OAAO,EAAEL;IAAM,CAAE,CAClC;IACDtE,UAAU,EAAGA,UAAY;IACzBQ,IAAI,EAAGA,IAAM;IACbqD,KAAK,EAAGA,KAAO;IACf1D,iBAAiB,EAAGA;EAAmB,CACvC,CACI,CACL,CAAC;AAEL,CAAC;AAAC,IAAAgF,QAAA,GAAAC,OAAA,CAAAxB,OAAA,GAEapE,SAAS"}
@@ -276,6 +276,5 @@ const EmbedEdit = props => {
276
276
  withBottomSheet: true
277
277
  }));
278
278
  };
279
- var _default = EmbedEdit;
280
- exports.default = _default;
279
+ var _default = exports.default = EmbedEdit;
281
280
  //# sourceMappingURL=edit.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_util","require","_embedControls","_interopRequireDefault","_icons","_embedLoading","_embedPlaceholder","_embedPreview","_embedLinkSettings","_classnames","_i18n","_element","_data","_blockEditor","_coreData","_primitives","_url","PREVIEWABLE_PROVIDERS","NOT_PREVIEWABLE_WP_EMBED_PROVIDERS","WP_EMBED_TYPE","EmbedEdit","props","attributes","align","providerNameSlug","previewable","responsive","url","isSelected","onReplace","setAttributes","insertBlocksAfter","onFocus","clientId","defaultEmbedInfo","title","_x","icon","embedContentIcon","embedInfoByProvider","getEmbedInfoByProvider","wasBlockJustInserted","useSelect","select","blockEditorStore","isEditingURL","setIsEditingURL","useState","showEmbedBottomSheet","setShowEmbedBottomSheet","invalidateResolution","useDispatch","coreStore","preview","fetching","themeSupportsResponsive","cannotEmbed","getEmbedPreview","hasFinishedResolution","isPreviewEmbedFallback","getThemeSupports","embedPreview","hasResolvedEmbedPreview","previewIsFallback","badEmbedProvider","html","type","undefined","wordpressCantEmbed","code","validPreview","getMergedAttributes","getMergedAttributesWithPreview","toggleResponsive","allowResponsive","className","newAllowResponsive","getClassNames","useEffect","newURL","replace","getAuthority","URL","host","toString","mergedAttributes","upgradedBlock","createUpgradedEmbedBlock","onEditURL","useCallback","value","blockClass","removeAspectRatioClasses","blockProps","useBlockProps","_react","createElement","View","default","showEmbedPlaceholder","classFromPreview","classnames","isProviderPreviewable","includes","linkLabel","Fragment","label","onPress","event","fallback","tryAgain","openEmbedLinkSettings","blockSupportsResponsive","isDefaultEmbedInfo","autoFocus","isVisible","onClose","onSubmit","withBottomSheet","_default","exports"],"sources":["@wordpress/block-library/src/embed/edit.native.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport {\n\tcreateUpgradedEmbedBlock,\n\tgetClassNames,\n\tremoveAspectRatioClasses,\n\tfallback,\n\tgetEmbedInfoByProvider,\n\tgetMergedAttributesWithPreview,\n} from './util';\nimport EmbedControls from './embed-controls';\nimport { embedContentIcon } from './icons';\nimport EmbedLoading from './embed-loading';\nimport EmbedPlaceholder from './embed-placeholder';\nimport EmbedPreview from './embed-preview';\nimport EmbedLinkSettings from './embed-link-settings';\n\n/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { _x } from '@wordpress/i18n';\nimport { useCallback, useState, useEffect } from '@wordpress/element';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport {\n\tuseBlockProps,\n\tstore as blockEditorStore,\n} from '@wordpress/block-editor';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { View } from '@wordpress/primitives';\nimport { getAuthority } from '@wordpress/url';\n\n// The inline preview feature will be released progressible, for this reason\n// the embed will only be considered previewable for the following providers list.\nconst PREVIEWABLE_PROVIDERS = [ 'youtube', 'twitter', 'instagram', 'vimeo' ];\n// Some providers are rendering the inline preview as a WordPress embed and\n// are not supported yet, so we need to disallow them with a fixed providers list.\nconst NOT_PREVIEWABLE_WP_EMBED_PROVIDERS = [ 'pinterest' ];\n\nconst WP_EMBED_TYPE = 'wp-embed';\n\nconst EmbedEdit = ( props ) => {\n\tconst {\n\t\tattributes: { align, providerNameSlug, previewable, responsive, url },\n\t\tattributes,\n\t\tisSelected,\n\t\tonReplace,\n\t\tsetAttributes,\n\t\tinsertBlocksAfter,\n\t\tonFocus,\n\t\tclientId,\n\t} = props;\n\n\tconst defaultEmbedInfo = {\n\t\ttitle: _x( 'Embed', 'block title' ),\n\t\ticon: embedContentIcon,\n\t};\n\tconst embedInfoByProvider = getEmbedInfoByProvider( providerNameSlug );\n\tconst { icon, title } = embedInfoByProvider || defaultEmbedInfo;\n\n\tconst { wasBlockJustInserted } = useSelect(\n\t\t( select ) => ( {\n\t\t\twasBlockJustInserted: select(\n\t\t\t\tblockEditorStore\n\t\t\t).wasBlockJustInserted( clientId, 'inserter_menu' ),\n\t\t} ),\n\t\t[ clientId ]\n\t);\n\tconst [ isEditingURL, setIsEditingURL ] = useState(\n\t\tisSelected && wasBlockJustInserted && ! url\n\t);\n\tconst [ showEmbedBottomSheet, setShowEmbedBottomSheet ] =\n\t\tuseState( isEditingURL );\n\tconst { invalidateResolution } = useDispatch( coreStore );\n\n\tconst { preview, fetching, themeSupportsResponsive, cannotEmbed } =\n\t\tuseSelect(\n\t\t\t( select ) => {\n\t\t\t\tconst {\n\t\t\t\t\tgetEmbedPreview,\n\t\t\t\t\thasFinishedResolution,\n\t\t\t\t\tisPreviewEmbedFallback,\n\t\t\t\t\tgetThemeSupports,\n\t\t\t\t} = select( coreStore );\n\t\t\t\tif ( ! url ) {\n\t\t\t\t\treturn { fetching: false, cannotEmbed: false };\n\t\t\t\t}\n\n\t\t\t\tconst embedPreview = getEmbedPreview( url );\n\t\t\t\tconst hasResolvedEmbedPreview = hasFinishedResolution(\n\t\t\t\t\t'getEmbedPreview',\n\t\t\t\t\t[ url ]\n\t\t\t\t);\n\t\t\t\tconst previewIsFallback = isPreviewEmbedFallback( url );\n\n\t\t\t\t// The external oEmbed provider does not exist. We got no type info and no html.\n\t\t\t\tconst badEmbedProvider =\n\t\t\t\t\tembedPreview?.html === false &&\n\t\t\t\t\tembedPreview?.type === undefined;\n\t\t\t\t// Some WordPress URLs that can't be embedded will cause the API to return\n\t\t\t\t// a valid JSON response with no HTML and `code` set to 404, rather\n\t\t\t\t// than generating a fallback response as other embeds do.\n\t\t\t\tconst wordpressCantEmbed = embedPreview?.code === '404';\n\t\t\t\tconst validPreview =\n\t\t\t\t\t!! embedPreview &&\n\t\t\t\t\t! badEmbedProvider &&\n\t\t\t\t\t! wordpressCantEmbed;\n\n\t\t\t\treturn {\n\t\t\t\t\tpreview: validPreview ? embedPreview : undefined,\n\t\t\t\t\tfetching: ! hasResolvedEmbedPreview,\n\t\t\t\t\tthemeSupportsResponsive:\n\t\t\t\t\t\tgetThemeSupports()[ 'responsive-embeds' ],\n\t\t\t\t\tcannotEmbed: ! validPreview || previewIsFallback,\n\t\t\t\t};\n\t\t\t},\n\t\t\t[ url ]\n\t\t);\n\n\t/**\n\t * Returns the attributes derived from the preview, merged with the current attributes.\n\t *\n\t * @return {Object} Merged attributes.\n\t */\n\tconst getMergedAttributes = () =>\n\t\tgetMergedAttributesWithPreview(\n\t\t\tattributes,\n\t\t\tpreview,\n\t\t\ttitle,\n\t\t\tresponsive\n\t\t);\n\n\tconst toggleResponsive = () => {\n\t\tconst { allowResponsive, className } = attributes;\n\t\tconst { html } = preview;\n\t\tconst newAllowResponsive = ! allowResponsive;\n\n\t\tsetAttributes( {\n\t\t\tallowResponsive: newAllowResponsive,\n\t\t\tclassName: getClassNames(\n\t\t\t\thtml,\n\t\t\t\tclassName,\n\t\t\t\tresponsive && newAllowResponsive\n\t\t\t),\n\t\t} );\n\t};\n\n\tuseEffect( () => {\n\t\tif ( ! preview?.html || ! cannotEmbed || fetching ) {\n\t\t\treturn;\n\t\t}\n\t\t// At this stage, we're not fetching the preview and know it can't be embedded,\n\t\t// so try removing any trailing slash, and resubmit.\n\t\tconst newURL = url.replace( /\\/$/, '' );\n\t\tsetIsEditingURL( false );\n\t\tsetAttributes( { url: newURL } );\n\t}, [ preview?.html, url, cannotEmbed, fetching ] );\n\n\t// Try a different provider in case the embed url is not supported.\n\tuseEffect( () => {\n\t\tif ( ! cannotEmbed || fetching || ! url ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Until X provider is supported in WordPress, as a workaround we use Twitter provider.\n\t\tif ( getAuthority( url ) === 'x.com' ) {\n\t\t\tconst newURL = new URL( url );\n\t\t\tnewURL.host = 'twitter.com';\n\t\t\tsetAttributes( { url: newURL.toString() } );\n\t\t}\n\t}, [ url, cannotEmbed, fetching, setAttributes ] );\n\n\t// Handle incoming preview.\n\tuseEffect( () => {\n\t\tif ( preview && ! isEditingURL ) {\n\t\t\t// When obtaining an incoming preview,\n\t\t\t// we set the attributes derived from the preview data.\n\t\t\tconst mergedAttributes = getMergedAttributes();\n\t\t\tsetAttributes( mergedAttributes );\n\n\t\t\tif ( onReplace ) {\n\t\t\t\tconst upgradedBlock = createUpgradedEmbedBlock(\n\t\t\t\t\tprops,\n\t\t\t\t\tmergedAttributes\n\t\t\t\t);\n\n\t\t\t\tif ( upgradedBlock ) {\n\t\t\t\t\tonReplace( upgradedBlock );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}, [ preview, isEditingURL ] );\n\n\tuseEffect(\n\t\t() => setShowEmbedBottomSheet( isEditingURL ),\n\t\t[ isEditingURL ]\n\t);\n\n\tconst onEditURL = useCallback(\n\t\t( value ) => {\n\t\t\t// If the embed URL was changed, we need to reset the aspect ratio class.\n\t\t\t// To do this we have to remove the existing ratio class so it can be recalculated.\n\t\t\tif ( attributes.url !== value ) {\n\t\t\t\tconst blockClass = removeAspectRatioClasses(\n\t\t\t\t\tattributes.className\n\t\t\t\t);\n\t\t\t\tsetAttributes( { className: blockClass } );\n\t\t\t}\n\n\t\t\t// The order of the following calls is important, we need to update the URL attribute before changing `isEditingURL`,\n\t\t\t// otherwise the side-effect that potentially replaces the block when updating the local state won't use the new URL\n\t\t\t// for creating the new block.\n\t\t\tsetAttributes( { url: value } );\n\t\t\tsetIsEditingURL( false );\n\t\t},\n\t\t[ attributes, setAttributes ]\n\t);\n\n\tconst blockProps = useBlockProps();\n\n\tif ( fetching ) {\n\t\treturn (\n\t\t\t<View { ...blockProps }>\n\t\t\t\t<EmbedLoading />\n\t\t\t</View>\n\t\t);\n\t}\n\n\tconst showEmbedPlaceholder = ! preview || cannotEmbed;\n\n\t// Even though we set attributes that get derived from the preview,\n\t// we don't access them directly because for the initial render,\n\t// the `setAttributes` call will not have taken effect. If we're\n\t// rendering responsive content, setting the responsive classes\n\t// after the preview has been rendered can result in unwanted\n\t// clipping or scrollbars. The `getAttributesFromPreview` function\n\t// that `getMergedAttributes` uses is memoized so that we're not\n\t// calculating them on every render.\n\tconst {\n\t\ttype,\n\t\tallowResponsive,\n\t\tclassName: classFromPreview,\n\t} = getMergedAttributes();\n\tconst className = classnames( classFromPreview, props.className );\n\n\tconst isProviderPreviewable =\n\t\tPREVIEWABLE_PROVIDERS.includes( providerNameSlug ) ||\n\t\t// For WordPress embeds, we enable the inline preview for all its providers\n\t\t// except the ones that are not supported yet.\n\t\t( WP_EMBED_TYPE === type &&\n\t\t\t! NOT_PREVIEWABLE_WP_EMBED_PROVIDERS.includes( providerNameSlug ) );\n\n\tconst linkLabel = WP_EMBED_TYPE === type ? 'WordPress' : title;\n\n\treturn (\n\t\t<>\n\t\t\t{ showEmbedPlaceholder ? (\n\t\t\t\t<>\n\t\t\t\t\t<View { ...blockProps }>\n\t\t\t\t\t\t<EmbedPlaceholder\n\t\t\t\t\t\t\ticon={ icon }\n\t\t\t\t\t\t\tisSelected={ isSelected }\n\t\t\t\t\t\t\tlabel={ title }\n\t\t\t\t\t\t\tonPress={ ( event ) => {\n\t\t\t\t\t\t\t\tonFocus( event );\n\t\t\t\t\t\t\t\tsetIsEditingURL( true );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tcannotEmbed={ cannotEmbed }\n\t\t\t\t\t\t\tfallback={ () => fallback( url, onReplace ) }\n\t\t\t\t\t\t\ttryAgain={ () => {\n\t\t\t\t\t\t\t\tinvalidateResolution( 'getEmbedPreview', [\n\t\t\t\t\t\t\t\t\turl,\n\t\t\t\t\t\t\t\t] );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\topenEmbedLinkSettings={ () =>\n\t\t\t\t\t\t\t\tsetShowEmbedBottomSheet( true )\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</View>\n\t\t\t\t</>\n\t\t\t) : (\n\t\t\t\t<>\n\t\t\t\t\t<EmbedControls\n\t\t\t\t\t\tthemeSupportsResponsive={ themeSupportsResponsive }\n\t\t\t\t\t\tblockSupportsResponsive={ responsive }\n\t\t\t\t\t\tallowResponsive={ allowResponsive }\n\t\t\t\t\t\ttoggleResponsive={ toggleResponsive }\n\t\t\t\t\t\turl={ url }\n\t\t\t\t\t\tlinkLabel={ linkLabel }\n\t\t\t\t\t\tonEditURL={ onEditURL }\n\t\t\t\t\t/>\n\t\t\t\t\t<View { ...blockProps }>\n\t\t\t\t\t\t<EmbedPreview\n\t\t\t\t\t\t\talign={ align }\n\t\t\t\t\t\t\tclassName={ className }\n\t\t\t\t\t\t\tclientId={ clientId }\n\t\t\t\t\t\t\ticon={ icon }\n\t\t\t\t\t\t\tinsertBlocksAfter={ insertBlocksAfter }\n\t\t\t\t\t\t\tisSelected={ isSelected }\n\t\t\t\t\t\t\tlabel={ title }\n\t\t\t\t\t\t\tonFocus={ onFocus }\n\t\t\t\t\t\t\tpreview={ preview }\n\t\t\t\t\t\t\tisProviderPreviewable={ isProviderPreviewable }\n\t\t\t\t\t\t\tpreviewable={ previewable }\n\t\t\t\t\t\t\ttype={ type }\n\t\t\t\t\t\t\turl={ url }\n\t\t\t\t\t\t\tisDefaultEmbedInfo={ ! embedInfoByProvider }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</View>\n\t\t\t\t</>\n\t\t\t) }\n\t\t\t<EmbedLinkSettings\n\t\t\t\t// eslint-disable-next-line jsx-a11y/no-autofocus\n\t\t\t\tautoFocus\n\t\t\t\tvalue={ url }\n\t\t\t\tlabel={ linkLabel }\n\t\t\t\tisVisible={ showEmbedBottomSheet }\n\t\t\t\tonClose={ () => setShowEmbedBottomSheet( false ) }\n\t\t\t\tonSubmit={ onEditURL }\n\t\t\t\twithBottomSheet\n\t\t\t/>\n\t\t</>\n\t);\n};\n\nexport default EmbedEdit;\n"],"mappings":";;;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AAQA,IAAAC,cAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,iBAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,aAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,kBAAA,GAAAL,sBAAA,CAAAF,OAAA;AAKA,IAAAQ,WAAA,GAAAN,sBAAA,CAAAF,OAAA;AAKA,IAAAS,KAAA,GAAAT,OAAA;AACA,IAAAU,QAAA,GAAAV,OAAA;AACA,IAAAW,KAAA,GAAAX,OAAA;AACA,IAAAY,YAAA,GAAAZ,OAAA;AAIA,IAAAa,SAAA,GAAAb,OAAA;AACA,IAAAc,WAAA,GAAAd,OAAA;AACA,IAAAe,IAAA,GAAAf,OAAA;AAnCA;AACA;AACA;;AAgBA;AACA;AACA;;AAGA;AACA;AACA;;AAYA;AACA;AACA,MAAMgB,qBAAqB,GAAG,CAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,CAAE;AAC5E;AACA;AACA,MAAMC,kCAAkC,GAAG,CAAE,WAAW,CAAE;AAE1D,M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IACtCgD,eAAe,EAAGA,eAAiB;IACnCD,gBAAgB,EAAGA,gBAAkB;IACrC9C,GAAG,EAAGA,GAAK;IACX6E,SAAS,EAAGA,SAAW;IACvBhB,SAAS,EAAGA;EAAW,CACvB,CAAC,EACF,IAAAO,MAAA,CAAAC,aAAA,EAACjF,WAAA,CAAAkF,IAAI;IAAA,GAAMJ;EAAU,GACpB,IAAAE,MAAA,CAAAC,aAAA,EAACzF,aAAA,CAAA2F,OAAY;IACZ3E,KAAK,EAAGA,KAAO;IACfoD,SAAS,EAAGA,SAAW;IACvB1C,QAAQ,EAAGA,QAAU;IACrBI,IAAI,EAAGA,IAAM;IACbN,iBAAiB,EAAGA,iBAAmB;IACvCH,UAAU,EAAGA,UAAY;IACzB8E,KAAK,EAAGvE,KAAO;IACfH,OAAO,EAAGA,OAAS;IACnBqB,OAAO,EAAGA,OAAS;IACnBiD,qBAAqB,EAAGA,qBAAuB;IAC/C7E,WAAW,EAAGA,WAAa;IAC3ByC,IAAI,EAAGA,IAAM;IACbvC,GAAG,EAAGA,GAAK;IACXsF,kBAAkB,EAAG,CAAE1E;EAAqB,CAC5C,CACI,CACL,CACF,EACD,IAAAwD,MAAA,CAAAC,aAAA,EAACxF,kBAAA,CAAA0F;EACA;EAAA;IACAgB,SAAS;IACTxB,KAAK,EAAG/D,GAAK;IACb+E,KAAK,EAAGF,SAAW;IACnBW,SAAS,EAAGnE,oBAAsB;IAClCoE,OAAO,EAAGA,CAAA,KAAMnE,uBAAuB,CAAE,KAAM,CAAG;IAClDoE,QAAQ,EAAG7B,SAAW;IACtB8B,eAAe;EAAA,CACf,CACA,CAAC;AAEL,CAAC;AAAC,IAAAC,QAAA,GAEanG,SAAS;AAAAoG,OAAA,CAAAtB,OAAA,GAAAqB,QAAA"}
1
+ {"version":3,"names":["_util","require","_embedControls","_interopRequireDefault","_icons","_embedLoading","_embedPlaceholder","_embedPreview","_embedLinkSettings","_classnames","_i18n","_element","_data","_blockEditor","_coreData","_primitives","_url","PREVIEWABLE_PROVIDERS","NOT_PREVIEWABLE_WP_EMBED_PROVIDERS","WP_EMBED_TYPE","EmbedEdit","props","attributes","align","providerNameSlug","previewable","responsive","url","isSelected","onReplace","setAttributes","insertBlocksAfter","onFocus","clientId","defaultEmbedInfo","title","_x","icon","embedContentIcon","embedInfoByProvider","getEmbedInfoByProvider","wasBlockJustInserted","useSelect","select","blockEditorStore","isEditingURL","setIsEditingURL","useState","showEmbedBottomSheet","setShowEmbedBottomSheet","invalidateResolution","useDispatch","coreStore","preview","fetching","themeSupportsResponsive","cannotEmbed","getEmbedPreview","hasFinishedResolution","isPreviewEmbedFallback","getThemeSupports","embedPreview","hasResolvedEmbedPreview","previewIsFallback","badEmbedProvider","html","type","undefined","wordpressCantEmbed","code","validPreview","getMergedAttributes","getMergedAttributesWithPreview","toggleResponsive","allowResponsive","className","newAllowResponsive","getClassNames","useEffect","newURL","replace","getAuthority","URL","host","toString","mergedAttributes","upgradedBlock","createUpgradedEmbedBlock","onEditURL","useCallback","value","blockClass","removeAspectRatioClasses","blockProps","useBlockProps","_react","createElement","View","default","showEmbedPlaceholder","classFromPreview","classnames","isProviderPreviewable","includes","linkLabel","Fragment","label","onPress","event","fallback","tryAgain","openEmbedLinkSettings","blockSupportsResponsive","isDefaultEmbedInfo","autoFocus","isVisible","onClose","onSubmit","withBottomSheet","_default","exports"],"sources":["@wordpress/block-library/src/embed/edit.native.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport {\n\tcreateUpgradedEmbedBlock,\n\tgetClassNames,\n\tremoveAspectRatioClasses,\n\tfallback,\n\tgetEmbedInfoByProvider,\n\tgetMergedAttributesWithPreview,\n} from './util';\nimport EmbedControls from './embed-controls';\nimport { embedContentIcon } from './icons';\nimport EmbedLoading from './embed-loading';\nimport EmbedPlaceholder from './embed-placeholder';\nimport EmbedPreview from './embed-preview';\nimport EmbedLinkSettings from './embed-link-settings';\n\n/**\n * External dependencies\n */\nimport classnames from 'classnames';\n\n/**\n * WordPress dependencies\n */\nimport { _x } from '@wordpress/i18n';\nimport { useCallback, useState, useEffect } from '@wordpress/element';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport {\n\tuseBlockProps,\n\tstore as blockEditorStore,\n} from '@wordpress/block-editor';\nimport { store as coreStore } from '@wordpress/core-data';\nimport { View } from '@wordpress/primitives';\nimport { getAuthority } from '@wordpress/url';\n\n// The inline preview feature will be released progressible, for this reason\n// the embed will only be considered previewable for the following providers list.\nconst PREVIEWABLE_PROVIDERS = [ 'youtube', 'twitter', 'instagram', 'vimeo' ];\n// Some providers are rendering the inline preview as a WordPress embed and\n// are not supported yet, so we need to disallow them with a fixed providers list.\nconst NOT_PREVIEWABLE_WP_EMBED_PROVIDERS = [ 'pinterest' ];\n\nconst WP_EMBED_TYPE = 'wp-embed';\n\nconst EmbedEdit = ( props ) => {\n\tconst {\n\t\tattributes: { align, providerNameSlug, previewable, responsive, url },\n\t\tattributes,\n\t\tisSelected,\n\t\tonReplace,\n\t\tsetAttributes,\n\t\tinsertBlocksAfter,\n\t\tonFocus,\n\t\tclientId,\n\t} = props;\n\n\tconst defaultEmbedInfo = {\n\t\ttitle: _x( 'Embed', 'block title' ),\n\t\ticon: embedContentIcon,\n\t};\n\tconst embedInfoByProvider = getEmbedInfoByProvider( providerNameSlug );\n\tconst { icon, title } = embedInfoByProvider || defaultEmbedInfo;\n\n\tconst { wasBlockJustInserted } = useSelect(\n\t\t( select ) => ( {\n\t\t\twasBlockJustInserted: select(\n\t\t\t\tblockEditorStore\n\t\t\t).wasBlockJustInserted( clientId, 'inserter_menu' ),\n\t\t} ),\n\t\t[ clientId ]\n\t);\n\tconst [ isEditingURL, setIsEditingURL ] = useState(\n\t\tisSelected && wasBlockJustInserted && ! url\n\t);\n\tconst [ showEmbedBottomSheet, setShowEmbedBottomSheet ] =\n\t\tuseState( isEditingURL );\n\tconst { invalidateResolution } = useDispatch( coreStore );\n\n\tconst { preview, fetching, themeSupportsResponsive, cannotEmbed } =\n\t\tuseSelect(\n\t\t\t( select ) => {\n\t\t\t\tconst {\n\t\t\t\t\tgetEmbedPreview,\n\t\t\t\t\thasFinishedResolution,\n\t\t\t\t\tisPreviewEmbedFallback,\n\t\t\t\t\tgetThemeSupports,\n\t\t\t\t} = select( coreStore );\n\t\t\t\tif ( ! url ) {\n\t\t\t\t\treturn { fetching: false, cannotEmbed: false };\n\t\t\t\t}\n\n\t\t\t\tconst embedPreview = getEmbedPreview( url );\n\t\t\t\tconst hasResolvedEmbedPreview = hasFinishedResolution(\n\t\t\t\t\t'getEmbedPreview',\n\t\t\t\t\t[ url ]\n\t\t\t\t);\n\t\t\t\tconst previewIsFallback = isPreviewEmbedFallback( url );\n\n\t\t\t\t// The external oEmbed provider does not exist. We got no type info and no html.\n\t\t\t\tconst badEmbedProvider =\n\t\t\t\t\tembedPreview?.html === false &&\n\t\t\t\t\tembedPreview?.type === undefined;\n\t\t\t\t// Some WordPress URLs that can't be embedded will cause the API to return\n\t\t\t\t// a valid JSON response with no HTML and `code` set to 404, rather\n\t\t\t\t// than generating a fallback response as other embeds do.\n\t\t\t\tconst wordpressCantEmbed = embedPreview?.code === '404';\n\t\t\t\tconst validPreview =\n\t\t\t\t\t!! embedPreview &&\n\t\t\t\t\t! badEmbedProvider &&\n\t\t\t\t\t! wordpressCantEmbed;\n\n\t\t\t\treturn {\n\t\t\t\t\tpreview: validPreview ? embedPreview : undefined,\n\t\t\t\t\tfetching: ! hasResolvedEmbedPreview,\n\t\t\t\t\tthemeSupportsResponsive:\n\t\t\t\t\t\tgetThemeSupports()[ 'responsive-embeds' ],\n\t\t\t\t\tcannotEmbed: ! validPreview || previewIsFallback,\n\t\t\t\t};\n\t\t\t},\n\t\t\t[ url ]\n\t\t);\n\n\t/**\n\t * Returns the attributes derived from the preview, merged with the current attributes.\n\t *\n\t * @return {Object} Merged attributes.\n\t */\n\tconst getMergedAttributes = () =>\n\t\tgetMergedAttributesWithPreview(\n\t\t\tattributes,\n\t\t\tpreview,\n\t\t\ttitle,\n\t\t\tresponsive\n\t\t);\n\n\tconst toggleResponsive = () => {\n\t\tconst { allowResponsive, className } = attributes;\n\t\tconst { html } = preview;\n\t\tconst newAllowResponsive = ! allowResponsive;\n\n\t\tsetAttributes( {\n\t\t\tallowResponsive: newAllowResponsive,\n\t\t\tclassName: getClassNames(\n\t\t\t\thtml,\n\t\t\t\tclassName,\n\t\t\t\tresponsive && newAllowResponsive\n\t\t\t),\n\t\t} );\n\t};\n\n\tuseEffect( () => {\n\t\tif ( ! preview?.html || ! cannotEmbed || fetching ) {\n\t\t\treturn;\n\t\t}\n\t\t// At this stage, we're not fetching the preview and know it can't be embedded,\n\t\t// so try removing any trailing slash, and resubmit.\n\t\tconst newURL = url.replace( /\\/$/, '' );\n\t\tsetIsEditingURL( false );\n\t\tsetAttributes( { url: newURL } );\n\t}, [ preview?.html, url, cannotEmbed, fetching ] );\n\n\t// Try a different provider in case the embed url is not supported.\n\tuseEffect( () => {\n\t\tif ( ! cannotEmbed || fetching || ! url ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Until X provider is supported in WordPress, as a workaround we use Twitter provider.\n\t\tif ( getAuthority( url ) === 'x.com' ) {\n\t\t\tconst newURL = new URL( url );\n\t\t\tnewURL.host = 'twitter.com';\n\t\t\tsetAttributes( { url: newURL.toString() } );\n\t\t}\n\t}, [ url, cannotEmbed, fetching, setAttributes ] );\n\n\t// Handle incoming preview.\n\tuseEffect( () => {\n\t\tif ( preview && ! isEditingURL ) {\n\t\t\t// When obtaining an incoming preview,\n\t\t\t// we set the attributes derived from the preview data.\n\t\t\tconst mergedAttributes = getMergedAttributes();\n\t\t\tsetAttributes( mergedAttributes );\n\n\t\t\tif ( onReplace ) {\n\t\t\t\tconst upgradedBlock = createUpgradedEmbedBlock(\n\t\t\t\t\tprops,\n\t\t\t\t\tmergedAttributes\n\t\t\t\t);\n\n\t\t\t\tif ( upgradedBlock ) {\n\t\t\t\t\tonReplace( upgradedBlock );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}, [ preview, isEditingURL ] );\n\n\tuseEffect(\n\t\t() => setShowEmbedBottomSheet( isEditingURL ),\n\t\t[ isEditingURL ]\n\t);\n\n\tconst onEditURL = useCallback(\n\t\t( value ) => {\n\t\t\t// If the embed URL was changed, we need to reset the aspect ratio class.\n\t\t\t// To do this we have to remove the existing ratio class so it can be recalculated.\n\t\t\tif ( attributes.url !== value ) {\n\t\t\t\tconst blockClass = removeAspectRatioClasses(\n\t\t\t\t\tattributes.className\n\t\t\t\t);\n\t\t\t\tsetAttributes( { className: blockClass } );\n\t\t\t}\n\n\t\t\t// The order of the following calls is important, we need to update the URL attribute before changing `isEditingURL`,\n\t\t\t// otherwise the side-effect that potentially replaces the block when updating the local state won't use the new URL\n\t\t\t// for creating the new block.\n\t\t\tsetAttributes( { url: value } );\n\t\t\tsetIsEditingURL( false );\n\t\t},\n\t\t[ attributes, setAttributes ]\n\t);\n\n\tconst blockProps = useBlockProps();\n\n\tif ( fetching ) {\n\t\treturn (\n\t\t\t<View { ...blockProps }>\n\t\t\t\t<EmbedLoading />\n\t\t\t</View>\n\t\t);\n\t}\n\n\tconst showEmbedPlaceholder = ! preview || cannotEmbed;\n\n\t// Even though we set attributes that get derived from the preview,\n\t// we don't access them directly because for the initial render,\n\t// the `setAttributes` call will not have taken effect. If we're\n\t// rendering responsive content, setting the responsive classes\n\t// after the preview has been rendered can result in unwanted\n\t// clipping or scrollbars. The `getAttributesFromPreview` function\n\t// that `getMergedAttributes` uses is memoized so that we're not\n\t// calculating them on every render.\n\tconst {\n\t\ttype,\n\t\tallowResponsive,\n\t\tclassName: classFromPreview,\n\t} = getMergedAttributes();\n\tconst className = classnames( classFromPreview, props.className );\n\n\tconst isProviderPreviewable =\n\t\tPREVIEWABLE_PROVIDERS.includes( providerNameSlug ) ||\n\t\t// For WordPress embeds, we enable the inline preview for all its providers\n\t\t// except the ones that are not supported yet.\n\t\t( WP_EMBED_TYPE === type &&\n\t\t\t! NOT_PREVIEWABLE_WP_EMBED_PROVIDERS.includes( providerNameSlug ) );\n\n\tconst linkLabel = WP_EMBED_TYPE === type ? 'WordPress' : title;\n\n\treturn (\n\t\t<>\n\t\t\t{ showEmbedPlaceholder ? (\n\t\t\t\t<>\n\t\t\t\t\t<View { ...blockProps }>\n\t\t\t\t\t\t<EmbedPlaceholder\n\t\t\t\t\t\t\ticon={ icon }\n\t\t\t\t\t\t\tisSelected={ isSelected }\n\t\t\t\t\t\t\tlabel={ title }\n\t\t\t\t\t\t\tonPress={ ( event ) => {\n\t\t\t\t\t\t\t\tonFocus( event );\n\t\t\t\t\t\t\t\tsetIsEditingURL( true );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\tcannotEmbed={ cannotEmbed }\n\t\t\t\t\t\t\tfallback={ () => fallback( url, onReplace ) }\n\t\t\t\t\t\t\ttryAgain={ () => {\n\t\t\t\t\t\t\t\tinvalidateResolution( 'getEmbedPreview', [\n\t\t\t\t\t\t\t\t\turl,\n\t\t\t\t\t\t\t\t] );\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\topenEmbedLinkSettings={ () =>\n\t\t\t\t\t\t\t\tsetShowEmbedBottomSheet( true )\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</View>\n\t\t\t\t</>\n\t\t\t) : (\n\t\t\t\t<>\n\t\t\t\t\t<EmbedControls\n\t\t\t\t\t\tthemeSupportsResponsive={ themeSupportsResponsive }\n\t\t\t\t\t\tblockSupportsResponsive={ responsive }\n\t\t\t\t\t\tallowResponsive={ allowResponsive }\n\t\t\t\t\t\ttoggleResponsive={ toggleResponsive }\n\t\t\t\t\t\turl={ url }\n\t\t\t\t\t\tlinkLabel={ linkLabel }\n\t\t\t\t\t\tonEditURL={ onEditURL }\n\t\t\t\t\t/>\n\t\t\t\t\t<View { ...blockProps }>\n\t\t\t\t\t\t<EmbedPreview\n\t\t\t\t\t\t\talign={ align }\n\t\t\t\t\t\t\tclassName={ className }\n\t\t\t\t\t\t\tclientId={ clientId }\n\t\t\t\t\t\t\ticon={ icon }\n\t\t\t\t\t\t\tinsertBlocksAfter={ insertBlocksAfter }\n\t\t\t\t\t\t\tisSelected={ isSelected }\n\t\t\t\t\t\t\tlabel={ title }\n\t\t\t\t\t\t\tonFocus={ onFocus }\n\t\t\t\t\t\t\tpreview={ preview }\n\t\t\t\t\t\t\tisProviderPreviewable={ isProviderPreviewable }\n\t\t\t\t\t\t\tpreviewable={ previewable }\n\t\t\t\t\t\t\ttype={ type }\n\t\t\t\t\t\t\turl={ url }\n\t\t\t\t\t\t\tisDefaultEmbedInfo={ ! embedInfoByProvider }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</View>\n\t\t\t\t</>\n\t\t\t) }\n\t\t\t<EmbedLinkSettings\n\t\t\t\t// eslint-disable-next-line jsx-a11y/no-autofocus\n\t\t\t\tautoFocus\n\t\t\t\tvalue={ url }\n\t\t\t\tlabel={ linkLabel }\n\t\t\t\tisVisible={ showEmbedBottomSheet }\n\t\t\t\tonClose={ () => setShowEmbedBottomSheet( false ) }\n\t\t\t\tonSubmit={ onEditURL }\n\t\t\t\twithBottomSheet\n\t\t\t/>\n\t\t</>\n\t);\n};\n\nexport default EmbedEdit;\n"],"mappings":";;;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AAQA,IAAAC,cAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,iBAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,aAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,kBAAA,GAAAL,sBAAA,CAAAF,OAAA;AAKA,IAAAQ,WAAA,GAAAN,sBAAA,CAAAF,OAAA;AAKA,IAAAS,KAAA,GAAAT,OAAA;AACA,IAAAU,QAAA,GAAAV,OAAA;AACA,IAAAW,KAAA,GAAAX,OAAA;AACA,IAAAY,YAAA,GAA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,uBAAuB,CAAE,KAAM,CAAG;IAClDoE,QAAQ,EAAG7B,SAAW;IACtB8B,eAAe;EAAA,CACf,CACA,CAAC;AAEL,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAtB,OAAA,GAEa9E,SAAS"}
@@ -38,6 +38,5 @@ const EmbedControls = ({
38
38
  help: getResponsiveHelp,
39
39
  onChange: toggleResponsive
40
40
  }))));
41
- var _default = EmbedControls;
42
- exports.default = _default;
41
+ var _default = exports.default = EmbedControls;
43
42
  //# sourceMappingURL=embed-controls.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_i18n","require","_components","_blockEditor","_icons","getResponsiveHelp","checked","__","EmbedControls","blockSupportsResponsive","showEditButton","themeSupportsResponsive","allowResponsive","toggleResponsive","switchBackToURLInput","_react","createElement","Fragment","BlockControls","ToolbarGroup","ToolbarButton","className","label","icon","edit","onClick","InspectorControls","PanelBody","title","ToggleControl","__nextHasNoMarginBottom","help","onChange","_default","exports","default"],"sources":["@wordpress/block-library/src/embed/embed-controls.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport {\n\tToolbarButton,\n\tPanelBody,\n\tToggleControl,\n\tToolbarGroup,\n} from '@wordpress/components';\nimport { BlockControls, InspectorControls } from '@wordpress/block-editor';\nimport { edit } from '@wordpress/icons';\n\nfunction getResponsiveHelp( checked ) {\n\treturn checked\n\t\t? __(\n\t\t\t\t'This embed will preserve its aspect ratio when the browser is resized.'\n\t\t )\n\t\t: __(\n\t\t\t\t'This embed may not preserve its aspect ratio when the browser is resized.'\n\t\t );\n}\n\nconst EmbedControls = ( {\n\tblockSupportsResponsive,\n\tshowEditButton,\n\tthemeSupportsResponsive,\n\tallowResponsive,\n\ttoggleResponsive,\n\tswitchBackToURLInput,\n} ) => (\n\t<>\n\t\t<BlockControls>\n\t\t\t<ToolbarGroup>\n\t\t\t\t{ showEditButton && (\n\t\t\t\t\t<ToolbarButton\n\t\t\t\t\t\tclassName=\"components-toolbar__control\"\n\t\t\t\t\t\tlabel={ __( 'Edit URL' ) }\n\t\t\t\t\t\ticon={ edit }\n\t\t\t\t\t\tonClick={ switchBackToURLInput }\n\t\t\t\t\t/>\n\t\t\t\t) }\n\t\t\t</ToolbarGroup>\n\t\t</BlockControls>\n\t\t{ themeSupportsResponsive && blockSupportsResponsive && (\n\t\t\t<InspectorControls>\n\t\t\t\t<PanelBody\n\t\t\t\t\ttitle={ __( 'Media settings' ) }\n\t\t\t\t\tclassName=\"blocks-responsive\"\n\t\t\t\t>\n\t\t\t\t\t<ToggleControl\n\t\t\t\t\t\t__nextHasNoMarginBottom\n\t\t\t\t\t\tlabel={ __( 'Resize for smaller devices' ) }\n\t\t\t\t\t\tchecked={ allowResponsive }\n\t\t\t\t\t\thelp={ getResponsiveHelp }\n\t\t\t\t\t\tonChange={ toggleResponsive }\n\t\t\t\t\t/>\n\t\t\t\t</PanelBody>\n\t\t\t</InspectorControls>\n\t\t) }\n\t</>\n);\n\nexport default EmbedControls;\n"],"mappings":";;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAMA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAXA;AACA;AACA;;AAWA,SAASI,iBAAiBA,CAAEC,OAAO,EAAG;EACrC,OAAOA,OAAO,GACX,IAAAC,QAAE,EACF,wEACA,CAAC,GACD,IAAAA,QAAE,EACF,2EACA,CAAC;AACL;AAEA,MAAMC,aAAa,GAAGA,CAAE;EACvBC,uBAAuB;EACvBC,cAAc;EACdC,uBAAuB;EACvBC,eAAe;EACfC,gBAAgB;EAChBC;AACD,CAAC,KACA,IAAAC,MAAA,CAAAC,aAAA,EAAAD,MAAA,CAAAE,QAAA,QACC,IAAAF,MAAA,CAAAC,aAAA,EAACb,YAAA,CAAAe,aAAa,QACb,IAAAH,MAAA,CAAAC,aAAA,EAACd,WAAA,CAAAiB,YAAY,QACVT,cAAc,IACf,IAAAK,MAAA,CAAAC,aAAA,EAACd,WAAA,CAAAkB,aAAa;EACbC,SAAS,EAAC,6BAA6B;EACvCC,KAAK,EAAG,IAAAf,QAAE,EAAE,UAAW,CAAG;EAC1BgB,IAAI,EAAGC,WAAM;EACbC,OAAO,EAAGX;AAAsB,CAChC,CAEW,CACA,CAAC,EACdH,uBAAuB,IAAIF,uBAAuB,IACnD,IAAAM,MAAA,CAAAC,aAAA,EAACb,YAAA,CAAAuB,iBAAiB,QACjB,IAAAX,MAAA,CAAAC,aAAA,EAACd,WAAA,CAAAyB,SAAS;EACTC,KAAK,EAAG,IAAArB,QAAE,EAAE,gBAAiB,CAAG;EAChCc,SAAS,EAAC;AAAmB,GAE7B,IAAAN,MAAA,CAAAC,aAAA,EAACd,WAAA,CAAA2B,aAAa;EACbC,uBAAuB;EACvBR,KAAK,EAAG,IAAAf,QAAE,EAAE,4BAA6B,CAAG;EAC5CD,OAAO,EAAGM,eAAiB;EAC3BmB,IAAI,EAAG1B,iBAAmB;EAC1B2B,QAAQ,EAAGnB;AAAkB,CAC7B,CACS,CACO,CAEnB,CACF;AAAC,IAAAoB,QAAA,GAEazB,aAAa;AAAA0B,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"names":["_i18n","require","_components","_blockEditor","_icons","getResponsiveHelp","checked","__","EmbedControls","blockSupportsResponsive","showEditButton","themeSupportsResponsive","allowResponsive","toggleResponsive","switchBackToURLInput","_react","createElement","Fragment","BlockControls","ToolbarGroup","ToolbarButton","className","label","icon","edit","onClick","InspectorControls","PanelBody","title","ToggleControl","__nextHasNoMarginBottom","help","onChange","_default","exports","default"],"sources":["@wordpress/block-library/src/embed/embed-controls.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport {\n\tToolbarButton,\n\tPanelBody,\n\tToggleControl,\n\tToolbarGroup,\n} from '@wordpress/components';\nimport { BlockControls, InspectorControls } from '@wordpress/block-editor';\nimport { edit } from '@wordpress/icons';\n\nfunction getResponsiveHelp( checked ) {\n\treturn checked\n\t\t? __(\n\t\t\t\t'This embed will preserve its aspect ratio when the browser is resized.'\n\t\t )\n\t\t: __(\n\t\t\t\t'This embed may not preserve its aspect ratio when the browser is resized.'\n\t\t );\n}\n\nconst EmbedControls = ( {\n\tblockSupportsResponsive,\n\tshowEditButton,\n\tthemeSupportsResponsive,\n\tallowResponsive,\n\ttoggleResponsive,\n\tswitchBackToURLInput,\n} ) => (\n\t<>\n\t\t<BlockControls>\n\t\t\t<ToolbarGroup>\n\t\t\t\t{ showEditButton && (\n\t\t\t\t\t<ToolbarButton\n\t\t\t\t\t\tclassName=\"components-toolbar__control\"\n\t\t\t\t\t\tlabel={ __( 'Edit URL' ) }\n\t\t\t\t\t\ticon={ edit }\n\t\t\t\t\t\tonClick={ switchBackToURLInput }\n\t\t\t\t\t/>\n\t\t\t\t) }\n\t\t\t</ToolbarGroup>\n\t\t</BlockControls>\n\t\t{ themeSupportsResponsive && blockSupportsResponsive && (\n\t\t\t<InspectorControls>\n\t\t\t\t<PanelBody\n\t\t\t\t\ttitle={ __( 'Media settings' ) }\n\t\t\t\t\tclassName=\"blocks-responsive\"\n\t\t\t\t>\n\t\t\t\t\t<ToggleControl\n\t\t\t\t\t\t__nextHasNoMarginBottom\n\t\t\t\t\t\tlabel={ __( 'Resize for smaller devices' ) }\n\t\t\t\t\t\tchecked={ allowResponsive }\n\t\t\t\t\t\thelp={ getResponsiveHelp }\n\t\t\t\t\t\tonChange={ toggleResponsive }\n\t\t\t\t\t/>\n\t\t\t\t</PanelBody>\n\t\t\t</InspectorControls>\n\t\t) }\n\t</>\n);\n\nexport default EmbedControls;\n"],"mappings":";;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAMA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAXA;AACA;AACA;;AAWA,SAASI,iBAAiBA,CAAEC,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_default = EmbedControls;
59
- exports.default = _default;
58
+ var _default = exports.default = EmbedControls;
60
59
  //# sourceMappingURL=embed-controls.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_embedLinkSettings","_interopRequireDefault","require","_i18n","_components","_blockEditor","_data","_editPost","getResponsiveHelp","checked","__","EmbedControls","blockSupportsResponsive","themeSupportsResponsive","allowResponsive","toggleResponsive","url","linkLabel","onEditURL","closeGeneralSidebar","closeSettingsBottomSheet","useDispatch","editPostStore","_react","createElement","Fragment","InspectorControls","PanelBody","title","ToggleControl","label","help","onChange","default","value","onSubmit","_default","exports"],"sources":["@wordpress/block-library/src/embed/embed-controls.native.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport EmbedLinkSettings from './embed-link-settings';\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { PanelBody, ToggleControl } from '@wordpress/components';\nimport { InspectorControls } from '@wordpress/block-editor';\nimport { useDispatch } from '@wordpress/data';\n// eslint-disable-next-line no-restricted-imports\nimport { store as editPostStore } from '@wordpress/edit-post';\n\nfunction getResponsiveHelp( checked ) {\n\treturn checked\n\t\t? __(\n\t\t\t\t'This embed will preserve its aspect ratio when the browser is resized.'\n\t\t )\n\t\t: __(\n\t\t\t\t'This embed may not preserve its aspect ratio when the browser is resized.'\n\t\t );\n}\n\nconst EmbedControls = ( {\n\tblockSupportsResponsive,\n\tthemeSupportsResponsive,\n\tallowResponsive,\n\ttoggleResponsive,\n\turl,\n\tlinkLabel,\n\tonEditURL,\n} ) => {\n\tconst { closeGeneralSidebar: closeSettingsBottomSheet } =\n\t\tuseDispatch( editPostStore );\n\n\treturn (\n\t\t<>\n\t\t\t<InspectorControls>\n\t\t\t\t{ themeSupportsResponsive && blockSupportsResponsive && (\n\t\t\t\t\t<PanelBody title={ __( 'Media settings' ) }>\n\t\t\t\t\t\t<ToggleControl\n\t\t\t\t\t\t\tlabel={ __( 'Resize for smaller devices' ) }\n\t\t\t\t\t\t\tchecked={ allowResponsive }\n\t\t\t\t\t\t\thelp={ getResponsiveHelp }\n\t\t\t\t\t\t\tonChange={ toggleResponsive }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</PanelBody>\n\t\t\t\t) }\n\t\t\t\t<PanelBody title={ __( 'Link settings' ) }>\n\t\t\t\t\t<EmbedLinkSettings\n\t\t\t\t\t\tvalue={ url }\n\t\t\t\t\t\tlabel={ linkLabel }\n\t\t\t\t\t\tonSubmit={ ( value ) => {\n\t\t\t\t\t\t\tcloseSettingsBottomSheet();\n\t\t\t\t\t\t\tonEditURL( value );\n\t\t\t\t\t\t} }\n\t\t\t\t\t/>\n\t\t\t\t</PanelBody>\n\t\t\t</InspectorControls>\n\t\t</>\n\t);\n};\n\nexport default EmbedControls;\n"],"mappings":";;;;;;;;AAGA,IAAAA,kBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAIA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,KAAA,GAAAJ,OAAA;AAEA,IAAAK,SAAA,GAAAL,OAAA;AAZA;AACA;AACA;;AAEA;AACA;AACA;;AAKA;;AAGA,SAASM,iBAAiBA,CAAEC,OAAO,EAAG;EACrC,OAAOA,OAAO,GACX,IAAAC,QAAE,EACF,wEACA,CAAC,GACD,IAAAA,QAAE,EACF,2EACA,CAAC;AACL;AAEA,MAAMC,aAAa,GAAGA,CAAE;EACvBC,uBAAuB;EACvBC,uBAAuB;EACvBC,eAAe;EACfC,gBAAgB;EAChBC,GAAG;EACHC,SAAS;EACTC;AACD,CAAC,KAAM;EACN,MAAM;IAAEC,mBAAmB,EAAEC;EAAyB,CAAC,GACtD,IAAAC,iBAAW,EAAEC,eAAc,CAAC;EAE7B,OACC,IAAAC,MAAA,CAAAC,aAAA,EAAAD,MAAA,CAAAE,QAAA,QACC,IAAAF,MAAA,CAAAC,aAAA,EAACnB,YAAA,CAAAqB,iBAAiB,QACfb,uBAAuB,IAAID,uBAAuB,IACnD,IAAAW,MAAA,CAAAC,aAAA,EAACpB,WAAA,CAAAuB,SAAS;IAACC,KAAK,EAAG,IAAAlB,QAAE,EAAE,gBAAiB;EAAG,GAC1C,IAAAa,MAAA,CAAAC,aAAA,EAACpB,WAAA,CAAAyB,aAAa;IACbC,KAAK,EAAG,IAAApB,QAAE,EAAE,4BAA6B,CAAG;IAC5CD,OAAO,EAAGK,eAAiB;IAC3BiB,IAAI,EAAGvB,iBAAmB;IAC1BwB,QAAQ,EAAGjB;EAAkB,CAC7B,CACS,CACX,EACD,IAAAQ,MAAA,CAAAC,aAAA,EAACpB,WAAA,CAAAuB,SAAS;IAACC,KAAK,EAAG,IAAAlB,QAAE,EAAE,eAAgB;EAAG,GACzC,IAAAa,MAAA,CAAAC,aAAA,EAACxB,kBAAA,CAAAiC,OAAiB;IACjBC,KAAK,EAAGlB,GAAK;IACbc,KAAK,EAAGb,SAAW;IACnBkB,QAAQ,EAAKD,KAAK,IAAM;MACvBd,wBAAwB,CAAC,CAAC;MAC1BF,SAAS,CAAEgB,KAAM,CAAC;IACnB;EAAG,CACH,CACS,CACO,CAClB,CAAC;AAEL,CAAC;AAAC,IAAAE,QAAA,GAEazB,aAAa;AAAA0B,OAAA,CAAAJ,OAAA,GAAAG,QAAA"}
1
+ {"version":3,"names":["_embedLinkSettings","_interopRequireDefault","require","_i18n","_components","_blockEditor","_data","_editPost","getResponsiveHelp","checked","__","EmbedControls","blockSupportsResponsive","themeSupportsResponsive","allowResponsive","toggleResponsive","url","linkLabel","onEditURL","closeGeneralSidebar","closeSettingsBottomSheet","useDispatch","editPostStore","_react","createElement","Fragment","InspectorControls","PanelBody","title","ToggleControl","label","help","onChange","default","value","onSubmit","_default","exports"],"sources":["@wordpress/block-library/src/embed/embed-controls.native.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport EmbedLinkSettings from './embed-link-settings';\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { PanelBody, ToggleControl } from '@wordpress/components';\nimport { InspectorControls } from '@wordpress/block-editor';\nimport { useDispatch } from '@wordpress/data';\n// eslint-disable-next-line no-restricted-imports\nimport { store as editPostStore } from '@wordpress/edit-post';\n\nfunction getResponsiveHelp( checked ) {\n\treturn checked\n\t\t? __(\n\t\t\t\t'This embed will preserve its aspect ratio when the browser is resized.'\n\t\t )\n\t\t: __(\n\t\t\t\t'This embed may not preserve its aspect ratio when the browser is resized.'\n\t\t );\n}\n\nconst EmbedControls = ( {\n\tblockSupportsResponsive,\n\tthemeSupportsResponsive,\n\tallowResponsive,\n\ttoggleResponsive,\n\turl,\n\tlinkLabel,\n\tonEditURL,\n} ) => {\n\tconst { closeGeneralSidebar: closeSettingsBottomSheet } =\n\t\tuseDispatch( editPostStore );\n\n\treturn (\n\t\t<>\n\t\t\t<InspectorControls>\n\t\t\t\t{ themeSupportsResponsive && blockSupportsResponsive && (\n\t\t\t\t\t<PanelBody title={ __( 'Media settings' ) }>\n\t\t\t\t\t\t<ToggleControl\n\t\t\t\t\t\t\tlabel={ __( 'Resize for smaller devices' ) }\n\t\t\t\t\t\t\tchecked={ allowResponsive }\n\t\t\t\t\t\t\thelp={ getResponsiveHelp }\n\t\t\t\t\t\t\tonChange={ toggleResponsive }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</PanelBody>\n\t\t\t\t) }\n\t\t\t\t<PanelBody title={ __( 'Link settings' ) }>\n\t\t\t\t\t<EmbedLinkSettings\n\t\t\t\t\t\tvalue={ url }\n\t\t\t\t\t\tlabel={ linkLabel }\n\t\t\t\t\t\tonSubmit={ ( value ) => {\n\t\t\t\t\t\t\tcloseSettingsBottomSheet();\n\t\t\t\t\t\t\tonEditURL( value );\n\t\t\t\t\t\t} }\n\t\t\t\t\t/>\n\t\t\t\t</PanelBody>\n\t\t\t</InspectorControls>\n\t\t</>\n\t);\n};\n\nexport default EmbedControls;\n"],"mappings":";;;;;;;;AAGA,IAAAA,kBAAA,GAAAC,sBAAA,CAAAC,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B;IACjBC,KAAK,EAAGlB,GAAK;IACbc,KAAK,EAAGb,SAAW;IACnBkB,QAAQ,EAAKD,KAAK,IAAM;MACvBd,wBAAwB,CAAC,CAAC;MAC1BF,SAAS,CAAEgB,KAAM,CAAC;IACnB;EAAG,CACH,CACS,CACO,CAClB,CAAC;AAEL,CAAC;AAAC,IAAAE,QAAA,GAAAC,OAAA,CAAAJ,OAAA,GAEatB,aAAa"}
@@ -87,6 +87,5 @@ const EmbedLinkSettings = ({
87
87
  showIcon: true
88
88
  });
89
89
  };
90
- var _default = EmbedLinkSettings;
91
- exports.default = _default;
90
+ var _default = exports.default = EmbedLinkSettings;
92
91
  //# sourceMappingURL=embed-link-settings.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_i18n","require","_components","_url","_data","_notices","_element","EmbedLinkSettings","autoFocus","value","label","isVisible","onClose","onSubmit","withBottomSheet","url","useRef","inputURL","setInputURL","useState","createErrorNotice","useDispatch","noticesStore","linkSettingsOptions","sprintf","__","placeholder","autoFill","footer","_react","createElement","FooterMessageLink","href","separatorType","onDismiss","useCallback","isURL","current","useEffect","performOnCloseOperations","onSetAttributes","attributes","LinkSettingsNavigation","setAttributes","options","showIcon","_default","exports","default"],"sources":["@wordpress/block-library/src/embed/embed-link-settings.native.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __, sprintf } from '@wordpress/i18n';\nimport {\n\tLinkSettingsNavigation,\n\tFooterMessageLink,\n} from '@wordpress/components';\nimport { isURL } from '@wordpress/url';\nimport { useDispatch } from '@wordpress/data';\nimport { store as noticesStore } from '@wordpress/notices';\nimport { useCallback, useEffect, useRef, useState } from '@wordpress/element';\n\nconst EmbedLinkSettings = ( {\n\tautoFocus,\n\tvalue,\n\tlabel,\n\tisVisible,\n\tonClose,\n\tonSubmit,\n\twithBottomSheet,\n} ) => {\n\tconst url = useRef( value );\n\tconst [ inputURL, setInputURL ] = useState( value );\n\tconst { createErrorNotice } = useDispatch( noticesStore );\n\n\tconst linkSettingsOptions = {\n\t\turl: {\n\t\t\tlabel: sprintf(\n\t\t\t\t// translators: %s: embed block variant's label e.g: \"Twitter\".\n\t\t\t\t__( '%s link' ),\n\t\t\t\tlabel\n\t\t\t),\n\t\t\tplaceholder: __( 'Add link' ),\n\t\t\tautoFocus,\n\t\t\tautoFill: true,\n\t\t},\n\t\tfooter: {\n\t\t\tlabel: (\n\t\t\t\t<FooterMessageLink\n\t\t\t\t\thref={ __(\n\t\t\t\t\t\t'https://wordpress.org/documentation/article/embeds/'\n\t\t\t\t\t) }\n\t\t\t\t\tvalue={ __( 'Learn more about embeds' ) }\n\t\t\t\t/>\n\t\t\t),\n\t\t\tseparatorType: 'topFullWidth',\n\t\t},\n\t};\n\n\tconst onDismiss = useCallback( () => {\n\t\tif ( ! isURL( url.current ) && url.current !== '' ) {\n\t\t\tcreateErrorNotice( __( 'Invalid URL. Please enter a valid URL.' ) );\n\t\t\t// If the URL was already defined, we submit it to stop showing the embed placeholder.\n\t\t\tonSubmit( value );\n\t\t\treturn;\n\t\t}\n\t\tonSubmit( url.current );\n\t}, [ onSubmit, value ] );\n\n\tuseEffect( () => {\n\t\turl.current = value;\n\t\tsetInputURL( value );\n\t}, [ value ] );\n\n\t/**\n\t * If the Embed Bottom Sheet component does not utilize a bottom sheet then the onDismiss action is not\n\t * called. Here we are wiring the onDismiss to the onClose callback that gets triggered when input is submitted.\n\t */\n\tconst performOnCloseOperations = useCallback( () => {\n\t\tif ( onClose ) {\n\t\t\tonClose();\n\t\t}\n\n\t\tif ( ! withBottomSheet ) {\n\t\t\tonDismiss();\n\t\t}\n\t}, [ onClose ] );\n\n\tconst onSetAttributes = useCallback( ( attributes ) => {\n\t\turl.current = attributes.url;\n\t\tsetInputURL( attributes.url );\n\t}, [] );\n\n\treturn (\n\t\t<LinkSettingsNavigation\n\t\t\tisVisible={ isVisible }\n\t\t\turl={ inputURL }\n\t\t\tonClose={ performOnCloseOperations }\n\t\t\tonDismiss={ onDismiss }\n\t\t\tsetAttributes={ onSetAttributes }\n\t\t\toptions={ linkSettingsOptions }\n\t\t\twithBottomSheet={ withBottomSheet }\n\t\t\tshowIcon\n\t\t/>\n\t);\n};\n\nexport default EmbedLinkSettings;\n"],"mappings":";;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAIA,IAAAE,IAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAXA;AACA;AACA;;AAWA,MAAMM,iBAAiB,GAAGA,CAAE;EAC3BC,SAAS;EACTC,KAAK;EACLC,KAAK;EACLC,SAAS;EACTC,OAAO;EACPC,QAAQ;EACRC;AACD,CAAC,KAAM;EACN,MAAMC,GAAG,GAAG,IAAAC,eAAM,EAAEP,KAAM,CAAC;EAC3B,MAAM,CAAEQ,QAAQ,EAAEC,WAAW,CAAE,GAAG,IAAAC,iBAAQ,EAAEV,KAAM,CAAC;EACnD,MAAM;IAAEW;EAAkB,CAAC,GAAG,IAAAC,iBAAW,EAAEC,cAAa,CAAC;EAEzD,MAAMC,mBAAmB,GAAG;IAC3BR,GAAG,EAAE;MACJL,KAAK,EAAE,IAAAc,aAAO;MACb;MACA,IAAAC,QAAE,EAAE,SAAU,CAAC,EACff,KACD,CAAC;MACDgB,WAAW,EAAE,IAAAD,QAAE,EAAE,UAAW,CAAC;MAC7BjB,SAAS;MACTmB,QAAQ,EAAE;IACX,CAAC;IACDC,MAAM,EAAE;MACPlB,KAAK,EACJ,IAAAmB,MAAA,CAAAC,aAAA,EAAC5B,WAAA,CAAA6B,iBAAiB;QACjBC,IAAI,EAAG,IAAAP,QAAE,EACR,qDACD,CAAG;QACHhB,KAAK,EAAG,IAAAgB,QAAE,EAAE,yBAA0B;MAAG,CACzC,CACD;MACDQ,aAAa,EAAE;IAChB;EACD,CAAC;EAED,MAAMC,SAAS,GAAG,IAAAC,oBAAW,EAAE,M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;AAAC,IAAAC,QAAA,GAEavC,iBAAiB;AAAAwC,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"names":["_i18n","require","_components","_url","_data","_notices","_element","EmbedLinkSettings","autoFocus","value","label","isVisible","onClose","onSubmit","withBottomSheet","url","useRef","inputURL","setInputURL","useState","createErrorNotice","useDispatch","noticesStore","linkSettingsOptions","sprintf","__","placeholder","autoFill","footer","_react","createElement","FooterMessageLink","href","separatorType","onDismiss","useCallback","isURL","current","useEffect","performOnCloseOperations","onSetAttributes","attributes","LinkSettingsNavigation","setAttributes","options","showIcon","_default","exports","default"],"sources":["@wordpress/block-library/src/embed/embed-link-settings.native.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __, sprintf } from '@wordpress/i18n';\nimport {\n\tLinkSettingsNavigation,\n\tFooterMessageLink,\n} from '@wordpress/components';\nimport { isURL } from '@wordpress/url';\nimport { useDispatch } from '@wordpress/data';\nimport { store as noticesStore } from '@wordpress/notices';\nimport { useCallback, useEffect, useRef, useState } from '@wordpress/element';\n\nconst EmbedLinkSettings = ( {\n\tautoFocus,\n\tvalue,\n\tlabel,\n\tisVisible,\n\tonClose,\n\tonSubmit,\n\twithBottomSheet,\n} ) => {\n\tconst url = useRef( value );\n\tconst [ inputURL, setInputURL ] = useState( value );\n\tconst { createErrorNotice } = useDispatch( noticesStore );\n\n\tconst linkSettingsOptions = {\n\t\turl: {\n\t\t\tlabel: sprintf(\n\t\t\t\t// translators: %s: embed block variant's label e.g: \"Twitter\".\n\t\t\t\t__( '%s link' ),\n\t\t\t\tlabel\n\t\t\t),\n\t\t\tplaceholder: __( 'Add link' ),\n\t\t\tautoFocus,\n\t\t\tautoFill: true,\n\t\t},\n\t\tfooter: {\n\t\t\tlabel: (\n\t\t\t\t<FooterMessageLink\n\t\t\t\t\thref={ __(\n\t\t\t\t\t\t'https://wordpress.org/documentation/article/embeds/'\n\t\t\t\t\t) }\n\t\t\t\t\tvalue={ __( 'Learn more about embeds' ) }\n\t\t\t\t/>\n\t\t\t),\n\t\t\tseparatorType: 'topFullWidth',\n\t\t},\n\t};\n\n\tconst onDismiss = useCallback( () => {\n\t\tif ( ! isURL( url.current ) && url.current !== '' ) {\n\t\t\tcreateErrorNotice( __( 'Invalid URL. Please enter a valid URL.' ) );\n\t\t\t// If the URL was already defined, we submit it to stop showing the embed placeholder.\n\t\t\tonSubmit( value );\n\t\t\treturn;\n\t\t}\n\t\tonSubmit( url.current );\n\t}, [ onSubmit, value ] );\n\n\tuseEffect( () => {\n\t\turl.current = value;\n\t\tsetInputURL( value );\n\t}, [ value ] );\n\n\t/**\n\t * If the Embed Bottom Sheet component does not utilize a bottom sheet then the onDismiss action is not\n\t * called. Here we are wiring the onDismiss to the onClose callback that gets triggered when input is submitted.\n\t */\n\tconst performOnCloseOperations = useCallback( () => {\n\t\tif ( onClose ) {\n\t\t\tonClose();\n\t\t}\n\n\t\tif ( ! withBottomSheet ) {\n\t\t\tonDismiss();\n\t\t}\n\t}, [ onClose ] );\n\n\tconst onSetAttributes = useCallback( ( attributes ) => {\n\t\turl.current = attributes.url;\n\t\tsetInputURL( attributes.url );\n\t}, [] );\n\n\treturn (\n\t\t<LinkSettingsNavigation\n\t\t\tisVisible={ isVisible }\n\t\t\turl={ inputURL }\n\t\t\tonClose={ performOnCloseOperations }\n\t\t\tonDismiss={ onDismiss }\n\t\t\tsetAttributes={ onSetAttributes }\n\t\t\toptions={ linkSettingsOptions }\n\t\t\twithBottomSheet={ withBottomSheet }\n\t\t\tshowIcon\n\t\t/>\n\t);\n};\n\nexport default EmbedLinkSettings;\n"],"mappings":";;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAIA,IAAAE,IAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAXA;AACA;AACA;;AAWA,MAAMM,iBAA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BvB,GAAG,CAACsB,OAAO,GAAG5B,KAAK;IACnBS,WAAW,CAAET,KAAM,CAAC;EACrB,CAAC,EAAE,CAAEA,KAAK,CAAG,CAAC;;EAEd;AACD;AACA;AACA;EACC,MAAM8B,wBAAwB,GAAG,IAAAJ,oBAAW,EAAE,MAAM;IACnD,IAAKvB,OAAO,EAAG;MACdA,OAAO,CAAC,CAAC;IACV;IAEA,IAAK,CAAEE,eAAe,EAAG;MACxBoB,SAAS,CAAC,CAAC;IACZ;EACD,CAAC,EAAE,CAAEtB,OAAO,CAAG,CAAC;EAEhB,MAAM4B,eAAe,GAAG,IAAAL,oBAAW,EAAIM,UAAU,IAAM;IACtD1B,GAAG,CAACsB,OAAO,GAAGI,UAAU,CAAC1B,GAAG;IAC5BG,WAAW,CAAEuB,UAAU,CAAC1B,GAAI,CAAC;EAC9B,CAAC,EAAE,EAAG,CAAC;EAEP,OACC,IAAAc,MAAA,CAAAC,aAAA,EAAC5B,WAAA,CAAAwC,sBAAsB;IACtB/B,SAAS,EAAGA,SAAW;IACvBI,GAAG,EAAGE,QAAU;IAChBL,OAAO,EAAG2B,wBAA0B;IACpCL,SAAS,EAAGA,SAAW;IACvBS,aAAa,EAAGH,eAAiB;IACjCI,OAAO,EAAGrB,mBAAqB;IAC/BT,eAAe,EAAGA,eAAiB;IACnC+B,QAAQ;EAAA,CACR,CAAC;AAEJ,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEazC,iBAAiB"}
@@ -13,6 +13,5 @@ var _components = require("@wordpress/components");
13
13
  const EmbedLoading = () => (0, _react.createElement)("div", {
14
14
  className: "wp-block-embed is-loading"
15
15
  }, (0, _react.createElement)(_components.Spinner, null));
16
- var _default = EmbedLoading;
17
- exports.default = _default;
16
+ var _default = exports.default = EmbedLoading;
18
17
  //# sourceMappingURL=embed-loading.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_components","require","EmbedLoading","_react","createElement","className","Spinner","_default","exports","default"],"sources":["@wordpress/block-library/src/embed/embed-loading.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { Spinner } from '@wordpress/components';\n\nconst EmbedLoading = () => (\n\t<div className=\"wp-block-embed is-loading\">\n\t\t<Spinner />\n\t</div>\n);\n\nexport default EmbedLoading;\n"],"mappings":";;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AAHA;AACA;AACA;;AAGA,MAAMC,YAAY,GAAGA,CAAA,KACpB,IAAAC,MAAA,CAAAC,aAAA;EAAKC,SAAS,EAAC;AAA2B,GACzC,IAAAF,MAAA,CAAAC,aAAA,EAACJ,WAAA,CAAAM,OAAO,MAAE,CACN,CACL;AAAC,IAAAC,QAAA,GAEaL,YAAY;AAAAM,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"names":["_components","require","EmbedLoading","_react","createElement","className","Spinner","_default","exports","default"],"sources":["@wordpress/block-library/src/embed/embed-loading.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { Spinner } from '@wordpress/components';\n\nconst EmbedLoading = () => (\n\t<div className=\"wp-block-embed is-loading\">\n\t\t<Spinner />\n\t</div>\n);\n\nexport default EmbedLoading;\n"],"mappings":";;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AAHA;AACA;AACA;;AAGA,MAAMC,YAAY,GAAGA,CAAA,KACpB,IAAAC,MAAA,CAAAC,aAAA;EAAKC,SAAS,EAAC;AAA2B,GACzC,IAAAF,MAAA,CAAAC,aAAA,EAACJ,WAAA,CAAAM,OAAO,MAAE,CACN,CACL;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEaP,YAAY"}
@@ -29,6 +29,5 @@ const EmbedLoading = () => {
29
29
  animating: true
30
30
  }));
31
31
  };
32
- var _default = EmbedLoading;
33
- exports.default = _default;
32
+ var _default = exports.default = EmbedLoading;
34
33
  //# sourceMappingURL=embed-loading.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_compose","_styles","_interopRequireDefault","EmbedLoading","style","usePreferredColorSchemeStyle","styles","_react","createElement","View","ActivityIndicator","animating","_default","exports","default"],"sources":["@wordpress/block-library/src/embed/embed-loading.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { ActivityIndicator, View } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport { usePreferredColorSchemeStyle } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport styles from './styles.scss';\n\nconst EmbedLoading = () => {\n\tconst style = usePreferredColorSchemeStyle(\n\t\tstyles[ 'embed-preview__loading' ],\n\t\tstyles[ 'embed-preview__loading--dark' ]\n\t);\n\n\treturn (\n\t\t<View style={ style }>\n\t\t\t<ActivityIndicator animating />\n\t\t</View>\n\t);\n};\n\nexport default EmbedLoading;\n"],"mappings":";;;;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAAC,QAAA,GAAAD,OAAA;AAKA,IAAAE,OAAA,GAAAC,sBAAA,CAAAH,OAAA;AAbA;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;;AAGA,MAAMI,YAAY,GAAGA,CAAA,KAAM;EAC1B,MAAMC,KAAK,GAAG,IAAAC,qCAA4B,EACzCC,eAAM,CAAE,wBAAwB,CAAE,EAClCA,eAAM,CAAE,8BAA8B,CACvC,CAAC;EAED,OACC,IAAAC,MAAA,CAAAC,aAAA,EAACV,YAAA,CAAAW,IAAI;IAACL,KAAK,EAAGA;EAAO,GACpB,IAAAG,MAAA,CAAAC,aAAA,EAACV,YAAA,CAAAY,iBAAiB;IAACC,SAAS;EAAA,CAAE,CACzB,CAAC;AAET,CAAC;AAAC,IAAAC,QAAA,GAEaT,YAAY;AAAAU,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"names":["_reactNative","require","_compose","_styles","_interopRequireDefault","EmbedLoading","style","usePreferredColorSchemeStyle","styles","_react","createElement","View","ActivityIndicator","animating","_default","exports","default"],"sources":["@wordpress/block-library/src/embed/embed-loading.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { ActivityIndicator, View } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport { usePreferredColorSchemeStyle } from '@wordpress/compose';\n\n/**\n * Internal dependencies\n */\nimport styles from './styles.scss';\n\nconst EmbedLoading = () => {\n\tconst style = usePreferredColorSchemeStyle(\n\t\tstyles[ 'embed-preview__loading' ],\n\t\tstyles[ 'embed-preview__loading--dark' ]\n\t);\n\n\treturn (\n\t\t<View style={ style }>\n\t\t\t<ActivityIndicator animating />\n\t\t</View>\n\t);\n};\n\nexport default EmbedLoading;\n"],"mappings":";;;;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAAC,QAAA,GAAAD,OAAA;AAKA,IAAAE,OAAA,GAAAC,sBAAA,CAAAH,OAAA;AAbA;AACA;AACA;;AAGA;AACA;AACA;;AAGA;AACA;AACA;;AAGA,MAAMI,YAAY,GAAGA,CAAA,KAAM;EAC1B,MAAMC,KAAK,GAAG,IAAAC,qCAA4B,EACzCC,eAAM,CAAE,wBAAwB,CAAE,EAClCA,eAAM,CAAE,8BAA8B,CACvC,CAAC;EAED,OACC,IAAAC,MAAA,CAAAC,aAAA,EAACV,YAAA,CAAAW,IAAI;IAACL,KAAK,EAAGA;EAAO,GACpB,IAAAG,MAAA,CAAAC,aAAA,EAACV,YAAA,CAAAY,iBAAiB;IAACC,SAAS;EAAA,CAAE,CACzB,CAAC;AAET,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEaX,YAAY"}
@@ -151,6 +151,5 @@ const EmbedNoPreview = ({
151
151
  style: labelStyle
152
152
  }, (0, _i18n.__)('No preview available'))));
153
153
  };
154
- var _default = EmbedNoPreview;
155
- exports.default = _default;
154
+ var _default = exports.default = EmbedNoPreview;
156
155
  //# sourceMappingURL=embed-no-preview.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_primitives","_i18n","_element","_compose","_reactNativeBridge","_data","_editor","_components","_icons","_blockEditor","_styles","_interopRequireDefault","EmbedNoPreview","label","icon","isSelected","onPress","previewable","isDefaultEmbedInfo","shouldRequestReview","useRef","isSheetVisible","setIsSheetVisible","useState","postType","useSelect","select","editorStore","getEditedPostAttribute","containerStyle","usePreferredColorSchemeStyle","styles","embed__container","labelStyle","embed__label","descriptionStyle","embed__description","helpIconStyle","sheetIconStyle","sheetTitleStyle","sheetDescriptionStyle","sheetButtonStyle","previewButtonA11yHint","__","previewButtonText","comingSoonDescription","sprintf","onOpenSheet","onCloseSheet","onDismissSheet","current","requestPreview","onPressContainer","onPressHelp","embedNoProviderPreview","_react","createElement","Fragment","TouchableWithoutFeedback","accessibilityRole","accessibilityHint","disabled","View","style","BlockIcon","Text","embed__action","toUpperCase","TouchableOpacity","accessibilityLabel","Icon","help","fill","size","width","BottomSheet","isVisible","hideHeader","onDismiss","onClose","testID","TextControl","separatorType","_default","exports","default"],"sources":["@wordpress/block-library/src/embed/embed-no-preview.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { TouchableOpacity, TouchableWithoutFeedback, Text } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport { View } from '@wordpress/primitives';\n\nimport { __, sprintf } from '@wordpress/i18n';\nimport { useRef, useState } from '@wordpress/element';\nimport { usePreferredColorSchemeStyle } from '@wordpress/compose';\nimport { requestPreview } from '@wordpress/react-native-bridge';\nimport { useSelect } from '@wordpress/data';\nimport { store as editorStore } from '@wordpress/editor';\nimport { BottomSheet, Icon, TextControl } from '@wordpress/components';\nimport { help } from '@wordpress/icons';\nimport { BlockIcon } from '@wordpress/block-editor';\n\n/**\n * Internal dependencies\n */\nimport styles from './styles.scss';\n\nconst EmbedNoPreview = ( {\n\tlabel,\n\ticon,\n\tisSelected,\n\tonPress,\n\tpreviewable,\n\tisDefaultEmbedInfo,\n} ) => {\n\tconst shouldRequestReview = useRef( false );\n\tconst [ isSheetVisible, setIsSheetVisible ] = useState( false );\n\n\tconst { postType } = useSelect( ( select ) => ( {\n\t\tpostType: select( editorStore ).getEditedPostAttribute( 'type' ),\n\t} ) );\n\n\tconst containerStyle = usePreferredColorSchemeStyle(\n\t\tstyles.embed__container,\n\t\tstyles[ 'embed__container--dark' ]\n\t);\n\tconst labelStyle = usePreferredColorSchemeStyle(\n\t\tstyles.embed__label,\n\t\tstyles[ 'embed__label--dark' ]\n\t);\n\tconst descriptionStyle = usePreferredColorSchemeStyle(\n\t\tstyles.embed__description,\n\t\tstyles[ 'embed__description--dark' ]\n\t);\n\tconst helpIconStyle = usePreferredColorSchemeStyle(\n\t\tstyles[ 'embed-no-preview__help-icon' ],\n\t\tstyles[ 'embed-no-preview__help-icon--dark' ]\n\t);\n\n\tconst sheetIconStyle = usePreferredColorSchemeStyle(\n\t\tstyles[ 'embed-no-preview__sheet-icon' ],\n\t\tstyles[ 'embed-no-preview__sheet-icon--dark' ]\n\t);\n\tconst sheetTitleStyle = usePreferredColorSchemeStyle(\n\t\tstyles[ 'embed-no-preview__sheet-title' ],\n\t\tstyles[ 'embed-no-preview__sheet-title--dark' ]\n\t);\n\tconst sheetDescriptionStyle = usePreferredColorSchemeStyle(\n\t\tstyles[ 'embed-no-preview__sheet-description' ],\n\t\tstyles[ 'embed-no-preview__sheet-description--dark' ]\n\t);\n\tconst sheetButtonStyle = usePreferredColorSchemeStyle(\n\t\tstyles[ 'embed-no-preview__sheet-button' ],\n\t\tstyles[ 'embed-no-preview__sheet-button--dark' ]\n\t);\n\n\tconst previewButtonA11yHint =\n\t\tpostType === 'page'\n\t\t\t? __( 'Double tap to preview page.' )\n\t\t\t: __( 'Double tap to preview post.' );\n\tconst previewButtonText =\n\t\tpostType === 'page' ? __( 'Preview page' ) : __( 'Preview post' );\n\tconst comingSoonDescription =\n\t\tpostType === 'page'\n\t\t\t? sprintf(\n\t\t\t\t\t// translators: %s: embed block variant's label e.g: \"Twitter\".\n\t\t\t\t\t__(\n\t\t\t\t\t\t'We’re working hard on adding support for %s previews. In the meantime, you can preview the embedded content on the page.'\n\t\t\t\t\t),\n\t\t\t\t\tlabel\n\t\t\t )\n\t\t\t: sprintf(\n\t\t\t\t\t// translators: %s: embed block variant's label e.g: \"Twitter\".\n\t\t\t\t\t__(\n\t\t\t\t\t\t'We’re working hard on adding support for %s previews. In the meantime, you can preview the embedded content on the post.'\n\t\t\t\t\t),\n\t\t\t\t\tlabel\n\t\t\t );\n\n\tfunction onOpenSheet() {\n\t\tsetIsSheetVisible( true );\n\t}\n\n\tfunction onCloseSheet() {\n\t\tsetIsSheetVisible( false );\n\t}\n\n\tfunction onDismissSheet() {\n\t\t// The preview request has to be done after the bottom sheet modal is dismissed,\n\t\t// otherwise the preview native modal is not displayed.\n\t\tif ( shouldRequestReview.current ) {\n\t\t\trequestPreview();\n\t\t}\n\t\tshouldRequestReview.current = false;\n\t}\n\n\tfunction onPressContainer() {\n\t\tonPress();\n\t\tonOpenSheet();\n\t}\n\n\tfunction onPressHelp() {\n\t\tonPressContainer();\n\t}\n\n\tconst embedNoProviderPreview = (\n\t\t<>\n\t\t\t<TouchableWithoutFeedback\n\t\t\t\taccessibilityRole={ 'button' }\n\t\t\t\taccessibilityHint={ previewButtonA11yHint }\n\t\t\t\tdisabled={ ! isSelected }\n\t\t\t\tonPress={ onPressContainer }\n\t\t\t>\n\t\t\t\t<View style={ containerStyle }>\n\t\t\t\t\t<BlockIcon icon={ icon } />\n\t\t\t\t\t<Text style={ labelStyle }>{ label }</Text>\n\t\t\t\t\t<Text style={ descriptionStyle }>\n\t\t\t\t\t\t{ sprintf(\n\t\t\t\t\t\t\t// translators: %s: embed block variant's label e.g: \"Twitter\".\n\t\t\t\t\t\t\t__( '%s previews not yet available' ),\n\t\t\t\t\t\t\tlabel\n\t\t\t\t\t\t) }\n\t\t\t\t\t</Text>\n\t\t\t\t\t<Text style={ styles.embed__action }>\n\t\t\t\t\t\t{ previewButtonText.toUpperCase() }\n\t\t\t\t\t</Text>\n\t\t\t\t\t<TouchableOpacity\n\t\t\t\t\t\taccessibilityHint={ __( 'Tap here to show help' ) }\n\t\t\t\t\t\taccessibilityLabel={ __( 'Help button' ) }\n\t\t\t\t\t\taccessibilityRole={ 'button' }\n\t\t\t\t\t\tdisabled={ ! isSelected }\n\t\t\t\t\t\tonPress={ onPressHelp }\n\t\t\t\t\t\tstyle={ helpIconStyle }\n\t\t\t\t\t>\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\ticon={ help }\n\t\t\t\t\t\t\tfill={ helpIconStyle.fill }\n\t\t\t\t\t\t\tsize={ helpIconStyle.width }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</TouchableOpacity>\n\t\t\t\t</View>\n\t\t\t</TouchableWithoutFeedback>\n\t\t\t<BottomSheet\n\t\t\t\tisVisible={ isSheetVisible }\n\t\t\t\thideHeader\n\t\t\t\tonDismiss={ onDismissSheet }\n\t\t\t\tonClose={ onCloseSheet }\n\t\t\t\ttestID=\"embed-no-preview-modal\"\n\t\t\t>\n\t\t\t\t<View style={ styles[ 'embed-no-preview__container' ] }>\n\t\t\t\t\t<View style={ sheetIconStyle }>\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\ticon={ help }\n\t\t\t\t\t\t\tfill={ sheetIconStyle.fill }\n\t\t\t\t\t\t\tsize={ sheetIconStyle.width }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</View>\n\t\t\t\t\t<Text style={ sheetTitleStyle }>\n\t\t\t\t\t\t{ isDefaultEmbedInfo\n\t\t\t\t\t\t\t? __( 'Embed block previews are coming soon' )\n\t\t\t\t\t\t\t: sprintf(\n\t\t\t\t\t\t\t\t\t// translators: %s: embed block variant's label e.g: \"Twitter\".\n\t\t\t\t\t\t\t\t\t__(\n\t\t\t\t\t\t\t\t\t\t'%s embed block previews are coming soon'\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\tlabel\n\t\t\t\t\t\t\t ) }\n\t\t\t\t\t</Text>\n\t\t\t\t\t<Text style={ sheetDescriptionStyle }>\n\t\t\t\t\t\t{ comingSoonDescription }\n\t\t\t\t\t</Text>\n\t\t\t\t</View>\n\t\t\t\t<TextControl\n\t\t\t\t\tlabel={ previewButtonText }\n\t\t\t\t\tseparatorType=\"topFullWidth\"\n\t\t\t\t\tonPress={ () => {\n\t\t\t\t\t\tshouldRequestReview.current = true;\n\t\t\t\t\t\tonCloseSheet();\n\t\t\t\t\t} }\n\t\t\t\t\tlabelStyle={ sheetButtonStyle }\n\t\t\t\t/>\n\t\t\t\t<TextControl\n\t\t\t\t\tlabel={ __( 'Dismiss' ) }\n\t\t\t\t\tseparatorType=\"topFullWidth\"\n\t\t\t\t\tonPress={ onCloseSheet }\n\t\t\t\t\tlabelStyle={ sheetButtonStyle }\n\t\t\t\t/>\n\t\t\t</BottomSheet>\n\t\t</>\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t{ previewable ? (\n\t\t\t\tembedNoProviderPreview\n\t\t\t) : (\n\t\t\t\t<View style={ containerStyle }>\n\t\t\t\t\t<BlockIcon icon={ icon } />\n\t\t\t\t\t<Text style={ labelStyle }>\n\t\t\t\t\t\t{ __( 'No preview available' ) }\n\t\t\t\t\t</Text>\n\t\t\t\t</View>\n\t\t\t) }\n\t\t</>\n\t);\n};\n\nexport default EmbedNoPreview;\n"],"mappings":";;;;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,KAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,MAAA,GAAAT,OAAA;AACA,IAAAU,YAAA,GAAAV,OAAA;AAKA,IAAAW,OAAA,GAAAC,sBAAA,CAAAZ,OAAA;AAvBA;AACA;AACA;;AAGA;AACA;AACA;;AAaA;AACA;AACA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AW;IACXpE,KAAK,EAAG,IAAA8B,QAAE,EAAE,SAAU,CAAG;IACzBuC,aAAa,EAAC,cAAc;IAC5BlE,OAAO,EAAGgC,YAAc;IACxBf,UAAU,EAAGQ;EAAkB,CAC/B,CACW,CACZ,CACF;EAED,OACC,IAAAc,MAAA,CAAAC,aAAA,EAAAD,MAAA,CAAAE,QAAA,QACGxC,WAAW,GACZqC,sBAAsB,GAEtB,IAAAC,MAAA,CAAAC,aAAA,EAACxD,WAAA,CAAA8D,IAAI;IAACC,KAAK,EAAGlC;EAAgB,GAC7B,IAAA0B,MAAA,CAAAC,aAAA,EAAC/C,YAAA,CAAAuD,SAAS;IAAClD,IAAI,EAAGA;EAAM,CAAE,CAAC,EAC3B,IAAAyC,MAAA,CAAAC,aAAA,EAAC1D,YAAA,CAAAmE,IAAI;IAACF,KAAK,EAAG9B;EAAY,GACvB,IAAAU,QAAE,EAAE,sBAAuB,CACxB,CACD,CAEN,CAAC;AAEL,CAAC;AAAC,IAAAwC,QAAA,GAEavE,cAAc;AAAAwE,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"names":["_reactNative","require","_primitives","_i18n","_element","_compose","_reactNativeBridge","_data","_editor","_components","_icons","_blockEditor","_styles","_interopRequireDefault","EmbedNoPreview","label","icon","isSelected","onPress","previewable","isDefaultEmbedInfo","shouldRequestReview","useRef","isSheetVisible","setIsSheetVisible","useState","postType","useSelect","select","editorStore","getEditedPostAttribute","containerStyle","usePreferredColorSchemeStyle","styles","embed__container","labelStyle","embed__label","descriptionStyle","embed__description","helpIconStyle","sheetIconStyle","sheetTitleStyle","sheetDescriptionStyle","sheetButtonStyle","previewButtonA11yHint","__","previewButtonText","comingSoonDescription","sprintf","onOpenSheet","onCloseSheet","onDismissSheet","current","requestPreview","onPressContainer","onPressHelp","embedNoProviderPreview","_react","createElement","Fragment","TouchableWithoutFeedback","accessibilityRole","accessibilityHint","disabled","View","style","BlockIcon","Text","embed__action","toUpperCase","TouchableOpacity","accessibilityLabel","Icon","help","fill","size","width","BottomSheet","isVisible","hideHeader","onDismiss","onClose","testID","TextControl","separatorType","_default","exports","default"],"sources":["@wordpress/block-library/src/embed/embed-no-preview.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { TouchableOpacity, TouchableWithoutFeedback, Text } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport { View } from '@wordpress/primitives';\n\nimport { __, sprintf } from '@wordpress/i18n';\nimport { useRef, useState } from '@wordpress/element';\nimport { usePreferredColorSchemeStyle } from '@wordpress/compose';\nimport { requestPreview } from '@wordpress/react-native-bridge';\nimport { useSelect } from '@wordpress/data';\nimport { store as editorStore } from '@wordpress/editor';\nimport { BottomSheet, Icon, TextControl } from '@wordpress/components';\nimport { help } from '@wordpress/icons';\nimport { BlockIcon } from '@wordpress/block-editor';\n\n/**\n * Internal dependencies\n */\nimport styles from './styles.scss';\n\nconst EmbedNoPreview = ( {\n\tlabel,\n\ticon,\n\tisSelected,\n\tonPress,\n\tpreviewable,\n\tisDefaultEmbedInfo,\n} ) => {\n\tconst shouldRequestReview = useRef( false );\n\tconst [ isSheetVisible, setIsSheetVisible ] = useState( false );\n\n\tconst { postType } = useSelect( ( select ) => ( {\n\t\tpostType: select( editorStore ).getEditedPostAttribute( 'type' ),\n\t} ) );\n\n\tconst containerStyle = usePreferredColorSchemeStyle(\n\t\tstyles.embed__container,\n\t\tstyles[ 'embed__container--dark' ]\n\t);\n\tconst labelStyle = usePreferredColorSchemeStyle(\n\t\tstyles.embed__label,\n\t\tstyles[ 'embed__label--dark' ]\n\t);\n\tconst descriptionStyle = usePreferredColorSchemeStyle(\n\t\tstyles.embed__description,\n\t\tstyles[ 'embed__description--dark' ]\n\t);\n\tconst helpIconStyle = usePreferredColorSchemeStyle(\n\t\tstyles[ 'embed-no-preview__help-icon' ],\n\t\tstyles[ 'embed-no-preview__help-icon--dark' ]\n\t);\n\n\tconst sheetIconStyle = usePreferredColorSchemeStyle(\n\t\tstyles[ 'embed-no-preview__sheet-icon' ],\n\t\tstyles[ 'embed-no-preview__sheet-icon--dark' ]\n\t);\n\tconst sheetTitleStyle = usePreferredColorSchemeStyle(\n\t\tstyles[ 'embed-no-preview__sheet-title' ],\n\t\tstyles[ 'embed-no-preview__sheet-title--dark' ]\n\t);\n\tconst sheetDescriptionStyle = usePreferredColorSchemeStyle(\n\t\tstyles[ 'embed-no-preview__sheet-description' ],\n\t\tstyles[ 'embed-no-preview__sheet-description--dark' ]\n\t);\n\tconst sheetButtonStyle = usePreferredColorSchemeStyle(\n\t\tstyles[ 'embed-no-preview__sheet-button' ],\n\t\tstyles[ 'embed-no-preview__sheet-button--dark' ]\n\t);\n\n\tconst previewButtonA11yHint =\n\t\tpostType === 'page'\n\t\t\t? __( 'Double tap to preview page.' )\n\t\t\t: __( 'Double tap to preview post.' );\n\tconst previewButtonText =\n\t\tpostType === 'page' ? __( 'Preview page' ) : __( 'Preview post' );\n\tconst comingSoonDescription =\n\t\tpostType === 'page'\n\t\t\t? sprintf(\n\t\t\t\t\t// translators: %s: embed block variant's label e.g: \"Twitter\".\n\t\t\t\t\t__(\n\t\t\t\t\t\t'We’re working hard on adding support for %s previews. In the meantime, you can preview the embedded content on the page.'\n\t\t\t\t\t),\n\t\t\t\t\tlabel\n\t\t\t )\n\t\t\t: sprintf(\n\t\t\t\t\t// translators: %s: embed block variant's label e.g: \"Twitter\".\n\t\t\t\t\t__(\n\t\t\t\t\t\t'We’re working hard on adding support for %s previews. In the meantime, you can preview the embedded content on the post.'\n\t\t\t\t\t),\n\t\t\t\t\tlabel\n\t\t\t );\n\n\tfunction onOpenSheet() {\n\t\tsetIsSheetVisible( true );\n\t}\n\n\tfunction onCloseSheet() {\n\t\tsetIsSheetVisible( false );\n\t}\n\n\tfunction onDismissSheet() {\n\t\t// The preview request has to be done after the bottom sheet modal is dismissed,\n\t\t// otherwise the preview native modal is not displayed.\n\t\tif ( shouldRequestReview.current ) {\n\t\t\trequestPreview();\n\t\t}\n\t\tshouldRequestReview.current = false;\n\t}\n\n\tfunction onPressContainer() {\n\t\tonPress();\n\t\tonOpenSheet();\n\t}\n\n\tfunction onPressHelp() {\n\t\tonPressContainer();\n\t}\n\n\tconst embedNoProviderPreview = (\n\t\t<>\n\t\t\t<TouchableWithoutFeedback\n\t\t\t\taccessibilityRole={ 'button' }\n\t\t\t\taccessibilityHint={ previewButtonA11yHint }\n\t\t\t\tdisabled={ ! isSelected }\n\t\t\t\tonPress={ onPressContainer }\n\t\t\t>\n\t\t\t\t<View style={ containerStyle }>\n\t\t\t\t\t<BlockIcon icon={ icon } />\n\t\t\t\t\t<Text style={ labelStyle }>{ label }</Text>\n\t\t\t\t\t<Text style={ descriptionStyle }>\n\t\t\t\t\t\t{ sprintf(\n\t\t\t\t\t\t\t// translators: %s: embed block variant's label e.g: \"Twitter\".\n\t\t\t\t\t\t\t__( '%s previews not yet available' ),\n\t\t\t\t\t\t\tlabel\n\t\t\t\t\t\t) }\n\t\t\t\t\t</Text>\n\t\t\t\t\t<Text style={ styles.embed__action }>\n\t\t\t\t\t\t{ previewButtonText.toUpperCase() }\n\t\t\t\t\t</Text>\n\t\t\t\t\t<TouchableOpacity\n\t\t\t\t\t\taccessibilityHint={ __( 'Tap here to show help' ) }\n\t\t\t\t\t\taccessibilityLabel={ __( 'Help button' ) }\n\t\t\t\t\t\taccessibilityRole={ 'button' }\n\t\t\t\t\t\tdisabled={ ! isSelected }\n\t\t\t\t\t\tonPress={ onPressHelp }\n\t\t\t\t\t\tstyle={ helpIconStyle }\n\t\t\t\t\t>\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\ticon={ help }\n\t\t\t\t\t\t\tfill={ helpIconStyle.fill }\n\t\t\t\t\t\t\tsize={ helpIconStyle.width }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</TouchableOpacity>\n\t\t\t\t</View>\n\t\t\t</TouchableWithoutFeedback>\n\t\t\t<BottomSheet\n\t\t\t\tisVisible={ isSheetVisible }\n\t\t\t\thideHeader\n\t\t\t\tonDismiss={ onDismissSheet }\n\t\t\t\tonClose={ onCloseSheet }\n\t\t\t\ttestID=\"embed-no-preview-modal\"\n\t\t\t>\n\t\t\t\t<View style={ styles[ 'embed-no-preview__container' ] }>\n\t\t\t\t\t<View style={ sheetIconStyle }>\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\ticon={ help }\n\t\t\t\t\t\t\tfill={ sheetIconStyle.fill }\n\t\t\t\t\t\t\tsize={ sheetIconStyle.width }\n\t\t\t\t\t\t/>\n\t\t\t\t\t</View>\n\t\t\t\t\t<Text style={ sheetTitleStyle }>\n\t\t\t\t\t\t{ isDefaultEmbedInfo\n\t\t\t\t\t\t\t? __( 'Embed block previews are coming soon' )\n\t\t\t\t\t\t\t: sprintf(\n\t\t\t\t\t\t\t\t\t// translators: %s: embed block variant's label e.g: \"Twitter\".\n\t\t\t\t\t\t\t\t\t__(\n\t\t\t\t\t\t\t\t\t\t'%s embed block previews are coming soon'\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\tlabel\n\t\t\t\t\t\t\t ) }\n\t\t\t\t\t</Text>\n\t\t\t\t\t<Text style={ sheetDescriptionStyle }>\n\t\t\t\t\t\t{ comingSoonDescription }\n\t\t\t\t\t</Text>\n\t\t\t\t</View>\n\t\t\t\t<TextControl\n\t\t\t\t\tlabel={ previewButtonText }\n\t\t\t\t\tseparatorType=\"topFullWidth\"\n\t\t\t\t\tonPress={ () => {\n\t\t\t\t\t\tshouldRequestReview.current = true;\n\t\t\t\t\t\tonCloseSheet();\n\t\t\t\t\t} }\n\t\t\t\t\tlabelStyle={ sheetButtonStyle }\n\t\t\t\t/>\n\t\t\t\t<TextControl\n\t\t\t\t\tlabel={ __( 'Dismiss' ) }\n\t\t\t\t\tseparatorType=\"topFullWidth\"\n\t\t\t\t\tonPress={ onCloseSheet }\n\t\t\t\t\tlabelStyle={ sheetButtonStyle }\n\t\t\t\t/>\n\t\t\t</BottomSheet>\n\t\t</>\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t{ previewable ? (\n\t\t\t\tembedNoProviderPreview\n\t\t\t) : (\n\t\t\t\t<View style={ containerStyle }>\n\t\t\t\t\t<BlockIcon icon={ icon } />\n\t\t\t\t\t<Text style={ labelStyle }>\n\t\t\t\t\t\t{ __( 'No preview available' ) }\n\t\t\t\t\t</Text>\n\t\t\t\t</View>\n\t\t\t) }\n\t\t</>\n\t);\n};\n\nexport default EmbedNoPreview;\n"],"mappings":";;;;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,KAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AACA,IAAAQ,WAAA,GAAAR,OAAA;AACA,IAAAS,MAAA,GAAAT,OAAA;AACA,IAAAU,YAAA,GAAAV,OAAA;AAKA,IAAAW,OAAA,GAAAC,sBAAA,CAAAZ,OAAA;AAvBA;AACA;AACA;;AAGA;AACA;AACA;;AAaA;AACA;AACA;;AAGA,MAAMa,cAAc,GAAGA,CAAE;EACxBC,KAAK;EACLC,IAAI;EACJC,UAAU;EACVC,OAAO;EACPC,WAAW;EACXC;AACD,CAAC,KAAM;EACN,MAAMC,mBAAmB,GAAG,IAAAC,eAAM,EAAE,KAAM,CAAC;EAC3C,MAAM,CAAEC,cAAc,EAAEC,iBAAiB,CAAE,GAAG,IAAAC,iBAAQ,EAAE,KAAM,CAAC;EAE/D,MAAM;IAAEC;EAAS,CAAC,GAAG,IAAAC,eAAS,EAAIC,MAAM,KAAQ;IAC/CF,QAAQ,EAAEE,MAAM,CAAEC,aAAY,CAAC,CAACC,sBAAsB,CAAE,MAAO;EAChE,CAAC,CAAG,CAAC;EAEL,MAAMC,cAAc,GAAG,IAAAC,qCAA4B,EAClDC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AAC1D,YAAA,CAAAmE,IAAI;IAACF,KAAK,EAAG9B;EAAY,GACvB,IAAAU,QAAE,EAAE,sBAAuB,CACxB,CACD,CAEN,CAAC;AAEL,CAAC;AAAC,IAAAwC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEazE,cAAc"}
@@ -43,7 +43,7 @@ const EmbedPlaceholder = ({
43
43
  variant: "primary",
44
44
  type: "submit"
45
45
  }, (0, _i18n._x)('Embed', 'button label'))), (0, _react.createElement)("div", {
46
- className: "components-placeholder__learn-more"
46
+ className: "wp-block-embed__learn-more"
47
47
  }, (0, _react.createElement)(_components.ExternalLink, {
48
48
  href: (0, _i18n.__)('https://wordpress.org/documentation/article/embeds/')
49
49
  }, (0, _i18n.__)('Learn more about embeds'))), cannotEmbed && (0, _react.createElement)("div", {
@@ -58,6 +58,5 @@ const EmbedPlaceholder = ({
58
58
  onClick: fallback
59
59
  }, (0, _i18n._x)('Convert to link', 'button label'))));
60
60
  };
61
- var _default = EmbedPlaceholder;
62
- exports.default = _default;
61
+ var _default = exports.default = EmbedPlaceholder;
63
62
  //# sourceMappingURL=embed-placeholder.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_i18n","require","_components","_blockEditor","EmbedPlaceholder","icon","label","value","onSubmit","onChange","cannotEmbed","fallback","tryAgain","_react","createElement","Placeholder","BlockIcon","showColors","className","instructions","__","type","placeholder","Button","variant","_x","ExternalLink","href","onClick","_default","exports","default"],"sources":["@wordpress/block-library/src/embed/embed-placeholder.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __, _x } from '@wordpress/i18n';\nimport { Button, Placeholder, ExternalLink } from '@wordpress/components';\nimport { BlockIcon } from '@wordpress/block-editor';\n\nconst EmbedPlaceholder = ( {\n\ticon,\n\tlabel,\n\tvalue,\n\tonSubmit,\n\tonChange,\n\tcannotEmbed,\n\tfallback,\n\ttryAgain,\n} ) => {\n\treturn (\n\t\t<Placeholder\n\t\t\ticon={ <BlockIcon icon={ icon } showColors /> }\n\t\t\tlabel={ label }\n\t\t\tclassName=\"wp-block-embed\"\n\t\t\tinstructions={ __(\n\t\t\t\t'Paste a link to the content you want to display on your site.'\n\t\t\t) }\n\t\t>\n\t\t\t<form onSubmit={ onSubmit }>\n\t\t\t\t<input\n\t\t\t\t\ttype=\"url\"\n\t\t\t\t\tvalue={ value || '' }\n\t\t\t\t\tclassName=\"components-placeholder__input\"\n\t\t\t\t\taria-label={ label }\n\t\t\t\t\tplaceholder={ __( 'Enter URL to embed here…' ) }\n\t\t\t\t\tonChange={ onChange }\n\t\t\t\t/>\n\t\t\t\t<Button variant=\"primary\" type=\"submit\">\n\t\t\t\t\t{ _x( 'Embed', 'button label' ) }\n\t\t\t\t</Button>\n\t\t\t</form>\n\t\t\t<div className=\"components-placeholder__learn-more\">\n\t\t\t\t<ExternalLink\n\t\t\t\t\thref={ __(\n\t\t\t\t\t\t'https://wordpress.org/documentation/article/embeds/'\n\t\t\t\t\t) }\n\t\t\t\t>\n\t\t\t\t\t{ __( 'Learn more about embeds' ) }\n\t\t\t\t</ExternalLink>\n\t\t\t</div>\n\t\t\t{ cannotEmbed && (\n\t\t\t\t<div className=\"components-placeholder__error\">\n\t\t\t\t\t<div className=\"components-placeholder__instructions\">\n\t\t\t\t\t\t{ __( 'Sorry, this content could not be embedded.' ) }\n\t\t\t\t\t</div>\n\t\t\t\t\t<Button variant=\"secondary\" onClick={ tryAgain }>\n\t\t\t\t\t\t{ _x( 'Try again', 'button label' ) }\n\t\t\t\t\t</Button>{ ' ' }\n\t\t\t\t\t<Button variant=\"secondary\" onClick={ fallback }>\n\t\t\t\t\t\t{ _x( 'Convert to link', 'button label' ) }\n\t\t\t\t\t</Button>\n\t\t\t\t</div>\n\t\t\t) }\n\t\t</Placeholder>\n\t);\n};\n\nexport default EmbedPlaceholder;\n"],"mappings":";;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;A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AAAC,aAAA;IAAKI,SAAS,EAAC;EAAsC,GAClD,IAAAE,QAAE,EAAE,4CAA6C,CAC/C,CAAC,EACN,IAAAP,MAAA,CAAAC,aAAA,EAACZ,WAAA,CAAAqB,MAAM;IAACC,OAAO,EAAC,WAAW;IAACI,OAAO,EAAGhB;EAAU,GAC7C,IAAAa,QAAE,EAAE,WAAW,EAAE,cAAe,CAC3B,CAAC,EAAE,GAAG,EACd,IAAAZ,MAAA,CAAAC,aAAA,EAACZ,WAAA,CAAAqB,MAAM;IAACC,OAAO,EAAC,WAAW;IAACI,OAAO,EAAGjB;EAAU,GAC7C,IAAAc,QAAE,EAAE,iBAAiB,EAAE,cAAe,CACjC,CACJ,CAEM,CAAC;AAEhB,CAAC;AAAC,IAAAI,QAAA,GAEazB,gBAAgB;AAAA0B,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"names":["_i18n","require","_components","_blockEditor","EmbedPlaceholder","icon","label","value","onSubmit","onChange","cannotEmbed","fallback","tryAgain","_react","createElement","Placeholder","BlockIcon","showColors","className","instructions","__","type","placeholder","Button","variant","_x","ExternalLink","href","onClick","_default","exports","default"],"sources":["@wordpress/block-library/src/embed/embed-placeholder.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __, _x } from '@wordpress/i18n';\nimport { Button, Placeholder, ExternalLink } from '@wordpress/components';\nimport { BlockIcon } from '@wordpress/block-editor';\n\nconst EmbedPlaceholder = ( {\n\ticon,\n\tlabel,\n\tvalue,\n\tonSubmit,\n\tonChange,\n\tcannotEmbed,\n\tfallback,\n\ttryAgain,\n} ) => {\n\treturn (\n\t\t<Placeholder\n\t\t\ticon={ <BlockIcon icon={ icon } showColors /> }\n\t\t\tlabel={ label }\n\t\t\tclassName=\"wp-block-embed\"\n\t\t\tinstructions={ __(\n\t\t\t\t'Paste a link to the content you want to display on your site.'\n\t\t\t) }\n\t\t>\n\t\t\t<form onSubmit={ onSubmit }>\n\t\t\t\t<input\n\t\t\t\t\ttype=\"url\"\n\t\t\t\t\tvalue={ value || '' }\n\t\t\t\t\tclassName=\"components-placeholder__input\"\n\t\t\t\t\taria-label={ label }\n\t\t\t\t\tplaceholder={ __( 'Enter URL to embed here…' ) }\n\t\t\t\t\tonChange={ onChange }\n\t\t\t\t/>\n\t\t\t\t<Button variant=\"primary\" type=\"submit\">\n\t\t\t\t\t{ _x( 'Embed', 'button label' ) }\n\t\t\t\t</Button>\n\t\t\t</form>\n\t\t\t<div className=\"wp-block-embed__learn-more\">\n\t\t\t\t<ExternalLink\n\t\t\t\t\thref={ __(\n\t\t\t\t\t\t'https://wordpress.org/documentation/article/embeds/'\n\t\t\t\t\t) }\n\t\t\t\t>\n\t\t\t\t\t{ __( 'Learn more about embeds' ) }\n\t\t\t\t</ExternalLink>\n\t\t\t</div>\n\t\t\t{ cannotEmbed && (\n\t\t\t\t<div className=\"components-placeholder__error\">\n\t\t\t\t\t<div className=\"components-placeholder__instructions\">\n\t\t\t\t\t\t{ __( 'Sorry, this content could not be embedded.' ) }\n\t\t\t\t\t</div>\n\t\t\t\t\t<Button variant=\"secondary\" onClick={ tryAgain }>\n\t\t\t\t\t\t{ _x( 'Try again', 'button label' ) }\n\t\t\t\t\t</Button>{ ' ' }\n\t\t\t\t\t<Button variant=\"secondary\" onClick={ fallback }>\n\t\t\t\t\t\t{ _x( 'Convert to link', 'button label' ) }\n\t\t\t\t\t</Button>\n\t\t\t\t</div>\n\t\t\t) }\n\t\t</Placeholder>\n\t);\n};\n\nexport default EmbedPlaceholder;\n"],"mappings":";;;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AALA;AACA;AACA;;AAKA,MAAMG,gBAAgB,GAAGA,CAAE;EAC1BC,IAAI;EACJC,KAAK;EACLC,KAAK;EACLC,QAAQ;EACRC,QAAQ;EACRC,WAAW;EACXC,QAAQ;EACRC;AACD,CAAC,KAAM;EACN,OACC,IA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,OAAO,EAAGhB;EAAU,GAC7C,IAAAa,QAAE,EAAE,WAAW,EAAE,cAAe,CAC3B,CAAC,EAAE,GAAG,EACd,IAAAZ,MAAA,CAAAC,aAAA,EAACZ,WAAA,CAAAqB,MAAM;IAACC,OAAO,EAAC,WAAW;IAACI,OAAO,EAAGjB;EAAU,GAC7C,IAAAc,QAAE,EAAE,iBAAiB,EAAE,cAAe,CACjC,CACJ,CAEM,CAAC;AAEhB,CAAC;AAAC,IAAAI,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEa3B,gBAAgB"}
@@ -130,6 +130,5 @@ const EmbedPlaceholder = ({
130
130
  style: actionStyle
131
131
  }, (0, _i18n.__)('Add link'))))));
132
132
  };
133
- var _default = EmbedPlaceholder;
134
- exports.default = _default;
133
+ var _default = exports.default = EmbedPlaceholder;
135
134
  //# sourceMappingURL=embed-placeholder.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_i18n","_compose","_components","_blockEditor","_element","_styles","_interopRequireDefault","_gridicons","hitSlop","top","bottom","left","right","EmbedPlaceholder","icon","isSelected","label","onPress","cannotEmbed","fallback","tryAgain","openEmbedLinkSettings","containerSelectedStyle","usePreferredColorSchemeStyle","styles","containerStyle","embed__container","labelStyle","embed__label","descriptionStyle","embed__description","descriptionErrorStyle","actionStyle","embed__action","embedIconErrorStyle","buttonStyles","embed__button","iconStyles","embed__icon","cannotEmbedMenuPickerRef","useRef","errorPickerOptions","retry","id","__","value","onSelect","convertToLink","editLink","options","filter","Boolean","onPickerSelect","selectedItem","find","item","resolveOnPressEvent","current","presentPicker","_react","createElement","Fragment","View","style","Icon","noticeOutline","fill","Text","TouchableOpacity","activeOpacity","accessibilityRole","accessibilityHint","disabled","Picker","title","ref","onChange","hideCancelButton","leftAlign","BlockIcon","_default","exports","default"],"sources":["@wordpress/block-library/src/embed/embed-placeholder.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { View, Text, TouchableOpacity } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { usePreferredColorSchemeStyle } from '@wordpress/compose';\nimport { Icon, Picker } from '@wordpress/components';\nimport { BlockIcon } from '@wordpress/block-editor';\nimport { useRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport styles from './styles.scss';\nimport { noticeOutline } from '../../../components/src/mobile/gridicons';\n\nconst hitSlop = { top: 22, bottom: 22, left: 22, right: 22 };\n\nconst EmbedPlaceholder = ( {\n\ticon,\n\tisSelected,\n\tlabel,\n\tonPress,\n\tcannotEmbed,\n\tfallback,\n\ttryAgain,\n\topenEmbedLinkSettings,\n} ) => {\n\tconst containerSelectedStyle = usePreferredColorSchemeStyle(\n\t\tstyles[ 'embed__container-selected' ],\n\t\tstyles[ 'embed__container-selected--dark' ]\n\t);\n\tconst containerStyle = [\n\t\tusePreferredColorSchemeStyle(\n\t\t\tstyles.embed__container,\n\t\t\tstyles[ 'embed__container--dark' ]\n\t\t),\n\t\tisSelected && containerSelectedStyle,\n\t];\n\tconst labelStyle = usePreferredColorSchemeStyle(\n\t\tstyles.embed__label,\n\t\tstyles[ 'embed__label--dark' ]\n\t);\n\tconst descriptionStyle = styles.embed__description;\n\tconst descriptionErrorStyle = styles[ 'embed__description--error' ];\n\tconst actionStyle = usePreferredColorSchemeStyle(\n\t\tstyles.embed__action,\n\t\tstyles[ 'embed__action--dark' ]\n\t);\n\tconst embedIconErrorStyle = styles[ 'embed__icon--error' ];\n\n\tconst buttonStyles = usePreferredColorSchemeStyle(\n\t\tstyles.embed__button,\n\t\tstyles[ 'embed__button--dark' ]\n\t);\n\tconst iconStyles = usePreferredColorSchemeStyle(\n\t\tstyles.embed__icon,\n\t\tstyles[ 'embed__icon--dark' ]\n\t);\n\n\tconst cannotEmbedMenuPickerRef = useRef();\n\n\tconst errorPickerOptions = {\n\t\tretry: {\n\t\t\tid: 'retryOption',\n\t\t\tlabel: __( 'Retry' ),\n\t\t\tvalue: 'retryOption',\n\t\t\tonSelect: tryAgain,\n\t\t},\n\t\tconvertToLink: {\n\t\t\tid: 'convertToLinkOption',\n\t\t\tlabel: __( 'Convert to link' ),\n\t\t\tvalue: 'convertToLinkOption',\n\t\t\tonSelect: fallback,\n\t\t},\n\t\teditLink: {\n\t\t\tid: 'editLinkOption',\n\t\t\tlabel: __( 'Edit link' ),\n\t\t\tvalue: 'editLinkOption',\n\t\t\tonSelect: openEmbedLinkSettings,\n\t\t},\n\t};\n\n\tconst options = [\n\t\tcannotEmbed && errorPickerOptions.retry,\n\t\tcannotEmbed && errorPickerOptions.convertToLink,\n\t\tcannotEmbed && errorPickerOptions.editLink,\n\t].filter( Boolean );\n\n\tfunction onPickerSelect( value ) {\n\t\tconst selectedItem = options.find( ( item ) => item.value === value );\n\t\tselectedItem.onSelect();\n\t}\n\n\t// When the content cannot be embedded the onPress should trigger the Picker instead of the onPress prop.\n\tfunction resolveOnPressEvent() {\n\t\tif ( cannotEmbed ) {\n\t\t\tcannotEmbedMenuPickerRef.current?.presentPicker();\n\t\t} else {\n\t\t\tonPress();\n\t\t}\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t<View style={ containerStyle }>\n\t\t\t\t{ cannotEmbed ? (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\ticon={ noticeOutline }\n\t\t\t\t\t\t\tfill={ embedIconErrorStyle.fill }\n\t\t\t\t\t\t\tstyle={ embedIconErrorStyle }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Text\n\t\t\t\t\t\t\tstyle={ [\n\t\t\t\t\t\t\t\tdescriptionStyle,\n\t\t\t\t\t\t\t\tdescriptionErrorStyle,\n\t\t\t\t\t\t\t] }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Unable to embed media' ) }\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t<TouchableOpacity\n\t\t\t\t\t\t\tactiveOpacity={ 0.5 }\n\t\t\t\t\t\t\taccessibilityRole={ 'button' }\n\t\t\t\t\t\t\taccessibilityHint={ __(\n\t\t\t\t\t\t\t\t'Double tap to view embed options.'\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\tstyle={ buttonStyles }\n\t\t\t\t\t\t\thitSlop={ hitSlop }\n\t\t\t\t\t\t\tonPress={ resolveOnPressEvent }\n\t\t\t\t\t\t\tdisabled={ ! isSelected }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Text style={ actionStyle }>\n\t\t\t\t\t\t\t\t{ __( 'More options' ) }\n\t\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t</TouchableOpacity>\n\t\t\t\t\t\t<Picker\n\t\t\t\t\t\t\ttitle={ __( 'Embed options' ) }\n\t\t\t\t\t\t\tref={ cannotEmbedMenuPickerRef }\n\t\t\t\t\t\t\toptions={ options }\n\t\t\t\t\t\t\tonChange={ onPickerSelect }\n\t\t\t\t\t\t\thideCancelButton\n\t\t\t\t\t\t\tleftAlign\n\t\t\t\t\t\t/>\n\t\t\t\t\t</>\n\t\t\t\t) : (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<View style={ styles[ 'embed__placeholder-header' ] }>\n\t\t\t\t\t\t\t<BlockIcon icon={ icon } fill={ iconStyles.fill } />\n\t\t\t\t\t\t\t<Text style={ labelStyle }>{ label }</Text>\n\t\t\t\t\t\t</View>\n\t\t\t\t\t\t<TouchableOpacity\n\t\t\t\t\t\t\tactiveOpacity={ 0.5 }\n\t\t\t\t\t\t\taccessibilityRole={ 'button' }\n\t\t\t\t\t\t\taccessibilityHint={ __(\n\t\t\t\t\t\t\t\t'Double tap to add a link.'\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\tstyle={ buttonStyles }\n\t\t\t\t\t\t\thitSlop={ hitSlop }\n\t\t\t\t\t\t\tonPress={ resolveOnPressEvent }\n\t\t\t\t\t\t\tdisabled={ ! isSelected }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Text style={ actionStyle }>\n\t\t\t\t\t\t\t\t{ __( 'Add link'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AAgB;AAAAoE,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"names":["_reactNative","require","_i18n","_compose","_components","_blockEditor","_element","_styles","_interopRequireDefault","_gridicons","hitSlop","top","bottom","left","right","EmbedPlaceholder","icon","isSelected","label","onPress","cannotEmbed","fallback","tryAgain","openEmbedLinkSettings","containerSelectedStyle","usePreferredColorSchemeStyle","styles","containerStyle","embed__container","labelStyle","embed__label","descriptionStyle","embed__description","descriptionErrorStyle","actionStyle","embed__action","embedIconErrorStyle","buttonStyles","embed__button","iconStyles","embed__icon","cannotEmbedMenuPickerRef","useRef","errorPickerOptions","retry","id","__","value","onSelect","convertToLink","editLink","options","filter","Boolean","onPickerSelect","selectedItem","find","item","resolveOnPressEvent","current","presentPicker","_react","createElement","Fragment","View","style","Icon","noticeOutline","fill","Text","TouchableOpacity","activeOpacity","accessibilityRole","accessibilityHint","disabled","Picker","title","ref","onChange","hideCancelButton","leftAlign","BlockIcon","_default","exports","default"],"sources":["@wordpress/block-library/src/embed/embed-placeholder.native.js"],"sourcesContent":["/**\n * External dependencies\n */\nimport { View, Text, TouchableOpacity } from 'react-native';\n\n/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\nimport { usePreferredColorSchemeStyle } from '@wordpress/compose';\nimport { Icon, Picker } from '@wordpress/components';\nimport { BlockIcon } from '@wordpress/block-editor';\nimport { useRef } from '@wordpress/element';\n\n/**\n * Internal dependencies\n */\nimport styles from './styles.scss';\nimport { noticeOutline } from '../../../components/src/mobile/gridicons';\n\nconst hitSlop = { top: 22, bottom: 22, left: 22, right: 22 };\n\nconst EmbedPlaceholder = ( {\n\ticon,\n\tisSelected,\n\tlabel,\n\tonPress,\n\tcannotEmbed,\n\tfallback,\n\ttryAgain,\n\topenEmbedLinkSettings,\n} ) => {\n\tconst containerSelectedStyle = usePreferredColorSchemeStyle(\n\t\tstyles[ 'embed__container-selected' ],\n\t\tstyles[ 'embed__container-selected--dark' ]\n\t);\n\tconst containerStyle = [\n\t\tusePreferredColorSchemeStyle(\n\t\t\tstyles.embed__container,\n\t\t\tstyles[ 'embed__container--dark' ]\n\t\t),\n\t\tisSelected && containerSelectedStyle,\n\t];\n\tconst labelStyle = usePreferredColorSchemeStyle(\n\t\tstyles.embed__label,\n\t\tstyles[ 'embed__label--dark' ]\n\t);\n\tconst descriptionStyle = styles.embed__description;\n\tconst descriptionErrorStyle = styles[ 'embed__description--error' ];\n\tconst actionStyle = usePreferredColorSchemeStyle(\n\t\tstyles.embed__action,\n\t\tstyles[ 'embed__action--dark' ]\n\t);\n\tconst embedIconErrorStyle = styles[ 'embed__icon--error' ];\n\n\tconst buttonStyles = usePreferredColorSchemeStyle(\n\t\tstyles.embed__button,\n\t\tstyles[ 'embed__button--dark' ]\n\t);\n\tconst iconStyles = usePreferredColorSchemeStyle(\n\t\tstyles.embed__icon,\n\t\tstyles[ 'embed__icon--dark' ]\n\t);\n\n\tconst cannotEmbedMenuPickerRef = useRef();\n\n\tconst errorPickerOptions = {\n\t\tretry: {\n\t\t\tid: 'retryOption',\n\t\t\tlabel: __( 'Retry' ),\n\t\t\tvalue: 'retryOption',\n\t\t\tonSelect: tryAgain,\n\t\t},\n\t\tconvertToLink: {\n\t\t\tid: 'convertToLinkOption',\n\t\t\tlabel: __( 'Convert to link' ),\n\t\t\tvalue: 'convertToLinkOption',\n\t\t\tonSelect: fallback,\n\t\t},\n\t\teditLink: {\n\t\t\tid: 'editLinkOption',\n\t\t\tlabel: __( 'Edit link' ),\n\t\t\tvalue: 'editLinkOption',\n\t\t\tonSelect: openEmbedLinkSettings,\n\t\t},\n\t};\n\n\tconst options = [\n\t\tcannotEmbed && errorPickerOptions.retry,\n\t\tcannotEmbed && errorPickerOptions.convertToLink,\n\t\tcannotEmbed && errorPickerOptions.editLink,\n\t].filter( Boolean );\n\n\tfunction onPickerSelect( value ) {\n\t\tconst selectedItem = options.find( ( item ) => item.value === value );\n\t\tselectedItem.onSelect();\n\t}\n\n\t// When the content cannot be embedded the onPress should trigger the Picker instead of the onPress prop.\n\tfunction resolveOnPressEvent() {\n\t\tif ( cannotEmbed ) {\n\t\t\tcannotEmbedMenuPickerRef.current?.presentPicker();\n\t\t} else {\n\t\t\tonPress();\n\t\t}\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t<View style={ containerStyle }>\n\t\t\t\t{ cannotEmbed ? (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\ticon={ noticeOutline }\n\t\t\t\t\t\t\tfill={ embedIconErrorStyle.fill }\n\t\t\t\t\t\t\tstyle={ embedIconErrorStyle }\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<Text\n\t\t\t\t\t\t\tstyle={ [\n\t\t\t\t\t\t\t\tdescriptionStyle,\n\t\t\t\t\t\t\t\tdescriptionErrorStyle,\n\t\t\t\t\t\t\t] }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Unable to embed media' ) }\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t<TouchableOpacity\n\t\t\t\t\t\t\tactiveOpacity={ 0.5 }\n\t\t\t\t\t\t\taccessibilityRole={ 'button' }\n\t\t\t\t\t\t\taccessibilityHint={ __(\n\t\t\t\t\t\t\t\t'Double tap to view embed options.'\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\tstyle={ buttonStyles }\n\t\t\t\t\t\t\thitSlop={ hitSlop }\n\t\t\t\t\t\t\tonPress={ resolveOnPressEvent }\n\t\t\t\t\t\t\tdisabled={ ! isSelected }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Text style={ actionStyle }>\n\t\t\t\t\t\t\t\t{ __( 'More options' ) }\n\t\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t</TouchableOpacity>\n\t\t\t\t\t\t<Picker\n\t\t\t\t\t\t\ttitle={ __( 'Embed options' ) }\n\t\t\t\t\t\t\tref={ cannotEmbedMenuPickerRef }\n\t\t\t\t\t\t\toptions={ options }\n\t\t\t\t\t\t\tonChange={ onPickerSelect }\n\t\t\t\t\t\t\thideCancelButton\n\t\t\t\t\t\t\tleftAlign\n\t\t\t\t\t\t/>\n\t\t\t\t\t</>\n\t\t\t\t) : (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<View style={ styles[ 'embed__placeholder-header' ] }>\n\t\t\t\t\t\t\t<BlockIcon icon={ icon } fill={ iconStyles.fill } />\n\t\t\t\t\t\t\t<Text style={ labelStyle }>{ label }</Text>\n\t\t\t\t\t\t</View>\n\t\t\t\t\t\t<TouchableOpacity\n\t\t\t\t\t\t\tactiveOpacity={ 0.5 }\n\t\t\t\t\t\t\taccessibilityRole={ 'button' }\n\t\t\t\t\t\t\taccessibilityHint={ __(\n\t\t\t\t\t\t\t\t'Double tap to add a link.'\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\tstyle={ buttonStyles }\n\t\t\t\t\t\t\thitSlop={ hitSlop }\n\t\t\t\t\t\t\tonPress={ resolveOnPressEvent }\n\t\t\t\t\t\t\tdisabled={ ! isSelected }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Text style={ actionStyle }>\n\t\t\t\t\t\t\t\t{ __( 'Add link' ) }\n\t\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t</TouchableOpacity>\n\t\t\t\t\t</>\n\t\t\t\t) }\n\t\t\t</View>\n\t\t</>\n\t);\n};\n\nexport default EmbedPlaceholder;\n"],"mappings":";;;;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAKA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAKA,IAAAM,OAAA,GAAAC,sBAAA,CAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AAlBA;AACA;AACA;;AAGA;AACA;AACA;;AAOA;AACA;AACA;;AAIA,MAAMS,OAAO,GAAG;E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AAA,EAACzD,YAAA,CAAA4E,SAAS;IAACjE,IAAI,EAAGA,IAAM;IAACoD,IAAI,EAAG7B,UAAU,CAAC6B;EAAM,CAAE,CAAC,EACpD,IAAAP,MAAA,CAAAC,aAAA,EAAC9D,YAAA,CAAAqE,IAAI;IAACJ,KAAK,EAAGpC;EAAY,GAAGX,KAAa,CACrC,CAAC,EACP,IAAA2C,MAAA,CAAAC,aAAA,EAAC9D,YAAA,CAAAsE,gBAAgB;IAChBC,aAAa,EAAG,GAAK;IACrBC,iBAAiB,EAAG,QAAU;IAC9BC,iBAAiB,EAAG,IAAA3B,QAAE,EACrB,2BACD,CAAG;IACHmB,KAAK,EAAG5B,YAAc;IACtB3B,OAAO,EAAGA,OAAS;IACnBS,OAAO,EAAGuC,mBAAqB;IAC/BgB,QAAQ,EAAG,CAAEzD;EAAY,GAEzB,IAAA4C,MAAA,CAAAC,aAAA,EAAC9D,YAAA,CAAAqE,IAAI;IAACJ,KAAK,EAAG/B;EAAa,GACxB,IAAAY,QAAE,EAAE,UAAW,CACZ,CACW,CACjB,CAEE,CACL,CAAC;AAEL,CAAC;AAAC,IAAAoC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEarE,gBAAgB"}
@@ -136,6 +136,5 @@ class EmbedPreview extends _element.Component {
136
136
  }));
137
137
  }
138
138
  }
139
- var _default = EmbedPreview;
140
- exports.default = _default;
139
+ var _default = exports.default = EmbedPreview;
141
140
  //# sourceMappingURL=embed-preview.js.map