passbolt-styleguide 5.17.0-alpha.3 → 5.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/RELEASE_NOTES.md +5 -2
  2. package/build/css/help.min.css +2 -2
  3. package/build/css/public.min.css +2 -2
  4. package/build/css/themes/default/api_authentication.min.css +2 -2
  5. package/build/css/themes/default/api_cloud.min.css +2 -2
  6. package/build/css/themes/default/api_main.min.css +2 -2
  7. package/build/css/themes/default/api_reports.min.css +2 -2
  8. package/build/css/themes/default/api_webinstaller.min.css +2 -2
  9. package/build/css/themes/default/ext_app.min.css +2 -2
  10. package/build/css/themes/default/ext_authentication.min.css +2 -2
  11. package/build/css/themes/default/ext_external.min.css +2 -2
  12. package/build/css/themes/default/ext_in_form_cta.min.css +2 -2
  13. package/build/css/themes/default/ext_in_form_menu.min.css +2 -2
  14. package/build/css/themes/default/ext_quickaccess.min.css +2 -2
  15. package/build/css/themes/midgar/api_authentication.min.css +2 -2
  16. package/build/css/themes/midgar/api_main.min.css +2 -2
  17. package/build/css/themes/midgar/api_reports.min.css +2 -2
  18. package/build/css/themes/midgar/ext_app.min.css +2 -2
  19. package/build/css/themes/midgar/ext_authentication.min.css +2 -2
  20. package/build/css/themes/midgar/ext_in_form_cta.min.css +2 -2
  21. package/build/css/themes/midgar/ext_in_form_menu.min.css +2 -2
  22. package/build/css/themes/midgar/ext_quickaccess.min.css +2 -2
  23. package/build/css/themes/solarized_dark/api_authentication.min.css +2 -2
  24. package/build/css/themes/solarized_dark/api_main.min.css +2 -2
  25. package/build/css/themes/solarized_dark/api_reports.min.css +2 -2
  26. package/build/css/themes/solarized_dark/ext_app.min.css +2 -2
  27. package/build/css/themes/solarized_dark/ext_authentication.min.css +2 -2
  28. package/build/css/themes/solarized_dark/ext_in_form_cta.min.css +2 -2
  29. package/build/css/themes/solarized_dark/ext_in_form_menu.min.css +2 -2
  30. package/build/css/themes/solarized_dark/ext_quickaccess.min.css +2 -2
  31. package/build/css/themes/solarized_light/api_authentication.min.css +2 -2
  32. package/build/css/themes/solarized_light/api_main.min.css +2 -2
  33. package/build/css/themes/solarized_light/api_reports.min.css +2 -2
  34. package/build/css/themes/solarized_light/ext_app.min.css +2 -2
  35. package/build/css/themes/solarized_light/ext_authentication.min.css +2 -2
  36. package/build/css/themes/solarized_light/ext_in_form_cta.min.css +2 -2
  37. package/build/css/themes/solarized_light/ext_in_form_menu.min.css +2 -2
  38. package/build/css/themes/solarized_light/ext_quickaccess.min.css +2 -2
  39. package/package.json +1 -1
  40. package/src/img/svg/offline.svg +3 -0
  41. package/src/locales/en-UK/common.json +4 -1
  42. package/src/react-extension/components/Resource/DisplayResourcesList/DisplayResourcesListContextualMenu.js +1 -1
  43. package/src/react-extension/components/Resource/DisplayResourcesWorkspace/DisplayResourcesWorkspaceFilters.js +1 -1
  44. package/src/react-extension/components/Resource/DisplayResourcesWorkspace/DisplayResourcesWorkspaceMenu.js +1 -1
  45. package/src/react-quickaccess/components/ResourceCreatePage/ResourceCreatePage.js +14 -4
  46. package/src/react-quickaccess/components/ResourceCreatePage/ResourceCreatePage.test.js +26 -2
  47. package/src/react-quickaccess/contexts/ExtQuickAccessContext.js +2 -15
package/RELEASE_NOTES.md CHANGED
@@ -1,4 +1,7 @@
1
- # v5.17.0-alpha.2
1
+ # v5.17.1
2
2
 
3
3
  Provides:
