@dhis2-ui/header-bar 9.4.4 → 9.4.6

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 (73) hide show
  1. package/build/cjs/__e2e__/stories/common.js +10 -199
  2. package/build/cjs/__e2e__/stories/modulesWithSpecialCharacters.js +204 -0
  3. package/build/cjs/features/common/index.js +3 -3
  4. package/build/cjs/features/the_headerbar_can_display_online_status/the_headerbar_displays_online_status.js +21 -23
  5. package/build/cjs/features/the_headerbar_conditionally_renders_notification_icons/the_headerbar_conditionally_renders_notification_icons.js +10 -10
  6. package/build/cjs/features/the_headerbar_contains_a_menu_to_all_apps/common.js +2 -2
  7. package/build/cjs/features/the_headerbar_contains_a_menu_to_all_apps/the_app_menu_closes_when_the_user_clicks_outside.js +3 -5
  8. package/build/cjs/features/the_headerbar_contains_a_menu_to_all_apps/the_headerbar_contains_a_menu_icon.js +2 -4
  9. package/build/cjs/features/the_headerbar_contains_a_menu_to_all_apps/the_user_will_be_offered_a_menu_with_5_apps.js +4 -4
  10. package/build/cjs/features/the_headerbar_contains_a_profile_menu/common.js +3 -3
  11. package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_headerbar_shows_a_text_icon_if_the_user_does_not_have_an_avatar.js +5 -7
  12. package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_headerbar_shows_an_image_icon_if_the_user_has_an_avatar.js +5 -5
  13. package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_menu_is_closed_by_default.js +2 -3
  14. package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_menu_opens.js +3 -5
  15. package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_profile_menu_closes_when_the_user_clicks_outside.js +2 -4
  16. package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_can_edit_his_profile.js +2 -4
  17. package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_his_account.js +2 -4
  18. package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_the_about_dhis2_page.js +2 -4
  19. package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_the_help_page.js +2 -4
  20. package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_the_settings.js +2 -4
  21. package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_can_log_out.js +7 -7
  22. package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_name_and_email_are_displayed.js +3 -5
  23. package/build/cjs/features/the_headerbar_displays_a_link_to_interpretations_and_an_unread_count/the_headerbar_displays_a_link_to_the_interpretations.js +2 -4
  24. package/build/cjs/features/the_headerbar_displays_a_link_to_interpretations_and_an_unread_count/there_are_no_unread_interpretations.js +3 -5
  25. package/build/cjs/features/the_headerbar_displays_a_link_to_interpretations_and_an_unread_count/there_are_some_unread_interpretations.js +2 -4
  26. package/build/cjs/features/the_headerbar_displays_a_link_to_messages_and_an_unread_count/the_headerbar_displays_a_link_to_the_messages.js +2 -4
  27. package/build/cjs/features/the_headerbar_displays_a_link_to_messages_and_an_unread_count/there_are_no_unread_messages.js +3 -5
  28. package/build/cjs/features/the_headerbar_displays_a_link_to_messages_and_an_unread_count/there_are_some_unread_messages.js +2 -4
  29. package/build/cjs/features/the_headerbar_should_contain_a_logo_that_links_to_the_homepage/headerbar_contains_logo.js +3 -3
  30. package/build/cjs/features/the_headerbar_should_display_app_update_notification/index.js +11 -11
  31. package/build/cjs/features/the_headerbar_should_display_debug_version_infos/index.js +20 -20
  32. package/build/cjs/features/the_headerbar_should_display_the_title_provided_by_the_backend_and_the_app/the_headerbar_displays_the_custom_title.js +3 -3
  33. package/build/cjs/features/the_search_should_escape_regexp_character/common.js +2 -2
  34. package/build/cjs/features/the_search_should_escape_regexp_character/the_modules_do_not_contain_items_with_special_chars.js +3 -5
  35. package/build/cjs/features/the_search_should_escape_regexp_character/the_user_searches_for_an_app_with_a_regex_character.js +5 -7
  36. package/build/es/__e2e__/stories/common.js +1 -197
  37. package/build/es/__e2e__/stories/modulesWithSpecialCharacters.js +197 -0
  38. package/build/es/features/common/index.js +1 -1
  39. package/build/es/features/the_headerbar_can_display_online_status/the_headerbar_displays_online_status.js +4 -5
  40. package/build/es/features/the_headerbar_conditionally_renders_notification_icons/the_headerbar_conditionally_renders_notification_icons.js +1 -1
  41. package/build/es/features/the_headerbar_contains_a_menu_to_all_apps/common.js +1 -1
  42. package/build/es/features/the_headerbar_contains_a_menu_to_all_apps/the_app_menu_closes_when_the_user_clicks_outside.js +1 -2
  43. package/build/es/features/the_headerbar_contains_a_menu_to_all_apps/the_headerbar_contains_a_menu_icon.js +1 -2
  44. package/build/es/features/the_headerbar_contains_a_menu_to_all_apps/the_user_will_be_offered_a_menu_with_5_apps.js +1 -1
  45. package/build/es/features/the_headerbar_contains_a_profile_menu/common.js +1 -1
  46. package/build/es/features/the_headerbar_contains_a_profile_menu/the_headerbar_shows_a_text_icon_if_the_user_does_not_have_an_avatar.js +1 -2
  47. package/build/es/features/the_headerbar_contains_a_profile_menu/the_headerbar_shows_an_image_icon_if_the_user_has_an_avatar.js +1 -1
  48. package/build/es/features/the_headerbar_contains_a_profile_menu/the_menu_is_closed_by_default.js +1 -1
  49. package/build/es/features/the_headerbar_contains_a_profile_menu/the_menu_opens.js +1 -2
  50. package/build/es/features/the_headerbar_contains_a_profile_menu/the_profile_menu_closes_when_the_user_clicks_outside.js +1 -2
  51. package/build/es/features/the_headerbar_contains_a_profile_menu/the_user_can_edit_his_profile.js +1 -2
  52. package/build/es/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_his_account.js +1 -2
  53. package/build/es/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_the_about_dhis2_page.js +1 -2
  54. package/build/es/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_the_help_page.js +1 -2
  55. package/build/es/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_the_settings.js +1 -2
  56. package/build/es/features/the_headerbar_contains_a_profile_menu/the_user_can_log_out.js +3 -3
  57. package/build/es/features/the_headerbar_contains_a_profile_menu/the_user_name_and_email_are_displayed.js +1 -2
  58. package/build/es/features/the_headerbar_displays_a_link_to_interpretations_and_an_unread_count/the_headerbar_displays_a_link_to_the_interpretations.js +1 -2
  59. package/build/es/features/the_headerbar_displays_a_link_to_interpretations_and_an_unread_count/there_are_no_unread_interpretations.js +1 -2
  60. package/build/es/features/the_headerbar_displays_a_link_to_interpretations_and_an_unread_count/there_are_some_unread_interpretations.js +1 -2
  61. package/build/es/features/the_headerbar_displays_a_link_to_messages_and_an_unread_count/the_headerbar_displays_a_link_to_the_messages.js +1 -2
  62. package/build/es/features/the_headerbar_displays_a_link_to_messages_and_an_unread_count/there_are_no_unread_messages.js +1 -2
  63. package/build/es/features/the_headerbar_displays_a_link_to_messages_and_an_unread_count/there_are_some_unread_messages.js +1 -2
  64. package/build/es/features/the_headerbar_should_contain_a_logo_that_links_to_the_homepage/headerbar_contains_logo.js +1 -1
  65. package/build/es/features/the_headerbar_should_display_app_update_notification/index.js +1 -1
  66. package/build/es/features/the_headerbar_should_display_debug_version_infos/index.js +1 -1
  67. package/build/es/features/the_headerbar_should_display_the_title_provided_by_the_backend_and_the_app/the_headerbar_displays_the_custom_title.js +1 -1
  68. package/build/es/features/the_search_should_escape_regexp_character/common.js +1 -1
  69. package/build/es/features/the_search_should_escape_regexp_character/the_modules_do_not_contain_items_with_special_chars.js +1 -2
  70. package/build/es/features/the_search_should_escape_regexp_character/the_user_searches_for_an_app_with_a_regex_character.js +2 -3
  71. package/package.json +15 -15
  72. package/build/cjs/features/the_headerbar_contains_a_menu_to_all_apps/the_menu_is_closed_by_default.js +0 -11
  73. package/build/es/features/the_headerbar_contains_a_menu_to_all_apps/the_menu_is_closed_by_default.js +0 -6
