diff --git a/.distignore b/.distignore index 49dc07360..b00f4421d 100644 --- a/.distignore +++ b/.distignore @@ -3,6 +3,7 @@ .github /bin node_modules +/scripts /src /tests diff --git a/.github/workflows/cypress-matrix.yml b/.github/workflows/cypress-matrix.yml index f91fde05b..054f444a1 100644 --- a/.github/workflows/cypress-matrix.yml +++ b/.github/workflows/cypress-matrix.yml @@ -29,9 +29,9 @@ jobs: - '8.2' - '8.3' wpVersion: - - '6.4' - '6.5' - '6.6' + - '6.7' steps: diff --git a/.wp-env.json b/.wp-env.json index 199613a86..e67c7fead 100644 --- a/.wp-env.json +++ b/.wp-env.json @@ -1,5 +1,5 @@ { - "core": "WordPress/WordPress#tags/6.6.2", + "core": "WordPress/WordPress#tags/6.7", "config": { "WP_DEBUG": true, "WP_DEBUG_LOG": true, diff --git a/bluehost-wordpress-plugin.php b/bluehost-wordpress-plugin.php index e3142657d..c57f3dbd2 100644 --- a/bluehost-wordpress-plugin.php +++ b/bluehost-wordpress-plugin.php @@ -12,10 +12,10 @@ * Plugin URI: https://bluehost.com * Update URI: https://github.com/bluehost/bluehost-wordpress-plugin * Description: WordPress plugin that integrates a WordPress site with the Bluehost control panel, including performance, security, and update features. - * Version: 3.15.3 - * Requires at least: 6.4 + * Version: 3.15.4 + * Requires at least: 6.5 * Requires PHP: 7.3 - * Tested up to: 6.6.2 + * Tested up to: 6.7.0 * Author: Bluehost * Author URI: https://bluehost.com * Text Domain: wp-plugin-bluehost @@ -32,7 +32,7 @@ } // Define constants -define( 'BLUEHOST_PLUGIN_VERSION', '3.15.3' ); +define( 'BLUEHOST_PLUGIN_VERSION', '3.15.4' ); define( 'BLUEHOST_PLUGIN_FILE', __FILE__ ); define( 'BLUEHOST_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); define( 'BLUEHOST_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); diff --git a/composer.json b/composer.json index 3302bfc67..0c8aa3c1d 100644 --- a/composer.json +++ b/composer.json @@ -69,28 +69,28 @@ "newfold-labs/wp-php-standards": "^1.2.4", "roave/security-advisories": "dev-latest", "wp-cli/i18n-command": "^2.6.3", - "wp-phpunit/wp-phpunit": "^6.6.2" + "wp-phpunit/wp-phpunit": "^6.7.0" }, "require": { "newfold-labs/wp-module-activation": "^1.0.5", "newfold-labs/wp-module-atomic": "^1.3.0", "newfold-labs/wp-module-coming-soon": "^1.2.6", "newfold-labs/wp-module-context": "^1.0.1", - "newfold-labs/wp-module-data": "^2.6.6", + "newfold-labs/wp-module-data": "^2.6.7", "newfold-labs/wp-module-deactivation": "^1.2.3", "newfold-labs/wp-module-ecommerce": "^1.4.3", "newfold-labs/wp-module-facebook": "^1.0.9", "newfold-labs/wp-module-features": "^1.4.2", "newfold-labs/wp-module-global-ctb": "^1.0.13", - "newfold-labs/wp-module-help-center": "^2.2.0", + "newfold-labs/wp-module-help-center": "^2.2.1", "newfold-labs/wp-module-installer": "^1.2.2", "newfold-labs/wp-module-loader": "^1.0.10", "newfold-labs/wp-module-marketplace": "^2.4.0", "newfold-labs/wp-module-migration": "^1.0.12", - "newfold-labs/wp-module-notifications": "^1.6.4", - "newfold-labs/wp-module-onboarding": "^2.5.2", - "newfold-labs/wp-module-onboarding-data": "^1.2.1", - "newfold-labs/wp-module-patterns": "^2.6.0", + "newfold-labs/wp-module-notifications": "^1.6.6", + "newfold-labs/wp-module-onboarding": "^2.5.3", + "newfold-labs/wp-module-onboarding-data": "^1.2.3", + "newfold-labs/wp-module-patterns": "^2.6.1", "newfold-labs/wp-module-performance": "2.0.1", "newfold-labs/wp-module-pls": "^1.0.0", "newfold-labs/wp-module-runtime": "^1.0.12", diff --git a/composer.lock b/composer.lock index 4fb37f3ae..928902c2d 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "cfb2c5d40c5d92053dda7096e3ec608e", + "content-hash": "fab736a0120ed5820a20a99aee69e1e8", "packages": [ { "name": "doctrine/inflector", @@ -830,16 +830,16 @@ }, { "name": "newfold-labs/wp-module-data", - "version": "2.6.6", + "version": "2.6.7", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-data.git", - "reference": "ddfeb6e4d3e74793fba9dac204db374f030e7a72" + "reference": "4e06582959bbf8ebdfe053d7be27dc3e2dcba69a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-data/zipball/ddfeb6e4d3e74793fba9dac204db374f030e7a72", - "reference": "ddfeb6e4d3e74793fba9dac204db374f030e7a72", + "url": "https://api.github.com/repos/newfold-labs/wp-module-data/zipball/4e06582959bbf8ebdfe053d7be27dc3e2dcba69a", + "reference": "4e06582959bbf8ebdfe053d7be27dc3e2dcba69a", "shasum": "" }, "require": { @@ -852,15 +852,17 @@ "wpscholar/url": "^1.2.2" }, "require-dev": { - "10up/wp_mock": "^0.4.2", + "10up/wp_mock": "^0.5.0|^1.0.0", "bluehost/bluehost-wordpress-plugin": ">=3.1", "brianhenryie/composer-phpstorm": ">=0.4", "johnpbloch/wordpress": ">=6.5.3", "kporras07/composer-symlinks": "^1.2", "lucatume/wp-browser": "^3.5.8", "newfold-labs/wp-php-standards": "^1.2.3", - "phpunit/phpcov": "^5.0", - "wpackagist-plugin/woocommerce": ">=9" + "phpunit/phpcov": "^8.2.1", + "wpackagist-plugin/jetpack": "^14.0", + "wpackagist-plugin/woocommerce": ">=9", + "wpackagist-theme/twentytwentyfive": "*" }, "type": "library", "extra": { @@ -892,7 +894,7 @@ "vendor/bin/phpcbf . --standard=phpcs.xml" ], "cs-changes": [ - "updated_files=$( git status | grep '\\(new file\\|modified\\):\\s.*.php$' | cut -c14- | awk '{ printf(\"%s \", $0) }' ); echo \"\\nChecking\"$(git status | grep '\\(new file\\|modified\\):\\s.*.php$' | tail -n+2 | wc -l)\" files\"; phpcbf $(echo $updated_files); phpcs $(echo $updated_files);" + "updated_files=$(echo $(git diff --name-only `git merge-base origin/main HEAD` | grep php)); if [ -n \"$updated_files\" ]; then phpcbf $(echo $updated_files); phpcs $(echo $updated_files); else echo \"No modified .php files for PHPCS.\"; fi;" ], "lint": [ "vendor/bin/phpcs . --standard=phpcs.xml -s" @@ -905,6 +907,7 @@ "codecept run wpunit" ], "test-coverage": [ + "if [ -d \"tests/_output/merged.cov\" ]; then rm -rf tests/_output/merged.cov; fi;", "phpunit --bootstrap tests/phpunit/bootstrap.php --coverage-php tests/_output/unit.cov --coverage-text", "codecept run wpunit --coverage wpunit.cov", "phpcov merge --php tests/_output/merged.cov --html tests/_output/html tests/_output;", @@ -922,10 +925,10 @@ ], "description": "Newfold Data Module", "support": { - "source": "https://github.com/newfold-labs/wp-module-data/tree/2.6.6", + "source": "https://github.com/newfold-labs/wp-module-data/tree/2.6.7", "issues": "https://github.com/newfold-labs/wp-module-data/issues" }, - "time": "2024-11-07T22:23:10+00:00" + "time": "2024-11-19T20:09:13+00:00" }, { "name": "newfold-labs/wp-module-deactivation", @@ -1198,16 +1201,16 @@ }, { "name": "newfold-labs/wp-module-help-center", - "version": "2.2.0", + "version": "2.2.1", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-help-center.git", - "reference": "a09d1cf6bf5c95bc93d79842f8c46ce3472caef2" + "reference": "b13d4e79a68002ac628152aae4c48c1191037120" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-help-center/zipball/a09d1cf6bf5c95bc93d79842f8c46ce3472caef2", - "reference": "a09d1cf6bf5c95bc93d79842f8c46ce3472caef2", + "url": "https://api.github.com/repos/newfold-labs/wp-module-help-center/zipball/b13d4e79a68002ac628152aae4c48c1191037120", + "reference": "b13d4e79a68002ac628152aae4c48c1191037120", "shasum": "" }, "require": { @@ -1239,10 +1242,10 @@ ], "description": "HelpCenter", "support": { - "source": "https://github.com/newfold-labs/wp-module-help-center/tree/2.2.0", + "source": "https://github.com/newfold-labs/wp-module-help-center/tree/2.2.1", "issues": "https://github.com/newfold-labs/wp-module-help-center/issues" }, - "time": "2024-10-30T11:01:32+00:00" + "time": "2024-11-13T13:27:22+00:00" }, { "name": "newfold-labs/wp-module-install-checker", @@ -1488,16 +1491,16 @@ }, { "name": "newfold-labs/wp-module-notifications", - "version": "1.6.4", + "version": "1.6.6", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-notifications.git", - "reference": "dd0c7639d5dc9867ba3863238dc6ecfa8cda9978" + "reference": "14a89f38091a7bf48404740c5f64087a3010ee03" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-notifications/zipball/dd0c7639d5dc9867ba3863238dc6ecfa8cda9978", - "reference": "dd0c7639d5dc9867ba3863238dc6ecfa8cda9978", + "url": "https://api.github.com/repos/newfold-labs/wp-module-notifications/zipball/14a89f38091a7bf48404740c5f64087a3010ee03", + "reference": "14a89f38091a7bf48404740c5f64087a3010ee03", "shasum": "" }, "require": { @@ -1526,23 +1529,23 @@ ], "description": "A module for managing Newfold in-site notifications.", "support": { - "source": "https://github.com/newfold-labs/wp-module-notifications/tree/1.6.4", + "source": "https://github.com/newfold-labs/wp-module-notifications/tree/1.6.6", "issues": "https://github.com/newfold-labs/wp-module-notifications/issues" }, - "time": "2024-11-06T20:21:58+00:00" + "time": "2024-11-18T20:26:18+00:00" }, { "name": "newfold-labs/wp-module-onboarding", - "version": "2.5.2", + "version": "2.5.3", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-onboarding.git", - "reference": "92f4bbeb9ed18ccc423501424d353a2dd0ea5d54" + "reference": "b74398f96e04c57bd65b5881cb8f3b26dab70d66" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-onboarding/zipball/92f4bbeb9ed18ccc423501424d353a2dd0ea5d54", - "reference": "92f4bbeb9ed18ccc423501424d353a2dd0ea5d54", + "url": "https://api.github.com/repos/newfold-labs/wp-module-onboarding/zipball/b74398f96e04c57bd65b5881cb8f3b26dab70d66", + "reference": "b74398f96e04c57bd65b5881cb8f3b26dab70d66", "shasum": "" }, "require": { @@ -1588,29 +1591,28 @@ ], "description": "Next-generation WordPress Onboarding for WordPress sites at Newfold Digital.", "support": { - "source": "https://github.com/newfold-labs/wp-module-onboarding/tree/2.5.2", + "source": "https://github.com/newfold-labs/wp-module-onboarding/tree/2.5.3", "issues": "https://github.com/newfold-labs/wp-module-onboarding/issues" }, - "time": "2024-10-28T19:33:31+00:00" + "time": "2024-11-11T23:41:57+00:00" }, { "name": "newfold-labs/wp-module-onboarding-data", - "version": "1.2.1", + "version": "1.2.3", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-onboarding-data.git", - "reference": "6f7a785e9501942a54b947ad5c52f94c24fe0ef4" + "reference": "354c91711c48bc38a8982af396c78bd8d801d873" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-onboarding-data/zipball/6f7a785e9501942a54b947ad5c52f94c24fe0ef4", - "reference": "6f7a785e9501942a54b947ad5c52f94c24fe0ef4", + "url": "https://api.github.com/repos/newfold-labs/wp-module-onboarding-data/zipball/354c91711c48bc38a8982af396c78bd8d801d873", + "reference": "354c91711c48bc38a8982af396c78bd8d801d873", "shasum": "" }, "require": { "mustache/mustache": "^2.14.2", "newfold-labs/wp-module-ai": "^1.1.12", - "newfold-labs/wp-module-coming-soon": "^1.2.6", "newfold-labs/wp-module-data": "^2.6.5", "newfold-labs/wp-module-install-checker": "^1.0.3", "newfold-labs/wp-module-installer": "^1.2.0", @@ -1640,23 +1642,23 @@ ], "description": "A non-toggleable module containing a standardized interface for interacting with Onboarding data.", "support": { - "source": "https://github.com/newfold-labs/wp-module-onboarding-data/tree/1.2.1", + "source": "https://github.com/newfold-labs/wp-module-onboarding-data/tree/1.2.3", "issues": "https://github.com/newfold-labs/wp-module-onboarding-data/issues" }, - "time": "2024-10-23T09:51:12+00:00" + "time": "2024-11-12T02:04:21+00:00" }, { "name": "newfold-labs/wp-module-patterns", - "version": "2.6.0", + "version": "2.6.1", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-patterns.git", - "reference": "df06479f0715d40e4aadfc299e77c9062c9165db" + "reference": "648b1448b9f8ce022950300f7aa67ee55a9a1e24" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-patterns/zipball/df06479f0715d40e4aadfc299e77c9062c9165db", - "reference": "df06479f0715d40e4aadfc299e77c9062c9165db", + "url": "https://api.github.com/repos/newfold-labs/wp-module-patterns/zipball/648b1448b9f8ce022950300f7aa67ee55a9a1e24", + "reference": "648b1448b9f8ce022950300f7aa67ee55a9a1e24", "shasum": "" }, "require": { @@ -1695,10 +1697,10 @@ ], "description": "WordPress Cloud Patterns", "support": { - "source": "https://github.com/newfold-labs/wp-module-patterns/tree/2.6.0", + "source": "https://github.com/newfold-labs/wp-module-patterns/tree/2.6.1", "issues": "https://github.com/newfold-labs/wp-module-patterns/issues" }, - "time": "2024-10-18T16:33:56+00:00" + "time": "2024-11-07T01:02:53+00:00" }, { "name": "newfold-labs/wp-module-performance", @@ -3564,12 +3566,12 @@ "source": { "type": "git", "url": "https://github.com/Roave/SecurityAdvisories.git", - "reference": "e3b44e38648ef5386687032582759f9c616c8d19" + "reference": "b33a18b5d222c63472a4b41f6fa3e15e591c9595" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/e3b44e38648ef5386687032582759f9c616c8d19", - "reference": "e3b44e38648ef5386687032582759f9c616c8d19", + "url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/b33a18b5d222c63472a4b41f6fa3e15e591c9595", + "reference": "b33a18b5d222c63472a4b41f6fa3e15e591c9595", "shasum": "" }, "conflict": { @@ -3615,6 +3617,7 @@ "azuracast/azuracast": "<0.18.3", "backdrop/backdrop": "<1.27.3|>=1.28,<1.28.2", "backpack/crud": "<3.4.9", + "backpack/filemanager": "<2.0.2|>=3,<3.0.9", "bacula-web/bacula-web": "<8.0.0.0-RC2-dev", "badaso/core": "<2.7", "bagisto/bagisto": "<2.1", @@ -3678,7 +3681,7 @@ "contao/managed-edition": "<=1.5", "corveda/phpsandbox": "<1.3.5", "cosenary/instagram": "<=2.3", - "craftcms/cms": "<4.6.2|>=5,<=5.2.2", + "craftcms/cms": "<=4.12.6.1|>=5,<=5.4.7.1", "croogo/croogo": "<4", "cuyz/valinor": "<0.12", "czim/file-handling": "<1.5|>=2,<2.3", @@ -3754,6 +3757,7 @@ "feehi/cms": "<=2.1.1", "feehi/feehicms": "<=2.1.1", "fenom/fenom": "<=2.12.1", + "filament/actions": ">=3.2,<3.2.123", "filament/infolists": ">=3,<3.2.115", "filament/tables": ">=3,<3.2.115", "filegator/filegator": "<7.8", @@ -3887,7 +3891,7 @@ "lara-zeus/artemis": ">=1,<=1.0.6", "lara-zeus/dynamic-dashboard": ">=3,<=3.0.1", "laravel/fortify": "<1.11.1", - "laravel/framework": "<6.20.44|>=7,<7.30.6|>=8,<8.75", + "laravel/framework": "<6.20.45|>=7,<7.30.7|>=8,<8.83.28|>=9,<9.52.17|>=10,<10.48.23|>=11,<11.31", "laravel/laravel": ">=5.4,<5.4.22", "laravel/reverb": "<1.4", "laravel/socialite": ">=1,<2.0.10", @@ -3922,6 +3926,7 @@ "matyhtf/framework": "<3.0.6", "mautic/core": "<4.4.13|>=5,<5.1.1", "mautic/core-lib": ">=1.0.0.0-beta,<4.4.13|>=5.0.0.0-alpha,<5.1.1", + "maximebf/debugbar": "<1.19", "mdanter/ecc": "<2", "mediawiki/cargo": "<3.6.1", "mediawiki/core": "<1.39.5|==1.40", @@ -3944,7 +3949,7 @@ "mojo42/jirafeau": "<4.4", "mongodb/mongodb": ">=1,<1.9.2", "monolog/monolog": ">=1.8,<1.12", - "moodle/moodle": "<4.3.5|>=4.4.0.0-beta,<4.4.1", + "moodle/moodle": "<4.3.8|>=4.4,<4.4.4", "mos/cimage": "<0.7.19", "movim/moxl": ">=0.8,<=0.10", "movingbytes/social-network": "<=1.2.1", @@ -3992,7 +3997,7 @@ "openmage/magento-lts": "<20.10.1", "opensolutions/vimbadmin": "<=3.0.15", "opensource-workshop/connect-cms": "<1.7.2|>=2,<2.3.2", - "orchid/platform": ">=9,<9.4.4|>=14.0.0.0-alpha4,<14.5", + "orchid/platform": ">=8,<14.43", "oro/calendar-bundle": ">=4.2,<=4.2.6|>=5,<=5.0.6|>=5.1,<5.1.1", "oro/commerce": ">=4.1,<5.0.11|>=5.1,<5.1.1", "oro/crm": ">=1.7,<1.7.4|>=3.1,<4.1.17|>=4.2,<4.2.7", @@ -4031,8 +4036,8 @@ "phpmyadmin/phpmyadmin": "<5.2.1", "phpmyfaq/phpmyfaq": "<3.2.5|==3.2.5", "phpoffice/common": "<0.2.9", - "phpoffice/phpexcel": "<1.8", - "phpoffice/phpspreadsheet": "<1.29.2|>=2,<2.1.1|>=2.2,<2.3", + "phpoffice/phpexcel": "<1.8.1", + "phpoffice/phpspreadsheet": "<1.29.4|>=2,<2.1.3|>=2.2,<2.3.2|>=3.3,<3.4", "phpseclib/phpseclib": "<2.0.47|>=3,<3.0.36", "phpservermon/phpservermon": "<3.6", "phpsysinfo/phpsysinfo": "<3.4.3", @@ -4086,7 +4091,7 @@ "rap2hpoutre/laravel-log-viewer": "<0.13", "react/http": ">=0.7,<1.9", "really-simple-plugins/complianz-gdpr": "<6.4.2", - "redaxo/source": "<=5.17.1", + "redaxo/source": "<5.18", "remdex/livehelperchat": "<4.29", "reportico-web/reportico": "<=8.1", "rhukster/dom-sanitizer": "<1.0.7", @@ -4142,7 +4147,7 @@ "slim/slim": "<2.6", "slub/slub-events": "<3.0.3", "smarty/smarty": "<4.5.3|>=5,<5.1.1", - "snipe/snipe-it": "<7.0.10", + "snipe/snipe-it": "<=7.0.13", "socalnick/scn-social-auth": "<1.15.2", "socialiteproviders/steam": "<1.1", "spatie/browsershot": "<3.57.4", @@ -4153,7 +4158,7 @@ "squizlabs/php_codesniffer": ">=1,<2.8.1|>=3,<3.0.1", "ssddanbrown/bookstack": "<24.05.1", "starcitizentools/citizen-skin": ">=2.6.3,<2.31", - "statamic/cms": "<4.46|>=5.3,<5.6.2", + "statamic/cms": "<=5.16", "stormpath/sdk": "<9.9.99", "studio-42/elfinder": "<=2.1.64", "studiomitte/friendlycaptcha": "<0.1.4", @@ -4182,7 +4187,8 @@ "symfony/error-handler": ">=4.4,<4.4.4|>=5,<5.0.4", "symfony/form": ">=2.3,<2.3.35|>=2.4,<2.6.12|>=2.7,<2.7.50|>=2.8,<2.8.49|>=3,<3.4.20|>=4,<4.0.15|>=4.1,<4.1.9|>=4.2,<4.2.1", "symfony/framework-bundle": ">=2,<2.3.18|>=2.4,<2.4.8|>=2.5,<2.5.2|>=2.7,<2.7.51|>=2.8,<2.8.50|>=3,<3.4.26|>=4,<4.1.12|>=4.2,<4.2.7|>=5.3.14,<5.3.15|>=5.4.3,<5.4.4|>=6.0.3,<6.0.4", - "symfony/http-foundation": ">=2,<2.8.52|>=3,<3.4.35|>=4,<4.2.12|>=4.3,<4.3.8|>=4.4,<4.4.7|>=5,<5.0.7", + "symfony/http-client": ">=4.3,<5.4.47|>=6,<6.4.15|>=7,<7.1.8", + "symfony/http-foundation": "<5.4.46|>=6,<6.4.14|>=7,<7.1.7", "symfony/http-kernel": ">=2,<4.4.50|>=5,<5.4.20|>=6,<6.0.20|>=6.1,<6.1.12|>=6.2,<6.2.6", "symfony/intl": ">=2.7,<2.7.38|>=2.8,<2.8.31|>=3,<3.2.14|>=3.3,<3.3.13", "symfony/maker-bundle": ">=1.27,<1.29.2|>=1.30,<1.31.1", @@ -4190,20 +4196,22 @@ "symfony/phpunit-bridge": ">=2.8,<2.8.50|>=3,<3.4.26|>=4,<4.1.12|>=4.2,<4.2.7", "symfony/polyfill": ">=1,<1.10", "symfony/polyfill-php55": ">=1,<1.10", + "symfony/process": "<5.4.46|>=6,<6.4.14|>=7,<7.1.7", "symfony/proxy-manager-bridge": ">=2.7,<2.7.51|>=2.8,<2.8.50|>=3,<3.4.26|>=4,<4.1.12|>=4.2,<4.2.7", "symfony/routing": ">=2,<2.0.19", + "symfony/runtime": ">=5.3,<5.4.46|>=6,<6.4.14|>=7,<7.1.7", "symfony/security": ">=2,<2.7.51|>=2.8,<3.4.49|>=4,<4.4.24|>=5,<5.2.8", - "symfony/security-bundle": ">=2,<4.4.50|>=5,<5.4.20|>=6,<6.0.20|>=6.1,<6.1.12|>=6.2,<6.2.6", + "symfony/security-bundle": ">=2,<4.4.50|>=5,<5.4.20|>=6,<6.0.20|>=6.1,<6.1.12|>=6.2,<6.4.10|>=7,<7.0.10|>=7.1,<7.1.3", "symfony/security-core": ">=2.4,<2.6.13|>=2.7,<2.7.9|>=2.7.30,<2.7.32|>=2.8,<3.4.49|>=4,<4.4.24|>=5,<5.2.9", "symfony/security-csrf": ">=2.4,<2.7.48|>=2.8,<2.8.41|>=3,<3.3.17|>=3.4,<3.4.11|>=4,<4.0.11", "symfony/security-guard": ">=2.8,<3.4.48|>=4,<4.4.23|>=5,<5.2.8", - "symfony/security-http": ">=2.3,<2.3.41|>=2.4,<2.7.51|>=2.8,<2.8.50|>=3,<3.4.26|>=4,<4.2.12|>=4.3,<4.3.8|>=4.4,<4.4.7|>=5,<5.0.7|>=5.1,<5.2.8|>=5.3,<5.3.2|>=5.4,<5.4.31|>=6,<6.3.8", + "symfony/security-http": ">=2.3,<2.3.41|>=2.4,<2.7.51|>=2.8,<2.8.50|>=3,<3.4.26|>=4,<4.2.12|>=4.3,<4.3.8|>=4.4,<4.4.7|>=5,<5.0.7|>=5.1,<5.2.8|>=5.3,<5.4.47|>=6,<6.4.15|>=7,<7.1.8", "symfony/serializer": ">=2,<2.0.11|>=4.1,<4.4.35|>=5,<5.3.12", - "symfony/symfony": ">=2,<4.4.51|>=5,<5.4.31|>=6,<6.3.8", + "symfony/symfony": "<5.4.47|>=6,<6.4.15|>=7,<7.1.8", "symfony/translation": ">=2,<2.0.17", "symfony/twig-bridge": ">=2,<4.4.51|>=5,<5.4.31|>=6,<6.3.8", "symfony/ux-autocomplete": "<2.11.2", - "symfony/validator": ">=2,<2.0.24|>=2.1,<2.1.12|>=2.2,<2.2.5|>=2.3,<2.3.3", + "symfony/validator": "<5.4.43|>=6,<6.4.11|>=7,<7.1.4", "symfony/var-exporter": ">=4.2,<4.2.12|>=4.3,<4.3.8", "symfony/web-profiler-bundle": ">=2,<2.3.19|>=2.4,<2.4.9|>=2.5,<2.5.4", "symfony/webhook": ">=6.3,<6.3.8", @@ -4236,7 +4244,7 @@ "truckersmp/phpwhois": "<=4.3.1", "ttskch/pagination-service-provider": "<1", "twbs/bootstrap": "<=3.4.1|>=4,<=4.6.2", - "twig/twig": "<1.44.8|>=2,<2.16.1|>=3,<3.11.1|>=3.12,<3.14", + "twig/twig": "<3.11.2|>=3.12,<3.14.1", "typo3/cms": "<9.5.29|>=10,<10.4.35|>=11,<11.5.23|>=12,<12.2", "typo3/cms-backend": "<4.1.14|>=4.2,<4.2.15|>=4.3,<4.3.7|>=4.4,<4.4.4|>=7,<=7.6.50|>=8,<=8.7.39|>=9,<=9.5.24|>=10,<10.4.46|>=11,<11.5.40|>=12,<12.4.21|>=13,<13.3.1", "typo3/cms-core": "<=8.7.56|>=9,<=9.5.47|>=10,<=10.4.44|>=11,<=11.5.36|>=12,<=12.4.14|>=13,<=13.1", @@ -4255,6 +4263,7 @@ "ua-parser/uap-php": "<3.8", "uasoft-indonesia/badaso": "<=2.9.7", "unisharp/laravel-filemanager": "<2.6.4", + "unopim/unopim": "<0.1.5", "userfrosting/userfrosting": ">=0.3.1,<4.6.3", "usmanhalalit/pixie": "<1.0.3|>=2,<2.0.2", "uvdesk/community-skeleton": "<=1.1.1", @@ -4391,20 +4400,20 @@ "type": "tidelift" } ], - "time": "2024-10-31T18:06:19+00:00" + "time": "2024-11-19T21:04:39+00:00" }, { "name": "squizlabs/php_codesniffer", - "version": "3.10.3", + "version": "3.11.1", "source": { "type": "git", "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", - "reference": "62d32998e820bddc40f99f8251958aed187a5c9c" + "reference": "19473c30efe4f7b3cd42522d0b2e6e7f243c6f87" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/62d32998e820bddc40f99f8251958aed187a5c9c", - "reference": "62d32998e820bddc40f99f8251958aed187a5c9c", + "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/19473c30efe4f7b3cd42522d0b2e6e7f243c6f87", + "reference": "19473c30efe4f7b3cd42522d0b2e6e7f243c6f87", "shasum": "" }, "require": { @@ -4471,20 +4480,20 @@ "type": "open_collective" } ], - "time": "2024-09-18T10:38:58+00:00" + "time": "2024-11-16T12:02:36+00:00" }, { "name": "symfony/finder", - "version": "v5.4.43", + "version": "v5.4.45", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "ae25a9145a900764158d439653d5630191155ca0" + "reference": "63741784cd7b9967975eec610b256eed3ede022b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/ae25a9145a900764158d439653d5630191155ca0", - "reference": "ae25a9145a900764158d439653d5630191155ca0", + "url": "https://api.github.com/repos/symfony/finder/zipball/63741784cd7b9967975eec610b256eed3ede022b", + "reference": "63741784cd7b9967975eec610b256eed3ede022b", "shasum": "" }, "require": { @@ -4518,7 +4527,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v5.4.43" + "source": "https://github.com/symfony/finder/tree/v5.4.45" }, "funding": [ { @@ -4534,7 +4543,7 @@ "type": "tidelift" } ], - "time": "2024-08-13T14:03:51+00:00" + "time": "2024-09-28T13:32:08+00:00" }, { "name": "symfony/polyfill-php80", @@ -4937,16 +4946,16 @@ }, { "name": "wp-phpunit/wp-phpunit", - "version": "6.6.2", + "version": "6.7.0", "source": { "type": "git", "url": "https://github.com/wp-phpunit/wp-phpunit.git", - "reference": "7a1d3a2150033a3d3e19de40aa5b2ef2fee36bc3" + "reference": "2ed55b450c10f6850c44531bed7d86aceba2f842" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-phpunit/wp-phpunit/zipball/7a1d3a2150033a3d3e19de40aa5b2ef2fee36bc3", - "reference": "7a1d3a2150033a3d3e19de40aa5b2ef2fee36bc3", + "url": "https://api.github.com/repos/wp-phpunit/wp-phpunit/zipball/2ed55b450c10f6850c44531bed7d86aceba2f842", + "reference": "2ed55b450c10f6850c44531bed7d86aceba2f842", "shasum": "" }, "type": "library", @@ -4981,7 +4990,7 @@ "issues": "https://github.com/wp-phpunit/issues", "source": "https://github.com/wp-phpunit/wp-phpunit" }, - "time": "2024-07-17T01:13:44+00:00" + "time": "2024-11-13T01:22:47+00:00" } ], "aliases": [], diff --git a/languages/wp-plugin-bluehost.pot b/languages/wp-plugin-bluehost.pot index 2371dfb29..dce2484c5 100644 --- a/languages/wp-plugin-bluehost.pot +++ b/languages/wp-plugin-bluehost.pot @@ -2,7 +2,7 @@ # This file is distributed under the GPL 2.0 or later. msgid "" msgstr "" -"Project-Id-Version: The Bluehost Plugin 3.15.3\n" +"Project-Id-Version: The Bluehost Plugin 3.15.4\n" "Report-Msgid-Bugs-To: https://github.com/bluehost/bluehost-wordpress-plugin/issues\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -86,43 +86,43 @@ msgstr "" #: inc/Admin.php:72 #: inc/Admin.php:289 -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Home" msgstr "" #: inc/Admin.php:75 -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Pages & Posts" msgstr "" #: inc/Admin.php:78 -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Store" msgstr "" #: inc/Admin.php:81 -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Marketplace" msgstr "" #: inc/Admin.php:86 -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "My Plugins & Tools" msgstr "" #: inc/Admin.php:92 -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Performance" msgstr "" #: inc/Admin.php:96 #: inc/Admin.php:290 -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Settings" msgstr "" #: inc/Admin.php:101 -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Staging" msgstr "" @@ -196,221 +196,221 @@ msgstr "" msgid "Auto-updates enabled" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Bluehost WordPress Plugin" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Oh No, An Error!" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "You found an error, please refresh the page and try again!" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "If the error persists, please contact support." msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Error code:" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Bluehost Account" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "There's nothing here!" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Products & Services" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Sales & Promotions" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Sales Channel" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Payments" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Store Details" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Help with WordPress" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Admin" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "The staging feature provides a way to copy a site to test new updates, features or content." msgstr "" -#: build/3.15.3/index.js:1 -#: build/3.15.3/index.js:9 +#: build/3.15.4/index.js:1 +#: build/3.15.4/index.js:9 msgid "Sorry, that is not allowed." msgstr "" -#: build/3.15.3/index.js:1 -#: build/3.15.3/index.js:9 +#: build/3.15.4/index.js:1 +#: build/3.15.4/index.js:9 msgid "This feature cannot currently be modified." msgstr "" -#: build/3.15.3/index.js:1 -#: build/3.15.3/index.js:9 +#: build/3.15.4/index.js:1 +#: build/3.15.4/index.js:9 msgid "Oops! Something went wrong. Please try again." msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Phone" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Call Us" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Chat" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Chat with one of our friendly Customer Care Specialists, as we are waiting to help. Open 24 hours - 7 days." msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Live Chat" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Tweet" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Find our team at @bluehost for updates on our products and support from our team." msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Tweet Us" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "YouTube" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Find tutorials, answers, interviews and guides on our YouTube channel." msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Watch Now" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Knowledge Base" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Articles, guides, how-tos, instructions, and answers to our client's most frequently asked questions." msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Visit Knowledge Base" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Resources" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Boost your online knowledge and get ahead of the competition." msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Explore Resources" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Events and Webinars" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Team Bluehost organizes multiple webinars and events throughout the year. We are also sponsors and speak at most WordCamps across the world. Join us at our next event!" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "More Info" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Bluehost Website" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Not finding what you need? Visit our website for more information about our products and services." msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Go to Bluehost" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Site Pages" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Edit your homepage and other existing pages or add new pages to your site." msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "View all" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Add New" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "The Help Center provides guided, step-by-step assistance as you build your site." msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Site Status" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Not Live" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Live" msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Your Bluehost Coming Soon page lets you hide your site from visitors while you make the magic happen." msgstr "" -#: build/3.15.3/index.js:1 +#: build/3.15.4/index.js:1 msgid "Your website is currently displaying a \"Coming Soon\" page." msgstr "" #. translators: %s: number of weeks. `The trash will automatically empty every ${numTrashWeeks} weeks.` -#: build/3.15.3/index.js:3 +#: build/3.15.4/index.js:3 msgid "The trash will automatically empty every %s week." msgid_plural "The trash will automatically empty every %s weeks." msgstr[0] "" msgstr[1] "" #. translators: %s: number of comments. `Posts will display ${commentsPerPage} comments at a time.` -#: build/3.15.3/index.js:9 +#: build/3.15.4/index.js:9 msgid "WonderBlocks provides a library of customizable block patterns and page templates." msgstr "" diff --git a/package-lock.json b/package-lock.json index 0826c151f..8905054d7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "bluehost-wordpress-plugin", - "version": "3.15.3", + "version": "3.15.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "bluehost-wordpress-plugin", - "version": "3.15.3", + "version": "3.15.4", "license": "GPL-2.0-or-later", "dependencies": { "@heroicons/react": "^2.1.5", @@ -27,17 +27,17 @@ "lodash": "^4.17.21", "react": "^18.2.0", "react-error-boundary": "^4.1.2", - "react-router-dom": "^6.26.1", + "react-router-dom": "^6.28.0", "react-use": "^17.5.1", "semver": "^7.6.3" }, "devDependencies": { "@tailwindcss/forms": "^0.5.8", "@testing-library/cypress": "^10.0.2", - "@wordpress/env": "^10.10.0", + "@wordpress/env": "^10.11.0", "@wordpress/eslint-plugin": "^21.4.0", "@wordpress/scripts": "^30.4.0", - "cypress": "^13.15.1", + "cypress": "^13.15.2", "cypress-axe": "^1.5.0", "eslint-import-resolver-alias": "^1.1.2", "eslint-plugin-import": "^2.29.1", @@ -2289,11 +2289,10 @@ } }, "node_modules/@cypress/request": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/@cypress/request/-/request-3.0.5.tgz", - "integrity": "sha512-v+XHd9XmWbufxF1/bTaVm2yhbxY+TB4YtWRqF2zaXBlDNMkls34KiATz0AVDLavL3iB6bQk9/7n3oY1EoLSWGA==", + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@cypress/request/-/request-3.0.6.tgz", + "integrity": "sha512-fi0eVdCOtKu5Ed6+E8mYxUF6ZTFJDZvHogCBelM0xVXmrDEkyM22gRArQzq1YcHPm1V47Vf/iAD+WgVdUlJCGg==", "dev": true, - "license": "Apache-2.0", "dependencies": { "aws-sign2": "~0.7.0", "aws4": "^1.8.0", @@ -2310,7 +2309,7 @@ "performance-now": "^2.1.0", "qs": "6.13.0", "safe-buffer": "^5.1.2", - "tough-cookie": "^4.1.3", + "tough-cookie": "^5.0.0", "tunnel-agent": "^0.6.0", "uuid": "^8.3.2" }, @@ -2318,12 +2317,23 @@ "node": ">= 6" } }, + "node_modules/@cypress/request/node_modules/tough-cookie": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-5.0.0.tgz", + "integrity": "sha512-FRKsF7cz96xIIeMZ82ehjC3xW2E+O2+v11udrDYewUbszngYhsGa8z6YUMMzO9QJZzzyd0nGGXnML/TReX6W8Q==", + "dev": true, + "dependencies": { + "tldts": "^6.1.32" + }, + "engines": { + "node": ">=16" + } + }, "node_modules/@cypress/request/node_modules/uuid": { "version": "8.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", "dev": true, - "license": "MIT", "bin": { "uuid": "dist/bin/uuid" } @@ -4182,10 +4192,9 @@ } }, "node_modules/@remix-run/router": { - "version": "1.20.0", - "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.20.0.tgz", - "integrity": "sha512-mUnk8rPJBI9loFDZ+YzPGdeniYK+FTmRD1TMCz7ev2SNIozyKKpnGgsxO34u6Z4z/t0ITuu7voi/AshfsGsgFg==", - "license": "MIT", + "version": "1.21.0", + "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.21.0.tgz", + "integrity": "sha512-xfSkCAchbdG5PnbrKqFWwia4Bi61nH+wm8wLEqfHDyp7Y3dZzgqS2itV8i4gAq9pC2HsTpwyBC6Ds8VHZ96JlA==", "engines": { "node": ">=14.0.0" } @@ -6582,9 +6591,9 @@ } }, "node_modules/@wordpress/env": { - "version": "10.10.0", - "resolved": "https://registry.npmjs.org/@wordpress/env/-/env-10.10.0.tgz", - "integrity": "sha512-7r4E5ECqkdy+Cll3ikCKfaweyRL7T7uAnY86GZZ9HJa5dNfzObfTyWWtPB44gMp5KnW4dZGW/E6mQMzhedc72A==", + "version": "10.11.0", + "resolved": "https://registry.npmjs.org/@wordpress/env/-/env-10.11.0.tgz", + "integrity": "sha512-Sd31oiYxy9/pNMfYw7XgtCBoD4PpvcK1UQ/FVFP+DsTTuo55Ma4UAHMKfg2NhnZWqhJTgPC6XXzicGpr/lK4RQ==", "dev": true, "dependencies": { "chalk": "^4.0.0", @@ -7000,9 +7009,9 @@ } }, "node_modules/@wordpress/scripts": { - "version": "30.4.0", - "resolved": "https://registry.npmjs.org/@wordpress/scripts/-/scripts-30.4.0.tgz", - "integrity": "sha512-hAX8XB8hWlxAyktT4KkBpGttRwSynmtkpLvbVKeKnj+BjABFs4TGb/HCF9hFpUK3huCAg8Ft/sjjczW+5tqspQ==", + "version": "30.5.1", + "resolved": "https://registry.npmjs.org/@wordpress/scripts/-/scripts-30.5.1.tgz", + "integrity": "sha512-VM5NViNfdQR69MWxLnptB8svvnrEV+oUVgWL8icsLdCt2CENgPwUIk/Gs0wzeAVK05cGjrCESapJnEgIXp5lzA==", "dev": true, "license": "GPL-2.0-or-later", "dependencies": { @@ -7048,7 +7057,6 @@ "npm-package-json-lint": "^6.4.0", "npm-packlist": "^3.0.0", "postcss": "^8.4.5", - "postcss-import": "^16.1.0", "postcss-loader": "^6.2.1", "prettier": "npm:wp-prettier@3.0.3", "puppeteer-core": "^23.1.0", @@ -7126,24 +7134,6 @@ "dev": true, "license": "BSD" }, - "node_modules/@wordpress/scripts/node_modules/postcss-import": { - "version": "16.1.0", - "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-16.1.0.tgz", - "integrity": "sha512-7hsAZ4xGXl4MW+OKEWCnF6T5jqBw80/EE9aXg1r2yyn1RsVEU8EtKXbijEODa+rg7iih4bKf7vlvTGYR4CnPNg==", - "dev": true, - "license": "MIT", - "dependencies": { - "postcss-value-parser": "^4.0.0", - "read-cache": "^1.0.0", - "resolve": "^1.1.7" - }, - "engines": { - "node": ">=18.0.0" - }, - "peerDependencies": { - "postcss": "^8.0.0" - } - }, "node_modules/@wordpress/scripts/node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", @@ -7787,7 +7777,6 @@ "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", "dev": true, - "license": "MIT", "dependencies": { "safer-buffer": "~2.1.0" } @@ -7797,7 +7786,6 @@ "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.8" } @@ -7915,7 +7903,6 @@ "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==", "dev": true, - "license": "Apache-2.0", "engines": { "node": "*" } @@ -7924,8 +7911,7 @@ "version": "1.13.2", "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.13.2.tgz", "integrity": "sha512-lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/axe-core": { "version": "4.10.0", @@ -8285,7 +8271,6 @@ "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==", "dev": true, - "license": "BSD-3-Clause", "dependencies": { "tweetnacl": "^0.14.3" } @@ -8729,8 +8714,7 @@ "version": "0.12.0", "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==", - "dev": true, - "license": "Apache-2.0" + "dev": true }, "node_modules/chalk": { "version": "4.1.2", @@ -9910,13 +9894,13 @@ } }, "node_modules/cypress": { - "version": "13.15.1", - "resolved": "https://registry.npmjs.org/cypress/-/cypress-13.15.1.tgz", - "integrity": "sha512-DwUFiKXo4lef9kA0M4iEhixFqoqp2hw8igr0lTqafRb9qtU3X0XGxKbkSYsUFdkrAkphc7MPDxoNPhk5pj9PVg==", + "version": "13.15.2", + "resolved": "https://registry.npmjs.org/cypress/-/cypress-13.15.2.tgz", + "integrity": "sha512-ARbnUorjcCM3XiPwgHKuqsyr5W9Qn+pIIBPaoilnoBkLdSC2oLQjV1BUpnmc7KR+b7Avah3Ly2RMFnfxr96E/A==", "dev": true, "hasInstallScript": true, "dependencies": { - "@cypress/request": "^3.0.4", + "@cypress/request": "^3.0.6", "@cypress/xvfb": "^1.2.4", "@types/sinonjs__fake-timers": "8.1.1", "@types/sizzle": "^2.3.2", @@ -9927,6 +9911,7 @@ "cachedir": "^2.3.0", "chalk": "^4.1.0", "check-more-types": "^2.24.0", + "ci-info": "^4.0.0", "cli-cursor": "^3.1.0", "cli-table3": "~0.6.1", "commander": "^6.2.1", @@ -9941,7 +9926,6 @@ "figures": "^3.2.0", "fs-extra": "^9.1.0", "getos": "^3.2.1", - "is-ci": "^3.0.1", "is-installed-globally": "~0.4.0", "lazy-ass": "^1.6.0", "listr2": "^3.8.3", @@ -9981,6 +9965,21 @@ "cypress": "^10 || ^11 || ^12 || ^13" } }, + "node_modules/cypress/node_modules/ci-info": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.0.0.tgz", + "integrity": "sha512-TdHqgGf9odd8SXNuxtUBVx8Nv+qZOejE6qyqiy5NtbYYQOeFa6zmHkxlPzmaLxWWHsU6nJmB7AETdVPi+2NBUg==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "engines": { + "node": ">=8" + } + }, "node_modules/cypress/node_modules/extract-zip": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", @@ -10030,7 +10029,6 @@ "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==", "dev": true, - "license": "MIT", "dependencies": { "assert-plus": "^1.0.0" }, @@ -10326,9 +10324,9 @@ } }, "node_modules/default-gateway/node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, "license": "MIT", "dependencies": { @@ -10878,7 +10876,6 @@ "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==", "dev": true, - "license": "MIT", "dependencies": { "jsbn": "~0.1.0", "safer-buffer": "^2.1.0" @@ -11993,9 +11990,9 @@ } }, "node_modules/eslint/node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, "license": "MIT", "dependencies": { @@ -12337,9 +12334,9 @@ } }, "node_modules/execa/node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, "license": "MIT", "dependencies": { @@ -12540,8 +12537,7 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/external-editor": { "version": "3.1.0", @@ -12624,8 +12620,7 @@ "dev": true, "engines": [ "node >=0.6.0" - ], - "license": "MIT" + ] }, "node_modules/fast-deep-equal": { "version": "3.1.3", @@ -13181,9 +13176,9 @@ } }, "node_modules/foreground-child/node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, "license": "MIT", "dependencies": { @@ -13252,7 +13247,6 @@ "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==", "dev": true, - "license": "Apache-2.0", "engines": { "node": "*" } @@ -13580,7 +13574,6 @@ "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==", "dev": true, - "license": "MIT", "dependencies": { "assert-plus": "^1.0.0" } @@ -14206,7 +14199,6 @@ "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.4.0.tgz", "integrity": "sha512-G5akfn7eKbpDN+8nPS/cb57YeA1jLTVxjpCj7tmm3QKPdyDy7T+qSC40e9ptydSWvkwjSXw1VbkpyEm39ukeAg==", "dev": true, - "license": "MIT", "dependencies": { "assert-plus": "^1.0.0", "jsprim": "^2.0.2", @@ -14724,19 +14716,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-ci": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-3.0.1.tgz", - "integrity": "sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ci-info": "^3.2.0" - }, - "bin": { - "is-ci": "bin.js" - } - }, "node_modules/is-core-module": { "version": "2.15.1", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.1.tgz", @@ -15273,8 +15252,7 @@ "version": "0.1.2", "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/istanbul-lib-coverage": { "version": "3.2.2", @@ -15459,9 +15437,9 @@ } }, "node_modules/jest-changed-files/node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, "license": "MIT", "dependencies": { @@ -16525,8 +16503,7 @@ "version": "0.1.1", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/jsdoc-type-pratt-parser": { "version": "4.0.0", @@ -16613,8 +16590,7 @@ "version": "0.4.0", "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==", - "dev": true, - "license": "(AFL-2.1 OR BSD-3-Clause)" + "dev": true }, "node_modules/json-schema-traverse": { "version": "1.0.0", @@ -16633,8 +16609,7 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", - "dev": true, - "license": "ISC" + "dev": true }, "node_modules/json2php": { "version": "0.0.7", @@ -16684,7 +16659,6 @@ "engines": [ "node >=0.6.0" ], - "license": "MIT", "dependencies": { "assert-plus": "1.0.0", "extsprintf": "1.3.0", @@ -19211,8 +19185,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/picocolors": { "version": "1.1.0", @@ -20777,12 +20750,11 @@ } }, "node_modules/react-router": { - "version": "6.27.0", - "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.27.0.tgz", - "integrity": "sha512-YA+HGZXz4jaAkVoYBE98VQl+nVzI+cVI2Oj/06F5ZM+0u3TgedN9Y9kmMRo2mnkSK2nCpNQn0DVob4HCsY/WLw==", - "license": "MIT", + "version": "6.28.0", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.28.0.tgz", + "integrity": "sha512-HrYdIFqdrnhDw0PqG/AKjAqEqM7AvxCz0DQ4h2W8k6nqmc5uRBYDag0SBxx9iYz5G8gnuNVLzUe13wl9eAsXXg==", "dependencies": { - "@remix-run/router": "1.20.0" + "@remix-run/router": "1.21.0" }, "engines": { "node": ">=14.0.0" @@ -20792,13 +20764,12 @@ } }, "node_modules/react-router-dom": { - "version": "6.27.0", - "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.27.0.tgz", - "integrity": "sha512-+bvtFWMC0DgAFrfKXKG9Fc+BcXWRUO1aJIihbB79xaeq0v5UzfvnM5houGUm1Y461WVRcgAQ+Clh5rdb1eCx4g==", - "license": "MIT", + "version": "6.28.0", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.28.0.tgz", + "integrity": "sha512-kQ7Unsl5YdyOltsPGl31zOjLrDv+m2VcIEcIHqYYD3Lp0UppLjrzcfJqDJwXxFw3TH/yvapbnUvPlAj7Kx5nbg==", "dependencies": { - "@remix-run/router": "1.20.0", - "react-router": "6.27.0" + "@remix-run/router": "1.21.0", + "react-router": "6.28.0" }, "engines": { "node": ">=14.0.0" @@ -22472,7 +22443,6 @@ "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.18.0.tgz", "integrity": "sha512-2p2KJZTSqQ/I3+HX42EpYOa2l3f8Erv8MWKsy2I9uf4wA7yFIkXRffYdsx86y6z4vHtV8u7g+pPlr8/4ouAxsQ==", "dev": true, - "license": "MIT", "dependencies": { "asn1": "~0.2.3", "assert-plus": "^1.0.0", @@ -23920,6 +23890,24 @@ "integrity": "sha512-NB6Dk1A9xgQPMoGqC5CVXn123gWyte215ONT5Pp5a0yt4nlEoO1ZWeCwpncaekPHXO60i47ihFnZPiRPjRMq4Q==", "license": "MIT" }, + "node_modules/tldts": { + "version": "6.1.59", + "resolved": "https://registry.npmjs.org/tldts/-/tldts-6.1.59.tgz", + "integrity": "sha512-472ilPxsRuqBBpn+KuRBHJvZhk6tTo4yTVsmODrLBNLwRYJPkDfMEHivgNwp5iEl+cbrZzzRtLKRxZs7+QKkRg==", + "dev": true, + "dependencies": { + "tldts-core": "^6.1.59" + }, + "bin": { + "tldts": "bin/cli.js" + } + }, + "node_modules/tldts-core": { + "version": "6.1.59", + "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-6.1.59.tgz", + "integrity": "sha512-EiYgNf275AQyVORl8HQYYe7rTVnmLb4hkWK7wAk/12Ksy5EiHpmUmTICa4GojookBPC8qkLMBKKwCmzNA47ZPQ==", + "dev": true + }, "node_modules/tmp": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.3.tgz", @@ -24163,7 +24151,6 @@ "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", "dev": true, - "license": "Apache-2.0", "dependencies": { "safe-buffer": "^5.0.1" }, @@ -24175,8 +24162,7 @@ "version": "0.14.5", "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==", - "dev": true, - "license": "Unlicense" + "dev": true }, "node_modules/type-check": { "version": "0.4.0", @@ -24735,7 +24721,6 @@ "engines": [ "node >=0.6.0" ], - "license": "MIT", "dependencies": { "assert-plus": "^1.0.0", "core-util-is": "1.0.2", @@ -24746,8 +24731,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==", - "dev": true, - "license": "MIT" + "dev": true }, "node_modules/w3c-xmlserializer": { "version": "4.0.0", @@ -25016,9 +25000,9 @@ } }, "node_modules/webpack-cli/node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 63202baba..177ea6f78 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bluehost-wordpress-plugin", - "version": "3.15.3", + "version": "3.15.4", "description": "WordPress plugin that integrates your WordPress site with the Bluehost control panel, including performance, security, and update features.", "author": { "name": "Bluehost", @@ -50,17 +50,17 @@ "lodash": "^4.17.21", "react": "^18.2.0", "react-error-boundary": "^4.1.2", - "react-router-dom": "^6.26.1", + "react-router-dom": "^6.28.0", "react-use": "^17.5.1", "semver": "^7.6.3" }, "devDependencies": { "@tailwindcss/forms": "^0.5.8", "@testing-library/cypress": "^10.0.2", - "@wordpress/env": "^10.10.0", + "@wordpress/env": "^10.11.0", "@wordpress/eslint-plugin": "^21.4.0", "@wordpress/scripts": "^30.4.0", - "cypress": "^13.15.1", + "cypress": "^13.15.2", "cypress-axe": "^1.5.0", "eslint-import-resolver-alias": "^1.1.2", "eslint-plugin-import": "^2.29.1", @@ -95,6 +95,7 @@ "storybook:dev": "start-storybook -c ./storybook", "storybook:build": "build-storybook -c ./storybook -o ./.docs", "test:e2e": "npx cypress run", - "test:unit": "wp-scripts test-unit-js" + "test:unit": "wp-scripts test-unit-js", + "test:clean-module": "bash scripts/test-clean-module" } } diff --git a/scripts/test-clean-module b/scripts/test-clean-module new file mode 100644 index 000000000..95cc7953c --- /dev/null +++ b/scripts/test-clean-module @@ -0,0 +1,50 @@ +#!/usr/bin/env bash + +# This script runs Cypress clean tests (reset db before test) for a specific module. + +# Source utils +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +cd "$SCRIPT_DIR" +source ./utils + +# Project root +cd ../ + +# Check if a module is provided +if [ -z "$1" ]; then + print_error "No module provided." + echo "Usage: npm run test:clean-module -- " + exit 1 +fi + +MODULE=$1 +MODULE_DIR="vendor/newfold-labs/$MODULE" + +# Check if the module exists +if [ ! -d "$MODULE_DIR" ]; then + print_error "Can't find $MODULE in vendor/newfold-labs." + exit 1 +fi + +# Check if the module has tests +if ! find "$MODULE_DIR/tests" -type f -name "*.cy.js" 2>/dev/null | grep -q .; then + print_error "Can't find any test files in $MODULE_DIR." + exit 1 +fi + +# Warn the user that the database will be reset +confirm_prompt "${YELLOW}Running a clean test will reset the database. Proceed?${TEXT}" + +# Check if the answer is "y" or "Y" +if [[ $REPLY =~ ^[Yy]$ ]]; then + echo -e "Proceeding with tests for ${CYAN}${MODULE}${TEXT}..." + + # Run the commands + wp-env stop + wp-env clean all + wp-env start + npm run test:e2e -- --browser chrome --spec "vendor/(newfold-labs/$MODULE/tests/**/*.cy.js)" +else + echo "Cancelled." + exit 0 +fi diff --git a/scripts/utils b/scripts/utils new file mode 100644 index 000000000..51ca5c75f --- /dev/null +++ b/scripts/utils @@ -0,0 +1,32 @@ +#!/usr/bin/env bash + +# Colors +GREEN='\033[0;32m' +TEXT='\033[0m' +BLUE='\033[0;34m' +RED='\033[0;31m' +CYAN='\033[0;36m' +YELLOW='\033[0;33m' + +print_success() { + echo -e "${GREEN}Success:${TEXT} $1" +} + +print_error() { + echo -e "${RED}Error:${TEXT} $1" +} + +print_info() { + echo -e "${CYAN}$1" +} + +print_warning() { + echo -e "${YELLOW}Warning:${TEXT} $1" +} + +confirm_prompt() { + local message=$1 + read -p "$(echo -e ${message}) (y/n): " -n 1 -r + echo # Move to a new line + [[ $REPLY =~ ^[Yy]$ ]] # Returns 0 if y/Y is entered, 1 otherwise +} diff --git a/src/app/components/app-nav/index.js b/src/app/components/app-nav/index.js index c8f45bb54..cb4bed1a5 100644 --- a/src/app/components/app-nav/index.js +++ b/src/app/components/app-nav/index.js @@ -194,6 +194,7 @@ export const MobileNav = () => {