@rh-support/manage 2.5.184 → 2.5.185

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":"DefaultGroupSwitch.d.ts","sourceRoot":"","sources":["../../../../../src/components/Groups/DefualtGroupSwitch/DefaultGroupSwitch.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAIvF,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,MAAM;IACZ,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,EAAE,UAAU,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5D;AAED,eAAO,MAAM,kBAAkB,GAAI,OAAO,MAAM,sBA4C/C,CAAC"}
1
+ {"version":3,"file":"DefaultGroupSwitch.d.ts","sourceRoot":"","sources":["../../../../../src/components/Groups/DefualtGroupSwitch/DefaultGroupSwitch.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAIvF,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,MAAM;IACZ,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,EAAE,UAAU,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5D;AAED,eAAO,MAAM,kBAAkB,GAAI,OAAO,MAAM,sBA+C/C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"GroupSelect.d.ts","sourceRoot":"","sources":["../../../../../src/components/Groups/GroupSelect/GroupSelect.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAwC3E,OAAO,KAAmD,MAAM,OAAO,CAAC;AAKxE,UAAU,MAAM;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,KAAK,IAAI,CAAC;CAChD;AAKD,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,sBAwhBxC,CAAC"}
1
+ {"version":3,"file":"GroupSelect.d.ts","sourceRoot":"","sources":["../../../../../src/components/Groups/GroupSelect/GroupSelect.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAwC3E,OAAO,KAAmD,MAAM,OAAO,CAAC;AAKxE,UAAU,MAAM;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,KAAK,IAAI,CAAC;CAChD;AAKD,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,sBA0hBxC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ManageGroupUsers.d.ts","sourceRoot":"","sources":["../../../../../src/components/Groups/ManageGroupUsers/ManageGroupUsers.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,eAAO,MAAM,gBAAgB,yBAiQ5B,CAAC"}
1
+ {"version":3,"file":"ManageGroupUsers.d.ts","sourceRoot":"","sources":["../../../../../src/components/Groups/ManageGroupUsers/ManageGroupUsers.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,eAAO,MAAM,gBAAgB,yBA4L5B,CAAC"}
@@ -9,12 +9,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import { publicApi } from '@cee-eng/hydrajs';
11
11
  import { SearchInput } from '@patternfly/react-core';
12
- import { AlertMessage, AlertType, ErrorBoundary, ToastNotification, useFetch, usePrevious, } from '@rh-support/components';
12
+ import { ErrorBoundary, ToastNotification, useFetch, usePrevious } from '@rh-support/components';
13
13
  import { useGlobalStateContext } from '@rh-support/react-context';
14
14
  import isEmpty from 'lodash/isEmpty';
15
15
  import React, { useEffect, useMemo, useState } from 'react';
16
16
  import { Trans, useTranslation } from 'react-i18next';
17
- import { Link, useLocation } from 'react-router-dom';
17
+ import { useLocation } from 'react-router-dom';
18
18
  import { ManageTable } from '../../ManageTable/ManageTable';
19
19
  import { DefaultGroupSwitch } from '../DefualtGroupSwitch';
20
20
  import { GroupSelect } from '../GroupSelect';
@@ -22,7 +22,7 @@ import { GroupUserPermissionsSelect } from '../GroupUserPermissionsSelect';
22
22
  export const ManageGroupUsers = () => {
23
23
  const { t } = useTranslation();
24
24
  const location = useLocation();
25
- const { globalMetadataState: { loggedInUsersAccount, loggedInUserRights }, } = useGlobalStateContext();
25
+ const { globalMetadataState: { loggedInUsersAccount }, } = useGlobalStateContext();
26
26
  const disableGroupSelect = !loggedInUsersAccount || !loggedInUsersAccount.data || !loggedInUsersAccount.data.accountNumber;
27
27
  const [selectedGroup, setSelectedGroup] = useState();
28
28
  const { clearResponse, isFetching, request, data: response, } = useFetch(publicApi.caseGroups.getCaseGroupUsers);
@@ -130,36 +130,6 @@ export const ManageGroupUsers = () => {
130
130
  // eslint-disable-next-line react-hooks/exhaustive-deps
131
131
  }, [location.pathname, loggedInUsersAccount.data]);
132
132
  return (React.createElement(React.Fragment, null,
133
- React.createElement(AlertMessage, { variant: AlertType.INFO, show: loggedInUserRights.data.isOrgAdmin() &&
134
- !loggedInUsersAccount.data.hasGroupACLs &&
135
- !loggedInUserRights.data.isInternal(), isInline: true, className: "pf-v6-u-mb-lg", title: t('Case Group ACL is not enabled') },
136
- React.createElement("p", null,
137
- React.createElement(Trans, { i18nKey: "i18nRequestControl" },
138
- "To use case groups to limit user access, enable the",
139
- ' ',
140
- React.createElement("a", { href: "https://access.redhat.com/articles/170453", target: "_blank", rel: "noopener noreferrer" }, "Case Group Access Control Lists (ACL)"),
141
- ' ',
142
- "under",
143
- ' ',
144
- React.createElement(Link, { key: "case-contact-phone-number-review", replace: true, to: {
145
- pathname: '/manage/preferences',
146
- }, "data-tracking-id": "case-contact-phone-number-review" }, "Preferences")),
147
- React.createElement("br", null),
148
- React.createElement(Trans, null, "You can organize and group related cases and filter on the case list page, but you cannot change permissions for case groups unless the Case Group ACL is enabled."))),
149
- React.createElement(AlertMessage, { variant: AlertType.INFO, show: loggedInUserRights.data.isInternal(), isInline: true, className: "pf-v6-u-mb-lg", title: t('Case Group ACL is not available for internal users.') },
150
- React.createElement("p", null,
151
- React.createElement(Trans, { i18nKey: "i18nRequestControl" },
152
- "As an internal user you can use case group without ACL functionality. To use case groups to limit user access, customers can enable the",
153
- ' ',
154
- React.createElement("a", { href: "https://access.redhat.com/articles/170453", target: "_blank", rel: "noopener noreferrer" }, "Case Group Access Control Lists (ACL)"),
155
- ' ',
156
- "under",
157
- ' ',
158
- React.createElement(Link, { key: "case-contact-phone-number-review", replace: true, to: {
159
- pathname: '/manage/preferences',
160
- }, "data-tracking-id": "case-contact-phone-number-review" }, "Preferences")),
161
- React.createElement("br", null),
162
- React.createElement(Trans, null, "Customers can organize and group related cases and filter on the case list page, but they cannot change permissions for case groups unless the Case Group ACL is enabled."))),
163
133
  React.createElement("header", null,
164
134
  React.createElement("h2", { className: "pf-v6-u-pb-sm" }, t('Groups')),
165
135
  React.createElement("p", null, t('To filter cases while searching, add or edit groups.'))),
@@ -1 +1 @@
1
- {"version":3,"file":"BookmarkAccountSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ManageBookmarkedAccountsTab/BookmarkAccountSelector.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAmBhF,OAAO,EAAE,SAAS,EAAuB,MAAM,2BAA2B,CAAC;AAO3E,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,UAAU,MAAM;IACZ,uBAAuB,EAAE,SAAS,EAAE,CAAC;IACrC,iBAAiB,CAAC,EAAE,kBAAkB,CAAC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yBAAyB,CAAC,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,SAAS,EAAE,CAAC;IAC9B,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,qBA2UpD;yBA3Ue,uBAAuB"}
1
+ {"version":3,"file":"BookmarkAccountSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ManageBookmarkedAccountsTab/BookmarkAccountSelector.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAmBhF,OAAO,EAAE,SAAS,EAAuB,MAAM,2BAA2B,CAAC;AAO3E,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,UAAU,MAAM;IACZ,uBAAuB,EAAE,SAAS,EAAE,CAAC;IACrC,iBAAiB,CAAC,EAAE,kBAAkB,CAAC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,yBAAyB,CAAC,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,KAAK,IAAI,CAAC;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,SAAS,EAAE,CAAC;IAC9B,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,qBA6UpD;yBA7Ue,uBAAuB"}
@@ -1 +1 @@
1
- {"version":3,"file":"PreferenceSwitch.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/components/PreferenceSwitch.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,UAAU,MAAM;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,GAAG,CAAC;IACX,cAAc,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACnD,SAAS,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,cAAc,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,MAAM,qBAgC3F"}
1
+ {"version":3,"file":"PreferenceSwitch.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/components/PreferenceSwitch.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,MAAM;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,GAAG,CAAC;IACX,cAAc,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACnD,SAAS,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,cAAc,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,MAAM,qBAgC3F"}
@@ -9,27 +9,27 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import { Switch } from '@patternfly/react-core';
11
11
  import { ToastNotification } from '@rh-support/components';
12
- import React, { useState } from 'react';
12
+ import React from 'react';
13
13
  import { useTranslation } from 'react-i18next';
14
14
  export function PreferenceSwitch({ onSwitchChange, className, id, label, isChecked }) {
15
- const [isSwitchLoading, setIsSwitchLoading] = useState(false);
15
+ // const [isSwitchLoading, setIsSwitchLoading] = useState(false);
16
16
  let isCheckedLocal = isChecked;
17
17
  const { t } = useTranslation();
18
18
  // To handle change
19
19
  const onChangeLocal = (checked) => __awaiter(this, void 0, void 0, function* () {
20
20
  try {
21
- setIsSwitchLoading(true);
21
+ // setIsSwitchLoading(true);
22
22
  yield onSwitchChange(checked);
23
23
  isCheckedLocal = isChecked;
24
24
  ToastNotification.addSuccessMessage(t('Successfully updated preference'));
25
- setIsSwitchLoading(false);
25
+ // setIsSwitchLoading(false);
26
26
  }
27
27
  catch (_a) {
28
28
  isCheckedLocal = !checked;
29
29
  ToastNotification.addDangerMessage(t('Failed to update preference'));
30
- setIsSwitchLoading(false);
30
+ // setIsSwitchLoading(false);
31
31
  }
32
32
  });
33
33
  return (React.createElement("div", null,
34
- React.createElement(Switch, Object.assign({}, (className ? { className } : {}), { id: id, label: label, isChecked: isCheckedLocal, onChange: (_event, checked) => onChangeLocal(checked), isDisabled: isSwitchLoading }))));
34
+ React.createElement(Switch, Object.assign({}, (className ? { className } : {}), { id: id, label: label, isChecked: isCheckedLocal, onChange: (_event, checked) => onChangeLocal(checked), isDisabled: true }))));
35
35
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ManageTable.d.ts","sourceRoot":"","sources":["../../../../src/components/ManageTable/ManageTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGH,YAAY,EAMf,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAAE,OAAO,EAAE,SAAS,EAA4C,MAAM,wBAAwB,CAAC;AACtG,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,MAAM;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IAGrB,cAAc,CAAC,EAAE,KAAK,CAA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EAAE,MAAM,CAAC;IAEtB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAyBD,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,qBAqDxC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ExpiredContentContextProvider.d.ts","sourceRoot":"","sources":["../../../src/context/ExpiredContentContextProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EACH,0BAA0B,EAE1B,oBAAoB,EAEvB,MAAM,mCAAmC,CAAC;AAG3C,eAAO,MAAM,0BAA0B,qCAAmE,CAAC;AAC3G,eAAO,MAAM,6BAA6B,2CAA8C,CAAC;AAEzF,wBAAgB,6BAA6B,CAAC,EAAE,QAAQ,EAAE;;CAAA,qBAOzD"}
1
+ {"version":3,"file":"ExpiredContentContextProvider.d.ts","sourceRoot":"","sources":["../../../src/context/ExpiredContentContextProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EACH,0BAA0B,EAE1B,oBAAoB,EAEvB,MAAM,mCAAmC,CAAC;AAG3C,eAAO,MAAM,0BAA0B,qCAAmE,CAAC;AAC3G,eAAO,MAAM,6BAA6B,2CAA8C,CAAC;AAEzF,wBAAgB,6BAA6B,CAAC,EAAE,QAAQ,EAAE;;CAAA,qBAQzD"}
package/lib/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // PCM-15277-Hotfix
1
+ // test
2
2
  export { Manage } from './Manage';
3
3
  export { TopContentManagement } from './components/TopContentManagement';
4
4
  export { ExpiredContentManagement } from './components/ManageExpiredContents';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/manage",
3
- "version": "2.5.184",
3
+ "version": "2.5.185",
4
4
  "description": "Customer Support Manage App",
5
5
  "author": "Jordan Eudy <jeudy100@gmail.com>",
6
6
  "license": "ISC",
@@ -75,12 +75,12 @@
75
75
  "@patternfly/patternfly": "6.2.1",
76
76
  "@patternfly/react-core": "6.2.1",
77
77
  "@patternfly/react-table": "6.2.1",
78
- "@rh-support/components": "2.5.140",
79
- "@rh-support/configs": "2.0.48",
80
- "@rh-support/react-context": "2.5.230",
81
- "@rh-support/types": "2.0.18",
82
- "@rh-support/user-permissions": "2.5.103",
83
- "@rh-support/utils": "2.5.84",
78
+ "@rh-support/components": "2.5.157",
79
+ "@rh-support/configs": "2.0.50",
80
+ "@rh-support/react-context": "2.5.247",
81
+ "@rh-support/types": "2.0.19",
82
+ "@rh-support/user-permissions": "2.5.104",
83
+ "@rh-support/utils": "2.5.85",
84
84
  "@types/react-beautiful-dnd": "^13.0.0",
85
85
  "i18next": "^23.15.0",
86
86
  "lodash": ">=4.17.15",
@@ -99,5 +99,5 @@
99
99
  "defaults and supports es6-module",
100
100
  "maintained node versions"
101
101
  ],
102
- "gitHead": "110a7c2cc1732e644be99bd8f552d610c57a4ea8"
102
+ "gitHead": "8a8ffc020ac2271c3a88160f816a5fc14082737c"
103
103
  }