@rh-support/cases 2.1.104 → 2.1.106

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.
@@ -3,7 +3,7 @@ import '../../css/caseSearch.css';
3
3
  import { IFacetResponse } from '@rh-support/types/shared';
4
4
  import { ISolrResponseToPivotFields } from '@rh-support/utils';
5
5
  import React from 'react';
6
- import { RouteComponentProps } from 'react-router';
6
+ import { RouteComponentProps } from 'react-router-dom';
7
7
  import { ICasesRouteURLParams } from '..';
8
8
  import { IFacetPivot } from '../../models/caseList';
9
9
  interface IProps {
@@ -1 +1 @@
1
- {"version":3,"file":"CaseList.d.ts","sourceRoot":"","sources":["../../../../src/components/case-list/CaseList.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAC;AAChC,OAAO,0BAA0B,CAAC;AA+BlC,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAKH,0BAA0B,EAI7B,MAAM,mBAAmB,CAAC;AAK3B,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAe,MAAM,cAAc,CAAC;AAEhE,OAAO,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAC;AAK1C,OAAO,EAAgB,WAAW,EAA2B,MAAM,uBAAuB,CAAC;AAmC3F,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;CACzD;AAED,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC3D,YAAY,EAAE,cAAc,EAAE,CAAC;CAClC;AAED,MAAM,MAAM,YAAY,GAAG,0BAA0B,CAAC,WAAW,EAAE,uBAAuB,CAAC,CAAC;AAM5F,MAAM,WAAW,gBAAgB;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;CAChC;AAED,MAAM,WAAW,aAAa;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,qBAugBrC"}
1
+ {"version":3,"file":"CaseList.d.ts","sourceRoot":"","sources":["../../../../src/components/case-list/CaseList.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAC;AAChC,OAAO,0BAA0B,CAAC;AA+BlC,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAKH,0BAA0B,EAI7B,MAAM,mBAAmB,CAAC;AAK3B,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAe,MAAM,kBAAkB,CAAC;AAEpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAC;AAK1C,OAAO,EAAgB,WAAW,EAA2B,MAAM,uBAAuB,CAAC;AAmC3F,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;CACzD;AAED,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC3D,YAAY,EAAE,cAAc,EAAE,CAAC;CAClC;AAED,MAAM,MAAM,YAAY,GAAG,0BAA0B,CAAC,WAAW,EAAE,uBAAuB,CAAC,CAAC;AAM5F,MAAM,WAAW,gBAAgB;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;CAChC;AAED,MAAM,WAAW,aAAa;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,qBAugBrC"}
@@ -23,7 +23,7 @@ import mapValues from 'lodash/mapValues';
23
23
  import some from 'lodash/some';
24
24
  import React, { useContext, useEffect, useRef, useState } from 'react';
25
25
  import { Trans, useTranslation } from 'react-i18next';
26
- import { useLocation } from 'react-router';
26
+ import { useLocation } from 'react-router-dom';
27
27
  import { CaseSearchQueryType } from '../../enums/caseSearch';
28
28
  import { SolrPivotKeys } from '../../enums/filters';
29
29
  import { PageTitle } from '../../enums/pageTitle';
@@ -166,7 +166,7 @@ export function GroupsFilter() {
166
166
  React.createElement(Select, { role: "menu", "data-tracking-id": "groups-filter", id: "case-list-group-filter", title: t(filterNamesMap[SolrKeys.group]), isOpen: isOpen, selected: selectedItems, onSelect: (_e, v) => onSelect(v), onOpenChange: (nextOpen) => setIsOpen(nextOpen), popperProps: { direction: 'down', enableFlip: false }, toggle: toggle, isScrollable: true },
167
167
  React.createElement(SelectList, null, dropdownOptions),
168
168
  canViewCaseGroups && (React.createElement(React.Fragment, null,
169
- React.createElement(Divider, null),
169
+ React.createElement(Divider, { className: "case-group-filter" }),
170
170
  React.createElement(SelectList, null,
171
171
  React.createElement(Link, { className: "cta cta-link pf-v5-c-select__menu-item", to: "/manage/groups" },
172
172
  React.createElement(Trans, null, "Manage groups")))))))));
@@ -33,4 +33,8 @@ label.pf-v5-u-mb-sm.group-filter-label,
33
33
  #case-list-group-filter {
34
34
  z-index: 9 !important;
35
35
  }