4
- - `assertWebauthnRelyingPartyIsNotIpAddress` check for webauthn
4
+ - Merge of the 5.17.0 with the 5.16.2 that brings Edge on MV3
5
+ - hot fixes:
6
+ - get tab by id
7
+ - some offline mode issues
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @name passbolt-styleguide
3
- * @version v5.17.0-alpha.3
4
- * @date 2026-10-07
3
+ * @version v5.17.1
4
+ * @date 2026-10-14
5
5
  * @copyright Copyright 2023 Passbolt SA
6
6
  * @source https://github.com/passbolt/passbolt_styleguide
7
7
  * @license AGPL-3.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "passbolt-styleguide",
3
- "version": "5.17.0-alpha.3",
3
+ "version": "5.17.1",
4
4
  "license": "AGPL-3.0",
5
5
  "copyright": "Copyright 2023 Passbolt SA",
6
6
  "description": "Passbolt styleguide contains common styling assets used by the different sites, plugin, etc.",
@@ -0,0 +1,3 @@
1
+ <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M23.7333 25.6L21.3333 14.6667L26 10C28 8 28.6667 5.33333 28 4C26.6667 3.33333 24 4 22 6L17.3333 10.6667L6.4 8.26667C5.73333 8.13333 5.2 8.4 4.93333 8.93333L4.53333 9.6C4.26667 10.2667 4.4 10.9333 4.93333 11.3333L12 16L9.33333 20H5.33333L4 21.3333L8 24L10.6667 28L12 26.6667V22.6667L16 20L20.6667 27.0667C21.0667 27.6 21.7333 27.7333 22.4 27.4667L23.0667 27.2C23.6 26.8 23.8667 26.2667 23.7333 25.6Z" stroke="var(--icon-color)" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -654,6 +654,8 @@
654
654
  "Folder errors": "Folder errors",
655
655
  "Folder name": "Folder name",
656
656
  "Folders": "Folders",
657
+ "Folders you can only read cannot be moved into a shared folder.": "Folders you can only read cannot be moved into a shared folder.",
658
+ "Folders you can only read cannot be moved out of a shared folder.": "Folders you can only read cannot be moved out of a shared folder.",
657
659
  "Follow the instructions of your browser to create the passkey.": "Follow the instructions of your browser to create the passkey.",
658
660
  "Follow the procedure to login.": "Follow the procedure to login.",
659
661
  "For any change or question related to your passbolt subscription, kindly contact our sales team.": "For any change or question related to your passbolt subscription, kindly contact our sales team.",
@@ -1557,7 +1559,7 @@
1557
1559
  "The operation failed with the following error:": "The operation failed with the following error:",
1558
1560
  "The operation has been aborted.": "The operation has been aborted.",
1559
1561
  "The operation may take a few minutes.": "The operation may take a few minutes.",
1560
- "The operation requires a secure connection. Passkeys were blocked because your server's TLS certificate is invalid or untrusted.": "The operation requires a secure connection. Passkeys were blocked because your server's TLS certificate is invalid or untrusted.",
1562
+ "The operation requires a secure connection. Passkeys were blocked due to an untrusted TLS certificate or an invalid Relying Party ID.": "The operation requires a secure connection. Passkeys were blocked due to an untrusted TLS certificate or an invalid Relying Party ID.",
1561
1563
  "The operation was cancelled.": "The operation was cancelled.",
1562
1564
  "The operation was successful.": "The operation was successful.",
1563
1565
  "The organization private recovery key should not be stored in passbolt.": "The organization private recovery key should not be stored in passbolt.",
@@ -1604,6 +1606,7 @@
1604
1606
  "The PIN code cannot exceed 12 digits.": "The PIN code cannot exceed 12 digits.",
1605
1607
  "The pin code has been copied to clipboard.": "The pin code has been copied to clipboard.",
1606
1608
  "The pin code is empty and cannot be copied to clipboard.": "The pin code is empty and cannot be copied to clipboard.",
1609
+ "The pin code is empty and cannot be previewed.": "The pin code is empty and cannot be previewed.",
1607
1610
  "The PIN code is required.": "The PIN code is required.",
1608
1611
  "The PIN code must be at least 4 digits.": "The PIN code must be at least 4 digits.",
1609
1612
  "The PIN code must only contain digits.": "The PIN code must only contain digits.",
@@ -48,7 +48,7 @@ import CalendarIcon from "../../../../img/svg/calendar.svg";
48
48
  import TotpIcon from "../../../../img/svg/totp.svg";
49
49
  import GoIcon from "../../../../img/svg/go.svg";
