@wordpress/block-library 8.22.0 → 8.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (266) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/build/block/edit.js +11 -13
  3. package/build/block/edit.js.map +1 -1
  4. package/build/block/edit.native.js +3 -4
  5. package/build/block/edit.native.js.map +1 -1
  6. package/build/button/edit.js +61 -9
  7. package/build/button/edit.js.map +1 -1
  8. package/build/code/transforms.js +20 -7
  9. package/build/code/transforms.js.map +1 -1
  10. package/build/column/edit.js +1 -1
  11. package/build/column/edit.js.map +1 -1
  12. package/build/column/edit.native.js +1 -1
  13. package/build/column/edit.native.js.map +1 -1
  14. package/build/comments/edit/comments-inspector-controls.js +1 -0
  15. package/build/comments/edit/comments-inspector-controls.js.map +1 -1
  16. package/build/cover/edit/index.js +2 -1
  17. package/build/cover/edit/index.js.map +1 -1
  18. package/build/cover/edit/inspector-controls.js +1 -0
  19. package/build/cover/edit/inspector-controls.js.map +1 -1
  20. package/build/details/edit.js +1 -2
  21. package/build/details/edit.js.map +1 -1
  22. package/build/file/edit.js +8 -9
  23. package/build/file/edit.js.map +1 -1
  24. package/build/file/view.js +4 -6
  25. package/build/file/view.js.map +1 -1
  26. package/build/form/index.js +1 -1
  27. package/build/form/index.js.map +1 -1
  28. package/build/form-submit-button/edit.js +2 -1
  29. package/build/form-submit-button/edit.js.map +1 -1
  30. package/build/gallery/gap-styles.js +12 -7
  31. package/build/gallery/gap-styles.js.map +1 -1
  32. package/build/group/edit.js +4 -7
  33. package/build/group/edit.js.map +1 -1
  34. package/build/html/transforms.js +7 -2
  35. package/build/html/transforms.js.map +1 -1
  36. package/build/image/deprecated.js +8 -0
  37. package/build/image/deprecated.js.map +1 -1
  38. package/build/image/edit.js +17 -18
  39. package/build/image/edit.js.map +1 -1
  40. package/build/image/edit.native.js +22 -15
  41. package/build/image/edit.native.js.map +1 -1
  42. package/build/image/image.js +35 -27
  43. package/build/image/image.js.map +1 -1
  44. package/build/image/index.js +2 -3
  45. package/build/image/index.js.map +1 -1
  46. package/build/image/view.js +234 -266
  47. package/build/image/view.js.map +1 -1
  48. package/build/missing/index.js +1 -1
  49. package/build/navigation/edit/overlay-menu-preview.js +1 -1
  50. package/build/navigation/edit/overlay-menu-preview.js.map +1 -1
  51. package/build/navigation/use-template-part-area-label.js +2 -1
  52. package/build/navigation/use-template-part-area-label.js.map +1 -1
  53. package/build/navigation/view.js +153 -176
  54. package/build/navigation/view.js.map +1 -1
  55. package/build/navigation-link/edit.js +1 -1
  56. package/build/navigation-link/edit.js.map +1 -1
  57. package/build/navigation-link/index.js +2 -1
  58. package/build/navigation-link/index.js.map +1 -1
  59. package/build/pattern/edit.js +2 -4
  60. package/build/pattern/edit.js.map +1 -1
  61. package/build/post-author/edit.js +0 -1
  62. package/build/post-author/edit.js.map +1 -1
  63. package/build/post-featured-image/edit.js +21 -6
  64. package/build/post-featured-image/edit.js.map +1 -1
  65. package/build/post-template/edit.js +2 -8
  66. package/build/post-template/edit.js.map +1 -1
  67. package/build/post-template/index.js +1 -1
  68. package/build/post-terms/edit.js +0 -2
  69. package/build/post-terms/edit.js.map +1 -1
  70. package/build/preformatted/transforms.js +1 -4
  71. package/build/preformatted/transforms.js.map +1 -1
  72. package/build/query/edit/query-content.js +1 -0
  73. package/build/query/edit/query-content.js.map +1 -1
  74. package/build/query/view.js +52 -60
  75. package/build/query/view.js.map +1 -1
  76. package/build/quote/index.js +6 -0
  77. package/build/quote/index.js.map +1 -1
  78. package/build/search/view.js +66 -74
  79. package/build/search/view.js.map +1 -1
  80. package/build/template-part/edit/advanced-controls.js +1 -0
  81. package/build/template-part/edit/advanced-controls.js.map +1 -1
  82. package/build/template-part/edit/index.js +3 -7
  83. package/build/template-part/edit/index.js.map +1 -1
  84. package/build/template-part/index.js +6 -2
  85. package/build/template-part/index.js.map +1 -1
  86. package/build/template-part/variations.js +5 -1
  87. package/build/template-part/variations.js.map +1 -1
  88. package/build/utils/remove-anchor-tag.js +17 -0
  89. package/build/utils/remove-anchor-tag.js.map +1 -0
  90. package/build-module/block/edit.js +11 -13
  91. package/build-module/block/edit.js.map +1 -1
  92. package/build-module/block/edit.native.js +3 -4
  93. package/build-module/block/edit.native.js.map +1 -1
  94. package/build-module/button/edit.js +65 -13
  95. package/build-module/button/edit.js.map +1 -1
  96. package/build-module/code/transforms.js +20 -7
  97. package/build-module/code/transforms.js.map +1 -1
  98. package/build-module/column/edit.js +1 -1
  99. package/build-module/column/edit.js.map +1 -1
  100. package/build-module/column/edit.native.js +1 -1
  101. package/build-module/column/edit.native.js.map +1 -1
  102. package/build-module/comments/edit/comments-inspector-controls.js +1 -0
  103. package/build-module/comments/edit/comments-inspector-controls.js.map +1 -1
  104. package/build-module/cover/edit/index.js +2 -1
  105. package/build-module/cover/edit/index.js.map +1 -1
  106. package/build-module/cover/edit/inspector-controls.js +1 -0
  107. package/build-module/cover/edit/inspector-controls.js.map +1 -1
  108. package/build-module/details/edit.js +1 -2
  109. package/build-module/details/edit.js.map +1 -1
  110. package/build-module/file/edit.js +8 -9
  111. package/build-module/file/edit.js.map +1 -1
  112. package/build-module/file/view.js +5 -7
  113. package/build-module/file/view.js.map +1 -1
  114. package/build-module/form/index.js +1 -1
  115. package/build-module/form/index.js.map +1 -1
  116. package/build-module/form-submit-button/edit.js +2 -1
  117. package/build-module/form-submit-button/edit.js.map +1 -1
  118. package/build-module/gallery/gap-styles.js +13 -8
  119. package/build-module/gallery/gap-styles.js.map +1 -1
  120. package/build-module/group/edit.js +4 -7
  121. package/build-module/group/edit.js.map +1 -1
  122. package/build-module/html/transforms.js +7 -2
  123. package/build-module/html/transforms.js.map +1 -1
  124. package/build-module/image/deprecated.js +8 -0
  125. package/build-module/image/deprecated.js.map +1 -1
  126. package/build-module/image/edit.js +18 -19
  127. package/build-module/image/edit.js.map +1 -1
  128. package/build-module/image/edit.native.js +23 -16
  129. package/build-module/image/edit.native.js.map +1 -1
  130. package/build-module/image/image.js +36 -28
  131. package/build-module/image/image.js.map +1 -1
  132. package/build-module/image/index.js +2 -3
  133. package/build-module/image/index.js.map +1 -1
  134. package/build-module/image/view.js +235 -267
  135. package/build-module/image/view.js.map +1 -1
  136. package/build-module/missing/index.js +1 -1
  137. package/build-module/navigation/edit/overlay-menu-preview.js +1 -1
  138. package/build-module/navigation/edit/overlay-menu-preview.js.map +1 -1
  139. package/build-module/navigation/use-template-part-area-label.js +2 -1
  140. package/build-module/navigation/use-template-part-area-label.js.map +1 -1
  141. package/build-module/navigation/view.js +154 -177
  142. package/build-module/navigation/view.js.map +1 -1
  143. package/build-module/navigation-link/edit.js +2 -2
  144. package/build-module/navigation-link/edit.js.map +1 -1
  145. package/build-module/navigation-link/index.js +2 -1
  146. package/build-module/navigation-link/index.js.map +1 -1
  147. package/build-module/pattern/edit.js +2 -4
  148. package/build-module/pattern/edit.js.map +1 -1
  149. package/build-module/post-author/edit.js +0 -1
  150. package/build-module/post-author/edit.js.map +1 -1
  151. package/build-module/post-featured-image/edit.js +21 -6
  152. package/build-module/post-featured-image/edit.js.map +1 -1
  153. package/build-module/post-template/edit.js +2 -8
  154. package/build-module/post-template/edit.js.map +1 -1
  155. package/build-module/post-template/index.js +1 -1
  156. package/build-module/post-terms/edit.js +0 -2
  157. package/build-module/post-terms/edit.js.map +1 -1
  158. package/build-module/preformatted/transforms.js +1 -4
  159. package/build-module/preformatted/transforms.js.map +1 -1
  160. package/build-module/query/edit/query-content.js +1 -0
  161. package/build-module/query/edit/query-content.js.map +1 -1
  162. package/build-module/query/view.js +53 -61
  163. package/build-module/query/view.js.map +1 -1
  164. package/build-module/quote/index.js +6 -0
  165. package/build-module/quote/index.js.map +1 -1
  166. package/build-module/search/view.js +67 -75
  167. package/build-module/search/view.js.map +1 -1
  168. package/build-module/template-part/edit/advanced-controls.js +1 -0
  169. package/build-module/template-part/edit/advanced-controls.js.map +1 -1
  170. package/build-module/template-part/edit/index.js +5 -9
  171. package/build-module/template-part/edit/index.js.map +1 -1
  172. package/build-module/template-part/index.js +6 -2
  173. package/build-module/template-part/index.js.map +1 -1
  174. package/build-module/template-part/variations.js +5 -1
  175. package/build-module/template-part/variations.js.map +1 -1
  176. package/build-module/utils/remove-anchor-tag.js +11 -0
  177. package/build-module/utils/remove-anchor-tag.js.map +1 -0
  178. package/build-style/cover/style-rtl.css +14 -14
  179. package/build-style/cover/style.css +14 -14
  180. package/build-style/editor-rtl.css +15 -6
  181. package/build-style/editor.css +15 -6
  182. package/build-style/gallery/style-rtl.css +28 -0
  183. package/build-style/gallery/style.css +28 -0
  184. package/build-style/image/style-rtl.css +19 -13
  185. package/build-style/image/style.css +19 -13
  186. package/build-style/post-featured-image/editor-rtl.css +9 -0
  187. package/build-style/post-featured-image/editor.css +9 -0
  188. package/build-style/quote/style-rtl.css +3 -0
  189. package/build-style/quote/style.css +3 -0
  190. package/build-style/read-more/style-rtl.css +2 -2
  191. package/build-style/read-more/style.css +2 -2
  192. package/build-style/style-rtl.css +66 -29
  193. package/build-style/style.css +66 -29
  194. package/package.json +32 -32
  195. package/src/block/edit.js +20 -20
  196. package/src/block/edit.native.js +5 -13
  197. package/src/button/edit.js +76 -10
  198. package/src/buttons/test/__snapshots__/edit.native.js.snap +0 -6
  199. package/src/buttons/test/edit.native.js +0 -27
  200. package/src/code/transforms.js +14 -8
  201. package/src/column/edit.js +1 -1
  202. package/src/column/edit.native.js +1 -1
  203. package/src/comments/edit/comments-inspector-controls.js +1 -0
  204. package/src/cover/edit/index.js +1 -0
  205. package/src/cover/edit/inspector-controls.js +1 -0
  206. package/src/cover/style.scss +1 -1
  207. package/src/cover/test/edit.js +1 -1
  208. package/src/details/edit.js +0 -1
  209. package/src/editor.scss +6 -6
  210. package/src/file/edit.js +11 -10
  211. package/src/file/index.php +30 -11
  212. package/src/file/view.js +5 -7
  213. package/src/form/index.js +1 -1
  214. package/src/form-submit-button/edit.js +1 -0
  215. package/src/gallery/gap-styles.js +10 -9
  216. package/src/gallery/style.scss +1 -0
  217. package/src/group/edit.js +4 -11
  218. package/src/heading/test/__snapshots__/index.native.js.snap +6 -0
  219. package/src/heading/test/index.native.js +40 -0
  220. package/src/html/transforms.js +5 -2
  221. package/src/image/block.json +2 -3
  222. package/src/image/deprecated.js +8 -0
  223. package/src/image/edit.js +16 -21
  224. package/src/image/edit.native.js +17 -18
  225. package/src/image/image.js +48 -51
  226. package/src/image/index.php +57 -49
  227. package/src/image/style.scss +18 -13
  228. package/src/image/view.js +281 -324
  229. package/src/missing/block.json +1 -1
  230. package/src/navigation/edit/overlay-menu-preview.js +1 -1
  231. package/src/navigation/index.php +46 -402
  232. package/src/navigation/use-template-part-area-label.js +4 -2
  233. package/src/navigation/view.js +159 -192
  234. package/src/navigation-link/block.json +2 -1
  235. package/src/navigation-link/edit.js +2 -2
  236. package/src/navigation-link/index.php +57 -0
  237. package/src/paragraph/test/__snapshots__/transforms.native.js.snap +6 -0
  238. package/src/paragraph/test/edit.native.js +37 -1
  239. package/src/paragraph/test/transforms.native.js +1 -0
  240. package/src/pattern/edit.js +7 -4
  241. package/src/pattern/index.php +6 -1
  242. package/src/post-author/edit.js +0 -1
  243. package/src/post-featured-image/edit.js +38 -5
  244. package/src/post-featured-image/editor.scss +19 -0
  245. package/src/post-template/block.json +0 -1
  246. package/src/post-template/edit.js +1 -5
  247. package/src/post-terms/edit.js +0 -2
  248. package/src/preformatted/transforms.js +1 -4
  249. package/src/query/edit/query-content.js +1 -0
  250. package/src/query/index.php +42 -24
  251. package/src/query/view.js +58 -65
  252. package/src/query-pagination-next/index.php +3 -3
  253. package/src/query-pagination-numbers/index.php +1 -1
  254. package/src/query-pagination-previous/index.php +3 -3
  255. package/src/quote/block.json +6 -0
  256. package/src/quote/style.scss +4 -0
  257. package/src/read-more/style.scss +1 -1
  258. package/src/search/index.php +40 -40
  259. package/src/search/view.js +58 -63
  260. package/src/template-part/edit/advanced-controls.js +1 -0
  261. package/src/template-part/edit/index.js +7 -14
  262. package/src/template-part/index.js +4 -3
  263. package/src/template-part/index.php +4 -4
  264. package/src/template-part/variations.js +4 -2
  265. package/src/utils/remove-anchor-tag.js +10 -0
  266. package/tsconfig.json +1 -0
