@rh-support/manage 2.5.70 → 2.5.72

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":"GroupSelect.d.ts","sourceRoot":"","sources":["../../../../../src/components/Groups/GroupSelect/GroupSelect.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAuC3E,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,UAAW,MAAM,sBAshBxC,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,UAAW,MAAM,sBAwhBxC,CAAC"}
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { publicApi } from '@cee-eng/hydrajs';
11
- import { Button, Dropdown, MenuContent, MenuItem, MenuList, MenuToggle, Select, SelectList, SelectOption, Spinner, TextInput, TextInputGroup, TextInputGroupMain, TextInputGroupUtilities, } from '@patternfly/react-core';
11
+ import { Button, Divider, Dropdown, MenuContent, MenuItem, MenuList, MenuToggle, Select, SelectList, SelectOption, Spinner, TextInput, TextInputGroup, TextInputGroupMain, TextInputGroupUtilities, } from '@patternfly/react-core';
12
12
  import CogIcon from '@patternfly/react-icons/dist/js/icons/cog-icon';
13
13
  import TimesIcon from '@patternfly/react-icons/dist/js/icons/times-icon';
14
14
  import { AlertMessage, AlertType, ToastNotification, useConfirmation, useFetch, usePrevious, useSelectKeyboardNavigator, } from '@rh-support/components';
@@ -267,9 +267,10 @@ export const GroupSelect = (props) => {
267
267
  };
268
268
  const dropdownItems = [
269
269
  React.createElement(MenuItem, { className: "create-group-action", isDisabled: !ability.can(resourceActions.CREATE, resources.CASE_GROUPS), key: "create", onClick: onActionFocus(actions.create), "data-tracking-id": "manage-group-create" }, t('Create')),
270
+ React.createElement(Divider, { component: "li" }),
270
271
  React.createElement(MenuItem, { className: "create-group-action", isDisabled: !selectedGroup || !ability.can(resourceActions.UPDATE, resources.CASE_GROUPS), key: "rename", onClick: onActionFocus(actions.rename), "data-tracking-id": "manage-group-rename" }, t('Rename')),
271
- React.createElement(MenuItem, { className: "create-group-action", isDisabled: !selectedGroup || !ability.can(resourceActions.DELETE, resources.CASE_GROUPS), key: "delete", onClick: onActionFocus(actions.delete), "data-tracking-id": "manage-group-delete" }, t('Delete')),
272
272
  React.createElement(MenuItem, { className: "create-group-action", isDisabled: !selectedGroup || !ability.can(resourceActions.CREATE, resources.CASE_GROUPS), key: "duplicate", onClick: onActionFocus(actions.duplicate), "data-tracking-id": "manage-group-duplicate" }, t('Duplicate')),
273
+ React.createElement(MenuItem, { isDanger: true, className: "create-group-action del-btn", isDisabled: !selectedGroup || !ability.can(resourceActions.DELETE, resources.CASE_GROUPS), key: "delete", onClick: onActionFocus(actions.delete), "data-tracking-id": "manage-group-delete" }, t('Delete')),
273
274
  ];
274
275
  const dropdownToggle = (toggleRef) => (React.createElement(MenuToggle, { isFullHeight: true, className: "pf-v6-u-ml-sm manage-group-actions-toggle-options pf-v6-u-p-md", ref: toggleRef, isDisabled: props.isDisabled || disableOnFetch, onClick: toggleIsDropdownOpen, isExpanded: isDropdownOpen, "data-tracking-id": "manage-group-toggle-options", "aria-label": "Group actions dropdown toggle", icon: React.createElement(CogIcon, null) }));
275
276
  const submitActionBtn = useRef();
@@ -68,7 +68,7 @@ export default function ExpiredContentSingleItem({ content, category }) {
68
68
  React.createElement("div", null,
69
69
  lastModifiedBy,
70
70
  " | ",
71
- React.createElement("span", { className: "pf-v6-u-danger-color-200" }, expiredText),
71
+ React.createElement("span", { className: "pf-v6-u-text-color-status-danger" }, expiredText),
72
72
  " |",
73
73
  ' ',
74
74
  content.product,
@@ -114,7 +114,7 @@ export function PartnershipsList() {
114
114
  React.createElement(LoadingIndicator, { isInline: true, show: isDeleting && data.accountNum === isDeletingAccountNum, size: "xs" })), variant: ButtonVariant.plain, "aria-label": t('Remove partnership'), "data-tracking-id": "remove-partnership", onClick: () => removePartnership(data) })),
