diff --git a/passbolt/Models/Messaging/Topics/GroupTopics.cs b/passbolt/Models/Messaging/Topics/GroupTopics.cs index ab2f6ed..d782ce5 100644 --- a/passbolt/Models/Messaging/Topics/GroupTopics.cs +++ b/passbolt/Models/Messaging/Topics/GroupTopics.cs @@ -21,6 +21,7 @@ public class GroupTopics public const string CREATE = "passbolt.groups.create"; public const string UPDATE = "passbolt.groups.update"; public const string DELETE = "passbolt.groups.delete"; - public const string DELETE_DRY_RUN = "passbolt.groups.delete-dry-run"; + public const string DELETE_DRY_RUN = "passbolt.groups.delete-dry-run"; + public const string FIND_MY_GROUPS = "passbolt.groups.find-my-groups"; } } diff --git a/passbolt/Models/Messaging/Topics/ResourceTopics.cs b/passbolt/Models/Messaging/Topics/ResourceTopics.cs index 6b06ef9..59b6233 100644 --- a/passbolt/Models/Messaging/Topics/ResourceTopics.cs +++ b/passbolt/Models/Messaging/Topics/ResourceTopics.cs @@ -24,6 +24,7 @@ public class ResourceTopics public const string DELETE_ALL = "passbolt.resources.delete-all"; public const string GET_ALL = "passbolt.resource-type.get-all"; public const string GET_GRID_SETTING = "passbolt.resources.get-grid-setting"; - public const string SET_GRID_SETTING = "passbolt.resources.set-grid-setting"; + public const string SET_GRID_SETTING = "passbolt.resources.set-grid-setting"; + public const string FIND_DETAILS = "passbolt.resources.find-details"; } } diff --git a/passbolt/Webviews/Background/index-auth.js b/passbolt/Webviews/Background/index-auth.js index 15f81e5..a0284db 100644 --- a/passbolt/Webviews/Background/index-auth.js +++ b/passbolt/Webviews/Background/index-auth.js @@ -13,6 +13,7 @@ */ import './src/polyfill/browserPolyfill'; +import "./src/polyfill/commandPolyfill" import './src/polyfill/desktopPolyfill'; import './src/polyfill/storagePolyfill'; import './src/polyfill/runtimePolyfill'; diff --git a/passbolt/Webviews/Background/index-import.js b/passbolt/Webviews/Background/index-import.js index 7564757..ad37d5a 100644 --- a/passbolt/Webviews/Background/index-import.js +++ b/passbolt/Webviews/Background/index-import.js @@ -13,6 +13,7 @@ */ import './src/polyfill/browserPolyfill'; +import "./src/polyfill/commandPolyfill" import './src/polyfill/desktopPolyfill'; import './src/polyfill/storagePolyfill'; import './src/polyfill/runtimePolyfill'; diff --git a/passbolt/Webviews/Background/index-workspace.js b/passbolt/Webviews/Background/index-workspace.js index e9a5f07..75501eb 100644 --- a/passbolt/Webviews/Background/index-workspace.js +++ b/passbolt/Webviews/Background/index-workspace.js @@ -13,6 +13,7 @@ */ import './src/polyfill/browserPolyfill'; +import "./src/polyfill/commandPolyfill" import './src/polyfill/desktopPolyfill'; import './src/polyfill/storagePolyfill'; import './src/polyfill/runtimePolyfill'; diff --git a/passbolt/Webviews/Background/package-lock.json b/passbolt/Webviews/Background/package-lock.json index 957bb90..f48f6b7 100644 --- a/passbolt/Webviews/Background/package-lock.json +++ b/passbolt/Webviews/Background/package-lock.json @@ -13,8 +13,8 @@ "@babel/preset-react": "^7.22.15", "buffer": "^6.0.3", "openpgp": "^5.11.1", - "passbolt-browser-extension": "4.8.2", - "passbolt-styleguide": "4.8.0", + "passbolt-browser-extension": "4.9.1", + "passbolt-styleguide": "4.9.3", "setimmediate": "^1.0.5", "stream-browserify": "^3.0.0", "validator": "^13.7.0" @@ -1747,9 +1747,9 @@ } }, "node_modules/@babel/runtime-corejs3": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.24.7.tgz", - "integrity": "sha512-eytSX6JLBY6PVAeQa2bFlDx/7Mmln/gaEpsit5a3WEvjGfiIytEsgAwuIXCPM0xvw0v0cJn3ilq0/TvXrW0kgA==", + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.24.8.tgz", + "integrity": "sha512-DXG/BhegtMHhnN7YPIvxWd303/9aXvYFD1TjNL3CD6tUrhI2LVsg3Lck0aql5TRH29n4sj3emcROypkZVUfSuA==", "dependencies": { "core-js-pure": "^3.30.2", "regenerator-runtime": "^0.14.0" @@ -3987,12 +3987,12 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -5701,9 +5701,9 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, "dependencies": { "to-regex-range": "^5.0.1" @@ -6192,9 +6192,9 @@ } }, "node_modules/i18next": { - "version": "23.11.5", - "resolved": "https://registry.npmjs.org/i18next/-/i18next-23.11.5.tgz", - "integrity": "sha512-41pvpVbW9rhZPk5xjCX2TPJi2861LEig/YRhUkY+1FQ2IQPS0bKUDYnEqY8XPPbB48h1uIwLnP9iiEfuSl20CA==", + "version": "23.12.2", + "resolved": "https://registry.npmjs.org/i18next/-/i18next-23.12.2.tgz", + "integrity": "sha512-XIeh5V+bi8SJSWGL3jqbTEBW5oD6rbP5L+E7dVQh1MNTxxYef0x15rhJVcRb7oiuq4jLtgy2SD8eFlf6P2cmqg==", "funding": [ { "type": "individual", @@ -9385,9 +9385,9 @@ } }, "node_modules/passbolt-browser-extension": { - "version": "4.8.2", - "resolved": "https://registry.npmjs.org/passbolt-browser-extension/-/passbolt-browser-extension-4.8.2.tgz", - "integrity": "sha512-TCXxcpueZEq7drD8GWbnkANiG3nQEj4TV7OJjc8JKGTKM612kT4vvp7ZVQea7+BzNY7Q5kLoCwJWavq3gH0D+A==", + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/passbolt-browser-extension/-/passbolt-browser-extension-4.9.1.tgz", + "integrity": "sha512-GTbqFWEzxdE61H07WBq7+RqaEs0PxOpaY4icC8XUnnGloK76btY7STDmGqcO72liBW/LpSUIHbTQzA5z/66INg==", "dependencies": { "await-lock": "^2.1.0", "downloadjs": "^1.4.7", @@ -9399,7 +9399,7 @@ "locutus": "~2.0.9", "openpgp": "^5.11.1", "papaparse": "^5.2.0", - "passbolt-styleguide": "^4.8.0", + "passbolt-styleguide": "^4.9.3", "react": "17.0.2", "react-dom": "17.0.2", "secrets-passbolt": "github:passbolt/secrets.js#v2.0.1", @@ -9413,9 +9413,9 @@ } }, "node_modules/passbolt-styleguide": { - "version": "4.8.0", - "resolved": "https://registry.npmjs.org/passbolt-styleguide/-/passbolt-styleguide-4.8.0.tgz", - "integrity": "sha512-n4lyIZHxzPM9/aNFgwoEr6rQienzb06S28TE0WLmPOKPhdBDbc1AWPRceZixN/+8ZXUmoIjUzLzbGVowN+VrAA==", + "version": "4.9.3", + "resolved": "https://registry.npmjs.org/passbolt-styleguide/-/passbolt-styleguide-4.9.3.tgz", + "integrity": "sha512-Ep2T6o6eFHxJAVCwJrq3zakxG3UkooIiu/1au8z3j23sRb+S9KbSCzQeXvp4HNqx1Xo12E1JwRF0pva/aGiOdw==", "dependencies": { "debounce-promise": "^3.1.2", "grapheme-splitter": "^1.0.4", @@ -9867,9 +9867,9 @@ } }, "node_modules/react-i18next": { - "version": "14.1.2", - "resolved": "https://registry.npmjs.org/react-i18next/-/react-i18next-14.1.2.tgz", - "integrity": "sha512-FSIcJy6oauJbGEXfhUgVeLzvWBhIBIS+/9c6Lj4niwKZyGaGb4V4vUbATXSlsHJDXXB+ociNxqFNiFuV1gmoqg==", + "version": "14.1.3", + "resolved": "https://registry.npmjs.org/react-i18next/-/react-i18next-14.1.3.tgz", + "integrity": "sha512-wZnpfunU6UIAiJ+bxwOiTmBOAaB14ha97MjOEnLGac2RJ+h/maIYXZuTHlmyqQVX1UVHmU1YDTQ5vxLmwfXTjw==", "dependencies": { "@babel/runtime": "^7.23.9", "html-parse-stringify": "^3.0.1" @@ -11579,9 +11579,9 @@ } }, "node_modules/ws": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.13.0.tgz", - "integrity": "sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", + "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", "dev": true, "engines": { "node": ">=10.0.0" diff --git a/passbolt/Webviews/Background/package.json b/passbolt/Webviews/Background/package.json index 180d0b3..2557d95 100644 --- a/passbolt/Webviews/Background/package.json +++ b/passbolt/Webviews/Background/package.json @@ -45,8 +45,8 @@ "@babel/preset-react": "^7.22.15", "buffer": "^6.0.3", "openpgp": "^5.11.1", - "passbolt-browser-extension": "4.8.2", - "passbolt-styleguide": "4.8.0", + "passbolt-browser-extension": "4.9.1", + "passbolt-styleguide": "4.9.3", "setimmediate": "^1.0.5", "stream-browserify": "^3.0.0", "validator": "^13.7.0" diff --git a/passbolt/Webviews/Background/src/controllers/verifyAccountKitController.test.js b/passbolt/Webviews/Background/src/controllers/verifyAccountKitController.test.js index 1046555..6467f51 100644 --- a/passbolt/Webviews/Background/src/controllers/verifyAccountKitController.test.js +++ b/passbolt/Webviews/Background/src/controllers/verifyAccountKitController.test.js @@ -18,7 +18,7 @@ import {v4 as uuidv4} from "uuid"; import VerifyAccountKitController from "./verifyAccountKitController"; import AuthImportStorageService from "../services/authImportStorageService"; import AuthImportEntity from "../entity/AuthImportEntity/authImportEntity"; -import {pgpKeys} from "passbolt-browser-extension/test/fixtures/pgpKeys/keys"; +import {pgpKeys} from "passbolt-styleguide/test/fixture/pgpKeys/keys"; import {defaultData} from "../services/verifyAccountKitService.test.data"; describe('VerifyAccountKitController', () => { diff --git a/passbolt/Webviews/Background/src/polyfill/alarmPolyfill.js b/passbolt/Webviews/Background/src/polyfill/alarmPolyfill.js index 1476d05..955acdc 100644 --- a/passbolt/Webviews/Background/src/polyfill/alarmPolyfill.js +++ b/passbolt/Webviews/Background/src/polyfill/alarmPolyfill.js @@ -161,7 +161,7 @@ export default class AlarmsPolyfill { /** * Class representing an alarm event. */ -class OnAlarmEvent { +export class OnAlarmEvent { /** * Create a new OnAlarmEvent object. */ diff --git a/passbolt/Webviews/Background/src/polyfill/commandPolyfill.js b/passbolt/Webviews/Background/src/polyfill/commandPolyfill.js new file mode 100644 index 0000000..fdab92d --- /dev/null +++ b/passbolt/Webviews/Background/src/polyfill/commandPolyfill.js @@ -0,0 +1,26 @@ +/** + * Passbolt ~ Open source password manager for teams + * Copyright (c) Passbolt SA (https://www.passbolt.com) + * + * Licensed under GNU Affero General Public License version 3 of the or any later version. + * For full copyright and license information, please see the LICENSE.txt + * Redistributions of files must retain the above copyright notice. + * + * @copyright Copyright (c) Passbolt SA (https://www.passbolt.com) + * @license https://opensource.org/licenses/AGPL-3.0 AGPL License + * @link https://www.passbolt.com Passbolt(tm) + * @since 1.3.0 + */ + +import { OnAlarmEvent } from "./alarmPolyfill" + +/** + * Polyfill to mock the commands API from browser extension + */ +export default class CommandsPolyfill { + constructor() { + this.onCommand = new OnAlarmEvent() + } +} + +window.chrome.commands = new CommandsPolyfill() \ No newline at end of file diff --git a/passbolt/Webviews/Background/src/services/verifyAccountKitService.test.js b/passbolt/Webviews/Background/src/services/verifyAccountKitService.test.js index 7208b5d..3c495a9 100644 --- a/passbolt/Webviews/Background/src/services/verifyAccountKitService.test.js +++ b/passbolt/Webviews/Background/src/services/verifyAccountKitService.test.js @@ -15,7 +15,7 @@ import {defaultAccountDto} from "passbolt-browser-extension/src/all/background_page/model/entity/account/accountEntity.test.data"; import VerifyAccountKitService from "./verifyAccountKitService"; import {defaultData} from "./verifyAccountKitService.test.data"; -import {pgpKeys} from "passbolt-browser-extension/test/fixtures/pgpKeys/keys"; +import {pgpKeys} from "passbolt-styleguide/test/fixture/pgpKeys/keys"; describe('VerifyAccountKitService', () => { let verifyAccountKitService; diff --git a/passbolt/Webviews/Background/test/jest.setup.js b/passbolt/Webviews/Background/test/jest.setup.js index 9c33e76..4300ea3 100644 --- a/passbolt/Webviews/Background/test/jest.setup.js +++ b/passbolt/Webviews/Background/test/jest.setup.js @@ -1,5 +1,6 @@ import "./polyfill/chromePolyfill" import "../src/polyfill/alarmPolyfill" +import "../src/polyfill/commandPolyfill" import "../src/polyfill/desktopPolyfill" import "../src/polyfill/runtimePolyfill" import "../src/polyfill/storagePolyfill" diff --git a/passbolt/Webviews/Rendered/package-lock.json b/passbolt/Webviews/Rendered/package-lock.json index b834137..e776535 100644 --- a/passbolt/Webviews/Rendered/package-lock.json +++ b/passbolt/Webviews/Rendered/package-lock.json @@ -10,7 +10,7 @@ "license": "AGPL-3.0", "dependencies": { "copy-webpack-plugin": "^11.0.0", - "passbolt-styleguide": "4.8.0", + "passbolt-styleguide": "4.9.3", "prop-types": "^15.8.1", "react": "17.0.2", "react-dom": "17.0.2", @@ -4101,11 +4101,11 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -5801,9 +5801,9 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -9499,9 +9499,9 @@ } }, "node_modules/passbolt-styleguide": { - "version": "4.8.0", - "resolved": "https://registry.npmjs.org/passbolt-styleguide/-/passbolt-styleguide-4.8.0.tgz", - "integrity": "sha512-n4lyIZHxzPM9/aNFgwoEr6rQienzb06S28TE0WLmPOKPhdBDbc1AWPRceZixN/+8ZXUmoIjUzLzbGVowN+VrAA==", + "version": "4.9.3", + "resolved": "https://registry.npmjs.org/passbolt-styleguide/-/passbolt-styleguide-4.9.3.tgz", + "integrity": "sha512-Ep2T6o6eFHxJAVCwJrq3zakxG3UkooIiu/1au8z3j23sRb+S9KbSCzQeXvp4HNqx1Xo12E1JwRF0pva/aGiOdw==", "dependencies": { "debounce-promise": "^3.1.2", "grapheme-splitter": "^1.0.4", @@ -11724,9 +11724,9 @@ } }, "node_modules/ws": { - "version": "8.16.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz", - "integrity": "sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", + "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", "dev": true, "engines": { "node": ">=10.0.0" diff --git a/passbolt/Webviews/Rendered/package.json b/passbolt/Webviews/Rendered/package.json index c7254d1..db589d1 100644 --- a/passbolt/Webviews/Rendered/package.json +++ b/passbolt/Webviews/Rendered/package.json @@ -9,7 +9,7 @@ "main": "index.js", "dependencies": { "copy-webpack-plugin": "^11.0.0", - "passbolt-styleguide": "4.8.0", + "passbolt-styleguide": "4.9.3", "prop-types": "^15.8.1", "react": "17.0.2", "react-dom": "17.0.2",