From a23bc1d63ba7db945940b5da322f28bc1e5e9113 Mon Sep 17 00:00:00 2001 From: aratidgr8 Date: Wed, 24 Jul 2024 16:52:43 +0530 Subject: [PATCH] Ecommerce Version bump to 1.3.38 and Added Sales Channel menu option --- .wp-env.json | 2 +- composer.json | 2 +- composer.lock | 30 +++++++++++++++--------------- package-lock.json | 8 ++++---- package.json | 2 +- src/app/data/routes.js | 7 +++++++ 6 files changed, 29 insertions(+), 22 deletions(-) diff --git a/.wp-env.json b/.wp-env.json index 15deef80..f1b99132 100644 --- a/.wp-env.json +++ b/.wp-env.json @@ -1,5 +1,5 @@ { - "core": "WordPress/WordPress#tags/6.6", + "core": "WordPress/WordPress#tags/6.6.1", "config": { "WP_DEBUG": true, "WP_DEBUG_LOG": true, diff --git a/composer.json b/composer.json index db2a5ff2..54be6c9f 100644 --- a/composer.json +++ b/composer.json @@ -78,7 +78,7 @@ "newfold-labs/wp-module-context": "^1.0.1", "newfold-labs/wp-module-data": "2.5.3", "newfold-labs/wp-module-deactivation": "^1.2.3", - "newfold-labs/wp-module-ecommerce": "^1.3.37", + "newfold-labs/wp-module-ecommerce": "^1.3.38", "newfold-labs/wp-module-features": "^1.4.2", "newfold-labs/wp-module-global-ctb": "^1.0.13", "newfold-labs/wp-module-help-center": "^2.0.1", diff --git a/composer.lock b/composer.lock index f020591a..d621a60c 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": "074272fbbcc074e2f3805571e8ba9bfa", + "content-hash": "2d8735079d4081700c8ea6fac0d1f8e8", "packages": [ { "name": "doctrine/inflector", @@ -652,16 +652,16 @@ }, { "name": "newfold-labs/wp-module-ecommerce", - "version": "v1.3.37", + "version": "v1.3.38", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-ecommerce.git", - "reference": "6de1a4be520e0f82d8c23b2d2c11f2825f5a520a" + "reference": "961774efb83f32aea61ba2d25e69fc2d80e9ce27" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-ecommerce/zipball/6de1a4be520e0f82d8c23b2d2c11f2825f5a520a", - "reference": "6de1a4be520e0f82d8c23b2d2c11f2825f5a520a", + "url": "https://api.github.com/repos/newfold-labs/wp-module-ecommerce/zipball/961774efb83f32aea61ba2d25e69fc2d80e9ce27", + "reference": "961774efb83f32aea61ba2d25e69fc2d80e9ce27", "shasum": "" }, "require": { @@ -704,10 +704,10 @@ ], "description": "Brand Agnostic eCommerce Experience", "support": { - "source": "https://github.com/newfold-labs/wp-module-ecommerce/tree/v1.3.37", + "source": "https://github.com/newfold-labs/wp-module-ecommerce/tree/v1.3.38", "issues": "https://github.com/newfold-labs/wp-module-ecommerce/issues" }, - "time": "2024-07-10T13:06:32+00:00" + "time": "2024-07-24T10:58:36+00:00" }, { "name": "newfold-labs/wp-module-facebook", @@ -2347,16 +2347,16 @@ }, { "name": "mck89/peast", - "version": "v1.16.2", + "version": "v1.16.3", "source": { "type": "git", "url": "https://github.com/mck89/peast.git", - "reference": "2791b08ffcc1862fe18eef85675da3aa58c406fe" + "reference": "645ec21b650bc2aced18285c85f220d22afc1430" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mck89/peast/zipball/2791b08ffcc1862fe18eef85675da3aa58c406fe", - "reference": "2791b08ffcc1862fe18eef85675da3aa58c406fe", + "url": "https://api.github.com/repos/mck89/peast/zipball/645ec21b650bc2aced18285c85f220d22afc1430", + "reference": "645ec21b650bc2aced18285c85f220d22afc1430", "shasum": "" }, "require": { @@ -2369,7 +2369,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.16.2-dev" + "dev-master": "1.16.3-dev" } }, "autoload": { @@ -2390,9 +2390,9 @@ "description": "Peast is PHP library that generates AST for JavaScript code", "support": { "issues": "https://github.com/mck89/peast/issues", - "source": "https://github.com/mck89/peast/tree/v1.16.2" + "source": "https://github.com/mck89/peast/tree/v1.16.3" }, - "time": "2024-03-05T09:16:03+00:00" + "time": "2024-07-23T14:00:32+00:00" }, { "name": "newfold-labs/wp-php-standards", @@ -3412,7 +3412,7 @@ }, { "name": "wp-phpunit/wp-phpunit", - "version": "6.6.0", + "version": "6.6.1", "source": { "type": "git", "url": "https://github.com/wp-phpunit/wp-phpunit.git", diff --git a/package-lock.json b/package-lock.json index 983a8f58..d97ba41c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "GPL-2.0-or-later", "dependencies": { "@heroicons/react": "^2.1.5", - "@newfold-labs/wp-module-ecommerce": "^1.3.37", + "@newfold-labs/wp-module-ecommerce": "^1.3.38", "@newfold-labs/wp-module-runtime": "^1.0.11", "@newfold/ui-component-library": "^1.1.0", "@reduxjs/toolkit": "^2.2.6", @@ -3148,9 +3148,9 @@ } }, "node_modules/@newfold-labs/wp-module-ecommerce": { - "version": "1.3.37", - "resolved": "https://npm.pkg.github.com/download/@newfold-labs/wp-module-ecommerce/1.3.37/dee0514d894a92cfb7729bc9494ff3a46aa7376c", - "integrity": "sha512-aEGFqk0mce/HQ4f541ZE1pMcuyoYScQ0zXy8ystKNu1WGQw3M+ngoZoFOcz0zveayYNtdejH7uMdaizuxhCQWQ==", + "version": "1.3.38", + "resolved": "https://npm.pkg.github.com/download/@newfold-labs/wp-module-ecommerce/1.3.38/40ce07a3e07a0ae1ea3ed42bd12f32faa9691736", + "integrity": "sha512-k7TyZ2/NJr0vX21VG4NUA07V+3sRLAyYlAiggu+R0CH3vz33X1M3FWCEgks8IR9iEqGZRmPdXyvsvNi92hW9VA==", "dependencies": { "@faizaanceg/pandora": "^1.1.1", "@heroicons/react": "2.1.3", diff --git a/package.json b/package.json index e6fb2b95..15c594c5 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ }, "dependencies": { "@heroicons/react": "^2.1.5", - "@newfold-labs/wp-module-ecommerce": "^1.3.37", + "@newfold-labs/wp-module-ecommerce": "^1.3.38", "@newfold-labs/wp-module-runtime": "^1.0.11", "@newfold/ui-component-library": "^1.1.0", "@reduxjs/toolkit": "^2.2.6", diff --git a/src/app/data/routes.js b/src/app/data/routes.js index 6e30f07f..c1a06599 100644 --- a/src/app/data/routes.js +++ b/src/app/data/routes.js @@ -108,6 +108,13 @@ export const routes = [ ), } : null, + NewfoldRuntime.hasCapability( 'hasYithExtended' ) && + NewfoldRuntime.hasCapability( 'hasEcomdash' ) + ? { + name: '/store/sales_channel', + title: __( 'Sales Channel', 'wp-plugin-hostgator' ), + } + : null, NewfoldRuntime.isWoo ? { name: '/store/payments',