115
115
  },
116
116
  ];
117
- const requestCollaborationButton = () => (React.createElement("div", { className: "toolbar-right" },
117
+ const requestCollaborationButton = () => (React.createElement("div", null,
118
118
  React.createElement(Button, { variant: ButtonVariant.primary, isInline: true, onClick: () => setIsRequestCollabModalOpen(true), "data-tracking-id": "request-collaboration-button", isDisabled: false },
119
119
  React.createElement(Trans, null, "Request Collaboration"))));
120
120
  // Get Customer Accounts For A Partner
@@ -170,7 +170,7 @@ export function PartnershipsList() {
170
170
  // eslint-disable-next-line react-hooks/exhaustive-deps
171
171
  }, [managedAccounts, accountManagers]);
172
172
  return (React.createElement("section", { id: "manage-partnerships-list" },
173
- React.createElement("div", { className: "toolbar secondary-toolbar pf-v6-u-display-flex pf-v6-u-align-items-center" },
173
+ React.createElement("div", { className: "toolbar secondary-toolbar pf-v6-u-display-flex" },
174
174
  React.createElement("div", { className: "toolbar-left pf-v6-u-mr-md" },
175
175
  React.createElement("label", { htmlFor: "search-partnerships" }, "Filter by"),
176
176
  React.createElement(SearchInput, { className: "pf-v6-u-flex-grow-1 pf-v6-c-search-input pf-v6-u-background-color-100", id: "search-partnerships", placeholder: t('Search for an existing partnership'), value: searchString, onChange: (_event, value) => setSearchString(value), onClear: () => setSearchString(''), "aria-label": t('Search for an existing partnership') })),
@@ -1 +1 @@
1
- {"version":3,"file":"RequestCollaborationModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ManagePartnerships/RequestCollaborationModal.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAK3D,UAAU,MAAM;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACrC;AAID,eAAO,MAAM,yBAAyB,UAAW,MAAM,sBA4OtD,CAAC"}
1
+ {"version":3,"file":"RequestCollaborationModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ManagePartnerships/RequestCollaborationModal.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAK3D,UAAU,MAAM;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACrC;AAID,eAAO,MAAM,yBAAyB,UAAW,MAAM,sBAiPtD,CAAC"}
@@ -121,7 +121,7 @@ export const RequestCollaborationModal = (props) => {
121
121
  React.createElement("h2", null, isRequestingAgain ? t('Request collaboration again') : t('Request collaboration'))),
122
122
  React.createElement(ModalBody, null,
123
123
  React.createElement("p", null, "Initiate a new collaboration by generating a unique link for your customer. Check the status under your requests to see if they accept or reject your collaboration."),
124
- React.createElement(Form, { className: "pf-v6-u-my-md" },
124
+ React.createElement(Form, { className: "pf-v6-u-mt-md" },
125
125
  React.createElement(Grid, { sm: 12, md: 12, lg: 12 },
126
126
  React.createElement(GridItem, null,
127
127
  React.createElement(FormGroup, { label: t('Name your link'), type: "string", fieldId: partnershipLinkId, isRequired: true },
@@ -146,7 +146,10 @@ export const RequestCollaborationModal = (props) => {
146
146
  "Please ",
147
147
  React.createElement("strong", null, "copy and send"),
148
148
  " this unique link to your customer for approval.")))) : (React.createElement(Trans, null, "Partnership request expiration date is extended."))))),
149
- React.createElement(ModalFooter, null, showDone ? (React.createElement(Button, { key: "done", variant: ButtonVariant.primary, onClick: onDone, isDisabled: validated === 'error' || (!isRequestingAgain && !isCopyClicked && isDoneClicked), "data-tracking-id": "request-collaboration-done-button" },
150
- React.createElement(Trans, null, "Done"))) : (React.createElement(Button, { key: "next", variant: ButtonVariant.primary, onClick: onNext, isDisabled: validated === 'error' || isFetching, isLoading: isFetching },
151
- React.createElement(Trans, null, "Next"))))));
149
+ React.createElement(ModalFooter, null,
150
+ showDone ? (React.createElement(Button, { key: "done", variant: ButtonVariant.primary, onClick: onDone, isDisabled: validated === 'error' || (!isRequestingAgain && !isCopyClicked && isDoneClicked), "data-tracking-id": "request-collaboration-done-button" },
151
+ React.createElement(Trans, null, "Done"))) : (React.createElement(Button, { key: "next", variant: ButtonVariant.primary, onClick: onNext, isDisabled: validated === 'error' || isFetching, isLoading: isFetching },
152
+ React.createElement(Trans, null, "Next"))),
153
+ !showDone && (React.createElement(Button, { key: "cancel", variant: ButtonVariant.link, onClick: onClose, isDisabled: isFetching },
154
+ React.createElement(Trans, null, "Cancel"))))));
152
155
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Requests.d.ts","sourceRoot":"","sources":["../../../../src/components/ManagePartnerships/Requests.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAanD,eAAO,MAAM,WAAW,SAAU,MAAM,WAMvC,CAAC;AAGF,eAAO,MAAM,YAAY,SAAU,MAAM,cAAa,MAAM,WAK3D,CAAC;AAEF,wBAAgB,QAAQ,sBA+QvB"}
1
+ {"version":3,"file":"Requests.d.ts","sourceRoot":"","sources":["../../../../src/components/ManagePartnerships/Requests.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAanD,eAAO,MAAM,WAAW,SAAU,MAAM,WAMvC,CAAC;AAGF,eAAO,MAAM,YAAY,SAAU,MAAM,cAAa,MAAM,WAK3D,CAAC;AAEF,wBAAgB,QAAQ,sBAgRvB"}
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { pcm } from '@cee-eng/hydrajs';
11
- import { AlertVariant, Badge, ExpandableSection, ExpandableSectionToggle, Label, Stack, StackItem, } from '@patternfly/react-core';
11
+ import { AlertVariant, Badge, ButtonVariant, ExpandableSection, ExpandableSectionToggle, Label, Stack, StackItem, } from '@patternfly/react-core';
12
12
  import ExclamationCircleIcon from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
13
13
  import { LoadingIndicator, ToastNotification, useConfirmation } from '@rh-support/components';
14
14
  import { UserPreferencesKeys, useUserPreferences } from '@rh-support/react-context';
@@ -29,7 +29,7 @@ export const daysFromNow = (date) => {
29
29
  return TotalDays;
30
30
  };
31
31
  // truncates text after specified character limit and adds ellipsis
32
- export const truncateText = (text, maxLength = 150) => {
32
+ export const truncateText = (text, maxLength = 50) => {
33
33
  if (!text || text.length <= maxLength) {
34
34
  return text;
35
35
  }
@@ -57,6 +57,7 @@ export function Requests() {
57
57
  title: t('Are you sure?'),
58
58
  description: React.createElement(Trans, null, "You will not be able to undo this action after verifying."),
59
59
  confirmText: t('Delete'),
60
+ confirmButtonVariant: ButtonVariant.danger,
60
61
  });
61
62
  try {
62
63
  yield pcm.partnerships.removePendingPartnerLink(friendlyName);
@@ -135,7 +136,7 @@ export function Requests() {
135
136
  ]
136
137
  : []),
137
138
  {
138
- title: (React.createElement("div", { className: "pf-v6-u-danger-color-200" },
139
+ title: (React.createElement("div", { className: "pf-v6-u-text-color-status-danger" },
139
140
  React.createElement(Trans, null, "Delete"))),
140
141
  onClick: () => deleteRequest(friendlyName),
141
142
  itemKey: 'delete-request',
@@ -1 +1 @@
1
- {"version":3,"file":"ContentAccordion.d.ts","sourceRoot":"","sources":["../../../../../src/components/TopContentManagement/ContentUsage/ContentAccordion.tsx"],"names":[],"mappings":"AAUA,OAAc,EAAE,EAAE,EAAY,MAAM,OAAO,CAAC;AAG5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAG3E,UAAU,MAAM;IACZ,WAAW,EAAE,oBAAoB,EAAE,CAAC;IACpC,eAAe,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,MAAM,CA8DvC,CAAC"}
1
+ {"version":3,"file":"ContentAccordion.d.ts","sourceRoot":"","sources":["../../../../../src/components/TopContentManagement/ContentUsage/ContentAccordion.tsx"],"names":[],"mappings":"AAUA,OAAc,EAAE,EAAE,EAAY,MAAM,OAAO,CAAC;AAG5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAG3E,UAAU,MAAM;IACZ,WAAW,EAAE,oBAAoB,EAAE,CAAC;IACpC,eAAe,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,MAAM,CAgEvC,CAAC"}
@@ -25,7 +25,7 @@ export const ContentAccordion = ({ contentList, selectedVersion }) => {
25
25
  });
26
26
  return (React.createElement(AccordionItem, { isExpanded: expanded === topContentId, key: topContentId },
27
27
  React.createElement(AccordionToggle, { onClick: onToggle(topContentId), id: contentTitle },
28
- React.createElement("span", { className: isAttentionNeeded ? 'pf-v6-u-danger-color-200' : '' },
28
+ React.createElement("span", { className: isAttentionNeeded ? 'pf-v6-u-text-color-status-danger' : '' },
29
29
  ' ',
30
30
  contentTitle)),
31
31
  React.createElement(AccordionContent, { id: contentTitle },
@@ -68,7 +68,6 @@
68
68
 
69
69
  & > * {
70
70
  display: flex;
71
- align-items: center;
72
71
  }
73
72
 
74
73
  .toolbar-left {
@@ -132,6 +131,7 @@
132
131
  .toolbar-right {
133
132
  flex: 1 1 35%;
134
133
  max-width: 35%;
134
+ margin-left: auto;
135
135
  }
136
136
  }
137
137
 
@@ -139,7 +139,6 @@
139
139
  background-color: #d2d2d2;
140
140
  border: 1px solid #d2d2d2;
141
141
  color: #6a6e73;
142
- border-radius: var(--pf-t--global--border--radius--small);
143
142
  }
144
143
 
145
144
  .group-actions-dropdown [disabled] {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/manage",
3
- "version": "2.5.70",
3
+ "version": "2.5.72",
4
4
  "description": "Customer Support Manage App",
5
5
  "author": "Jordan Eudy <jeudy100@gmail.com>",
6
6
  "license": "ISC",
@@ -79,12 +79,12 @@
79
79
  "@patternfly/patternfly": "6.2.1",
80
80
  "@patternfly/react-core": "6.2.1",
81
81
  "@patternfly/react-table": "6.2.1",
82
- "@rh-support/components": "2.5.55",
82
+ "@rh-support/components": "2.5.56",
83
83
  "@rh-support/configs": "2.0.21",
84
- "@rh-support/react-context": "2.5.70",
84
+ "@rh-support/react-context": "2.5.71",
85
85
  "@rh-support/types": "2.0.5",
86
- "@rh-support/user-permissions": "2.5.26",
87
- "@rh-support/utils": "2.5.23",
86
+ "@rh-support/user-permissions": "2.5.27",
87
+ "@rh-support/utils": "2.5.24",
88
88
  "@types/react-beautiful-dnd": "^13.0.0",
89
89
  "i18next": "^23.15.0",
90
90
  "lodash": ">=4.17.15",
@@ -103,5 +103,5 @@
103
103
  "defaults and supports es6-module",
104
104
  "maintained node versions"
105
105
  ],
106
- "gitHead": "d0b8f81e23ac84c6fcfc2f68b7c19f44f11d28eb"
106
+ "gitHead": "3d90b8dd490311781e6d7d7d4c03afd3172cddd2"
107
107
  }