@rh-support/react-context 1.0.19 → 1.0.20-beta.1

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.
@@ -59,5 +59,5 @@
59
59
 
60
60
  /* timeout text background color */
61
61
  .embeddedServiceSidebar .headerAnnouncement p {
62
- background-color: black;
62
+ background-color: #151515;
63
63
  }
@@ -40,17 +40,17 @@ export const useChatConfig = () => {
40
40
  };
41
41
  default:
42
42
  return {
43
- host: 'https://gss--qa.my.salesforce.com',
44
- sandBox: 'https://qa-gssdex.cs203.force.com/botchat',
43
+ host: 'https://gss.my.salesforce.com',
44
+ sandBox: 'https://gss.my.site.com/botchat',
45
45
  gslbBaseURL: 'https://service.force.com',
46
- key: '00D7j0000008oSo',
46
+ key: '00DA0000000HxWH',
47
47
  appName: 'RedHatChatBot',
48
48
  extra: {
49
- baseLiveAgentContentURL: 'https://c.la3-c1cs-ia4.salesforceliveagent.com/content',
50
- deploymentId: '5727j0000004CqR',
51
- buttonId: '5737j0000004CKB',
52
- baseLiveAgentURL: 'https://d.la3-c1cs-ia4.salesforceliveagent.com/chat',
53
- eswLiveAgentDevName: 'EmbeddedServiceLiveAgent_Parent04I7j000000CadEEAS_180b2280b37',
49
+ baseLiveAgentContentURL: 'https://c.la4-c1-ia5.salesforceliveagent.com/content',
50
+ deploymentId: '5726R000000sXtR',
51
+ buttonId: '5736R000000wk2n',
52
+ baseLiveAgentURL: 'https://d.la4-c1-ia5.salesforceliveagent.com/chat',
53
+ eswLiveAgentDevName: 'EmbeddedServiceLiveAgent_Parent04I6R000000wk2oUAA_180f4e169cb',
54
54
  isOfflineSupportEnabled: false,
55
55
  },
56
56
  };
