@rh-support/manage 2.1.106 → 2.1.108

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ManageGroupedBookmarkedAccountsTab.d.ts","sourceRoot":"","sources":["../../../../src/components/ManageBookmarkedAccountsTab/ManageGroupedBookmarkedAccountsTab.tsx"],"names":[],"mappings":"AAwCA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAOhD,UAAU,MAAM;IACZ,yBAAyB,EAAE,OAAO,CAAC;CACtC;AAED,wBAAgB,kCAAkC,CAAC,EAAE,yBAAyB,EAAE,EAAE,MAAM,qBAoZvF"}
1
+ {"version":3,"file":"ManageGroupedBookmarkedAccountsTab.d.ts","sourceRoot":"","sources":["../../../../src/components/ManageBookmarkedAccountsTab/ManageGroupedBookmarkedAccountsTab.tsx"],"names":[],"mappings":"AAwCA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAOhD,UAAU,MAAM;IACZ,yBAAyB,EAAE,OAAO,CAAC;CACtC;AAED,wBAAgB,kCAAkC,CAAC,EAAE,yBAAyB,EAAE,EAAE,MAAM,qBAqZvF"}
@@ -89,7 +89,8 @@ export function ManageGroupedBookmarkedAccountsTab({ canManageBookmarkAccounts }
89
89
  selectedAccounts.forEach((selectedAccount) => {
90
90
  if (accountsGroupsObj[selectedAccount.accountNumber]) {
91
91
  isEmpty(group) &&
92
- accountsGroupsObj[selectedAccount.accountNumber].includes(undefined || '') &&
92
+ (accountsGroupsObj[selectedAccount.accountNumber].includes(undefined) ||
93
+ accountsGroupsObj[selectedAccount.accountNumber].includes('')) &&
93
94
  alreadyAdded.push(selectedAccount.accountNumber);
94
95
  !isEmpty(group) &&
95
96
  accountsGroupsObj[selectedAccount.accountNumber].includes(group) &&
@@ -15,7 +15,7 @@ import { UserPreferencesKeys, useUserPreferences } from '@rh-support/react-conte
15
15
  import isEmpty from 'lodash/isEmpty';
16
16
  import React, { useEffect, useState } from 'react';
17
17
  import { Trans, useTranslation } from 'react-i18next';
18
- import { useLocation } from 'react-router';
18
+ import { useLocation } from 'react-router-dom';
19
19
  import { useManagePartnershipsContext, useManagePartnershipsDispatchContext, } from '../../context/ManagePartnershipsProvider';
20
20
  import { setIsUpdatingRequests } from '../../reducers/ManagePartnershipsReducer';
21
21
  import { ManageTable } from '../ManageTable';
@@ -1 +1 @@
1
- {"version":3,"file":"PreferencesCaseSearch.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/sections/PreferencesCaseSearch.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,UAAU,MAAM;CAAG;AAEnB,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,qBA0GlD"}
1
+ {"version":3,"file":"PreferencesCaseSearch.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/sections/PreferencesCaseSearch.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAM/D,UAAU,MAAM;CAAG;AAEnB,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,qBA6GlD"}
@@ -10,16 +10,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  import { Card, CardBody, CardHeader } from '@patternfly/react-core';
11
11
  import { SelectOption } from '@patternfly/react-core/deprecated';
12
12
  import { ToastNotification } from '@rh-support/components';
13
- import { UserPreferencesKeys } from '@rh-support/react-context';
13
+ import { GlobalMetadataStateContext, UserPreferencesKeys } from '@rh-support/react-context';
14
14
  import find from 'lodash/find';
15
15
  import isEmpty from 'lodash/isEmpty';
16
- import React, { useEffect, useState } from 'react';
16
+ import React, { useContext, useEffect, useState } from 'react';
17
17
  import { Trans, useTranslation } from 'react-i18next';
18
18
  import { useUserPreferences } from '../../../hooks/useUserPreferences';
19
19
  import { PreferenceSelect } from '../components/PreferenceSelect';
20
20
  export function PreferencesCaseSearch(props) {
21
21
  const { t } = useTranslation();
22
- const { getAutoRestoreSavedSearchPreference, updateAutoRestoreSavedSearchPreference, getAutoRestoreLastSearchPreference, updateAutoRestoreLastSearchPreference, hydraUserPreferences, } = useUserPreferences();
22
+ const { getAutoRestoreSavedSearchPreference, updateAutoRestoreSavedSearchPreference, getAutoRestoreLastSearchPreference, updateAutoRestoreLastSearchPreference, } = useUserPreferences();
23
+ const { globalMetadataState: { hydraUserPreferences }, } = useContext(GlobalMetadataStateContext);
23
24
  const [bookmarkedSearches, setBookmarkedSearches] = useState([]);
24
25
  const [originalSavedSearch, setOriginalSavedSearch] = useState('');
25
26
  const parseToBoolean = (value) => {
@@ -1 +1 @@
1
- {"version":3,"file":"TagsManager.d.ts","sourceRoot":"","sources":["../../../../src/components/ManageTags/TagsManager.tsx"],"names":[],"mappings":"AA6BA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAOxE,MAAM,CAAC,OAAO,UAAU,WAAW,sBAuYlC"}
1
+ {"version":3,"file":"TagsManager.d.ts","sourceRoot":"","sources":["../../../../src/components/ManageTags/TagsManager.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAOxE,MAAM,CAAC,OAAO,UAAU,WAAW,sBAuYlC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AddNewCategoryDropDown.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/AddNewCategoryDropDown.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2DAA2D,CAAC;AAGhG,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,UAAU,MAAM;IACZ,gBAAgB,EAAE,CAAC,GAAG,EAAE,mBAAmB,KAAK,IAAI,CAAC;CACxD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,qBA4EnD"}
1
+ {"version":3,"file":"AddNewCategoryDropDown.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/AddNewCategoryDropDown.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2DAA2D,CAAC;AAIhG,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,UAAU,MAAM;IACZ,gBAAgB,EAAE,CAAC,GAAG,EAAE,mBAAmB,KAAK,IAAI,CAAC;CACxD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,qBAiFnD"}
@@ -1,5 +1,6 @@
1
1
  import { Select, SelectOption, SelectVariant } from '@patternfly/react-core/deprecated';
2
2
  import { ToastNotification } from '@rh-support/components';
3
+ import sortBy from 'lodash/sortBy';
3
4
  import React, { useEffect, useState } from 'react';
4
5
  import { Trans, useTranslation } from 'react-i18next';
5
6
  import { useTopContentContext, useTopContentDispatchContext } from '../../../../context/TopContentProvider';
@@ -9,7 +10,11 @@ export function AddNewCategoryDropDown(props) {
9
10
  const { topContentEditState, categories } = useTopContentContext();
10
11
  const topContentDispatch = useTopContentDispatchContext();
11
12
  const allAddedCategories = topContentEditState.map((cat) => cat.categoryName);
12
- const availableCategories = categories.data.filter((category) => !(allAddedCategories || []).includes(category.categoryName));
13
+ const availableCategories = sortBy(categories.data.filter((category) => !(allAddedCategories || []).includes(category.categoryName)), [
14
+ function (obj) {
15
+ return obj.categoryName.toLowerCase();
16
+ },
17
+ ]);
13
18
  const [isOpen, setIsOpen] = useState(false);
14
19
  const [selected, setSelected] = useState();
15
20
  const getCategoryOptions = (options) => {
@@ -1,22 +1,23 @@
1
- export declare function useUserPreferences(): {
1
+ interface IUserPreferences {
2
2
  updateCommentType: (value: string) => Promise<void>;
3
- getCommentTypeFromPreference: () => any;
4
- hydraUserPreferences: import("@rh-support/types/shared").IApiResponseDetails<import("@cee-eng/hydrajs/@types/models/general").IPreference[]>;
5
- getAutoRestoreSavedSearchPreference: () => any;
3
+ getCommentTypeFromPreference: () => string;
4
+ getAutoRestoreSavedSearchPreference: () => string;
6
5
  updateAutoRestoreSavedSearchPreference: (value: string) => Promise<void>;
7
- getAutoRestoreLastSearchPreference: () => any;
6
+ getAutoRestoreLastSearchPreference: () => string;
8
7
  updateAutoRestoreLastSearchPreference: (value: boolean) => Promise<void>;
9
- getAutoSaveSelectedColumnsPreference: () => any;
8
+ getAutoSaveSelectedColumnsPreference: () => string;
10
9
  updateAutoSaveSelectedColumnsPreference: (value: boolean) => Promise<void>;
11
- getCommentSignature: () => any;
10
+ getCommentSignature: () => string;
12
11
  updateCommentSignature: (value: string) => Promise<void>;
13
- getShareHostNames: () => any;
12
+ getShareHostNames: () => string;
14
13
  updateShareHostNames: (value: boolean) => Promise<void>;
15
- getPreferredLanguage: () => any;
14
+ getPreferredLanguage: () => string;
16
15
  updatePreferredLanguage: (value: string) => Promise<void>;
17
- getDefaultGroup: () => any;
16
+ getDefaultGroup: () => string;
18
17
  updateDefaultGroup: (value: string) => Promise<void>;
19
- getOriginalCaseView: () => any;
18
+ getOriginalCaseView: () => string;
20
19
  updateOriginalCaseView: (value: any) => Promise<void>;
21
- };
20
+ }
21
+ export declare function useUserPreferences(): IUserPreferences;
22
+ export {};
22
23
  //# sourceMappingURL=useUserPreferences.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useUserPreferences.d.ts","sourceRoot":"","sources":["../../../src/hooks/useUserPreferences.tsx"],"names":[],"mappings":"AAQA,wBAAgB,kBAAkB;+BAoIU,MAAM;;;;oDApHe,MAAM;;mDAoBP,OAAO;;qDAgBL,OAAO;;oCAgBxB,MAAM;;kCAgBR,OAAO;;qCAgBJ,MAAM;;gCAgBX,MAAM;;;EAqElD"}
1
+ {"version":3,"file":"useUserPreferences.d.ts","sourceRoot":"","sources":["../../../src/hooks/useUserPreferences.tsx"],"names":[],"mappings":"AAQA,UAAU,gBAAgB;IACtB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,4BAA4B,EAAE,MAAM,MAAM,CAAC;IAC3C,mCAAmC,EAAE,MAAM,MAAM,CAAC;IAClD,sCAAsC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACzE,kCAAkC,EAAE,MAAM,MAAM,CAAC;IACjD,qCAAqC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACzE,oCAAoC,EAAE,MAAM,MAAM,CAAC;IACnD,uCAAuC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3E,mBAAmB,EAAE,MAAM,MAAM,CAAC;IAClC,sBAAsB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,iBAAiB,EAAE,MAAM,MAAM,CAAC;IAChC,oBAAoB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxD,oBAAoB,EAAE,MAAM,MAAM,CAAC;IACnC,uBAAuB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1D,eAAe,EAAE,MAAM,MAAM,CAAC;IAC9B,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD,mBAAmB,EAAE,MAAM,MAAM,CAAC;IAClC,sBAAsB,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACzD;AAED,wBAAgB,kBAAkB,IAAI,gBAAgB,CAwLrD"}
@@ -101,7 +101,6 @@ export function useUserPreferences() {
101
101
  return {
102
102
  updateCommentType,
103
103
  getCommentTypeFromPreference,
104
- hydraUserPreferences,
105
104
  getAutoRestoreSavedSearchPreference,
106
105
  updateAutoRestoreSavedSearchPreference,
107
106
  getAutoRestoreLastSearchPreference,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/manage",
3
- "version": "2.1.106",
3
+ "version": "2.1.108",
4
4
  "description": "Customer Support Manage App",
5
5
  "author": "Jordan Eudy <jeudy100@gmail.com>",
6
6
  "license": "ISC",
@@ -45,7 +45,7 @@
45
45
  "prepublishOnly": "npm run build"
46
46
  },
47
47
  "peerDependencies": {
48
- "@cee-eng/hydrajs": "4.17.24",
48
+ "@cee-eng/hydrajs": "4.17.25",
49
49
  "@patternfly/patternfly": "5.4.0",
50
50
  "@patternfly/react-core": "5.4.0",
51
51
  "@patternfly/react-table": "5.4.0",
@@ -53,7 +53,7 @@
53
53
  "mark.js": "^8.11.1",
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
  },
59
59
  "devDependencies": {
@@ -75,23 +75,24 @@
75
75
  "typescript": "^5.3.3"
76
76
  },
77
77
  "dependencies": {
78
- "@cee-eng/hydrajs": "4.17.24",
78
+ "@cee-eng/hydrajs": "4.17.25",
79
79
  "@patternfly/patternfly": "5.4.0",
80
80
  "@patternfly/react-core": "5.4.0",
81
81
  "@patternfly/react-table": "5.4.0",
82
- "@rh-support/components": "2.1.82",
83
- "@rh-support/configs": "2.0.20",
84
- "@rh-support/react-context": "2.1.91",
85
- "@rh-support/types": "2.0.4",
86
- "@rh-support/user-permissions": "2.1.50",
87
- "@rh-support/utils": "2.1.39",
82
+ "@rh-support/components": "2.1.83",
83
+ "@rh-support/configs": "2.0.21",
84
+ "@rh-support/react-context": "2.1.92",
85
+ "@rh-support/types": "2.0.5",
86
+ "@rh-support/user-permissions": "2.1.51",
87
+ "@rh-support/utils": "2.1.40",
88
88
  "@types/react-beautiful-dnd": "^13.0.0",
89
+ "i18next": "^23.15.0",
89
90
  "lodash": ">=4.17.15",
90
91
  "mark.js": "^8.11.1",
91
92
  "react": "18.2.0",
92
93
  "react-beautiful-dnd": "^13.0.0",
93
94
  "react-dom": "18.2.0",
94
- "react-i18next": "^12.3.1",
95
+ "react-i18next": "^15.0.1",
95
96
  "react-router-dom": "^5.1.2"
96
97
  },
97
98
  "overrides": {
@@ -102,5 +103,5 @@
102
103
  "defaults and supports es6-module",
103
104
  "maintained node versions"
104
105
  ],
105
- "gitHead": "1761dac5582f46c8f89312a40a6424a0fa5aa9bf"
106
+ "gitHead": "1f6753bdcadf05aeacbef720888e034569e4750b"
106
107
  }