@rh-support/manage 2.5.67 → 2.5.70

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,4 +1,5 @@
1
1
  import React from 'react';
2
2
  export declare const daysFromNow: (date: string) => number;
3
+ export declare const truncateText: (text: string, maxLength?: number) => string;
3
4
  export declare function Requests(): React.JSX.Element;
4
5
  //# sourceMappingURL=Requests.d.ts.map
@@ -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;AACF,wBAAgB,QAAQ,sBA+QvB"}
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"}
@@ -28,6 +28,13 @@ export const daysFromNow = (date) => {
28
28
  let TotalDays = Math.ceil(difference / (1000 * 3600 * 24));
29
29
  return TotalDays;
30
30
  };
31
+ // truncates text after specified character limit and adds ellipsis
32
+ export const truncateText = (text, maxLength = 150) => {
33
+ if (!text || text.length <= maxLength) {
34
+ return text;
35
+ }
36
+ return text.substring(0, maxLength) + '...';
37
+ };
31
38
  export function Requests() {
32
39
  const { t } = useTranslation();
33
40
  const confirmRemove = useConfirmation();
@@ -81,7 +88,7 @@ export function Requests() {
81
88
  };
82
89
  const columns = [
83
90
  {
84
- accessor: (data) => (data === null || data === void 0 ? void 0 : data.friendlyName) || '',
91
+ accessor: (data) => truncateText((data === null || data === void 0 ? void 0 : data.friendlyName) || ''),
85
92
  sortable: false,
86
93
  id: 'frienly-name',
87
94
  cellWidth: 25,
@@ -1 +1 @@
1
- {"version":3,"file":"TopContentCategory.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentCategory.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAGhF,OAAO,EAAgB,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAI5F,UAAU,MAAM;IACZ,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACzB,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,sBAAsB,CAAC;IACjC,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;CAClC;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,qBA6D/C"}
1
+ {"version":3,"file":"TopContentCategory.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentCategory.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAGhF,OAAO,EAAgB,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAI5F,UAAU,MAAM;IACZ,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACzB,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,sBAAsB,CAAC;IACjC,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;CAClC;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,qBA6E/C"}
@@ -34,13 +34,19 @@ export function TopContentCategory(props) {
34
34
  // eslint-disable-next-line react-hooks/exhaustive-deps
35
35
  }, [props.isExpanded]);
36
36
  return (React.createElement("div", Object.assign({ ref: props.innerRef }, props.provided.draggableProps, props.provided.dragHandleProps), props.category.content.length > 0 && (React.createElement(AccordionItem, { isExpanded: isExpanded },
37
- React.createElement(AccordionToggle, { id: props.category.categoryName, onClick: toggleExpanded },
37
+ props.isArrangingCats ? (React.createElement("div", { id: props.category.categoryName, className: "pf-v6-c-accordion" },
38
+ React.createElement("div", { className: "pf-v6-c-accordion__item" },
39
+ React.createElement("div", { className: "pf-v6-c-accordion__toggle" },
40
+ React.createElement("h3", { ref: headerRef, className: "pf-v6-c-accordion__toggle-text" },
41
+ React.createElement(Icon, { size: "md", className: "pf-v6-u-mr-sm pf-v6-c-accordion__toggle-icon" },
42
+ React.createElement(GripVerticalIcon, { style: { cursor: 'move' }, title: t('Drag'), color: "#0066CC" })),
43
+ props.category.categoryName,
44
+ ' ',
45
+ props.category.isAttentionNeeded && React.createElement(NeedsAttention, null)))))) : (React.createElement(AccordionToggle, { id: props.category.categoryName, onClick: toggleExpanded },
38
46
  React.createElement("h3", { ref: headerRef },
39
- props.isArrangingCats && (React.createElement(Icon, { size: "md", className: "pf-v6-u-mr-sm" },
40
- React.createElement(GripVerticalIcon, { style: { cursor: 'move' }, title: t('Drag') }))),
41
47
  props.category.categoryName,
42
48
  " ",
43
- props.category.isAttentionNeeded && React.createElement(NeedsAttention, null))),
49
+ props.category.isAttentionNeeded && React.createElement(NeedsAttention, null)))),
44
50
  React.createElement(AccordionContent, null,
45
51
  React.createElement(TopContentComponent, { category: props.category, scrollToTop: scrollToTop, categoryMode: CategoryMode.EXISTING_SECTION }))))));
46
52
  }
@@ -166,6 +166,7 @@ div.pf-v6-c-pagination__nav-page-select {
166
166
 
167
167
  .pf-v6-c-accordion .pf-v6-c-accordion__toggle {
168
168
  padding: 1rem !important;
169
+ align-items: baseline;
169
170
  }
170
171
 
171
172
  .pf-v6-c-chip-group__list {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/manage",
3
- "version": "2.5.67",
3
+ "version": "2.5.70",
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.18.86",
48
+ "@cee-eng/hydrajs": "4.18.92",
49
49
  "@patternfly/patternfly": "6.2.1",
50
50
  "@patternfly/react-core": "6.2.1",
51
51
  "@patternfly/react-table": "6.2.1",
@@ -75,16 +75,16 @@
75
75
  "typescript": "^5.3.3"
76
76
  },
77
77
  "dependencies": {
78
- "@cee-eng/hydrajs": "4.18.86",
78
+ "@cee-eng/hydrajs": "4.18.92",
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.52",
82
+ "@rh-support/components": "2.5.55",
83
83
  "@rh-support/configs": "2.0.21",
84
- "@rh-support/react-context": "2.5.67",
84
+ "@rh-support/react-context": "2.5.70",
85
85
  "@rh-support/types": "2.0.5",
86
- "@rh-support/user-permissions": "2.5.25",
87
- "@rh-support/utils": "2.5.22",
86
+ "@rh-support/user-permissions": "2.5.26",
87
+ "@rh-support/utils": "2.5.23",
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": "40f7bb68143a6cd096c7b3ee2e524083317d6957"
106
+ "gitHead": "d0b8f81e23ac84c6fcfc2f68b7c19f44f11d28eb"
107
107
  }