60 __experimentalRemoveAnnotation: () => (__experimentalRemoveAnnotation), |
60 __experimentalRemoveAnnotation: () => (__experimentalRemoveAnnotation), |
61 __experimentalRemoveAnnotationsBySource: () => (__experimentalRemoveAnnotationsBySource), |
61 __experimentalRemoveAnnotationsBySource: () => (__experimentalRemoveAnnotationsBySource), |
62 __experimentalUpdateAnnotationRange: () => (__experimentalUpdateAnnotationRange) |
62 __experimentalUpdateAnnotationRange: () => (__experimentalUpdateAnnotationRange) |
63 }); |
63 }); |
64 |
64 |
65 ;// CONCATENATED MODULE: external ["wp","richText"] |
65 ;// external ["wp","richText"] |
66 const external_wp_richText_namespaceObject = window["wp"]["richText"]; |
66 const external_wp_richText_namespaceObject = window["wp"]["richText"]; |
67 ;// CONCATENATED MODULE: external ["wp","i18n"] |
67 ;// external ["wp","i18n"] |
68 const external_wp_i18n_namespaceObject = window["wp"]["i18n"]; |
68 const external_wp_i18n_namespaceObject = window["wp"]["i18n"]; |
69 ;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/store/constants.js |
69 ;// ./node_modules/@wordpress/annotations/build-module/store/constants.js |
70 /** |
70 /** |
71 * The identifier for the data store. |
71 * The identifier for the data store. |
72 * |
72 * |
73 * @type {string} |
73 * @type {string} |
74 */ |
74 */ |
75 const STORE_NAME = 'core/annotations'; |
75 const STORE_NAME = 'core/annotations'; |
76 |
76 |
77 ;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/format/annotation.js |
77 ;// ./node_modules/@wordpress/annotations/build-module/format/annotation.js |
78 /** |
78 /** |
79 * WordPress dependencies |
79 * WordPress dependencies |
80 */ |
80 */ |
81 |
81 |
82 |
82 |
262 name: format_name, |
262 name: format_name, |
263 ...settings |
263 ...settings |
264 } = annotation; |
264 } = annotation; |
265 (0,external_wp_richText_namespaceObject.registerFormatType)(format_name, settings); |
265 (0,external_wp_richText_namespaceObject.registerFormatType)(format_name, settings); |
266 |
266 |
267 ;// CONCATENATED MODULE: external ["wp","hooks"] |
267 ;// external ["wp","hooks"] |
268 const external_wp_hooks_namespaceObject = window["wp"]["hooks"]; |
268 const external_wp_hooks_namespaceObject = window["wp"]["hooks"]; |
269 ;// CONCATENATED MODULE: external ["wp","data"] |
269 ;// external ["wp","data"] |
270 const external_wp_data_namespaceObject = window["wp"]["data"]; |
270 const external_wp_data_namespaceObject = window["wp"]["data"]; |
271 ;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/block/index.js |
271 ;// ./node_modules/@wordpress/annotations/build-module/block/index.js |
272 /** |
272 /** |
273 * WordPress dependencies |
273 * WordPress dependencies |
274 */ |
274 */ |
275 |
275 |
276 |
276 |
298 }; |
298 }; |
299 })(OriginalComponent); |
299 })(OriginalComponent); |
300 }; |
300 }; |
301 (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockListBlock', 'core/annotations', addAnnotationClassName); |
301 (0,external_wp_hooks_namespaceObject.addFilter)('editor.BlockListBlock', 'core/annotations', addAnnotationClassName); |
302 |
302 |
303 ;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/store/reducer.js |
303 ;// ./node_modules/@wordpress/annotations/build-module/store/reducer.js |
304 /** |
304 /** |
305 * Filters an array based on the predicate, but keeps the reference the same if |
305 * Filters an array based on the predicate, but keeps the reference the same if |
306 * the array hasn't changed. |
306 * the array hasn't changed. |
307 * |
307 * |
308 * @param {Array} collection The collection to filter. |
308 * @param {Array} collection The collection to filter. |
480 */ |
480 */ |
481 function __experimentalGetAnnotations(state) { |
481 function __experimentalGetAnnotations(state) { |
482 return Object.values(state).flat(); |
482 return Object.values(state).flat(); |
483 } |
483 } |
484 |
484 |
485 ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js |
485 ;// ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/native.js |
486 const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto); |
486 const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto); |
487 /* harmony default export */ const esm_browser_native = ({ |
487 /* harmony default export */ const esm_browser_native = ({ |
488 randomUUID |
488 randomUUID |
489 }); |
489 }); |
490 ;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js |
490 ;// ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/rng.js |
491 // Unique ID creation requires a high quality random # generator. In the browser we therefore |
491 // Unique ID creation requires a high quality random # generator. In the browser we therefore |
492 // require the crypto API and do not support built-in fallback to lower quality random number |
492 // require the crypto API and do not support built-in fallback to lower quality random number |
493 // generators (like Math.random()). |
493 // generators (like Math.random()). |
494 let getRandomValues; |
494 let getRandomValues; |
495 const rnds8 = new Uint8Array(16); |
495 const rnds8 = new Uint8Array(16); |
701 selectors: selectors_namespaceObject, |
701 selectors: selectors_namespaceObject, |
702 actions: actions_namespaceObject |
702 actions: actions_namespaceObject |
703 }); |
703 }); |
704 (0,external_wp_data_namespaceObject.register)(store); |
704 (0,external_wp_data_namespaceObject.register)(store); |
705 |
705 |
706 ;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/build-module/index.js |
706 ;// ./node_modules/@wordpress/annotations/build-module/index.js |
707 /** |
707 /** |
708 * Internal dependencies |
708 * Internal dependencies |
709 */ |
709 */ |
710 |
710 |
711 |
711 |