@@ -1,4 +1,4 @@
1
- import { Then } from 'cypress-cucumber-preprocessor/steps';
1
+ import { Then } from '@badeball/cypress-cucumber-preprocessor';
2
2
  import { baseUrl } from '../common/index.js';
3
3
  Then('the HeaderBar should display the dhis2 logo', () => {
4
4
  cy.get('[data-test="headerbar-logo"]').should('be.visible');
@@ -1,4 +1,4 @@
1
- import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps';
1
+ import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor';
2
2
  Given('the HeaderBar is rendered without an available update', () => {
3
3
  cy.visitStory('HeaderBarTesting', 'default');
4
4
  });
@@ -1,4 +1,4 @@
1
- import { Given, When, Then } from 'cypress-cucumber-preprocessor/steps';
1
+ import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor';
2
2
  Given('the HeaderBar is rendered without an instance version in runtime context', () => {
3
3
  cy.visitStory('HeaderBarTesting', 'With Unknown Instance Version');
4
4
  });
@@ -1,4 +1,4 @@
1
- import { Then, Given } from 'cypress-cucumber-preprocessor/steps';
1
+ import { Then, Given } from '@badeball/cypress-cucumber-preprocessor';
2
2
  Given('the custom title is "Barbaz" and the app title is "Example!"', () => {
3
3
  cy.visitStory('HeaderBarTesting', 'Custom Application Title');
4
4
  });
@@ -1,4 +1,4 @@
1
- import { Given } from 'cypress-cucumber-preprocessor/steps';
1
+ import { Given } from '@badeball/cypress-cucumber-preprocessor';
2
2
  Given(/the search contains a (.*)/, character => {
3
3
  cy.get('[data-test="headerbar-apps-icon"]').click();
4
4
  cy.get('#filter').type(character);
@@ -1,5 +1,4 @@
1
- import { Given, Then } from 'cypress-cucumber-preprocessor/steps';
2
- import '../common/index.js';
1
+ import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
3
2
  Given(/no app name contains a (.*)/, character => {
4
3
  // Needs to be wrapped, otherwise for some reason the wrong char is in the scope
5
4
  cy.all(() => cy.window(), () => cy.wrap(character)).then(_ref => {
@@ -1,6 +1,5 @@
1
- import { Given, Then } from 'cypress-cucumber-preprocessor/steps';
2
- import { modulesWithSpecialCharacters } from '../../__e2e__/stories/common.js';
3
- import '../common/index.js';
1
+ import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
2
+ import { modulesWithSpecialCharacters } from '../../__e2e__/stories/modulesWithSpecialCharacters.js';
4
3
  Given(/some app names contain a (.*)/, character => {
5
4
  // Needs to be wrapped, otherwise for some reason the wrong char is in the scope
6
5
  cy.wrap(character).then(char => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/header-bar",
3
- "version": "9.4.4",
3
+ "version": "9.4.6",
4
4
  "description": "UI HeaderBar",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,21 +34,21 @@
34
34
  "styled-jsx": "^4"
35
35
  },
36
36
  "dependencies": {
37
- "@dhis2-ui/box": "9.4.4",
38
- "@dhis2-ui/button": "9.4.4",
39
- "@dhis2-ui/card": "9.4.4",
40
- "@dhis2-ui/center": "9.4.4",
41
- "@dhis2-ui/divider": "9.4.4",
42
- "@dhis2-ui/input": "9.4.4",
43
- "@dhis2-ui/layer": "9.4.4",
44
- "@dhis2-ui/loader": "9.4.4",
45
- "@dhis2-ui/logo": "9.4.4",
46
- "@dhis2-ui/menu": "9.4.4",
47
- "@dhis2-ui/modal": "9.4.4",
48
- "@dhis2-ui/user-avatar": "9.4.4",
37
+ "@dhis2-ui/box": "9.4.6",
38
+ "@dhis2-ui/button": "9.4.6",
39
+ "@dhis2-ui/card": "9.4.6",
40
+ "@dhis2-ui/center": "9.4.6",
41
+ "@dhis2-ui/divider": "9.4.6",
42
+ "@dhis2-ui/input": "9.4.6",
43
+ "@dhis2-ui/layer": "9.4.6",
44
+ "@dhis2-ui/loader": "9.4.6",
45
+ "@dhis2-ui/logo": "9.4.6",
46
+ "@dhis2-ui/menu": "9.4.6",
47
+ "@dhis2-ui/modal": "9.4.6",
48
+ "@dhis2-ui/user-avatar": "9.4.6",
49
49
  "@dhis2/prop-types": "^3.1.2",
50
- "@dhis2/ui-constants": "9.4.4",
51
- "@dhis2/ui-icons": "9.4.4",
50
+ "@dhis2/ui-constants": "9.4.6",
51
+ "@dhis2/ui-icons": "9.4.6",
52
52
  "classnames": "^2.3.1",
53
53
  "moment": "^2.29.1",
54
54
  "prop-types": "^15.7.2"
@@ -1,11 +0,0 @@
1
- "use strict";
2
-
3
- require("../common/index.js");
4
-
5
- require("./common.js");
6
-
7
- var _steps = require("cypress-cucumber-preprocessor/steps");
8
-
9
- (0, _steps.Then)('the HeaderBar dos not display the app menu', () => {
10
- cy.get('[data-test="headerbar-apps-menu"]').should('not.exist');
11
- });
@@ -1,6 +0,0 @@
1
- import '../common/index.js';
2
- import './common.js';
3
- import { Then } from 'cypress-cucumber-preprocessor/steps';
4
- Then('the HeaderBar dos not display the app menu', () => {
5
- cy.get('[data-test="headerbar-apps-menu"]').should('not.exist');
6
- });