@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.
- package/build/cjs/__e2e__/stories/common.js +10 -199
- package/build/cjs/__e2e__/stories/modulesWithSpecialCharacters.js +204 -0
- package/build/cjs/features/common/index.js +3 -3
- package/build/cjs/features/the_headerbar_can_display_online_status/the_headerbar_displays_online_status.js +21 -23
- package/build/cjs/features/the_headerbar_conditionally_renders_notification_icons/the_headerbar_conditionally_renders_notification_icons.js +10 -10
- package/build/cjs/features/the_headerbar_contains_a_menu_to_all_apps/common.js +2 -2
- package/build/cjs/features/the_headerbar_contains_a_menu_to_all_apps/the_app_menu_closes_when_the_user_clicks_outside.js +3 -5
- package/build/cjs/features/the_headerbar_contains_a_menu_to_all_apps/the_headerbar_contains_a_menu_icon.js +2 -4
- 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
- package/build/cjs/features/the_headerbar_contains_a_profile_menu/common.js +3 -3
- 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
- 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
- package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_menu_is_closed_by_default.js +2 -3
- package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_menu_opens.js +3 -5
- package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_profile_menu_closes_when_the_user_clicks_outside.js +2 -4
- package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_can_edit_his_profile.js +2 -4
- package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_his_account.js +2 -4
- package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_the_about_dhis2_page.js +2 -4
- package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_the_help_page.js +2 -4
- package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_the_settings.js +2 -4
- package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_can_log_out.js +7 -7
- package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_name_and_email_are_displayed.js +3 -5
- 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
- package/build/cjs/features/the_headerbar_displays_a_link_to_interpretations_and_an_unread_count/there_are_no_unread_interpretations.js +3 -5
- package/build/cjs/features/the_headerbar_displays_a_link_to_interpretations_and_an_unread_count/there_are_some_unread_interpretations.js +2 -4
- 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
- package/build/cjs/features/the_headerbar_displays_a_link_to_messages_and_an_unread_count/there_are_no_unread_messages.js +3 -5
- package/build/cjs/features/the_headerbar_displays_a_link_to_messages_and_an_unread_count/there_are_some_unread_messages.js +2 -4
- package/build/cjs/features/the_headerbar_should_contain_a_logo_that_links_to_the_homepage/headerbar_contains_logo.js +3 -3
- package/build/cjs/features/the_headerbar_should_display_app_update_notification/index.js +11 -11
- package/build/cjs/features/the_headerbar_should_display_debug_version_infos/index.js +20 -20
- 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
- package/build/cjs/features/the_search_should_escape_regexp_character/common.js +2 -2
- package/build/cjs/features/the_search_should_escape_regexp_character/the_modules_do_not_contain_items_with_special_chars.js +3 -5
- package/build/cjs/features/the_search_should_escape_regexp_character/the_user_searches_for_an_app_with_a_regex_character.js +5 -7
- package/build/es/__e2e__/stories/common.js +1 -197
- package/build/es/__e2e__/stories/modulesWithSpecialCharacters.js +197 -0
- package/build/es/features/common/index.js +1 -1
- package/build/es/features/the_headerbar_can_display_online_status/the_headerbar_displays_online_status.js +4 -5
- package/build/es/features/the_headerbar_conditionally_renders_notification_icons/the_headerbar_conditionally_renders_notification_icons.js +1 -1
- package/build/es/features/the_headerbar_contains_a_menu_to_all_apps/common.js +1 -1
- package/build/es/features/the_headerbar_contains_a_menu_to_all_apps/the_app_menu_closes_when_the_user_clicks_outside.js +1 -2
- package/build/es/features/the_headerbar_contains_a_menu_to_all_apps/the_headerbar_contains_a_menu_icon.js +1 -2
- 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
- package/build/es/features/the_headerbar_contains_a_profile_menu/common.js +1 -1
- 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
- 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
- package/build/es/features/the_headerbar_contains_a_profile_menu/the_menu_is_closed_by_default.js +1 -1
- package/build/es/features/the_headerbar_contains_a_profile_menu/the_menu_opens.js +1 -2
- package/build/es/features/the_headerbar_contains_a_profile_menu/the_profile_menu_closes_when_the_user_clicks_outside.js +1 -2
- package/build/es/features/the_headerbar_contains_a_profile_menu/the_user_can_edit_his_profile.js +1 -2
- package/build/es/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_his_account.js +1 -2
- package/build/es/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_the_about_dhis2_page.js +1 -2
- package/build/es/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_the_help_page.js +1 -2
- package/build/es/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_the_settings.js +1 -2
- package/build/es/features/the_headerbar_contains_a_profile_menu/the_user_can_log_out.js +3 -3
- package/build/es/features/the_headerbar_contains_a_profile_menu/the_user_name_and_email_are_displayed.js +1 -2
- 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
- package/build/es/features/the_headerbar_displays_a_link_to_interpretations_and_an_unread_count/there_are_no_unread_interpretations.js +1 -2
- package/build/es/features/the_headerbar_displays_a_link_to_interpretations_and_an_unread_count/there_are_some_unread_interpretations.js +1 -2
- 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
- package/build/es/features/the_headerbar_displays_a_link_to_messages_and_an_unread_count/there_are_no_unread_messages.js +1 -2
- package/build/es/features/the_headerbar_displays_a_link_to_messages_and_an_unread_count/there_are_some_unread_messages.js +1 -2
- package/build/es/features/the_headerbar_should_contain_a_logo_that_links_to_the_homepage/headerbar_contains_logo.js +1 -1
- package/build/es/features/the_headerbar_should_display_app_update_notification/index.js +1 -1
- package/build/es/features/the_headerbar_should_display_debug_version_infos/index.js +1 -1
- 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
- package/build/es/features/the_search_should_escape_regexp_character/common.js +1 -1
- package/build/es/features/the_search_should_escape_regexp_character/the_modules_do_not_contain_items_with_special_chars.js +1 -2
- package/build/es/features/the_search_should_escape_regexp_character/the_user_searches_for_an_app_with_a_regex_character.js +2 -3
- package/package.json +15 -15
- package/build/cjs/features/the_headerbar_contains_a_menu_to_all_apps/the_menu_is_closed_by_default.js +0 -11
- 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
2
|
-
import { modulesWithSpecialCharacters } from '../../__e2e__/stories/
|
|
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.
|
|
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.
|
|
38
|
-
"@dhis2-ui/button": "9.4.
|
|
39
|
-
"@dhis2-ui/card": "9.4.
|
|
40
|
-
"@dhis2-ui/center": "9.4.
|
|
41
|
-
"@dhis2-ui/divider": "9.4.
|
|
42
|
-
"@dhis2-ui/input": "9.4.
|
|
43
|
-
"@dhis2-ui/layer": "9.4.
|
|
44
|
-
"@dhis2-ui/loader": "9.4.
|
|
45
|
-
"@dhis2-ui/logo": "9.4.
|
|
46
|
-
"@dhis2-ui/menu": "9.4.
|
|
47
|
-
"@dhis2-ui/modal": "9.4.
|
|
48
|
-
"@dhis2-ui/user-avatar": "9.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.
|
|
51
|
-
"@dhis2/ui-icons": "9.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
|
-
});
|