@@ -1,73 +1,68 @@
1
1
  /**
2
2
  * WordPress dependencies
3
3
  */
4
- import { store as wpStore } from '@wordpress/interactivity';
4
+ import { store, getContext, getElement } from '@wordpress/interactivity';
5
5
 
6
- wpStore( {
7
- selectors: {
8
- core: {
9
- search: {
10
- ariaLabel: ( { context } ) => {
11
- const { ariaLabelCollapsed, ariaLabelExpanded } =
12
- context.core.search;
13
- return context.core.search.isSearchInputVisible
14
- ? ariaLabelExpanded
15
- : ariaLabelCollapsed;
16
- },
17
- ariaControls: ( { context } ) => {
18
- return context.core.search.isSearchInputVisible
19
- ? null
20
- : context.core.search.inputId;
21
- },
22
- type: ( { context } ) => {
23
- return context.core.search.isSearchInputVisible
24
- ? 'submit'
25
- : 'button';
26
- },
27
- tabindex: ( { context } ) => {
28
- return context.core.search.isSearchInputVisible
29
- ? '0'
30
- : '-1';
31
- },
32
- },
6
+ const { actions } = store( 'core/search', {
7
+ state: {
8
+ get ariaLabel() {
9
+ const {
10
+ isSearchInputVisible,
11
+ ariaLabelCollapsed,
12
+ ariaLabelExpanded,
13
+ } = getContext();
14
+ return isSearchInputVisible
15
+ ? ariaLabelExpanded
16
+ : ariaLabelCollapsed;
17
+ },
18
+ get ariaControls() {
19
+ const { isSearchInputVisible, inputId } = getContext();
20
+ return isSearchInputVisible ? null : inputId;
21
+ },
22
+ get type() {
23
+ const { isSearchInputVisible } = getContext();
24
+ return isSearchInputVisible ? 'submit' : 'button';
25
+ },
26
+ get tabindex() {
27
+ const { isSearchInputVisible } = getContext();
28
+ return isSearchInputVisible ? '0' : '-1';
33
29
  },
34
30
  },
35
31
  actions: {
36
- core: {
37
- search: {
38
- openSearchInput: ( { context, event, ref } ) => {
39
- if ( ! context.core.search.isSearchInputVisible ) {
40
- event.preventDefault();
41
- context.core.search.isSearchInputVisible = true;
42
- ref.parentElement.querySelector( 'input' ).focus();
43
- }
44
- },
45
- closeSearchInput: ( { context } ) => {
46
- context.core.search.isSearchInputVisible = false;
47
- },
48
- handleSearchKeydown: ( store ) => {
49
- const { actions, event, ref } = store;
50
- // If Escape close the menu.
51
- if ( event?.key === 'Escape' ) {
52
- actions.core.search.closeSearchInput( store );
53
- ref.querySelector( 'button' ).focus();
54
- }
55
- },
56
- handleSearchFocusout: ( store ) => {
57
- const { actions, event, ref } = store;
58
- // If focus is outside search form, and in the document, close menu
59
- // event.target === The element losing focus
60
- // event.relatedTarget === The element receiving focus (if any)
61
- // When focusout is outside the document,
62
- // `window.document.activeElement` doesn't change.
63
- if (
64
- ! ref.contains( event.relatedTarget ) &&
65
- event.target !== window.document.activeElement
66
- ) {
67
- actions.core.search.closeSearchInput( store );
68
- }
69
- },
70
- },
32
+ openSearchInput( event ) {
33
+ const ctx = getContext();
34
+ const { ref } = getElement();
35
+ if ( ! ctx.isSearchInputVisible ) {
36
+ event.preventDefault();
37
+ ctx.isSearchInputVisible = true;
38
+ ref.parentElement.querySelector( 'input' ).focus();
39
+ }
40
+ },
41
+ closeSearchInput() {
42
+ const ctx = getContext();
43
+ ctx.isSearchInputVisible = false;
44
+ },
45
+ handleSearchKeydown( event ) {
46
+ const { ref } = getElement();
47
+ // If Escape close the menu.
48
+ if ( event?.key === 'Escape' ) {
49
+ actions.closeSearchInput();
50
+ ref.querySelector( 'button' ).focus();
51
+ }
52
+ },
53
+ handleSearchFocusout( event ) {
54
+ const { ref } = getElement();
55
+ // If focus is outside search form, and in the document, close menu
56
+ // event.target === The element losing focus
57
+ // event.relatedTarget === The element receiving focus (if any)
58
+ // When focusout is outside the document,
59
+ // `window.document.activeElement` doesn't change.
60
+ if (
61
+ ! ref.contains( event.relatedTarget ) &&
62
+ event.target !== window.document.activeElement
63
+ ) {
64
+ actions.closeSearchInput();
65
+ }
71
66
  },
72
67
  },
73
68
  } );
@@ -95,6 +95,7 @@ export function TemplatePartAdvancedControls( {
95
95
  ) }
96
96
  <SelectControl
97
97
  __nextHasNoMarginBottom
98
+ __next40pxDefaultSize
98
99
  label={ __( 'HTML element' ) }
99
100
  options={ [
100
101
  {
@@ -4,7 +4,6 @@
4
4
  import { useSelect } from '@wordpress/data';
5
5
  import {
6
6
  BlockSettingsMenuControls,
7
- BlockTitle,
8
7
  useBlockProps,
9
8
  Warning,
10
9
  store as blockEditorStore,
@@ -14,7 +13,7 @@ import {
14
13
  import { Spinner, Modal, MenuItem } from '@wordpress/components';
15
14
  import { __, sprintf } from '@wordpress/i18n';
16
15
  import { store as coreStore } from '@wordpress/core-data';
17
- import { useState, createInterpolateElement } from '@wordpress/element';
16
+ import { useState } from '@wordpress/element';
18
17
 
19
18
  /**
20
19
  * Internal dependencies
@@ -35,7 +34,11 @@ export default function TemplatePartEdit( {
35
34
  setAttributes,
36
35
  clientId,
37
36
  } ) {
38
- const { slug, theme, tagName, layout = {} } = attributes;
37
+ const currentTheme = useSelect(
38
+ ( select ) => select( coreStore ).getCurrentTheme()?.stylesheet,
39
+ []
40
+ );
41
+ const { slug, theme = currentTheme, tagName, layout = {} } = attributes;
39
42
  const templatePartId = createTemplatePartId( theme, slug );
40
43
  const hasAlreadyRendered = useHasRecursion( templatePartId );
41
44
  const [ isTemplatePartSelectionOpen, setIsTemplatePartSelectionOpen ] =
@@ -174,17 +177,7 @@ export default function TemplatePartEdit( {
174
177
  }
175
178
  aria-haspopup="dialog"
176
179
  >
177
- { createInterpolateElement(
178
- __( 'Replace <BlockTitle />' ),
179
- {
180
- BlockTitle: (
181
- <BlockTitle
182
- clientId={ clientId }
183
- maximumLength={ 25 }
184
- />
185
- ),
186
- }
187
- ) }
180
+ { __( 'Replace' ) }
188
181
  </MenuItem>
189
182
  );
190
183
  } }
@@ -32,10 +32,11 @@ export const settings = {
32
32
  return;
33
33
  }
34
34
 
35
- const entity = select( coreDataStore ).getEntityRecord(
35
+ const { getCurrentTheme, getEntityRecord } = select( coreDataStore );
36
+ const entity = getEntityRecord(
36
37
  'postType',
37
38
  'wp_template_part',
38
- theme + '//' + slug
39
+ ( theme || getCurrentTheme()?.stylesheet ) + '//' + slug
39
40
  );
40
41
  if ( ! entity ) {
41
42
  return;
@@ -60,7 +61,7 @@ export const init = () => {
60
61
  const DISALLOWED_PARENTS = [ 'core/post-template', 'core/post-content' ];
61
62
  addFilter(
62
63
  'blockEditor.__unstableCanInsertBlockType',
63
- 'removeTemplatePartsFromPostTemplates',
64
+ 'core/block-library/removeTemplatePartsFromPostTemplates',
64
65
  (
65
66
  canInsert,
66
67
  blockType,
@@ -43,10 +43,10 @@ function render_block_core_template_part( $attributes ) {
43
43
  if ( $template_part_post ) {
44
44
  // A published post might already exist if this template part was customized elsewhere
45
45
  // or if it's part of a customized template.
46
- $content = $template_part_post->post_content;
47
- $area_terms = get_the_terms( $template_part_post, 'wp_template_part_area' );
48
- if ( ! is_wp_error( $area_terms ) && false !== $area_terms ) {
49
- $area = $area_terms[0]->name;
46
+ $block_template = _build_block_template_result_from_post( $template_part_post );
47
+ $content = $block_template->content;
48
+ if ( isset( $block_template->area ) ) {
49
+ $area = $block_template->area;
50
50
  }
51
51
  /**
52
52
  * Fires when a block template part is loaded from a template post stored in the database.
@@ -35,10 +35,12 @@ export function enhanceTemplatePartVariations( settings, name ) {
35
35
  // Find a matching variation from the created template part
36
36
  // by checking the entity's `area` property.
37
37
  if ( ! slug ) return false;
38
- const entity = select( coreDataStore ).getEntityRecord(
38
+ const { getCurrentTheme, getEntityRecord } =
39
+ select( coreDataStore );
40
+ const entity = getEntityRecord(
39
41
  'postType',
40
42
  'wp_template_part',
41
- `${ theme }//${ slug }`
43
+ `${ theme || getCurrentTheme()?.stylesheet }//${ slug }`
42
44
  );
43
45
 
44
46
  if ( entity?.slug ) {
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Removes anchor tags from a string.
3
+ *
4
+ * @param {string} value The value to remove anchor tags from.
5
+ *
6
+ * @return {string} The value with anchor tags removed.
7
+ */
8
+ export default function removeAnchorTag( value ) {
9
+ return value.replace( /<\/?a[^>]*>/g, '' );
10
+ }
package/tsconfig.json CHANGED
@@ -26,6 +26,7 @@
26
26
  { "path": "../html-entities" },
27
27
  { "path": "../i18n" },
28
28
  { "path": "../icons" },
29
+ { "path": "../interactivity" },
29
30
  { "path": "../notices" },
30
31
  { "path": "../keycodes" },
31
32
  { "path": "../primitives" },