diff --git a/bootstrap.php b/bootstrap.php index 6e168e73..b9b39e69 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -5,7 +5,7 @@ use function NewfoldLabs\WP\ModuleLoader\register; -define( 'NFD_ECOMMERCE_MODULE_VERSION', '1.3.33' ); +define( 'NFD_ECOMMERCE_MODULE_VERSION', '1.3.34' ); if ( function_exists( 'is_admin' ) && is_admin() ) { $old_woocommerce_module_version = get_option( 'nfd_ecommerce_module_version' ); diff --git a/composer.lock b/composer.lock index 97bef54d..768c67ea 100644 --- a/composer.lock +++ b/composer.lock @@ -237,16 +237,16 @@ }, { "name": "newfold-labs/wp-module-coming-soon", - "version": "1.2.4", + "version": "1.2.5", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-coming-soon.git", - "reference": "05112a5908bb08ca0aa3aa7d7e7c508d44401b28" + "reference": "36da71998930ffc6fcb13d2ea082b82507a284b2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-coming-soon/zipball/05112a5908bb08ca0aa3aa7d7e7c508d44401b28", - "reference": "05112a5908bb08ca0aa3aa7d7e7c508d44401b28", + "url": "https://api.github.com/repos/newfold-labs/wp-module-coming-soon/zipball/36da71998930ffc6fcb13d2ea082b82507a284b2", + "reference": "36da71998930ffc6fcb13d2ea082b82507a284b2", "shasum": "" }, "require": { @@ -284,10 +284,10 @@ ], "description": "Coming Soon module for WordPress sites.", "support": { - "source": "https://github.com/newfold-labs/wp-module-coming-soon/tree/1.2.4", + "source": "https://github.com/newfold-labs/wp-module-coming-soon/tree/1.2.5", "issues": "https://github.com/newfold-labs/wp-module-coming-soon/issues" }, - "time": "2024-05-31T16:22:17+00:00" + "time": "2024-06-19T19:13:33+00:00" }, { "name": "newfold-labs/wp-module-context", @@ -345,16 +345,16 @@ }, { "name": "newfold-labs/wp-module-data", - "version": "2.5.2", + "version": "2.5.3", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-data.git", - "reference": "bd9642c155735fac8f114ea1eb237da4a72eb267" + "reference": "6c0941bc9ac3d18820f924de8c4afe58bb421782" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-data/zipball/bd9642c155735fac8f114ea1eb237da4a72eb267", - "reference": "bd9642c155735fac8f114ea1eb237da4a72eb267", + "url": "https://api.github.com/repos/newfold-labs/wp-module-data/zipball/6c0941bc9ac3d18820f924de8c4afe58bb421782", + "reference": "6c0941bc9ac3d18820f924de8c4afe58bb421782", "shasum": "" }, "require": { @@ -367,10 +367,20 @@ }, "require-dev": { "10up/wp_mock": "^0.4.2", + "bluehost/bluehost-wordpress-plugin": "*", + "brianhenryie/composer-phpstorm": "*", "johnpbloch/wordpress": "*", - "newfold-labs/wp-php-standards": "^1.2" + "kporras07/composer-symlinks": "^1.2", + "lucatume/wp-browser": "^3", + "newfold-labs/wp-php-standards": "^1.2", + "wpackagist-plugin/woocommerce": "*" }, "type": "library", + "extra": { + "symlinks": { + ".": "wp-content/plugins/bluehost-wordpress-plugin/vendor/newfold-labs/wp-module-data" + } + }, "autoload": { "psr-4": { "NewfoldLabs\\WP\\Module\\Data\\": "includes/" @@ -381,8 +391,14 @@ }, "autoload-dev": { "psr-4": { - "NewfoldLabs\\WP\\Module\\Data\\": "tests/phpunit/includes/" - } + "NewfoldLabs\\WP\\Module\\Data\\": [ + "tests/phpunit/includes/", + "tests/wpunit/includes" + ] + }, + "classmap": [ + "wordpress" + ] }, "scripts": { "fix": [ @@ -393,6 +409,15 @@ ], "lint": [ "vendor/bin/phpcs . --standard=phpcs.xml -s" + ], + "create-symlinks": [ + "Kporras07\\ComposerSymlinks\\ScriptHandler::createSymlinks" + ], + "post-install-cmd": [ + "@create-symlinks" + ], + "post-update-cmd": [ + "@create-symlinks" ] }, "license": [ @@ -400,10 +425,10 @@ ], "description": "Newfold Data Module", "support": { - "source": "https://github.com/newfold-labs/wp-module-data/tree/2.5.2", + "source": "https://github.com/newfold-labs/wp-module-data/tree/2.5.3", "issues": "https://github.com/newfold-labs/wp-module-data/issues" }, - "time": "2024-05-30T18:45:12+00:00" + "time": "2024-06-19T17:34:08+00:00" }, { "name": "newfold-labs/wp-module-install-checker", @@ -3210,16 +3235,16 @@ }, { "name": "symfony/polyfill-ctype", - "version": "v1.29.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "ef4d7e442ca910c4764bce785146269b30cb5fc4" + "reference": "0424dff1c58f028c451efff2045f5d92410bd540" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/ef4d7e442ca910c4764bce785146269b30cb5fc4", - "reference": "ef4d7e442ca910c4764bce785146269b30cb5fc4", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/0424dff1c58f028c451efff2045f5d92410bd540", + "reference": "0424dff1c58f028c451efff2045f5d92410bd540", "shasum": "" }, "require": { @@ -3269,7 +3294,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.29.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.30.0" }, "funding": [ { @@ -3285,20 +3310,20 @@ "type": "tidelift" } ], - "time": "2024-01-29T20:11:03+00:00" + "time": "2024-05-31T15:07:36+00:00" }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.29.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "32a9da87d7b3245e09ac426c83d334ae9f06f80f" + "reference": "64647a7c30b2283f5d49b874d84a18fc22054b7a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/32a9da87d7b3245e09ac426c83d334ae9f06f80f", - "reference": "32a9da87d7b3245e09ac426c83d334ae9f06f80f", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/64647a7c30b2283f5d49b874d84a18fc22054b7a", + "reference": "64647a7c30b2283f5d49b874d84a18fc22054b7a", "shasum": "" }, "require": { @@ -3347,7 +3372,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.29.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.30.0" }, "funding": [ { @@ -3363,20 +3388,20 @@ "type": "tidelift" } ], - "time": "2024-01-29T20:11:03+00:00" + "time": "2024-05-31T15:07:36+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.29.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "bc45c394692b948b4d383a08d7753968bed9a83d" + "reference": "a95281b0be0d9ab48050ebd988b967875cdb9fdb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/bc45c394692b948b4d383a08d7753968bed9a83d", - "reference": "bc45c394692b948b4d383a08d7753968bed9a83d", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/a95281b0be0d9ab48050ebd988b967875cdb9fdb", + "reference": "a95281b0be0d9ab48050ebd988b967875cdb9fdb", "shasum": "" }, "require": { @@ -3428,7 +3453,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.29.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.30.0" }, "funding": [ { @@ -3444,20 +3469,20 @@ "type": "tidelift" } ], - "time": "2024-01-29T20:11:03+00:00" + "time": "2024-05-31T15:07:36+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.29.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "9773676c8a1bb1f8d4340a62efe641cf76eda7ec" + "reference": "fd22ab50000ef01661e2a31d850ebaa297f8e03c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9773676c8a1bb1f8d4340a62efe641cf76eda7ec", - "reference": "9773676c8a1bb1f8d4340a62efe641cf76eda7ec", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/fd22ab50000ef01661e2a31d850ebaa297f8e03c", + "reference": "fd22ab50000ef01661e2a31d850ebaa297f8e03c", "shasum": "" }, "require": { @@ -3508,7 +3533,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.29.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.30.0" }, "funding": [ { @@ -3524,20 +3549,20 @@ "type": "tidelift" } ], - "time": "2024-01-29T20:11:03+00:00" + "time": "2024-06-19T12:30:46+00:00" }, { "name": "symfony/polyfill-php73", - "version": "v1.29.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php73.git", - "reference": "21bd091060673a1177ae842c0ef8fe30893114d2" + "reference": "ec444d3f3f6505bb28d11afa41e75faadebc10a1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/21bd091060673a1177ae842c0ef8fe30893114d2", - "reference": "21bd091060673a1177ae842c0ef8fe30893114d2", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/ec444d3f3f6505bb28d11afa41e75faadebc10a1", + "reference": "ec444d3f3f6505bb28d11afa41e75faadebc10a1", "shasum": "" }, "require": { @@ -3584,7 +3609,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php73/tree/v1.29.0" + "source": "https://github.com/symfony/polyfill-php73/tree/v1.30.0" }, "funding": [ { @@ -3600,20 +3625,20 @@ "type": "tidelift" } ], - "time": "2024-01-29T20:11:03+00:00" + "time": "2024-05-31T15:07:36+00:00" }, { "name": "symfony/polyfill-php80", - "version": "v1.29.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b" + "reference": "77fa7995ac1b21ab60769b7323d600a991a90433" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/87b68208d5c1188808dd7839ee1e6c8ec3b02f1b", - "reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/77fa7995ac1b21ab60769b7323d600a991a90433", + "reference": "77fa7995ac1b21ab60769b7323d600a991a90433", "shasum": "" }, "require": { @@ -3664,7 +3689,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.29.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.30.0" }, "funding": [ { @@ -3680,20 +3705,20 @@ "type": "tidelift" } ], - "time": "2024-01-29T20:11:03+00:00" + "time": "2024-05-31T15:07:36+00:00" }, { "name": "symfony/polyfill-php81", - "version": "v1.29.0", + "version": "v1.30.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php81.git", - "reference": "c565ad1e63f30e7477fc40738343c62b40bc672d" + "reference": "3fb075789fb91f9ad9af537c4012d523085bd5af" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/c565ad1e63f30e7477fc40738343c62b40bc672d", - "reference": "c565ad1e63f30e7477fc40738343c62b40bc672d", + "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/3fb075789fb91f9ad9af537c4012d523085bd5af", + "reference": "3fb075789fb91f9ad9af537c4012d523085bd5af", "shasum": "" }, "require": { @@ -3740,7 +3765,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php81/tree/v1.29.0" + "source": "https://github.com/symfony/polyfill-php81/tree/v1.30.0" }, "funding": [ { @@ -3756,7 +3781,7 @@ "type": "tidelift" } ], - "time": "2024-01-29T20:11:03+00:00" + "time": "2024-06-19T12:30:46+00:00" }, { "name": "symfony/process", @@ -4832,16 +4857,16 @@ }, { "name": "wp-cli/extension-command", - "version": "v2.1.21", + "version": "v2.1.22", "source": { "type": "git", "url": "https://github.com/wp-cli/extension-command.git", - "reference": "f9bc3fd2f2dabcbe9b3bc3dc9591535dd714fd3c" + "reference": "7baa058ae33e78a8e19f6a189203ed08e03a21be" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/extension-command/zipball/f9bc3fd2f2dabcbe9b3bc3dc9591535dd714fd3c", - "reference": "f9bc3fd2f2dabcbe9b3bc3dc9591535dd714fd3c", + "url": "https://api.github.com/repos/wp-cli/extension-command/zipball/7baa058ae33e78a8e19f6a189203ed08e03a21be", + "reference": "7baa058ae33e78a8e19f6a189203ed08e03a21be", "shasum": "" }, "require": { @@ -4924,9 +4949,9 @@ "homepage": "https://github.com/wp-cli/extension-command", "support": { "issues": "https://github.com/wp-cli/extension-command/issues", - "source": "https://github.com/wp-cli/extension-command/tree/v2.1.21" + "source": "https://github.com/wp-cli/extension-command/tree/v2.1.22" }, - "time": "2024-05-02T13:35:09+00:00" + "time": "2024-06-04T12:24:31+00:00" }, { "name": "wp-cli/i18n-command", @@ -6202,5 +6227,5 @@ "platform-overrides": { "php": "7.3.0" }, - "plugin-api-version": "2.3.0" + "plugin-api-version": "2.6.0" } diff --git a/includes/ECommerce.php b/includes/ECommerce.php index ca564ab1..ada2a494 100644 --- a/includes/ECommerce.php +++ b/includes/ECommerce.php @@ -67,7 +67,7 @@ class ECommerce { 'woocommerce_cheque_settings', 'onboarding_experience_level', 'yoast_seo_signup_status', - 'showMigrationSteps', + 'nfd_show_migration_steps', 'update_site_server_clicked', ); @@ -322,7 +322,7 @@ public function register_settings() { ); \register_setting( 'general', - 'showMigrationSteps', + 'nfd_show_migration_steps', array( 'show_in_rest' => true, 'type' => 'boolean', @@ -707,7 +707,7 @@ function check_url_match( $brand_name, $site_url ) { } } if ( check_url_match( $brand, $site_url ) ) { - update_option( 'showMigrationSteps', false ); + update_option( 'nfd_show_migration_steps', false ); } } diff --git a/package-lock.json b/package-lock.json index 048d5a96..84a6779e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@newfold-labs/wp-module-ecommerce", - "version": "1.3.33", + "version": "1.3.34", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@newfold-labs/wp-module-ecommerce", - "version": "1.3.33", + "version": "1.3.34", "license": "GPL-2.0-or-later", "dependencies": { "@faizaanceg/pandora": "^1.1.1", diff --git a/package.json b/package.json index 99e590a4..5ab77296 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@newfold-labs/wp-module-ecommerce", "description": "Brand Agnostic eCommerce Experience", "license": "GPL-2.0-or-later", - "version": "1.3.33", + "version": "1.3.34", "main": "build/index.js", "files": [ "build/", diff --git a/src/components/OnboardingScreen.js b/src/components/OnboardingScreen.js index 1d08cef2..f2119c51 100644 --- a/src/components/OnboardingScreen.js +++ b/src/components/OnboardingScreen.js @@ -65,7 +65,7 @@ export function OnboardingScreen({ useEffect(() => { WordPressSdk.settings.get().then((res) => { - setIsMigrationCompleted( res.showMigrationSteps || false ); + setIsMigrationCompleted( res.nfd_show_migration_steps || false ); setWebServersUpdated( res.update_site_server_clicked ); if (res?.page_on_front && res?.show_on_front === "page") { setEditUrl( diff --git a/src/components/SiteStatus.js b/src/components/SiteStatus.js index debd6fbd..af770ec8 100644 --- a/src/components/SiteStatus.js +++ b/src/components/SiteStatus.js @@ -44,8 +44,14 @@ export function SiteStatus({ comingSoon, toggleComingSoon, notify }) { $statusText.style.setProperty("color", "var(--nfd-ecommerce-text-dark-success)"); } }); + + if (!comingSoon) { + return null; + } + return (