@@ -51,7 +51,7 @@ export function useFeatureAnnouncement(featureName) {
51
51
  * If a feature is removed from the PCM config, then we can erase that data from the user preferences too
52
52
  */
53
53
  const cleanUpFeatureDataInUserPreference = () => {
54
- if (!featureName || isCleanupScheduled.current)
54
+ if (!featureName || hydraUserPreferences.isFetching || isCleanupScheduled.current)
55
55
  return;
56
56
  const allFeatures = userFeatureAnnouncementPreferences || {};
57
57
  const featureConfig = allFeatures[featureName];
@@ -67,7 +67,7 @@ export function useFeatureAnnouncement(featureName) {
67
67
  }
68
68
  };
69
69
  const onFeatureDismiss = () => {
70
- if (!featureName)
70
+ if (!featureName || hydraUserPreferences.isFetching)
71
71
  return;
72
72
  const allFeatures = userFeatureAnnouncementPreferences || {};
73
73
  const featureConfig = allFeatures[featureName] || {};
@@ -3,8 +3,10 @@ import { IBookmark, IBookmarkedGroupIds } from '../reducers/GlobalMetadataReduce
3
3
  export declare function useGroupedBookmarkApiCalls(username: string, bookmarkedGroupIds: IBookmarkedGroupIds): {
4
4
  isAddingBookmark: boolean;
5
5
  isRemovingBookmark: boolean;
6
+ isEditingBookmark: boolean;
6
7
  addBookmarksApiCall: (accounts: IBookmark[], group: string) => Promise<IBookmarkedAccounts>;
7
8
  removeAccountApiCalls: (account: IBookmark) => Promise<IBookmarkedAccounts>;
8
9
  removeGroupAccount: (rootBookmarkId: number) => Promise<void>;
10
+ editBookmarkApiCall: (accounts: IBookmark[], group: string, rootBookmarkID: number) => Promise<IBookmarkedAccounts>;
9
11
  };
10
12
  //# sourceMappingURL=useGroupedBookmarkApiCalls.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useGroupedBookmarkApiCalls.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGroupedBookmarkApiCalls.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AAGnF,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAEnF,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,EAAE,kBAAkB,EAAE,mBAAmB;;;oCAanD,SAAS,EAAE,SAAS,MAAM;qCAezB,SAAS;yCAJL,MAAM;EAyB3D"}
1
+ {"version":3,"file":"useGroupedBookmarkApiCalls.d.ts","sourceRoot":"","sources":["../../../src/hooks/useGroupedBookmarkApiCalls.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AAGnF,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAEnF,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,MAAM,EAAE,kBAAkB,EAAE,mBAAmB;;;;oCAiBnD,SAAS,EAAE,SAAS,MAAM;qCAezB,SAAS;yCAJL,MAAM;oCAkBX,SAAS,EAAE,SAAS,MAAM,kBAAkB,MAAM;EAuBlG"}
@@ -15,6 +15,7 @@ export function useGroupedBookmarkApiCalls(username, bookmarkedGroupIds) {
15
15
  const { request: removeWholeBookmark } = useFetch(publicApi.utilsBookmark.removeWholeBookmark, {
16
16
  propgateErrors: true,
17
17
  });
18
+ const { request: updateBookmark, isFetching: isEditingBookmark } = useFetch(publicApi.utilsBookmark.updateBookmark, { propgateErrors: true });
18
19
  const addBookmarksApiCall = (accounts, group) => __awaiter(this, void 0, void 0, function* () {
19
20
  return yield addMultipleBookmarks({
20
21
  namespace: { id: bookmarkedGroupIds.namespaceId },
@@ -36,11 +37,23 @@ export function useGroupedBookmarkApiCalls(username, bookmarkedGroupIds) {
36
37
  }
37
38
  return response;
38
39
  });
40
+ const editBookmarkApiCall = (accounts, group, rootBookmarkID) => __awaiter(this, void 0, void 0, function* () {
41
+ return yield updateBookmark({
42
+ namespace: { id: bookmarkedGroupIds.namespaceId },
43
+ app: { id: bookmarkedGroupIds.appId },
44
+ valueType: { id: bookmarkedGroupIds.valueTypeId },
45
+ username,
46
+ name: group,
47
+ values: accounts.map((account) => ({ value: account.accountNumber })),
48
+ }, rootBookmarkID.toString());
49
+ });
39
50
  return {
40
51
  isAddingBookmark,
41
52
  isRemovingBookmark,
53
+ isEditingBookmark,
42
54
  addBookmarksApiCall,
43
55
  removeAccountApiCalls,
44
56
  removeGroupAccount,
57
+ editBookmarkApiCall,
45
58
  };
46
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/react-context",
3
- "version": "1.0.19",
3
+ "version": "1.0.20-beta.1",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -44,10 +44,10 @@
44
44
  "@cee-eng/hydrajs": "4.14.53",
45
45
  "@patternfly/react-core": "4.264.0",
46
46
  "@patternfly/react-icons": "4.92.10",
47
- "@rh-support/components": "1.2.14",
47
+ "@rh-support/components": "1.2.14-beta.1",
48
48
  "@rh-support/types": "0.2.0",
49
- "@rh-support/user-permissions": "1.0.11",
50
- "@rh-support/utils": "1.0.9",
49
+ "@rh-support/user-permissions": "1.0.11-beta.0",
50
+ "@rh-support/utils": "1.0.9-beta.0",
51
51
  "i18next": "^19.0.1",
52
52
  "localforage": "^1.7.3",
53
53
  "lodash": "^4.17.21",
@@ -90,5 +90,5 @@
90
90
  "not ie <= 11",
91
91
  "not op_mini all"
92
92
  ],
93
- "gitHead": "df23c68f566e8b933a0dcfb1535286bd319cdd80"
93
+ "gitHead": "6c1a70b15a2cb1a2a1e376d9d45890cbc588f34a"
94
94
  }