36
+
37
+ .case-group-filter {
38
+ margin: 0 !important;
39
+ }
36
40
  }
@@ -3,6 +3,5 @@
3
3
 
4
4
  #rh-support-cases {
5
5
  @import './pf-overrides';
6
- font-size: inherit !important;
7
6
  }
8
7
  @import './main';
@@ -1,7 +1,7 @@
1
1
  import { fireEvent, render } from '@testing-library/react';
2
2
  import { createMemoryHistory } from 'history';
3
3
  import React from 'react';
4
- import { Router } from 'react-router';
4
+ import { Router } from 'react-router-dom';
5
5
  export function renderWithRouter(ui, { route = '/', history = createMemoryHistory({ initialEntries: [route] }) } = {}) {
6
6
  return Object.assign(Object.assign({}, render(React.createElement(Router, { history: history }, ui))), { history });
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/cases",
3
- "version": "2.1.104",
3
+ "version": "2.1.106",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -26,7 +26,7 @@
26
26
  "lib/**/*"
27
27
  ],
28
28
  "peerDependencies": {
29
- "@cee-eng/hydrajs": "4.17.24",
29
+ "@cee-eng/hydrajs": "4.17.25",
30
30
  "@patternfly/patternfly": "5.4.0",
31
31
  "@patternfly/react-core": "5.4.0",
32
32
  "@patternfly/react-table": "5.4.0",
@@ -34,26 +34,26 @@
34
34
  "lodash": "^4.17.21",
35
35
  "react": "18.2.0",
36
36
  "react-dom": "18.2.0",
37
- "react-i18next": "^12.3.1",
37
+ "react-i18next": "^15.0.1",
38
38
  "react-router-dom": "^5.1.2",
39
39
  "solr-query-builder": "1.0.1"
40
40
  },
41
41
  "dependencies": {
42
- "@cee-eng/hydrajs": "4.17.24",
42
+ "@cee-eng/hydrajs": "4.17.25",
43
43
  "@patternfly/patternfly": "5.4.0",
44
44
  "@patternfly/react-core": "5.4.0",
45
45
  "@patternfly/react-table": "5.4.0",
46
- "@rh-support/components": "2.1.82",
47
- "@rh-support/react-context": "2.1.91",
48
- "@rh-support/types": "2.0.4",
49
- "@rh-support/user-permissions": "2.1.50",
50
- "@rh-support/utils": "2.1.39",
46
+ "@rh-support/components": "2.1.83",
47
+ "@rh-support/react-context": "2.1.92",
48
+ "@rh-support/types": "2.0.5",
49
+ "@rh-support/user-permissions": "2.1.51",
50
+ "@rh-support/utils": "2.1.40",
51
51
  "localforage": "^1.10.0",
52
52
  "lodash": "^4.17.21",
53
53
  "pegjs": "^0.10.0",
54
54
  "react": "18.2.0",
55
55
  "react-dom": "18.2.0",
56
- "react-i18next": "^12.3.1",
56
+ "react-i18next": "^15.0.1",
57
57
  "react-router-dom": "^5.1.2",
58
58
  "solr-query-builder": "1.0.1"
59
59
  },
@@ -96,5 +96,5 @@
96
96
  "defaults and supports es6-module",
97
97
  "maintained node versions"
98
98
  ],
99
- "gitHead": "1761dac5582f46c8f89312a40a6424a0fa5aa9bf"
99
+ "gitHead": "0e8e72a89ed859d57ceb68dbbb94caa13a6f3569"
100
100
  }