@rh-support/manage 2.1.70 → 2.1.72-beta.2

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;AA4B3E,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,sBAmbxC,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;AA4B3E,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,sBAqbxC,CAAC"}
@@ -318,8 +318,8 @@ export const GroupSelect = (props) => {
318
318
  !showErrorMessage && showDropdown && (React.createElement(Dropdown, { className: "group-actions-dropdown group-action", onSelect: closeDropdown, toggle: dropdownToggle, isOpen: isDropdownOpen, "aria-label": t('Group actions dropdown'), isPlain: true, dropdownItems: dropdownItems })),
319
319
  !showErrorMessage && showInput && (React.createElement(React.Fragment, null,
320
320
  React.createElement(Select, { className: "group-select-input pf-v5-u-mr-sm", isDisabled: disableOnFetch, variant: SelectVariant.typeahead, "aria-label": t('Enter group name'), onToggle: onMultiSelect, onSelect: onMultiSelect, onClear: onMultiClear, onFilter: onChange, selections: input, isOpen: false, placeholderText: t('Enter group name') }),
321
- React.createElement("button", { ref: submitActionBtn, disabled: disableOnFetch || input.length === 0, className: "btn btn-app btn-link group-action", onClick: onAction, "aria-label": "Group action submit", "data-tracking-id": "group-action-submit" },
321
+ React.createElement("button", { ref: submitActionBtn, disabled: disableOnFetch || input.length === 0, className: "btn btn-app btn-link group-action", onClick: onAction, "aria-label": "Group action submit", "data-tracking-id": "group-action-submit", type: "button" },
322
322
  React.createElement(Trans, null, "Save")),
323
- React.createElement("button", { key: "cancel", onClick: onGroupActionCancel, className: "btn btn-app btn-link group-action", disabled: disableOnFetch, "data-tracking-id": "group-action-cancel", "aria-label": "Group action cancel" },
323
+ React.createElement("button", { key: "cancel", onClick: onGroupActionCancel, className: "btn btn-app btn-link group-action", disabled: disableOnFetch, "data-tracking-id": "group-action-cancel", "aria-label": "Group action cancel", type: "button" },
324
324
  React.createElement(Trans, null, "Cancel"))))));
325
325
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestCollaborationModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ManagePartnerships/RequestCollaborationModal.tsx"],"names":[],"mappings":"AAmBA,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,sBAoOtD,CAAC"}
1
+ {"version":3,"file":"RequestCollaborationModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ManagePartnerships/RequestCollaborationModal.tsx"],"names":[],"mappings":"AAmBA,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,sBAqOtD,CAAC"}
@@ -146,7 +146,7 @@ export const RequestCollaborationModal = (props) => {
146
146
  React.createElement("div", { className: "clip-content-wrapper code-block" },
147
147
  React.createElement("code", { ref: clipboardRef }, generatedUrl)),
148
148
  React.createElement(Tooltip, { position: TooltipPosition.top, content: clipboardText, trigger: "click" },
149
- React.createElement("button", { className: "nimbus-icon-clipboard clip-code-raw-btn xs-icon", "aria-hidden": "true", onClick: onClickOnCopyToClipboardButton, "data-tracking-id": "request-collaboration-link-copy-button" }))),
149
+ React.createElement("button", { className: "nimbus-icon-clipboard clip-code-raw-btn xs-icon", "aria-hidden": "true", onClick: onClickOnCopyToClipboardButton, "data-tracking-id": "request-collaboration-link-copy-button", type: "button" }))),
150
150
  React.createElement("p", { className: !isCopyClicked && isDoneClicked ? 'pf-v5-u-danger-color-100' : '' },
151
151
  React.createElement(Trans, null,
152
152
  ' ',
@@ -47,5 +47,5 @@ export function AddNewCategoryDropDown(props) {
47
47
  React.createElement(Trans, null, "Category"),
48
48
  ' ',
49
49
  React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")),
50
- React.createElement(Select, Object.assign({ variant: SelectVariant.typeahead, onToggle: (_event, isExpanded) => onToggle(isExpanded), isOpen: isOpen, onClear: onClearCategory, onSelect: onSelect, onFilter: onFilter, selections: selected, placeholderText: t('Select an option or enter a new category') }, (categories.isFetching && { loadingVariant: 'spinner' }), { id: "new-category", "data-tracking-id": "new-category" }), getCategoryOptions(availableCategories))));
50
+ React.createElement(Select, Object.assign({ variant: SelectVariant.typeahead, onToggle: (_event, isExpanded) => onToggle(isExpanded), isOpen: isOpen, onClear: onClearCategory, onSelect: onSelect, onFilter: onFilter, selections: selected === null || selected === void 0 ? void 0 : selected.categoryName, placeholderText: t('Select an option or enter a new category') }, (categories.isFetching && { loadingVariant: 'spinner' }), { id: "new-category", "data-tracking-id": "new-category" }), getCategoryOptions(availableCategories))));
51
51
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TopContentEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/TopContentManagement/TopContentEditor/TopContentEditor.tsx"],"names":[],"mappings":"AAeA,OAAO,KAA+C,MAAM,OAAO,CAAC;AA6BpE,wBAAgB,gBAAgB,sBAsT/B"}
1
+ {"version":3,"file":"TopContentEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/TopContentManagement/TopContentEditor/TopContentEditor.tsx"],"names":[],"mappings":"AAeA,OAAO,KAA+C,MAAM,OAAO,CAAC;AA6BpE,wBAAgB,gBAAgB,sBAyT/B"}
@@ -31,6 +31,7 @@ export function TopContentEditor() {
31
31
  const [categoryToOpen, setCategoryToOpen] = useState(null);
32
32
  const [isArrangingCats, setIsArrangingCats] = useState(false);
33
33
  const [newCategoryVersion, setNewCategoryVersion] = useState(undefined);
34
+ const [searchQuery, setSearchQuery] = useState('');
34
35
  const topContentResultsRef = useRef(null);
35
36
  const { topContentResponse, topContentEditState, isAddingCategory, isCatOnlyForMajorVersion, isSearchModeEnabled, selectedProduct, selectedVersion, categoryUsage, } = useTopContentContext();
36
37
  const topContentDispatch = useTopContentDispatchContext();
@@ -112,9 +113,9 @@ export function TopContentEditor() {
112
113
  React.createElement(TopContentHeader, null),
113
114
  !topContentResponse.isFetching && topContentResponse.isError && (React.createElement(Alert, { isInline: true, variant: AlertVariant.danger, title: React.createElement(Trans, null, "Error loading Top Content") })),
114
115
  React.createElement(TopContentProductVersionSelector, { selectedProduct: selectedProduct, selectedVersion: selectedVersion, onProductChange: onProductChange, onVersionChange: onVersionChange }),
115
- !topContentResponse.isFetching && (React.createElement(TopContentSearch, { dataTrackingId: "top-content-filter-manage", topContentData: flagContentEditState, onSearch: onSearch, topContentResultsWrapperRef: topContentResultsRef })),
116
+ !topContentResponse.isFetching && (React.createElement(TopContentSearch, { dataTrackingId: "top-content-filter-manage", topContentData: flagContentEditState, onSearch: onSearch, topContentResultsWrapperRef: topContentResultsRef, searchQuery: searchQuery, setSearchQuery: setSearchQuery })),
116
117
  React.createElement("div", { className: "top-content-manage-wrapper pf-v5-u-pt-md" },
117
- !topContentResponse.isFetching && !!filteredTC.length && React.createElement(TopContentSuggestion, null),
118
+ !topContentResponse.isFetching && !isSearchModeEnabled && React.createElement(TopContentSuggestion, null),
118
119
  topContentResponse.isFetching ? (React.createElement(Bullseye, null,
119
120
  React.createElement(EmptyState, { variant: EmptyStateVariant.full },
120
121
  React.createElement(Spinner, { size: "lg" })))) : (!topContentResponse.isFetching &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/manage",
3
- "version": "2.1.70",
3
+ "version": "2.1.72-beta.2",
4
4
  "description": "Customer Support Manage App",
5
5
  "author": "Jordan Eudy <jeudy100@gmail.com>",
6
6
  "license": "ISC",
@@ -78,12 +78,12 @@
78
78
  "@patternfly/patternfly": "5.1.0",
79
79
  "@patternfly/react-core": "5.1.1",
80
80
  "@patternfly/react-table": "5.1.1",
81
- "@rh-support/components": "2.1.51",
81
+ "@rh-support/components": "2.1.53-beta.2",
82
82
  "@rh-support/configs": "2.0.19",
83
- "@rh-support/react-context": "2.1.57",
83
+ "@rh-support/react-context": "2.1.59-beta.2",
84
84
  "@rh-support/types": "2.0.3",
85
- "@rh-support/user-permissions": "2.1.37",
86
- "@rh-support/utils": "2.1.27",
85
+ "@rh-support/user-permissions": "2.1.39",
86
+ "@rh-support/utils": "2.1.29",
87
87
  "@types/react-beautiful-dnd": "^13.0.0",
88
88
  "lodash": ">=4.17.15",
89
89
  "react": "18.2.0",
@@ -100,5 +100,5 @@
100
100
  "defaults and supports es6-module",
101
101
  "maintained node versions"
102
102
  ],
103
- "gitHead": "0656fddb2c411173b026e16b313d617b1dd6020a"
103
+ "gitHead": "fc0957464349fc66e4172a50976e05e8ddccc35e"
104
104
  }