50
50
  import HistoryIcon from "../../../../img/svg/history.svg";
51
- import OfflineModeSVG from "../../../../img/svg/offline_mode.svg";
51
+ import OfflineModeSVG from "../../../../img/svg/offline.svg";
52
52
  import { withClipboard } from "../../../contexts/Clipboard/ManagedClipboardServiceProvider";
53
53
  import ActionAbortedMissingMetadataKeys from "../../Metadata/ActionAbortedMissingMetadataKeys/ActionAbortedMissingMetadataKeys";
54
54
  import { withMetadataKeysSettingsLocalStorage } from "../../../../shared/context/MetadataKeysSettingsLocalStorageContext/MetadataKeysSettingsLocalStorageContext";
@@ -28,7 +28,7 @@ import VenetianMaskSVG from "../../../../img/svg/venetian_mask.svg";
28
28
  import CalendarClockSVG from "../../../../img/svg/calendar_clock.svg";
29
29
  import FavoriteSVG from "../../../../img/svg/favorite.svg";
30
30
  import OwnedByMeSVG from "../../../../img/svg/owned_by_me.svg";
31
- import OfflineModeSVG from "../../../../img/svg/offline_mode.svg";
31
+ import OfflineModeSVG from "../../../../img/svg/offline.svg";
32
32
  import { withRouter } from "react-router-dom";
33
33
  import { withPasswordExpiry } from "../../../contexts/PasswordExpirySettingsContext";
34
34
  import { withAppContext } from "../../../../shared/context/AppContext/AppContext";
@@ -55,7 +55,7 @@ import DeleteSVG from "../../../../img/svg/delete.svg";
55
55
  import EditSVG from "../../../../img/svg/edit.svg";
56
56
  import ShareSVG from "../../../../img/svg/share.svg";
57
57
  import CloseSVG from "../../../../img/svg/close.svg";
58
- import OfflineModeSVG from "../../../../img/svg/offline_mode.svg";
58
+ import OfflineModeSVG from "../../../../img/svg/offline.svg";
59
59
  import SecretHistorySVG from "../../../../img/svg/history.svg";
60
60
  import { withClipboard } from "../../../contexts/Clipboard/ManagedClipboardServiceProvider";
61
61
  import { withMetadataKeysSettingsLocalStorage } from "../../../../shared/context/MetadataKeysSettingsLocalStorageContext/MetadataKeysSettingsLocalStorageContext";
@@ -45,6 +45,18 @@ import CloseSVG from "../../../img/svg/close.svg";
45
45
  import DiceSVG from "../../../img/svg/dice.svg";
46
46
  import SettingsSVG from "../../../img/svg/settings.svg";
47
47
 
