@rh-support/manage 2.1.94 → 2.1.96
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.
- package/lib/esm/ManageTabs.d.ts.map +1 -1
- package/lib/esm/ManageTabs.js +11 -1
- package/lib/esm/Routes.d.ts +1 -0
- package/lib/esm/Routes.d.ts.map +1 -1
- package/lib/esm/Routes.js +6 -0
- package/lib/esm/components/ManageBookmarkedAccountsTab/BookmarkAccountSelector.d.ts.map +1 -1
- package/lib/esm/components/ManageBookmarkedAccountsTab/BookmarkAccountSelector.js +6 -1
- package/lib/esm/components/ManageExpiredContents/ExpiredContentCategory.d.ts +9 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentCategory.d.ts.map +1 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentCategory.js +18 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentHeader.d.ts +3 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentHeader.d.ts.map +1 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentHeader.js +9 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentManagement.d.ts +3 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentManagement.d.ts.map +1 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentManagement.js +13 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentManager.d.ts +3 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentManager.d.ts.map +1 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentManager.js +70 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentSingleItem.d.ts +9 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentSingleItem.d.ts.map +1 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentSingleItem.js +77 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentSingleItemView.d.ts +14 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentSingleItemView.d.ts.map +1 -0
- package/lib/esm/components/ManageExpiredContents/ExpiredContentSingleItemView.js +141 -0
- package/lib/esm/components/ManageExpiredContents/index.d.ts +2 -0
- package/lib/esm/components/ManageExpiredContents/index.d.ts.map +1 -0
- package/lib/esm/components/ManageExpiredContents/index.js +1 -0
- package/lib/esm/components/ManageTags/TagsManager.d.ts.map +1 -1
- package/lib/esm/components/ManageTags/TagsManager.js +20 -7
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentSingleItem.d.ts +2 -0
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentSingleItem.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentCategoryContent/TopContentSingleItem.js +75 -20
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentEditor.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentEditor.js +7 -5
- package/lib/esm/context/ExpiredContentContextProvider.d.ts +8 -0
- package/lib/esm/context/ExpiredContentContextProvider.d.ts.map +1 -0
- package/lib/esm/context/ExpiredContentContextProvider.js +10 -0
- package/lib/esm/context/TopContentProvider.d.ts.map +1 -1
- package/lib/esm/context/TopContentProvider.js +1 -0
- package/lib/esm/index.d.ts +1 -0
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js +1 -0
- package/lib/esm/reducers/ExpiredContentReducer.d.ts +35 -0
- package/lib/esm/reducers/ExpiredContentReducer.d.ts.map +1 -0
- package/lib/esm/reducers/ExpiredContentReducer.js +190 -0
- package/lib/esm/reducers/TopContentReducer.d.ts +5 -1
- package/lib/esm/reducers/TopContentReducer.d.ts.map +1 -1
- package/lib/esm/reducers/TopContentReducer.js +23 -7
- package/package.json +8 -8
|
@@ -39,9 +39,10 @@ export var TopContentReducerConstants;
|
|
|
39
39
|
TopContentReducerConstants["resetDuplicatUrls"] = "resetDuplicatUrls";
|
|
40
40
|
TopContentReducerConstants["getTopContentResourceUsage"] = "getTopContentResourceUsage";
|
|
41
41
|
TopContentReducerConstants["setTopContentSuggestions"] = "setTopContentSuggestions";
|
|
42
|
+
TopContentReducerConstants["updateFilteredTags"] = "updateFilteredTags";
|
|
42
43
|
})(TopContentReducerConstants || (TopContentReducerConstants = {}));
|
|
43
44
|
export const TopContentReducer = (pState, action) => {
|
|
44
|
-
var _a, _b;
|
|
45
|
+
var _a, _b, _c;
|
|
45
46
|
switch (action.type) {
|
|
46
47
|
case TopContentReducerConstants.resetContentWithSelectedProduct: {
|
|
47
48
|
return Object.assign(Object.assign({}, intialTopContentContext), { selectedProduct: Object.assign({}, action.payload.selectedProduct) });
|
|
@@ -79,6 +80,9 @@ export const TopContentReducer = (pState, action) => {
|
|
|
79
80
|
case TopContentReducerConstants.setTopContentSuggestions: {
|
|
80
81
|
return Object.assign(Object.assign({}, pState), { suggestion: (_b = action.payload) === null || _b === void 0 ? void 0 : _b.suggestion });
|
|
81
82
|
}
|
|
83
|
+
case TopContentReducerConstants.updateFilteredTags: {
|
|
84
|
+
return Object.assign(Object.assign({}, pState), { filteredTags: (_c = action.payload) === null || _c === void 0 ? void 0 : _c.filteredTags });
|
|
85
|
+
}
|
|
82
86
|
default: {
|
|
83
87
|
return pState;
|
|
84
88
|
}
|
|
@@ -331,14 +335,17 @@ export const saveAddedNewSectionContents = (dispatch, topContentEditState, selec
|
|
|
331
335
|
topContentMasterDataId,
|
|
332
336
|
contentTitle: newContent.contentTitle,
|
|
333
337
|
contentUrl: newContent.contentUrl,
|
|
338
|
+
expiryDate: newContent.expiryDate,
|
|
334
339
|
categoryName: selectedCategory.categoryName,
|
|
335
340
|
categoryId: selectedCategory.id,
|
|
336
341
|
isActive: 1,
|
|
337
342
|
};
|
|
338
343
|
const res = yield pcm.topContent.postTopContent({ topContents: [toAdd] });
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
344
|
+
if (!isEmpty(newContent.tagList)) {
|
|
345
|
+
yield pcm.topContentTag.updateTagsOfTopContent({
|
|
346
|
+
topContents: [{ id: res.topContents[0].id, tagList: newContent.tagList }],
|
|
347
|
+
});
|
|
348
|
+
}
|
|
342
349
|
const newSavedContent = res.topContents[0];
|
|
343
350
|
const oldCat = {
|
|
344
351
|
id: -1,
|
|
@@ -381,12 +388,15 @@ export const saveAddToTopContent = (dispatch, topContentEditState, id, categoryI
|
|
|
381
388
|
contentTitle: content.contentTitle,
|
|
382
389
|
contentUrl: content.contentUrl,
|
|
383
390
|
contentRank: index,
|
|
391
|
+
expiryDate: content.expiryDate,
|
|
384
392
|
isActive: 1,
|
|
385
393
|
};
|
|
386
394
|
const res = yield pcm.topContent.postTopContent({ topContents: [toAdd] });
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
395
|
+
if (!isEmpty(content.tagList)) {
|
|
396
|
+
yield pcm.topContentTag.updateTagsOfTopContent({
|
|
397
|
+
topContents: [{ id: res.topContents[0].id, tagList: content.tagList }],
|
|
398
|
+
});
|
|
399
|
+
}
|
|
390
400
|
const newTopContentEditState = [...topContentEditState];
|
|
391
401
|
newTopContentEditState.forEach((cat) => {
|
|
392
402
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -553,6 +563,12 @@ export const resetDuplicatUrls = (dispatch) => {
|
|
|
553
563
|
payload: { contentUrls: {} },
|
|
554
564
|
});
|
|
555
565
|
};
|
|
566
|
+
export const setFilteredTags = (dispatch, tags) => {
|
|
567
|
+
dispatch({
|
|
568
|
+
type: TopContentReducerConstants.updateFilteredTags,
|
|
569
|
+
payload: { filteredTags: tags },
|
|
570
|
+
});
|
|
571
|
+
};
|
|
556
572
|
/**
|
|
557
573
|
* This function is used for to get top content suggestions from server
|
|
558
574
|
* @param dispatch TopContentReducerDispatchType
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/manage",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.96",
|
|
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.
|
|
48
|
+
"@cee-eng/hydrajs": "4.17.24",
|
|
49
49
|
"@patternfly/patternfly": "5.1.0",
|
|
50
50
|
"@patternfly/react-core": "5.1.1",
|
|
51
51
|
"@patternfly/react-table": "5.1.1",
|
|
@@ -75,16 +75,16 @@
|
|
|
75
75
|
"typescript": "^5.3.3"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@cee-eng/hydrajs": "4.17.
|
|
78
|
+
"@cee-eng/hydrajs": "4.17.24",
|
|
79
79
|
"@patternfly/patternfly": "5.1.0",
|
|
80
80
|
"@patternfly/react-core": "5.1.1",
|
|
81
81
|
"@patternfly/react-table": "5.1.1",
|
|
82
|
-
"@rh-support/components": "2.1.
|
|
82
|
+
"@rh-support/components": "2.1.74",
|
|
83
83
|
"@rh-support/configs": "2.0.20",
|
|
84
|
-
"@rh-support/react-context": "2.1.
|
|
84
|
+
"@rh-support/react-context": "2.1.82",
|
|
85
85
|
"@rh-support/types": "2.0.4",
|
|
86
|
-
"@rh-support/user-permissions": "2.1.
|
|
87
|
-
"@rh-support/utils": "2.1.
|
|
86
|
+
"@rh-support/user-permissions": "2.1.49",
|
|
87
|
+
"@rh-support/utils": "2.1.38",
|
|
88
88
|
"@types/react-beautiful-dnd": "^13.0.0",
|
|
89
89
|
"lodash": ">=4.17.15",
|
|
90
90
|
"mark.js": "^8.11.1",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"defaults and supports es6-module",
|
|
103
103
|
"maintained node versions"
|
|
104
104
|
],
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "87ee594dd371e4838eb7ff7d381f548ce8ae2b94"
|
|
106
106
|
}
|