diff --git a/includes/blocks/correction-box-block/block.json b/includes/blocks/correction-box-block/block.json
new file mode 100644
index 0000000..28ed96f
--- /dev/null
+++ b/includes/blocks/correction-box-block/block.json
@@ -0,0 +1,45 @@
+{
+ "name": "newspack-block-theme/correction-box",
+ "category": "newspack",
+ "attributes": {},
+ "supports": {
+ "html": false,
+ "__experimentalBorder": {
+ "color": true,
+ "radius": true,
+ "style": true,
+ "width": true
+ },
+ "color": {
+ "link": true,
+ "__experimentalDefaultControls": {
+ "background": true,
+ "text": true
+ }
+ },
+ "spacing": {
+ "margin": true,
+ "padding": true,
+ "blockGap": true
+ },
+ "layout": true,
+ "shadow": true,
+ "typography": {
+ "fontSize": true,
+ "lineHeight": true,
+ "textAlign": true,
+ "__experimentalFontFamily": true,
+ "__experimentalTextDecoration": true,
+ "__experimentalFontStyle": true,
+ "__experimentalFontWeight": true,
+ "__experimentalLetterSpacing": true,
+ "__experimentalTextTransform": true,
+ "__experimentalWritingMode": true,
+ "__experimentalDefaultControls": {
+ "fontSize": true
+ }
+ }
+ },
+ "usesContext": [ "postId" ],
+ "textdomain": "newspack-block-theme"
+}
diff --git a/includes/blocks/correction-box-block/class-correction-box-block.php b/includes/blocks/correction-box-block/class-correction-box-block.php
new file mode 100644
index 0000000..9ff21a0
--- /dev/null
+++ b/includes/blocks/correction-box-block/class-correction-box-block.php
@@ -0,0 +1,113 @@
+ [ __CLASS__, 'render_block' ],
+ 'uses_context' => [ 'postId' ],
+ ]
+ );
+ }
+
+ /**
+ * Enqueues block editor assets.
+ */
+ public static function enqueue_block_editor_assets() {
+ global $pagenow;
+ $handle = '';
+ if ( 'site-editor.php' === $pagenow ) {
+ $handle = 'newspack-block-theme-correction-box-site-editor';
+ wp_enqueue_script( $handle, \get_theme_file_uri( 'dist/correction-box-block-site-editor.js' ), [ 'wp-blocks', 'wp-i18n', 'wp-element' ], NEWSPACK_BLOCK_THEME_VERSION, true );
+ return;
+ }
+
+ $handle = 'newspack-block-theme-correction-box-block';
+ wp_enqueue_script( $handle, \get_theme_file_uri( 'dist/correction-box-block-index.js' ), [ 'wp-blocks', 'wp-i18n', 'wp-element' ], NEWSPACK_BLOCK_THEME_VERSION, true );
+ }
+
+ /**
+ * Block render callback.
+ *
+ * @param array $attributes The block attributes.
+ * @param string $content The block content.
+ * @param object $block The block.
+ *
+ * @return string The block HTML.
+ */
+ public static function render_block( array $attributes, string $content, $block ) {
+ $post_id = $block->context['postId'] ?? null;
+
+ if ( empty( $post_id ) ) {
+ return '';
+ }
+
+ // Fetch corrections.
+ $corrections = Corrections::get_corrections( $post_id );
+
+ if ( empty( $corrections ) ) {
+ return '';
+ }
+
+ $block_wrapper_attributes = get_block_wrapper_attributes();
+ $corrections_archive_url = get_post_type_archive_link( Corrections::POST_TYPE );
+
+ ob_start();
+ ?>
+
>
+ post_content;
+ $correction_date = \get_the_date( get_option( 'date_format' ), $correction->ID );
+ $correction_time = \get_the_time( get_option( 'time_format' ), $correction->ID );
+ $timezone = \wp_timezone()->getName();
+ $correction_heading = sprintf(
+ '%s, %s %s %s:',
+ Corrections::get_correction_type( $correction->ID ),
+ $correction_date,
+ $correction_time,
+ $timezone
+ );
+ ?>
+
+
+
+
+
+
+
+
+
+
+ select( 'core/editor' ).getCurrentPostType(), [] );
+
+ /**
+ * Placeholder when no Corrections are available.
+ *
+ * @return {JSX.Element} The Empty Placeholder JSX.
+ */
+ function EmptyPlaceholder() {
+ return (
+ <>
+
+ { __(
+ 'This is the Corrections block, it will display all the corrections and clarifications.',
+ 'newspack-block-theme'
+ ) }
+
+
+ { __(
+ 'If there are no corrections or clarifications, this block will not be displayed.',
+ 'newspack-block-theme'
+ ) }
+
+ >
+ );
+ }
+
+ /**
+ * Toggle Refresh state.
+ */
+ const toggleRefresh = () => {
+ setIsRefreshing( ! isRefreshing );
+ };
+
+ return 'wp_template' === postType ? (
+
+ ) : (
+ <>
+
+
+
+
+
+
+ >
+ );
+}
diff --git a/includes/blocks/correction-box-block/index.js b/includes/blocks/correction-box-block/index.js
new file mode 100644
index 0000000..59a06aa
--- /dev/null
+++ b/includes/blocks/correction-box-block/index.js
@@ -0,0 +1,38 @@
+/**
+ * WordPress dependencies
+ */
+import { registerBlockType } from '@wordpress/blocks';
+import { Path, SVG } from '@wordpress/components';
+import { __ } from '@wordpress/i18n';
+
+/**
+ * Internal dependencies
+ */
+import blockData from './block.json';
+import Edit from './edit';
+
+export const title = __( 'Corrections', 'newspack-blocks' );
+
+export const icon = (
+
+
+
+);
+
+blockData = {
+ title,
+ icon: {
+ src: icon,
+ foreground: '#406ebc',
+ },
+ keywords: [ __( 'clarifications', 'newspack-blocks' ), __( 'updates', 'newspack-blocks' ) ],
+ description: __(
+ 'Display all corrections and clarifications made to a post.',
+ 'newspack-blocks'
+ ),
+ usesContext: [ 'postId' ],
+ edit: Edit,
+ ...blockData,
+};
+
+registerBlockType( blockData.name, blockData );
diff --git a/includes/blocks/correction-box-block/site-editor.js b/includes/blocks/correction-box-block/site-editor.js
new file mode 100644
index 0000000..9348460
--- /dev/null
+++ b/includes/blocks/correction-box-block/site-editor.js
@@ -0,0 +1,55 @@
+/**
+ * WordPress dependencies
+ */
+import { registerBlockType } from '@wordpress/blocks';
+import { Path, SVG } from '@wordpress/components';
+import { __ } from '@wordpress/i18n';
+
+/**
+ * Internal dependencies
+ */
+import blockData from './block.json';
+
+export const title = __( 'Corrections', 'newspack-block-theme' );
+
+export const icon = (
+
+
+
+);
+
+const EditComponent = () => {
+ return (
+ <>
+
+ { __(
+ 'This is the Corrections block, it will display all the corrections and clarifications.',
+ 'newspack-block-theme'
+ ) }
+
+
+ { __(
+ 'If there are no corrections or clarifications, this block will not be displayed.',
+ 'newspack-block-theme'
+ ) }
+
+ >
+ );
+};
+
+const siteEditorBlockData = {
+ title,
+ icon: {
+ src: icon,
+ foreground: '#406ebc',
+ },
+ keywords: [ __( 'clarifications', 'newspack-blocks' ), __( 'updates', 'newspack-blocks' ) ],
+ description: __(
+ 'Display all corrections and clarifications made to a post.',
+ 'newspack-blocks'
+ ),
+ ...blockData,
+ edit: EditComponent,
+};
+
+registerBlockType( blockData.name, siteEditorBlockData );
diff --git a/includes/blocks/correction-item-block/block.json b/includes/blocks/correction-item-block/block.json
new file mode 100644
index 0000000..f467cbd
--- /dev/null
+++ b/includes/blocks/correction-item-block/block.json
@@ -0,0 +1,44 @@
+{
+ "name": "newspack-block-theme/correction-item",
+ "category": "newspack",
+ "attributes": {},
+ "supports": {
+ "html": false,
+ "__experimentalBorder": {
+ "color": true,
+ "radius": true,
+ "style": true,
+ "width": true
+ },
+ "color": {
+ "link": true,
+ "__experimentalDefaultControls": {
+ "background": true,
+ "text": true
+ }
+ },
+ "spacing": {
+ "margin": true,
+ "padding": true
+ },
+ "shadow": true,
+ "typography": {
+ "fontSize": true,
+ "lineHeight": true,
+ "textAlign": true,
+ "__experimentalFontFamily": true,
+ "__experimentalTextDecoration": true,
+ "__experimentalFontStyle": true,
+ "__experimentalFontWeight": true,
+ "__experimentalLetterSpacing": true,
+ "__experimentalTextTransform": true,
+ "__experimentalWritingMode": true,
+ "__experimentalDefaultControls": {
+ "fontSize": true
+ }
+ }
+ },
+ "parent": [ "core/post-template" ],
+ "usesContext": [ "postId", "postType" ],
+ "textdomain": "newspack-block-theme"
+}
diff --git a/includes/blocks/correction-item-block/class-correction-item-block.php b/includes/blocks/correction-item-block/class-correction-item-block.php
new file mode 100644
index 0000000..4b17b69
--- /dev/null
+++ b/includes/blocks/correction-item-block/class-correction-item-block.php
@@ -0,0 +1,99 @@
+ [ __CLASS__, 'render_block' ],
+ ]
+ );
+ }
+
+ /**
+ * Enqueues block editor assets.
+ */
+ public static function enqueue_block_editor_assets() {
+ $handle = 'newspack-block-theme-correction-item-block';
+ wp_enqueue_script( $handle, \get_theme_file_uri( 'dist/correction-item-block-editor.js' ), [ 'wp-blocks', 'wp-i18n', 'wp-element' ], NEWSPACK_BLOCK_THEME_VERSION, true );
+ }
+
+ /**
+ * Block render callback.
+ *
+ * @param array $attributes The block attributes.
+ * @param string $content The block content.
+ * @param object $block The block.
+ *
+ * @return string The block HTML.
+ */
+ public static function render_block( array $attributes, string $content, $block ) {
+ $correction_id = $block->context['postId'] ?? null;
+
+ if ( empty( $correction_id ) || Corrections::POST_TYPE !== $block->context['postType'] ) {
+ return '';
+ }
+
+ $correction = get_post( $correction_id );
+
+ if ( empty( $correction ) ) {
+ return '';
+ }
+
+ ob_start();
+ $correction_content = $correction->post_content;
+ $correction_date = \get_the_date( get_option( 'date_format' ), $correction->ID );
+ $correction_time = \get_the_time( get_option( 'time_format' ), $correction->ID );
+ $timezone = \wp_timezone()->getName();
+ $correction_heading = sprintf(
+ '%s, %s %s %s:',
+ Corrections::get_correction_type( $correction->ID ),
+ $correction_date,
+ $correction_time,
+ $timezone
+ );
+ $correction_related_post = get_post_meta( $correction->ID, Corrections::CORRECTION_POST_ID_META, true );
+ $corrections_post_url = get_permalink( $correction_related_post );
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+);
+
+const EditComponent = ( { context: { postType } } ) => {
+ if ( 'newspack_correction' !== postType ) {
+ return (
+
+ );
+ }
+
+ return (
+ <>
+
+
+ { __( 'Correction Type, Date, and Time: ', 'newspack-block-theme' ) }
+
+
+ { __(
+ 'This is where the content will appear, providing details about the update, whether correcting an error or offering additional context.',
+ 'newspack-block-theme'
+ ) }
+
+
+
+ { __( 'Post Title', 'newspack-block-theme' ) }
+
+ >
+ );
+};
+
+blockData = {
+ title,
+ icon: {
+ src: icon,
+ foreground: '#406ebc',
+ },
+ description: __(
+ 'Display an archive of all the corrections and clarifications.',
+ 'newspack-blocks'
+ ),
+ usesContext: [ 'postType' ],
+ edit: EditComponent,
+ ...blockData,
+};
+
+registerBlockType( blockData.name, blockData );
diff --git a/includes/blocks/correction-item-block/style.scss b/includes/blocks/correction-item-block/style.scss
new file mode 100644
index 0000000..88f8fb6
--- /dev/null
+++ b/includes/blocks/correction-item-block/style.scss
@@ -0,0 +1,6 @@
+.correction {
+
+ &__post-link {
+ color: var(--newspack-ui-color-neutral-90, var(--wp--preset--color--contrast));
+ }
+}
diff --git a/includes/blocks/index.php b/includes/blocks/index.php
index b0edf92..fda4097 100644
--- a/includes/blocks/index.php
+++ b/includes/blocks/index.php
@@ -10,3 +10,8 @@
defined( 'ABSPATH' ) || exit;
require_once NEWSPACK_BLOCK_THEME_FILE_PATH . '/includes/blocks/subtitle-block/class-subtitle-block.php';
+
+if ( class_exists( 'Newspack\Corrections' ) && defined( 'NEWSPACK_CORRECTIONS_ENABLED' ) && NEWSPACK_CORRECTIONS_ENABLED ) {
+ require_once NEWSPACK_BLOCK_THEME_FILE_PATH . '/includes/blocks/correction-box-block/class-correction-box-block.php';
+ require_once NEWSPACK_BLOCK_THEME_FILE_PATH . '/includes/blocks/correction-item-block/class-correction-item-block.php';
+}
diff --git a/package-lock.json b/package-lock.json
index 1bdee98..3fc826e 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9,6 +9,9 @@
"version": "1.14.0",
"hasInstallScript": true,
"license": "GPL-3.0",
+ "dependencies": {
+ "@wordpress/icons": "^10.18.0"
+ },
"devDependencies": {
"@rushstack/eslint-patch": "^1.10.5",
"eslint": "^7.32.0",
@@ -2263,12 +2266,11 @@
"dev": true
},
"node_modules/@babel/runtime": {
- "version": "7.21.0",
- "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.21.0.tgz",
- "integrity": "sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==",
- "dev": true,
+ "version": "7.25.7",
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.25.7.tgz",
+ "integrity": "sha512-FjoyLe754PMiYsFaN5C94ttGiOmBNYTf6pLr4xXHAT5uctHb092PBszndLDR5XA/jghQvn4n7JMHl7dmTgbm9w==",
"dependencies": {
- "regenerator-runtime": "^0.13.11"
+ "regenerator-runtime": "^0.14.0"
},
"engines": {
"node": ">=6.9.0"
@@ -5935,8 +5937,7 @@
"node_modules/@types/prop-types": {
"version": "15.7.5",
"resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz",
- "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==",
- "dev": true
+ "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w=="
},
"node_modules/@types/q": {
"version": "1.5.5",
@@ -5945,13 +5946,11 @@
"dev": true
},
"node_modules/@types/react": {
- "version": "18.0.37",
- "resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.37.tgz",
- "integrity": "sha512-4yaZZtkRN3ZIQD3KSEwkfcik8s0SWV+82dlJot1AbGYHCzJkWP3ENBY6wYeDRmKZ6HkrgoGAmR2HqdwYGp6OEw==",
- "dev": true,
+ "version": "18.3.18",
+ "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.18.tgz",
+ "integrity": "sha512-t4yC+vtgnkYjNSKlFx1jkAhH8LgTo2N/7Qvi83kdEaUtMDiwpbLAktKDaAMlRcJ5eSxZkH74eEGt1ky31d7kfQ==",
"dependencies": {
"@types/prop-types": "*",
- "@types/scheduler": "*",
"csstype": "^3.0.2"
}
},
@@ -6750,17 +6749,104 @@
}
},
"node_modules/@wordpress/icons": {
- "version": "6.3.0",
- "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-6.3.0.tgz",
- "integrity": "sha512-Vliw7QsFuTsrA05GZov4i3PQiLQOGO97PR2keUeY53fVZdeoJKv/nfDqOZxZCIts5jR2Mfje6P6hc/KlurxsKg==",
- "dev": true,
+ "version": "10.18.0",
+ "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-10.18.0.tgz",
+ "integrity": "sha512-stWW0msTspv6wCB3Pcu7PtVoFQBRr4R+oOvXlxVnpsUKuUz+mIAS08Sme9bTkHiVtHBZRK6YGpt4wYK6W0FXcw==",
"dependencies": {
- "@babel/runtime": "^7.16.0",
- "@wordpress/element": "^4.1.1",
- "@wordpress/primitives": "^3.1.1"
+ "@babel/runtime": "7.25.7",
+ "@wordpress/element": "^6.18.0",
+ "@wordpress/primitives": "^4.18.0"
},
"engines": {
- "node": ">=12"
+ "node": ">=18.12.0",
+ "npm": ">=8.19.2"
+ }
+ },
+ "node_modules/@wordpress/icons/node_modules/@types/react-dom": {
+ "version": "18.3.5",
+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.5.tgz",
+ "integrity": "sha512-P4t6saawp+b/dFrUr2cvkVsfvPguwsxtH6dNIYRllMsefqFzkZk5UIjzyDOv5g1dXIPdG4Sp1yCR4Z6RCUsG/Q==",
+ "peerDependencies": {
+ "@types/react": "^18.0.0"
+ }
+ },
+ "node_modules/@wordpress/icons/node_modules/@wordpress/element": {
+ "version": "6.18.0",
+ "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-6.18.0.tgz",
+ "integrity": "sha512-38wA2ta4GGOxuKofmyNP+EWA03bqBwUufQNQNd8GgcaKo4N/j+0wQMouLC/2g6n9MU5B0DH4tIv9uP9qR1miYg==",
+ "dependencies": {
+ "@babel/runtime": "7.25.7",
+ "@types/react": "^18.2.79",
+ "@types/react-dom": "^18.2.25",
+ "@wordpress/escape-html": "^3.18.0",
+ "change-case": "^4.1.2",
+ "is-plain-object": "^5.0.0",
+ "react": "^18.3.0",
+ "react-dom": "^18.3.0"
+ },
+ "engines": {
+ "node": ">=18.12.0",
+ "npm": ">=8.19.2"
+ }
+ },
+ "node_modules/@wordpress/icons/node_modules/@wordpress/escape-html": {
+ "version": "3.18.0",
+ "resolved": "https://registry.npmjs.org/@wordpress/escape-html/-/escape-html-3.18.0.tgz",
+ "integrity": "sha512-5hcsoIin5IYAEejuRJqnFQB5q5C0q8VII/H7wWOWoe8IXiRQCiju/DWRC25AL2xWdUdaqiG84JuiPq+7Npb8gw==",
+ "dependencies": {
+ "@babel/runtime": "7.25.7"
+ },
+ "engines": {
+ "node": ">=18.12.0",
+ "npm": ">=8.19.2"
+ }
+ },
+ "node_modules/@wordpress/icons/node_modules/@wordpress/primitives": {
+ "version": "4.18.0",
+ "resolved": "https://registry.npmjs.org/@wordpress/primitives/-/primitives-4.18.0.tgz",
+ "integrity": "sha512-c/8wC1MgbiQc/8kQlxuNuzeDeEW65jHSK0/qZ/afvHL1T4AmYmyC791nabpyGM+Le1kwe1LCDbPo/x2Oig0nbA==",
+ "dependencies": {
+ "@babel/runtime": "7.25.7",
+ "@wordpress/element": "^6.18.0",
+ "clsx": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=18.12.0",
+ "npm": ">=8.19.2"
+ },
+ "peerDependencies": {
+ "react": "^18.0.0"
+ }
+ },
+ "node_modules/@wordpress/icons/node_modules/react": {
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",
+ "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",
+ "dependencies": {
+ "loose-envify": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/@wordpress/icons/node_modules/react-dom": {
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",
+ "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",
+ "dependencies": {
+ "loose-envify": "^1.1.0",
+ "scheduler": "^0.23.2"
+ },
+ "peerDependencies": {
+ "react": "^18.3.1"
+ }
+ },
+ "node_modules/@wordpress/icons/node_modules/scheduler": {
+ "version": "0.23.2",
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",
+ "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",
+ "dependencies": {
+ "loose-envify": "^1.1.0"
}
},
"node_modules/@wordpress/is-shallow-equal": {
@@ -8455,7 +8541,6 @@
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz",
"integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==",
- "dev": true,
"dependencies": {
"pascal-case": "^3.1.2",
"tslib": "^2.0.3"
@@ -8523,7 +8608,6 @@
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/capital-case/-/capital-case-1.0.4.tgz",
"integrity": "sha512-ds37W8CytHgwnhGGTi88pcPyR15qoNkOpYwmMMfnWqqWgESapLqvDx6huFjQ5vqWSn2Z06173XNA7LtMOeUh1A==",
- "dev": true,
"dependencies": {
"no-case": "^3.0.4",
"tslib": "^2.0.3",
@@ -8581,7 +8665,6 @@
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/change-case/-/change-case-4.1.2.tgz",
"integrity": "sha512-bSxY2ws9OtviILG1EiY5K7NNxkqg/JnRnFxLtKQ96JaviiIxi7djMrSd0ECT9AC+lttClmYwKw53BWpOMblo7A==",
- "dev": true,
"dependencies": {
"camel-case": "^4.1.2",
"capital-case": "^1.0.4",
@@ -9033,6 +9116,14 @@
"node": ">=0.10.0"
}
},
+ "node_modules/clsx": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",
+ "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",
+ "engines": {
+ "node": ">=6"
+ }
+ },
"node_modules/co": {
"version": "4.6.0",
"resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",
@@ -9357,7 +9448,6 @@
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/constant-case/-/constant-case-3.0.4.tgz",
"integrity": "sha512-I2hSBi7Vvs7BEuJDr5dDHfzb/Ruj3FyvFyh7KLilAjNQw3Be+xgqUBA2W6scVEcL0hL1dwPRtIqEPVUCKkSsyQ==",
- "dev": true,
"dependencies": {
"no-case": "^3.0.4",
"tslib": "^2.0.3",
@@ -10148,8 +10238,7 @@
"node_modules/csstype": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz",
- "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==",
- "dev": true
+ "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ=="
},
"node_modules/cz-conventional-changelog": {
"version": "3.3.0",
@@ -10806,7 +10895,6 @@
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz",
"integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==",
- "dev": true,
"dependencies": {
"no-case": "^3.0.4",
"tslib": "^2.0.3"
@@ -13699,7 +13787,6 @@
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/header-case/-/header-case-2.0.4.tgz",
"integrity": "sha512-H/vuk5TEEVZwrR0lp2zed9OCo1uAILMlx0JEMgC26rzyJJ3N1v6XkwHHXJQdR2doSjcGPM6OKPYoJgf0plJ11Q==",
- "dev": true,
"dependencies": {
"capital-case": "^1.0.4",
"tslib": "^2.0.3"
@@ -14591,7 +14678,6 @@
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz",
"integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==",
- "dev": true,
"engines": {
"node": ">=0.10.0"
}
@@ -18732,8 +18818,7 @@
"node_modules/js-tokens": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
- "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
- "dev": true
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="
},
"node_modules/js-yaml": {
"version": "4.1.0",
@@ -19676,7 +19761,6 @@
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
"integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
- "dev": true,
"dependencies": {
"js-tokens": "^3.0.0 || ^4.0.0"
},
@@ -19688,7 +19772,6 @@
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz",
"integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==",
- "dev": true,
"dependencies": {
"tslib": "^2.0.3"
}
@@ -22169,6 +22252,20 @@
"node": ">=10.13.0"
}
},
+ "node_modules/newspack-scripts/node_modules/@wordpress/icons": {
+ "version": "6.3.0",
+ "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-6.3.0.tgz",
+ "integrity": "sha512-Vliw7QsFuTsrA05GZov4i3PQiLQOGO97PR2keUeY53fVZdeoJKv/nfDqOZxZCIts5jR2Mfje6P6hc/KlurxsKg==",
+ "dev": true,
+ "dependencies": {
+ "@babel/runtime": "^7.16.0",
+ "@wordpress/element": "^4.1.1",
+ "@wordpress/primitives": "^3.1.1"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
"node_modules/newspack-scripts/node_modules/@wordpress/plugins": {
"version": "4.20.0",
"resolved": "https://registry.npmjs.org/@wordpress/plugins/-/plugins-4.20.0.tgz",
@@ -22638,7 +22735,6 @@
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz",
"integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==",
- "dev": true,
"dependencies": {
"lower-case": "^2.0.2",
"tslib": "^2.0.3"
@@ -25829,7 +25925,6 @@
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz",
"integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==",
- "dev": true,
"dependencies": {
"dot-case": "^3.0.4",
"tslib": "^2.0.3"
@@ -25918,7 +26013,6 @@
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz",
"integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==",
- "dev": true,
"dependencies": {
"no-case": "^3.0.4",
"tslib": "^2.0.3"
@@ -25937,7 +26031,6 @@
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/path-case/-/path-case-3.0.4.tgz",
"integrity": "sha512-qO4qCFjXqVTrcbPt/hQfhTQ+VhFsqNKOPtytgNKkKxSoEp3XPUQ8ObFuePylOIok5gjn69ry8XiULxCwot3Wfg==",
- "dev": true,
"dependencies": {
"dot-case": "^3.0.4",
"tslib": "^2.0.3"
@@ -28759,10 +28852,9 @@
}
},
"node_modules/regenerator-runtime": {
- "version": "0.13.11",
- "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz",
- "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==",
- "dev": true
+ "version": "0.14.1",
+ "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",
+ "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw=="
},
"node_modules/regenerator-transform": {
"version": "0.15.1",
@@ -30087,7 +30179,6 @@
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/sentence-case/-/sentence-case-3.0.4.tgz",
"integrity": "sha512-8LS0JInaQMCRoQ7YUytAo/xUu5W2XnQxV2HI/6uM6U7CITS1RqPElr30V6uIqyMKM9lJGRVFy5/4CuzcixNYSg==",
- "dev": true,
"dependencies": {
"no-case": "^3.0.4",
"tslib": "^2.0.3",
@@ -30616,7 +30707,6 @@
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/snake-case/-/snake-case-3.0.4.tgz",
"integrity": "sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==",
- "dev": true,
"dependencies": {
"dot-case": "^3.0.4",
"tslib": "^2.0.3"
@@ -32733,8 +32823,7 @@
"node_modules/tslib": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz",
- "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==",
- "dev": true
+ "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg=="
},
"node_modules/tsutils": {
"version": "3.21.0",
@@ -33162,7 +33251,6 @@
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/upper-case/-/upper-case-2.0.2.tgz",
"integrity": "sha512-KgdgDGJt2TpuwBUIjgG6lzw2GWFRCW9Qkfkiv0DxqHHLYJHmtmdUIKcZd8rHgFSjopVTlw6ggzCm1b8MFQwikg==",
- "dev": true,
"dependencies": {
"tslib": "^2.0.3"
}
@@ -33171,7 +33259,6 @@
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/upper-case-first/-/upper-case-first-2.0.2.tgz",
"integrity": "sha512-514ppYHBaKwfJRK/pNC6c/OxfGa0obSnAl106u97Ed0I625Nin96KAjttZF6ZL3e1XLtphxnqrOi9iWgm+u+bg==",
- "dev": true,
"dependencies": {
"tslib": "^2.0.3"
}
@@ -35547,12 +35634,11 @@
"dev": true
},
"@babel/runtime": {
- "version": "7.21.0",
- "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.21.0.tgz",
- "integrity": "sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==",
- "dev": true,
+ "version": "7.25.7",
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.25.7.tgz",
+ "integrity": "sha512-FjoyLe754PMiYsFaN5C94ttGiOmBNYTf6pLr4xXHAT5uctHb092PBszndLDR5XA/jghQvn4n7JMHl7dmTgbm9w==",
"requires": {
- "regenerator-runtime": "^0.13.11"
+ "regenerator-runtime": "^0.14.0"
}
},
"@babel/template": {
@@ -38464,8 +38550,7 @@
"@types/prop-types": {
"version": "15.7.5",
"resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz",
- "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==",
- "dev": true
+ "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w=="
},
"@types/q": {
"version": "1.5.5",
@@ -38474,13 +38559,11 @@
"dev": true
},
"@types/react": {
- "version": "18.0.37",
- "resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.37.tgz",
- "integrity": "sha512-4yaZZtkRN3ZIQD3KSEwkfcik8s0SWV+82dlJot1AbGYHCzJkWP3ENBY6wYeDRmKZ6HkrgoGAmR2HqdwYGp6OEw==",
- "dev": true,
+ "version": "18.3.18",
+ "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.18.tgz",
+ "integrity": "sha512-t4yC+vtgnkYjNSKlFx1jkAhH8LgTo2N/7Qvi83kdEaUtMDiwpbLAktKDaAMlRcJ5eSxZkH74eEGt1ky31d7kfQ==",
"requires": {
"@types/prop-types": "*",
- "@types/scheduler": "*",
"csstype": "^3.0.2"
}
},
@@ -39098,14 +39181,79 @@
}
},
"@wordpress/icons": {
- "version": "6.3.0",
- "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-6.3.0.tgz",
- "integrity": "sha512-Vliw7QsFuTsrA05GZov4i3PQiLQOGO97PR2keUeY53fVZdeoJKv/nfDqOZxZCIts5jR2Mfje6P6hc/KlurxsKg==",
- "dev": true,
+ "version": "10.18.0",
+ "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-10.18.0.tgz",
+ "integrity": "sha512-stWW0msTspv6wCB3Pcu7PtVoFQBRr4R+oOvXlxVnpsUKuUz+mIAS08Sme9bTkHiVtHBZRK6YGpt4wYK6W0FXcw==",
"requires": {
- "@babel/runtime": "^7.16.0",
- "@wordpress/element": "^4.1.1",
- "@wordpress/primitives": "^3.1.1"
+ "@babel/runtime": "7.25.7",
+ "@wordpress/element": "^6.18.0",
+ "@wordpress/primitives": "^4.18.0"
+ },
+ "dependencies": {
+ "@types/react-dom": {
+ "version": "18.3.5",
+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.5.tgz",
+ "integrity": "sha512-P4t6saawp+b/dFrUr2cvkVsfvPguwsxtH6dNIYRllMsefqFzkZk5UIjzyDOv5g1dXIPdG4Sp1yCR4Z6RCUsG/Q==",
+ "requires": {}
+ },
+ "@wordpress/element": {
+ "version": "6.18.0",
+ "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-6.18.0.tgz",
+ "integrity": "sha512-38wA2ta4GGOxuKofmyNP+EWA03bqBwUufQNQNd8GgcaKo4N/j+0wQMouLC/2g6n9MU5B0DH4tIv9uP9qR1miYg==",
+ "requires": {
+ "@babel/runtime": "7.25.7",
+ "@types/react": "^18.2.79",
+ "@types/react-dom": "^18.2.25",
+ "@wordpress/escape-html": "^3.18.0",
+ "change-case": "^4.1.2",
+ "is-plain-object": "^5.0.0",
+ "react": "^18.3.0",
+ "react-dom": "^18.3.0"
+ }
+ },
+ "@wordpress/escape-html": {
+ "version": "3.18.0",
+ "resolved": "https://registry.npmjs.org/@wordpress/escape-html/-/escape-html-3.18.0.tgz",
+ "integrity": "sha512-5hcsoIin5IYAEejuRJqnFQB5q5C0q8VII/H7wWOWoe8IXiRQCiju/DWRC25AL2xWdUdaqiG84JuiPq+7Npb8gw==",
+ "requires": {
+ "@babel/runtime": "7.25.7"
+ }
+ },
+ "@wordpress/primitives": {
+ "version": "4.18.0",
+ "resolved": "https://registry.npmjs.org/@wordpress/primitives/-/primitives-4.18.0.tgz",
+ "integrity": "sha512-c/8wC1MgbiQc/8kQlxuNuzeDeEW65jHSK0/qZ/afvHL1T4AmYmyC791nabpyGM+Le1kwe1LCDbPo/x2Oig0nbA==",
+ "requires": {
+ "@babel/runtime": "7.25.7",
+ "@wordpress/element": "^6.18.0",
+ "clsx": "^2.1.1"
+ }
+ },
+ "react": {
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",
+ "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",
+ "requires": {
+ "loose-envify": "^1.1.0"
+ }
+ },
+ "react-dom": {
+ "version": "18.3.1",
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",
+ "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",
+ "requires": {
+ "loose-envify": "^1.1.0",
+ "scheduler": "^0.23.2"
+ }
+ },
+ "scheduler": {
+ "version": "0.23.2",
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",
+ "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",
+ "requires": {
+ "loose-envify": "^1.1.0"
+ }
+ }
}
},
"@wordpress/is-shallow-equal": {
@@ -40412,7 +40560,6 @@
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz",
"integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==",
- "dev": true,
"requires": {
"pascal-case": "^3.1.2",
"tslib": "^2.0.3"
@@ -40457,7 +40604,6 @@
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/capital-case/-/capital-case-1.0.4.tgz",
"integrity": "sha512-ds37W8CytHgwnhGGTi88pcPyR15qoNkOpYwmMMfnWqqWgESapLqvDx6huFjQ5vqWSn2Z06173XNA7LtMOeUh1A==",
- "dev": true,
"requires": {
"no-case": "^3.0.4",
"tslib": "^2.0.3",
@@ -40503,7 +40649,6 @@
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/change-case/-/change-case-4.1.2.tgz",
"integrity": "sha512-bSxY2ws9OtviILG1EiY5K7NNxkqg/JnRnFxLtKQ96JaviiIxi7djMrSd0ECT9AC+lttClmYwKw53BWpOMblo7A==",
- "dev": true,
"requires": {
"camel-case": "^4.1.2",
"capital-case": "^1.0.4",
@@ -40854,6 +40999,11 @@
}
}
},
+ "clsx": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",
+ "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA=="
+ },
"co": {
"version": "4.6.0",
"resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",
@@ -41132,7 +41282,6 @@
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/constant-case/-/constant-case-3.0.4.tgz",
"integrity": "sha512-I2hSBi7Vvs7BEuJDr5dDHfzb/Ruj3FyvFyh7KLilAjNQw3Be+xgqUBA2W6scVEcL0hL1dwPRtIqEPVUCKkSsyQ==",
- "dev": true,
"requires": {
"no-case": "^3.0.4",
"tslib": "^2.0.3",
@@ -41733,8 +41882,7 @@
"csstype": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz",
- "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==",
- "dev": true
+ "integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ=="
},
"cz-conventional-changelog": {
"version": "3.3.0",
@@ -42227,7 +42375,6 @@
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz",
"integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==",
- "dev": true,
"requires": {
"no-case": "^3.0.4",
"tslib": "^2.0.3"
@@ -44484,7 +44631,6 @@
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/header-case/-/header-case-2.0.4.tgz",
"integrity": "sha512-H/vuk5TEEVZwrR0lp2zed9OCo1uAILMlx0JEMgC26rzyJJ3N1v6XkwHHXJQdR2doSjcGPM6OKPYoJgf0plJ11Q==",
- "dev": true,
"requires": {
"capital-case": "^1.0.4",
"tslib": "^2.0.3"
@@ -45147,8 +45293,7 @@
"is-plain-object": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz",
- "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==",
- "dev": true
+ "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q=="
},
"is-potential-custom-element-name": {
"version": "1.0.1",
@@ -48427,8 +48572,7 @@
"js-tokens": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
- "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
- "dev": true
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="
},
"js-yaml": {
"version": "4.1.0",
@@ -49157,7 +49301,6 @@
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
"integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
- "dev": true,
"requires": {
"js-tokens": "^3.0.0 || ^4.0.0"
}
@@ -49166,7 +49309,6 @@
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/lower-case/-/lower-case-2.0.2.tgz",
"integrity": "sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==",
- "dev": true,
"requires": {
"tslib": "^2.0.3"
}
@@ -51112,6 +51254,17 @@
}
}
},
+ "@wordpress/icons": {
+ "version": "6.3.0",
+ "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-6.3.0.tgz",
+ "integrity": "sha512-Vliw7QsFuTsrA05GZov4i3PQiLQOGO97PR2keUeY53fVZdeoJKv/nfDqOZxZCIts5jR2Mfje6P6hc/KlurxsKg==",
+ "dev": true,
+ "requires": {
+ "@babel/runtime": "^7.16.0",
+ "@wordpress/element": "^4.1.1",
+ "@wordpress/primitives": "^3.1.1"
+ }
+ },
"@wordpress/plugins": {
"version": "4.20.0",
"resolved": "https://registry.npmjs.org/@wordpress/plugins/-/plugins-4.20.0.tgz",
@@ -51484,7 +51637,6 @@
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/no-case/-/no-case-3.0.4.tgz",
"integrity": "sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==",
- "dev": true,
"requires": {
"lower-case": "^2.0.2",
"tslib": "^2.0.3"
@@ -53732,7 +53884,6 @@
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz",
"integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==",
- "dev": true,
"requires": {
"dot-case": "^3.0.4",
"tslib": "^2.0.3"
@@ -53800,7 +53951,6 @@
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/pascal-case/-/pascal-case-3.1.2.tgz",
"integrity": "sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==",
- "dev": true,
"requires": {
"no-case": "^3.0.4",
"tslib": "^2.0.3"
@@ -53816,7 +53966,6 @@
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/path-case/-/path-case-3.0.4.tgz",
"integrity": "sha512-qO4qCFjXqVTrcbPt/hQfhTQ+VhFsqNKOPtytgNKkKxSoEp3XPUQ8ObFuePylOIok5gjn69ry8XiULxCwot3Wfg==",
- "dev": true,
"requires": {
"dot-case": "^3.0.4",
"tslib": "^2.0.3"
@@ -55980,10 +56129,9 @@
}
},
"regenerator-runtime": {
- "version": "0.13.11",
- "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz",
- "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==",
- "dev": true
+ "version": "0.14.1",
+ "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",
+ "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw=="
},
"regenerator-transform": {
"version": "0.15.1",
@@ -56976,7 +57124,6 @@
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/sentence-case/-/sentence-case-3.0.4.tgz",
"integrity": "sha512-8LS0JInaQMCRoQ7YUytAo/xUu5W2XnQxV2HI/6uM6U7CITS1RqPElr30V6uIqyMKM9lJGRVFy5/4CuzcixNYSg==",
- "dev": true,
"requires": {
"no-case": "^3.0.4",
"tslib": "^2.0.3",
@@ -57410,7 +57557,6 @@
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/snake-case/-/snake-case-3.0.4.tgz",
"integrity": "sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==",
- "dev": true,
"requires": {
"dot-case": "^3.0.4",
"tslib": "^2.0.3"
@@ -59031,8 +59177,7 @@
"tslib": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz",
- "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg==",
- "dev": true
+ "integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg=="
},
"tsutils": {
"version": "3.21.0",
@@ -59351,7 +59496,6 @@
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/upper-case/-/upper-case-2.0.2.tgz",
"integrity": "sha512-KgdgDGJt2TpuwBUIjgG6lzw2GWFRCW9Qkfkiv0DxqHHLYJHmtmdUIKcZd8rHgFSjopVTlw6ggzCm1b8MFQwikg==",
- "dev": true,
"requires": {
"tslib": "^2.0.3"
}
@@ -59360,7 +59504,6 @@
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/upper-case-first/-/upper-case-first-2.0.2.tgz",
"integrity": "sha512-514ppYHBaKwfJRK/pNC6c/OxfGa0obSnAl106u97Ed0I625Nin96KAjttZF6ZL3e1XLtphxnqrOi9iWgm+u+bg==",
- "dev": true,
"requires": {
"tslib": "^2.0.3"
}
diff --git a/package.json b/package.json
index 87231db..4c1f69a 100644
--- a/package.json
+++ b/package.json
@@ -48,5 +48,8 @@
"postcss-scss": "^4.0.9",
"prettier": "npm:wp-prettier@^2.6.2-beta-1",
"stylelint": "^16.14.0"
+ },
+ "dependencies": {
+ "@wordpress/icons": "^10.18.0"
}
}
diff --git a/src/scss/blocks/_blocks.scss b/src/scss/blocks/_blocks.scss
index dfe2d9e..3936103 100644
--- a/src/scss/blocks/_blocks.scss
+++ b/src/scss/blocks/_blocks.scss
@@ -35,3 +35,4 @@
@import url('./yoast/_how-to.scss');
@import url('../../../includes/blocks/subtitle-block/style.scss');
+@import url('../../../includes/blocks/correction-item-block/style.scss');
diff --git a/templates/corrections-archive.html b/templates/corrections-archive.html
new file mode 100644
index 0000000..fdf7b6b
--- /dev/null
+++ b/templates/corrections-archive.html
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
Corrections & Clarifications
+
+
+
+
We are committed to truthful, transparent, and accurate reporting. When we make a mistake, we correct it promptly and note the change clearly. Clarifications, when needed, provide additional context.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+