From 1d2b5299f214f0b3cb5d920002438d34b1d4f87a Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Mon, 13 Nov 2023 17:10:28 -0500 Subject: [PATCH 1/2] update notifications module --- composer.json | 2 +- composer.lock | 14 +++++++------- src/app/index.js | 3 ++- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index cc52c1539..35cf7e268 100644 --- a/composer.json +++ b/composer.json @@ -66,7 +66,7 @@ "newfold-labs/wp-module-help-center": "1.0.21", "newfold-labs/wp-module-loader": "^1.0.10", "newfold-labs/wp-module-marketplace": "^2.1.0", - "newfold-labs/wp-module-notifications": "^1.1.6", + "newfold-labs/wp-module-notifications": "^1.2.0", "newfold-labs/wp-module-onboarding": "^1.11.8", "newfold-labs/wp-module-patterns": "^0.1.8", "newfold-labs/wp-module-performance": "^1.2.2", diff --git a/composer.lock b/composer.lock index fc844ca8b..6b473775f 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": "41ae75c15a31eef7955bac64cb2cacf3", + "content-hash": "60e5b25186bb036570b6b4d863acb50a", "packages": [ { "name": "doctrine/inflector", @@ -828,16 +828,16 @@ }, { "name": "newfold-labs/wp-module-notifications", - "version": "1.1.6", + "version": "1.2.0", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-notifications.git", - "reference": "040c63553978974bdebc066febb0ba3842875095" + "reference": "5b686576c074526c75e338250fa057a0e19afafc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-notifications/zipball/040c63553978974bdebc066febb0ba3842875095", - "reference": "040c63553978974bdebc066febb0ba3842875095", + "url": "https://api.github.com/repos/newfold-labs/wp-module-notifications/zipball/5b686576c074526c75e338250fa057a0e19afafc", + "reference": "5b686576c074526c75e338250fa057a0e19afafc", "shasum": "" }, "require": { @@ -866,10 +866,10 @@ ], "description": "A module for managing Newfold in-site notifications.", "support": { - "source": "https://github.com/newfold-labs/wp-module-notifications/tree/1.1.6", + "source": "https://github.com/newfold-labs/wp-module-notifications/tree/1.2.0", "issues": "https://github.com/newfold-labs/wp-module-notifications/issues" }, - "time": "2023-10-18T16:10:26+00:00" + "time": "2023-11-13T21:50:58+00:00" }, { "name": "newfold-labs/wp-module-onboarding", diff --git a/src/app/index.js b/src/app/index.js index 5a76e57b3..4f87f6226 100644 --- a/src/app/index.js +++ b/src/app/index.js @@ -24,6 +24,7 @@ import { NotificationFeed } from './components/notifications/feed'; import { default as NewfoldNotifications } from '../../vendor/newfold-labs/wp-module-notifications/assets/js/components/notifications/'; // to pass to notifications module import apiFetch from '@wordpress/api-fetch'; +import { addQueryArgs } from '@wordpress/url'; import { useState } from '@wordpress/element'; const Notices = () => { @@ -82,10 +83,10 @@ const AppBody = ( props ) => { constants={{ context: 'bluehost-plugin', page: hashedPath, - resturl: NewfoldRuntime.createApiUrl("") }} methods={{ apiFetch, + addQueryArgs, classnames, filter, useState, From 769f9ff1700ce8d6f86c2f7e2309fd5ee40f548b Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Mon, 13 Nov 2023 18:01:58 -0500 Subject: [PATCH 2/2] update notifications module with fixed test --- .wp-env.json | 2 +- composer.json | 2 +- composer.lock | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.wp-env.json b/.wp-env.json index 3dd3b3244..a77cb04fd 100644 --- a/.wp-env.json +++ b/.wp-env.json @@ -1,5 +1,5 @@ { - "core": "WordPress/WordPress#tags/6.3.2", + "core": "WordPress/WordPress#tags/6.4.1", "config": { "WP_DEBUG": true, "WP_DEBUG_LOG": true, diff --git a/composer.json b/composer.json index 35cf7e268..878b2f70d 100644 --- a/composer.json +++ b/composer.json @@ -66,7 +66,7 @@ "newfold-labs/wp-module-help-center": "1.0.21", "newfold-labs/wp-module-loader": "^1.0.10", "newfold-labs/wp-module-marketplace": "^2.1.0", - "newfold-labs/wp-module-notifications": "^1.2.0", + "newfold-labs/wp-module-notifications": "^1.2.1", "newfold-labs/wp-module-onboarding": "^1.11.8", "newfold-labs/wp-module-patterns": "^0.1.8", "newfold-labs/wp-module-performance": "^1.2.2", diff --git a/composer.lock b/composer.lock index 6b473775f..acd3a26c2 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": "60e5b25186bb036570b6b4d863acb50a", + "content-hash": "f15566237f8c435286952bd6ac7dd2f8", "packages": [ { "name": "doctrine/inflector", @@ -828,16 +828,16 @@ }, { "name": "newfold-labs/wp-module-notifications", - "version": "1.2.0", + "version": "1.2.1", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-notifications.git", - "reference": "5b686576c074526c75e338250fa057a0e19afafc" + "reference": "802de89e0a94f59f93b5637fdcce62d80a30af1c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-notifications/zipball/5b686576c074526c75e338250fa057a0e19afafc", - "reference": "5b686576c074526c75e338250fa057a0e19afafc", + "url": "https://api.github.com/repos/newfold-labs/wp-module-notifications/zipball/802de89e0a94f59f93b5637fdcce62d80a30af1c", + "reference": "802de89e0a94f59f93b5637fdcce62d80a30af1c", "shasum": "" }, "require": { @@ -866,10 +866,10 @@ ], "description": "A module for managing Newfold in-site notifications.", "support": { - "source": "https://github.com/newfold-labs/wp-module-notifications/tree/1.2.0", + "source": "https://github.com/newfold-labs/wp-module-notifications/tree/1.2.1", "issues": "https://github.com/newfold-labs/wp-module-notifications/issues" }, - "time": "2023-11-13T21:50:58+00:00" + "time": "2023-11-13T22:55:16+00:00" }, { "name": "newfold-labs/wp-module-onboarding",