diff --git a/assets/admin/students/student-action-menu/index.js b/assets/admin/students/student-action-menu/index.js index fb630434e2..38119cf448 100644 --- a/assets/admin/students/student-action-menu/index.js +++ b/assets/admin/students/student-action-menu/index.js @@ -2,7 +2,13 @@ * WordPress dependencies */ import { DropdownMenu } from '@wordpress/components'; -import { render, useState } from '@wordpress/element'; +import { + render, + useEffect, + useState, + useMemo, + useCallback, +} from '@wordpress/element'; import { moreVertical } from '@wordpress/icons'; import { applyFilters } from '@wordpress/hooks'; import { __ } from '@wordpress/i18n'; @@ -27,68 +33,81 @@ export const StudentActionMenu = ( { } ) => { const [ action, setAction ] = useState( '' ); const [ isModalOpen, setModalOpen ] = useState( false ); - const closeModal = ( needsReload ) => { - if ( needsReload ) { - window.location.reload(); - } - setModalOpen( false ); - }; - const defaultControls = [ - { - title: __( 'Add to Course', 'sensei-lms' ), - onClick: () => addToCourse(), - }, - { - title: __( 'Remove from Course', 'sensei-lms' ), - onClick: () => removeFromCourse(), - }, - { - title: __( 'Reset Progress', 'sensei-lms' ), - onClick: () => resetProgress(), - }, - { - title: __( 'Grading', 'sensei-lms' ), - onClick: () => - window.open( - `admin.php?page=sensei_grading&view=ungraded&s=${ studentName }`, - '_self' - ), - }, - ]; - - /** - * Filters controls for the single student action menu. - * - * @since 4.11.0 - * - * @param {Array} controls Controls for the single student action menu. - * @param {Function} setAction Selected action. - * @param {Function} setModalOpen The callback to run when the modal is closed. - * - * @return {Array} Filtered controls. - */ - const controls = applyFilters( - 'senseiStudentActionMenuControls', - defaultControls, - setAction, - setModalOpen - ); - - const addToCourse = () => { + const addToCourse = useCallback( () => { setAction( 'add' ); setModalOpen( true ); - }; + }, [ setAction, setModalOpen ] ); - const removeFromCourse = () => { + const removeFromCourse = useCallback( () => { setAction( 'remove' ); setModalOpen( true ); - }; + }, [ setAction, setModalOpen ] ); - const resetProgress = () => { + const resetProgress = useCallback( () => { setAction( 'reset-progress' ); setModalOpen( true ); - }; + }, [ setAction, setModalOpen ] ); + + const defaultControls = useMemo( + () => [ + { + title: __( 'Add to Course', 'sensei-lms' ), + onClick: () => addToCourse(), + }, + { + title: __( 'Remove from Course', 'sensei-lms' ), + onClick: () => removeFromCourse(), + }, + { + title: __( 'Reset Progress', 'sensei-lms' ), + onClick: () => resetProgress(), + }, + { + title: __( 'Grading', 'sensei-lms' ), + onClick: () => + window.open( + `admin.php?page=sensei_grading&view=ungraded&s=${ studentName }`, + '_self' + ), + }, + ], + [ studentName, addToCourse, removeFromCourse, resetProgress ] + ); + + const [ controls, setControls ] = useState( defaultControls ); + + const closeModal = useCallback( + ( needsReload ) => { + if ( needsReload ) { + window.location.reload(); + } + setModalOpen( false ); + }, + [ setModalOpen ] + ); + + useEffect( () => { + /** + * Filters controls for the single student action menu. + * + * @since 4.11.0 + * + * @param {Array} controls Controls for the single student action menu. + * @param {Function} setAction Selected action. + * @param {Function} setModalOpen The callback to run when the modal is closed. + * + * @return {Array} Filtered controls. + */ + applyFilters( + 'senseiStudentActionMenuControls', + [ ...defaultControls ], + setAction, + setModalOpen + ).then( ( response ) => { + setControls( response ); + } ); + }, [ defaultControls ] ); const defaultStudentModal = ( =12" } }, + "node_modules/@automattic/data-stores/node_modules/@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "dependencies": { + "@babel/runtime": "^7.16.0" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/@automattic/data-stores/node_modules/@wordpress/i18n": { "version": "4.51.0", "resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-4.51.0.tgz", @@ -1722,6 +1733,17 @@ "react": "^17.0.0" } }, + "node_modules/@automattic/tour-kit/node_modules/@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "dependencies": { + "@babel/runtime": "^7.16.0" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/@automattic/tour-kit/node_modules/@wordpress/primitives": { "version": "3.49.0", "resolved": "https://registry.npmjs.org/@wordpress/primitives/-/primitives-3.49.0.tgz", @@ -9607,6 +9629,17 @@ "node": ">=12" } }, + "node_modules/@wordpress/a11y/node_modules/@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "dependencies": { + "@babel/runtime": "^7.16.0" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/@wordpress/a11y/node_modules/@wordpress/i18n": { "version": "4.51.0", "resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-4.51.0.tgz", @@ -9938,6 +9971,17 @@ "react": "^17.0.0" } }, + "node_modules/@wordpress/block-editor/node_modules/@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "dependencies": { + "@babel/runtime": "^7.16.0" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/@wordpress/block-editor/node_modules/@wordpress/icons": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-6.3.0.tgz", @@ -10326,6 +10370,17 @@ "redux": "^4.1.0" } }, + "node_modules/@wordpress/block-library/node_modules/@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "dependencies": { + "@babel/runtime": "^7.16.0" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/@wordpress/block-library/node_modules/@wordpress/icons": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-4.1.0.tgz", @@ -10421,6 +10476,17 @@ "redux": "^4.1.0" } }, + "node_modules/@wordpress/blocks/node_modules/@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "dependencies": { + "@babel/runtime": "^7.16.0" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/@wordpress/blocks/node_modules/@wordpress/icons": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-4.1.0.tgz", @@ -10506,6 +10572,17 @@ "reakit-utils": "^0.15.1" } }, + "node_modules/@wordpress/components/node_modules/@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "dependencies": { + "@babel/runtime": "^7.16.0" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/@wordpress/components/node_modules/@wordpress/icons": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-4.1.0.tgz", @@ -10638,6 +10715,17 @@ "redux": "^4.1.0" } }, + "node_modules/@wordpress/core-data/node_modules/@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "dependencies": { + "@babel/runtime": "^7.16.0" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/@wordpress/core-data/node_modules/@wordpress/icons": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-4.1.0.tgz", @@ -10853,6 +10941,17 @@ "node": ">=12" } }, + "node_modules/@wordpress/deprecated/node_modules/@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "dependencies": { + "@babel/runtime": "^7.16.0" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/@wordpress/dom": { "version": "3.51.0", "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-3.51.0.tgz", @@ -11120,6 +11219,17 @@ "node": ">=12" } }, + "node_modules/@wordpress/edit-post/node_modules/@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "dependencies": { + "@babel/runtime": "^7.16.0" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/@wordpress/edit-post/node_modules/@wordpress/icons": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-4.1.0.tgz", @@ -11477,6 +11587,17 @@ "react": "^17.0.0" } }, + "node_modules/@wordpress/editor/node_modules/@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "dependencies": { + "@babel/runtime": "^7.16.0" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/@wordpress/editor/node_modules/@wordpress/icons": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-6.3.0.tgz", @@ -12071,16 +12192,33 @@ } }, "node_modules/@wordpress/hooks": { - "version": "3.51.0", - "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.51.0.tgz", - "integrity": "sha512-u//qLJCfgmGBLEdAtZx5C1KzmhcCYDIk46feYGBR9DHB1/fqdvMpxc20un62i8QgYvJyF7GChmerkPbssa6a8w==", + "version": "4.11.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-4.11.0.tgz", + "integrity": "sha512-MvsbtOCXKSxJbdgTM5fx8JDbtjA5dlM8GEyr1LEz+1AHwWy5loQx17DEodAkHPu3NCelJ18LSL6AJYJ9simB8g==", "dependencies": { - "@babel/runtime": "^7.16.0" + "@babel/runtime": "7.25.7" }, "engines": { - "node": ">=12" + "node": ">=18.12.0", + "npm": ">=8.19.2" } }, + "node_modules/@wordpress/hooks/node_modules/@babel/runtime": { + "version": "7.25.7", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.25.7.tgz", + "integrity": "sha512-FjoyLe754PMiYsFaN5C94ttGiOmBNYTf6pLr4xXHAT5uctHb092PBszndLDR5XA/jghQvn4n7JMHl7dmTgbm9w==", + "dependencies": { + "regenerator-runtime": "^0.14.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@wordpress/hooks/node_modules/regenerator-runtime": { + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==" + }, "node_modules/@wordpress/html-entities": { "version": "3.51.0", "resolved": "https://registry.npmjs.org/@wordpress/html-entities/-/html-entities-3.51.0.tgz", @@ -12111,6 +12249,17 @@ "node": ">=12" } }, + "node_modules/@wordpress/i18n/node_modules/@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "dependencies": { + "@babel/runtime": "^7.16.0" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/@wordpress/i18n/node_modules/gettext-parser": { "version": "1.4.0", "license": "MIT", @@ -12197,6 +12346,17 @@ "redux": "^4.1.0" } }, + "node_modules/@wordpress/interface/node_modules/@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "dependencies": { + "@babel/runtime": "^7.16.0" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/@wordpress/interface/node_modules/@wordpress/icons": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-4.1.0.tgz", @@ -12801,6 +12961,17 @@ "node": ">=12" } }, + "node_modules/@wordpress/keycodes/node_modules/@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "dependencies": { + "@babel/runtime": "^7.16.0" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/@wordpress/keycodes/node_modules/@wordpress/i18n": { "version": "4.51.0", "resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-4.51.0.tgz", @@ -12953,6 +13124,17 @@ "node": ">=12" } }, + "node_modules/@wordpress/plugins/node_modules/@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "dependencies": { + "@babel/runtime": "^7.16.0" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/@wordpress/plugins/node_modules/@wordpress/icons": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-4.1.0.tgz", @@ -13042,6 +13224,17 @@ "node": ">=12" } }, + "node_modules/@wordpress/react-i18n/node_modules/@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "dependencies": { + "@babel/runtime": "^7.16.0" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/@wordpress/react-i18n/node_modules/@wordpress/i18n": { "version": "4.51.0", "resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-4.51.0.tgz", @@ -13229,6 +13422,17 @@ "redux": "^4.1.0" } }, + "node_modules/@wordpress/reusable-blocks/node_modules/@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "dependencies": { + "@babel/runtime": "^7.16.0" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/@wordpress/reusable-blocks/node_modules/@wordpress/icons": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-4.1.0.tgz", @@ -15805,6 +16009,17 @@ "redux": "^4.1.0" } }, + "node_modules/@wordpress/server-side-render/node_modules/@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "dependencies": { + "@babel/runtime": "^7.16.0" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/@wordpress/server-side-render/node_modules/@wordpress/icons": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-4.1.0.tgz", @@ -42664,6 +42879,14 @@ "@wordpress/url": "^3.52.0" } }, + "@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "requires": { + "@babel/runtime": "^7.16.0" + } + }, "@wordpress/i18n": { "version": "4.51.0", "resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-4.51.0.tgz", @@ -42903,6 +43126,14 @@ "use-memo-one": "^1.1.1" } }, + "@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "requires": { + "@babel/runtime": "^7.16.0" + } + }, "@wordpress/primitives": { "version": "3.49.0", "resolved": "https://registry.npmjs.org/@wordpress/primitives/-/primitives-3.49.0.tgz", @@ -48608,6 +48839,14 @@ "@wordpress/i18n": "^4.51.0" }, "dependencies": { + "@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "requires": { + "@babel/runtime": "^7.16.0" + } + }, "@wordpress/i18n": { "version": "4.51.0", "resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-4.51.0.tgz", @@ -48887,6 +49126,14 @@ "use-memo-one": "^1.1.1" } }, + "@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "requires": { + "@babel/runtime": "^7.16.0" + } + }, "@wordpress/icons": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-6.3.0.tgz", @@ -49222,6 +49469,14 @@ "use-memo-one": "^1.1.1" } }, + "@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "requires": { + "@babel/runtime": "^7.16.0" + } + }, "@wordpress/icons": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-4.1.0.tgz", @@ -49301,6 +49556,14 @@ "use-memo-one": "^1.1.1" } }, + "@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "requires": { + "@babel/runtime": "^7.16.0" + } + }, "@wordpress/icons": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-4.1.0.tgz", @@ -49373,6 +49636,14 @@ "uuid": "^8.3.0" }, "dependencies": { + "@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "requires": { + "@babel/runtime": "^7.16.0" + } + }, "@wordpress/icons": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-4.1.0.tgz", @@ -49486,6 +49757,14 @@ "use-memo-one": "^1.1.1" } }, + "@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "requires": { + "@babel/runtime": "^7.16.0" + } + }, "@wordpress/icons": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-4.1.0.tgz", @@ -49653,6 +49932,16 @@ "requires": { "@babel/runtime": "^7.16.0", "@wordpress/hooks": "^3.51.0" + }, + "dependencies": { + "@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "requires": { + "@babel/runtime": "^7.16.0" + } + } } }, "@wordpress/dom": { @@ -49892,6 +50181,14 @@ } } }, + "@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "requires": { + "@babel/runtime": "^7.16.0" + } + }, "@wordpress/icons": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-4.1.0.tgz", @@ -50200,6 +50497,14 @@ "use-memo-one": "^1.1.1" } }, + "@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "requires": { + "@babel/runtime": "^7.16.0" + } + }, "@wordpress/icons": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-6.3.0.tgz", @@ -50664,11 +50969,26 @@ } }, "@wordpress/hooks": { - "version": "3.51.0", - "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.51.0.tgz", - "integrity": "sha512-u//qLJCfgmGBLEdAtZx5C1KzmhcCYDIk46feYGBR9DHB1/fqdvMpxc20un62i8QgYvJyF7GChmerkPbssa6a8w==", + "version": "4.11.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-4.11.0.tgz", + "integrity": "sha512-MvsbtOCXKSxJbdgTM5fx8JDbtjA5dlM8GEyr1LEz+1AHwWy5loQx17DEodAkHPu3NCelJ18LSL6AJYJ9simB8g==", "requires": { - "@babel/runtime": "^7.16.0" + "@babel/runtime": "7.25.7" + }, + "dependencies": { + "@babel/runtime": { + "version": "7.25.7", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.25.7.tgz", + "integrity": "sha512-FjoyLe754PMiYsFaN5C94ttGiOmBNYTf6pLr4xXHAT5uctHb092PBszndLDR5XA/jghQvn4n7JMHl7dmTgbm9w==", + "requires": { + "regenerator-runtime": "^0.14.0" + } + }, + "regenerator-runtime": { + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==" + } } }, "@wordpress/html-entities": { @@ -50692,6 +51012,14 @@ "tannin": "^1.2.0" }, "dependencies": { + "@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "requires": { + "@babel/runtime": "^7.16.0" + } + }, "gettext-parser": { "version": "1.4.0", "requires": { @@ -50765,6 +51093,14 @@ "use-memo-one": "^1.1.1" } }, + "@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "requires": { + "@babel/runtime": "^7.16.0" + } + }, "@wordpress/icons": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-4.1.0.tgz", @@ -51233,6 +51569,14 @@ "@wordpress/i18n": "^4.51.0" }, "dependencies": { + "@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "requires": { + "@babel/runtime": "^7.16.0" + } + }, "@wordpress/i18n": { "version": "4.51.0", "resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-4.51.0.tgz", @@ -51354,6 +51698,14 @@ "memize": "1.1.0" }, "dependencies": { + "@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "requires": { + "@babel/runtime": "^7.16.0" + } + }, "@wordpress/icons": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-4.1.0.tgz", @@ -51419,6 +51771,14 @@ "utility-types": "^3.10.0" }, "dependencies": { + "@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "requires": { + "@babel/runtime": "^7.16.0" + } + }, "@wordpress/i18n": { "version": "4.51.0", "resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-4.51.0.tgz", @@ -51580,6 +51940,14 @@ "use-memo-one": "^1.1.1" } }, + "@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "requires": { + "@babel/runtime": "^7.16.0" + } + }, "@wordpress/icons": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-4.1.0.tgz", @@ -53399,6 +53767,14 @@ "use-memo-one": "^1.1.1" } }, + "@wordpress/hooks": { + "version": "3.58.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.58.0.tgz", + "integrity": "sha512-9LB0ZHnZRQlORttux9t/xbAskF+dk2ujqzPGsVzc92mSKpQP3K2a5Wy74fUnInguB1vLUNHT6nrNdkVom5qX1Q==", + "requires": { + "@babel/runtime": "^7.16.0" + } + }, "@wordpress/icons": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/@wordpress/icons/-/icons-4.1.0.tgz",