48
+ /**
49
+ * Tab names that should not be used to prefill the resource name.
50
+ * @type {Array<string>}
51
+ */
52
+ const IGNORE_NAMES = ["newtab"];
53
+
54
+ /**
55
+ * Tab URIs that should not be used to prefill the resource uri (browsers new tab pages).
56
+ * @type {Array<string>}
57
+ */
58
+ const IGNORE_URIS = ["chrome://newtab/", "about:newtab", "edge://newtab/"];
59
+
48
60
  class ResourceCreatePage extends React.Component {
49
61
  /**
50
62
  * @constructor
@@ -205,8 +217,6 @@ class ResourceCreatePage extends React.Component {
205
217
  let uri = "";
206
218
  let username = "";
207
219
  let password = "";
208
- const ignoreNames = ["newtab"];
209
- const ignoreUris = ["chrome://newtab/", "about:newtab"];
210
220
 
211
221
  try {
212
222
  const tabInfo = await this.props.context.port.request(
@@ -214,11 +224,11 @@ class ResourceCreatePage extends React.Component {
214
224
  this.props.context.openerTabId,
215
225
  );
216
226
 
217
- if (!ignoreNames.includes(tabInfo["name"])) {
227
+ if (!IGNORE_NAMES.includes(tabInfo["name"])) {
218
228
  name = tabInfo["name"].substring(0, 255);
219
229
  }
220
230
 
221
- if (!ignoreUris.includes(tabInfo["uris"]) && tabInfo["uris"].length > 0) {
231
+ if (tabInfo["uris"].length > 0 && !IGNORE_URIS.includes(tabInfo["uris"][0])) {
222
232
  uri = tabInfo["uris"][0];
223
233
  }
224
234
 
@@ -77,28 +77,52 @@ describe("ResourceCreatePage", () => {
77
77
  const expectedData = {
78
78
  name: "newtab",
79
79
  uris: ["chrome://newtab/"],
80
+ secret_clear: "AAAAAAAAAAAAAAAAAA",
80
81
  };
81
82
 
82
83
  const props = defaultProps();
83
84
  props.context.port.addRequestListener("passbolt.quickaccess.prepare-resource", async () => expectedData);
84
85
  const page = new ResourceCreatePagePage(props);
85
- await waitForTrue(() => page.name.value === "");
86
+ // Wait until the username input value is found (This will ensure the state has been updated with the tab info)
87
+ await screen.findByDisplayValue(props.context.userSettings.username);
86
88
 
87
89
  // Assert the form.
88
90
  expect(page.name.value).toStrictEqual("");
89
91
  expect(page.uri.value).toStrictEqual("");
90
92
  });
91
93
 
94
+ it("should not initialize with edge new tab metadata", async () => {
95
+ expect.assertions(2);
96
+
97
+ const expectedData = {
98
+ name: "New tab",
99
+ uris: ["edge://newtab/"],
100
+ secret_clear: "AAAAAAAAAAAAAAAAAA",
101
+ };
102
+
103
+ const props = defaultProps();
104
+ props.context.port.addRequestListener("passbolt.quickaccess.prepare-resource", async () => expectedData);
105
+ const page = new ResourceCreatePagePage(props);
106
+ // Wait until the username input value is found (This will ensure the state has been updated with the tab info)
107
+ await screen.findByDisplayValue(props.context.userSettings.username);
108
+
109
+ // Assert the form.
110
+ expect(page.name.value).toStrictEqual("New tab");
111
+ expect(page.uri.value).toStrictEqual("");
112
+ });
113
+
92
114
  it("should not initialize with firefox new tab metadata", async () => {
93
115
  const expectedData = {
94
116
  name: "",
95
117
  uris: ["about:newtab"],
118
+ secret_clear: "AAAAAAAAAAAAAAAAAA",
96
119
  };
97
120
 
98
121
  const props = defaultProps();
99
122
  props.context.port.addRequestListener("passbolt.quickaccess.prepare-resource", async () => expectedData);
100
123
  const page = new ResourceCreatePagePage(props);
101
- await waitForTrue(() => page.name.value === "");
124
+ // Wait until the username input value is found (This will ensure the state has been updated with the tab info)
125
+ await screen.findByDisplayValue(props.context.userSettings.username);
102
126
 
103
127
  // Assert the form.
104
128
  expect(page.name.value).toStrictEqual("");
@@ -55,7 +55,6 @@ export class ExtQuickAccessContextProvider extends React.Component {
55
55
  */
56
56
  async initialize() {
57
57
  try {
58
- await this.checkPluginIsConfigured();
59
58
  await this.props.activeSessionLocalStorageContext.updateLocalStorage();
60
59
  await this.getUserSettings();
61
60
  await this.getLocale();
@@ -89,7 +88,8 @@ export class ExtQuickAccessContextProvider extends React.Component {
89
88
  */
90
89
  async loadOnlineData(siteSettings) {
91
90
  if (this.props.activeSession.isAuthenticated) {
92
- if (this.props.activeSession.isMfaRequired) {
91
+ // Redirect the user only if the server is reachable to not be blocked in an infinite loop
92
+ if (this.props.activeSession.isMfaRequired && this.props.activeSession.isServerReachable) {
93
93
  await this.redirectToMfaAuthentication();
94
94
  return;
95
95
  }
@@ -197,19 +197,6 @@ export class ExtQuickAccessContextProvider extends React.Component {
197
197
  this.setState({ shouldCloseAtWindowBlur });
198
198
  }
199
199
 
200
- /**
201
- * Check if plugin is configured
202
- * - not configured will redirect to getting started passbolt page and close quickaccess
203
- * @return {Promise<void>}
204
- */
205
- async checkPluginIsConfigured() {
206
- const isConfigured = await this.state.port.request("passbolt.addon.is-configured");
207
- if (!isConfigured) {
208
- await this.props.state.request("passbolt.tabs.open-website-getting-started-page");
209
- await this.closeWindow();
210
- }
211
- }
212
-
213
200
  /**
214
201
  * Update search
215
202
  * @param search