@rh-support/troubleshoot 2.2.129-beta.5 → 2.2.129-beta.7

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":"ContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/ContactPhoneNumber.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAkB/D,wBAAgB,kBAAkB,sBA2OjC"}
1
+ {"version":3,"file":"ContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/ContactPhoneNumber.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAkB/D,wBAAgB,kBAAkB,sBA6UjC"}
@@ -22,7 +22,7 @@ import { RouteContext } from '../../context/RouteContext';
22
22
  import { PHONE_LIMIT } from '../../reducers/CaseConstNTypes';
23
23
  import { setCaseDetails } from '../../reducers/CaseReducer';
24
24
  import { PDFContext } from '../CaseEditView/PDFContainer';
25
- import { trimAndReplacePlus } from '../shared/utils';
25
+ import { removeAllChars, trimAndReplacePlus } from '../shared/utils';
26
26
  import { ContactPhoneNumberPopOver } from './ContactPhoneNumberPopOver';
27
27
  import MandatoryPhonePopOver from './MandatoryPhonePopOver';
28
28
  export function ContactPhoneNumber() {
@@ -36,7 +36,10 @@ export function ContactPhoneNumber() {
36
36
  const { routeState: { isNextBtnClickedToShowValidationError }, } = useContext(RouteContext);
37
37
  const { globalMetadataState: { loggedInUser }, } = useContext(GlobalMetadataStateContext);
38
38
  const [invalid, setInvalid] = useState(false);
39
- const [localFullPhone, setLocalFullPhone] = useState(phoneCountryCode + ' ' + phoneAreaCodePrefixLineNumber);
39
+ const [shouldNotSetCountryCode, setShouldNotSetCountryCode] = useState(false);
40
+ const [portalPhone, setPortalPhone] = useState('');
41
+ const [localFullPhone, setLocalFullPhone] = useState('');
42
+ const [isSettingLocalPhone, setIsSettingLocalPhone] = useState(false);
40
43
  const [isFetchingSso, setIsFetchingSso] = useState(false);
41
44
  const { isExportingPDF } = useContext(PDFContext);
42
45
  const getPhone = () => phoneCountryCode + ' ' + phoneAreaCodePrefixLineNumber;
@@ -46,7 +49,7 @@ export function ContactPhoneNumber() {
46
49
  if (isEqual(_localFullPhone.trim(), '+')) {
47
50
  return '';
48
51
  }
49
- else if (!isEmpty(_localFullPhone) && !_localFullPhone.startsWith('+')) {
52
+ else if (!isEmpty(_localFullPhone.trim()) && !_localFullPhone.trim().startsWith('+')) {
50
53
  return '+' + _localFullPhone.replace(' ', '');
51
54
  }
52
55
  else {
@@ -55,10 +58,21 @@ export function ContactPhoneNumber() {
55
58
  };
56
59
  const onPhoneChange = (fullPhone) => {
57
60
  setLocalFullPhone(checkingPlusInLocalFullPhone(fullPhone));
58
- setCaseDetails(caseDispatch, {
59
- phoneAreaCodePrefixLineNumber: getPhoneObj(fullPhone).phoneLine,
60
- phoneCountryCode: getPhoneObj(fullPhone).countryCode,
61
- });
61
+ if (!shouldNotSetCountryCode) {
62
+ setCaseDetails(caseDispatch, {
63
+ phoneAreaCodePrefixLineNumber: getPhoneObj(fullPhone).phoneLine,
64
+ phoneCountryCode: getPhoneObj(fullPhone).countryCode,
65
+ });
66
+ }
67
+ else {
68
+ if (!isEmpty(fullPhone) && !isEqual(removeAllChars(portalPhone), removeAllChars(fullPhone))) {
69
+ setShouldNotSetCountryCode(false);
70
+ }
71
+ setCaseDetails(caseDispatch, {
72
+ phoneAreaCodePrefixLineNumber: checkingPlusInLocalFullPhone(fullPhone),
73
+ phoneCountryCode: '',
74
+ });
75
+ }
62
76
  };
63
77
  const onCountryCodeChange = (phoneCountryCode) => {
64
78
  setCaseDetails(caseDispatch, { phoneCountryCode });
@@ -86,84 +100,153 @@ export function ContactPhoneNumber() {
86
100
  : invalid
87
101
  ? ValidatedOptions.error
88
102
  : ValidatedOptions.default;
103
+ // Regular expression pattern to match hyphens and round brackets in phone
104
+ const pattern = /[-()]/g;
89
105
  // This useEffect initialize phone number inputbox
90
106
  // - User open case for first time for herself/himself -> show portal phone number
91
107
  // - User open case for NOT first time for herself/himself -> show phone number that we have on user contact in SF
92
108
  useEffect(() => {
93
- if (isEmpty(loggedInUser.data.phone) &&
94
- isEmpty(loggedInUser.data.supportPhoneAreaCodePrefixLineNumber) &&
95
- isEmpty(loggedInUser.data.supportPhoneCountryCode))
96
- setLocalFullPhone('');
97
- const initContactPhoneNumber = () => __awaiter(this, void 0, void 0, function* () {
98
- let _phoneAreaCodePrefixLineNumber;
99
- let _phoneCountryCode;
100
- let _suppliedPhoneNumberVerified;
101
- // logged in user and case owner are the same
102
- if (contactSSOName === loggedInUser.data.ssoUsername) {
103
- if (loggedInUser.data.supportPhoneAreaCodePrefixLineNumber) {
104
- // User has opened a case before and has phone and area code in her/his contact on SF
105
- _phoneAreaCodePrefixLineNumber = loggedInUser.data.supportPhoneAreaCodePrefixLineNumber;
106
- _phoneCountryCode = loggedInUser.data.supportPhoneCountryCode;
107
- _suppliedPhoneNumberVerified =
108
- isEqual(hasLoggedInUserConfirmedPhoneNumber, 'True') ||
109
- isEqual(hasLoggedInUserConfirmedPhoneNumber, 'Deferred')
110
- ? hasLoggedInUserConfirmedPhoneNumber
111
- : 'False';
109
+ const getPhoneInfo = () => __awaiter(this, void 0, void 0, function* () {
110
+ if (isEmpty(loggedInUser.data.phone) &&
111
+ isEmpty(loggedInUser.data.supportPhoneAreaCodePrefixLineNumber) &&
112
+ isEmpty(loggedInUser.data.supportPhoneCountryCode))
113
+ setLocalFullPhone('');
114
+ setIsSettingLocalPhone(true);
115
+ const initContactPhoneNumber = () => __awaiter(this, void 0, void 0, function* () {
116
+ let _phoneAreaCodePrefixLineNumber;
117
+ let _phoneCountryCode;
118
+ let _suppliedPhoneNumberVerified;
119
+ // logged in user and case owner are the same
120
+ if (contactSSOName === loggedInUser.data.ssoUsername) {
121
+ if (loggedInUser.data.supportPhoneAreaCodePrefixLineNumber) {
122
+ // User has opened a case before and has phone and area code in her/his contact on SF
123
+ _phoneAreaCodePrefixLineNumber = loggedInUser.data.supportPhoneAreaCodePrefixLineNumber;
124
+ _phoneCountryCode = loggedInUser.data.supportPhoneCountryCode;
125
+ _suppliedPhoneNumberVerified =
126
+ isEqual(hasLoggedInUserConfirmedPhoneNumber, 'True') ||
127
+ isEqual(hasLoggedInUserConfirmedPhoneNumber, 'Deferred')
128
+ ? hasLoggedInUserConfirmedPhoneNumber
129
+ : 'False';
130
+ }
131
+ else {
132
+ // User is openning a case for the first time
133
+ const phoneLength = trimAndReplacePlus(loggedInUser.data.phone).replace(pattern, '').length;
134
+ // For first time user whose phone is fetched from portal without country code
135
+ // For phone length less or equal to 10 country code shouldn't be fetched to avoid faulty phone population
136
+ if (phoneLength > 10) {
137
+ const phoneLine = getPhoneObj(loggedInUser.data.phone).phoneLine || '';
138
+ const countryCode = getPhoneObj(loggedInUser.data.phone).countryCode;
139
+ _phoneAreaCodePrefixLineNumber = phoneLine;
140
+ _phoneCountryCode = countryCode;
141
+ }
142
+ else {
143
+ _phoneAreaCodePrefixLineNumber = loggedInUser.data.phone;
144
+ _phoneCountryCode = '';
145
+ setShouldNotSetCountryCode(true);
146
+ setPortalPhone(loggedInUser.data.phone);
147
+ }
148
+ _suppliedPhoneNumberVerified =
149
+ isEqual(hasLoggedInUserConfirmedPhoneNumber, 'True') ||
150
+ isEqual(hasLoggedInUserConfirmedPhoneNumber, 'Deferred')
151
+ ? hasLoggedInUserConfirmedPhoneNumber
152
+ : 'False';
153
+ }
112
154
  }
113
155
  else {
114
- // User is openning a case for the first time
115
- const phoneLine = getPhoneObj(loggedInUser.data.phone).phoneLine || '';
116
- const countryCode = getPhoneObj(loggedInUser.data.phone).countryCode;
117
- _phoneAreaCodePrefixLineNumber = phoneLine;
118
- _phoneCountryCode = countryCode;
119
- _suppliedPhoneNumberVerified =
120
- isEqual(hasLoggedInUserConfirmedPhoneNumber, 'True') ||
121
- isEqual(hasLoggedInUserConfirmedPhoneNumber, 'Deferred')
122
- ? hasLoggedInUserConfirmedPhoneNumber
123
- : 'False';
156
+ // user is openning case for others (use is partner or red hatter)
157
+ try {
158
+ if (!contactSSOName)
159
+ return;
160
+ setIsFetchingSso(true);
161
+ const selectedContact = yield contacts.getSFDCContactBySso(contactSSOName);
162
+ setIsFetchingSso(false);
163
+ if (selectedContact.supportPhoneAreaCodePrefixLineNumber) {
164
+ _phoneAreaCodePrefixLineNumber = selectedContact.supportPhoneAreaCodePrefixLineNumber;
165
+ _phoneCountryCode = selectedContact.supportPhoneCountryCode;
166
+ _suppliedPhoneNumberVerified = 'Deferred';
167
+ }
168
+ else {
169
+ const phoneLength = trimAndReplacePlus(selectedContact.phone).replace(pattern, '').length;
170
+ if (phoneLength > 10) {
171
+ _phoneAreaCodePrefixLineNumber = getPhoneObj(selectedContact.phone).phoneLine || '';
172
+ _phoneCountryCode = getPhoneObj(selectedContact.phone).countryCode || '';
173
+ }
174
+ else {
175
+ _phoneAreaCodePrefixLineNumber = selectedContact.phone;
176
+ _phoneCountryCode = '';
177
+ setShouldNotSetCountryCode(true);
178
+ setPortalPhone(selectedContact.phone);
179
+ }
180
+ _suppliedPhoneNumberVerified = 'Deferred';
181
+ }
182
+ }
183
+ catch (e) {
184
+ _phoneAreaCodePrefixLineNumber = '';
185
+ _phoneCountryCode = '';
186
+ _suppliedPhoneNumberVerified = 'False';
187
+ setIsFetchingSso(false);
188
+ }
124
189
  }
190
+ setCaseDetails(caseDispatch, {
191
+ phoneAreaCodePrefixLineNumber: _phoneAreaCodePrefixLineNumber,
192
+ phoneCountryCode: _phoneCountryCode,
193
+ suppliedPhoneNumberVerified: _suppliedPhoneNumberVerified,
194
+ });
195
+ let _localFullPhone = _phoneCountryCode + ' ' + _phoneAreaCodePrefixLineNumber;
196
+ setLocalFullPhone(checkingPlusInLocalFullPhone(_localFullPhone));
197
+ setIsSettingLocalPhone(false);
198
+ });
199
+ // if phone not initialized with portal and user contact value, initialize it else populate phone inputbox
200
+ if (isEmpty(phoneAreaCodePrefixLineNumber) && isEmpty(phoneCountryCode)) {
201
+ initContactPhoneNumber();
125
202
  }
126
203
  else {
127
- // user is openning case for others (use is partner or red hatter)
128
- try {
129
- if (!contactSSOName)
130
- return;
131
- setIsFetchingSso(true);
132
- const selectedContact = yield contacts.getSFDCContactBySso(contactSSOName);
133
- setIsFetchingSso(false);
134
- if (selectedContact.supportPhoneAreaCodePrefixLineNumber) {
135
- _phoneAreaCodePrefixLineNumber = selectedContact.supportPhoneAreaCodePrefixLineNumber;
136
- _phoneCountryCode = selectedContact.supportPhoneCountryCode;
137
- _suppliedPhoneNumberVerified = 'Deferred';
204
+ let phoneLength;
205
+ let portalPhone;
206
+ let supportPhone;
207
+ setIsSettingLocalPhone(true);
208
+ const getSelectedContactPhoneInfo = () => __awaiter(this, void 0, void 0, function* () {
209
+ try {
210
+ if (!contactSSOName)
211
+ return;
212
+ const selectedContact = yield contacts.getSFDCContactBySso(contactSSOName);
213
+ if (isEmpty(selectedContact.supportPhoneAreaCodePrefixLineNumber) &&
214
+ !isEmpty(selectedContact.phone)) {
215
+ portalPhone = selectedContact.phone;
216
+ phoneLength = trimAndReplacePlus(portalPhone).replace(pattern, '').length;
217
+ supportPhone = selectedContact.supportPhoneAreaCodePrefixLineNumber;
218
+ }
138
219
  }
139
- else {
140
- _phoneAreaCodePrefixLineNumber = getPhoneObj(selectedContact.phone).phoneLine || '';
141
- _phoneCountryCode = getPhoneObj(selectedContact.phone).countryCode || '';
142
- _suppliedPhoneNumberVerified = 'Deferred';
220
+ catch (e) {
221
+ portalPhone = '';
222
+ supportPhone = '';
223
+ phoneLength = 0;
224
+ }
225
+ });
226
+ // logged in user and case owner are the same
227
+ if (contactSSOName === loggedInUser.data.ssoUsername) {
228
+ if (isEmpty(loggedInUser.data.supportPhoneAreaCodePrefixLineNumber) &&
229
+ !isEmpty(loggedInUser.data.phone)) {
230
+ portalPhone = loggedInUser.data.phone;
231
+ phoneLength = trimAndReplacePlus(portalPhone).replace(pattern, '').length;
232
+ supportPhone = loggedInUser.data.supportPhoneAreaCodePrefixLineNumber;
143
233
  }
144
234
  }
145
- catch (e) {
146
- _phoneAreaCodePrefixLineNumber = '';
147
- _phoneCountryCode = '';
148
- _suppliedPhoneNumberVerified = 'False';
149
- setIsFetchingSso(false);
235
+ else {
236
+ // user is openning case for others (use is partner or red hatter)
237
+ yield getSelectedContactPhoneInfo();
238
+ }
239
+ if ((isUndefined(supportPhone) || isEmpty(supportPhone)) &&
240
+ isEqual(removeAllChars(portalPhone), removeAllChars(phoneCountryCode + ' ' + phoneAreaCodePrefixLineNumber)) &&
241
+ phoneLength <= 10) {
242
+ setShouldNotSetCountryCode(true);
243
+ setPortalPhone(portalPhone);
150
244
  }
245
+ setLocalFullPhone(checkingPlusInLocalFullPhone(phoneCountryCode + ' ' + phoneAreaCodePrefixLineNumber));
246
+ setIsSettingLocalPhone(false);
151
247
  }
152
- setCaseDetails(caseDispatch, {
153
- phoneAreaCodePrefixLineNumber: _phoneAreaCodePrefixLineNumber,
154
- phoneCountryCode: _phoneCountryCode,
155
- suppliedPhoneNumberVerified: _suppliedPhoneNumberVerified,
156
- });
157
- let _localFullPhone = _phoneCountryCode + ' ' + _phoneAreaCodePrefixLineNumber;
158
- setLocalFullPhone(checkingPlusInLocalFullPhone(_localFullPhone));
159
248
  });
160
- // if phone not initialized with portal and user contact value, initialize it else populate phone inputbox
161
- if (isEmpty(phoneAreaCodePrefixLineNumber) && isEmpty(phoneCountryCode)) {
162
- initContactPhoneNumber();
163
- }
164
- else {
165
- setLocalFullPhone(checkingPlusInLocalFullPhone(phoneCountryCode + ' ' + phoneAreaCodePrefixLineNumber));
166
- }
249
+ getPhoneInfo();
167
250
  // eslint-disable-next-line react-hooks/exhaustive-deps
168
251
  }, [contactSSOName]);
169
252
  return (React.createElement("div", { className: "form-group", style: { minWidth: '200px' } },
@@ -171,7 +254,7 @@ export function ContactPhoneNumber() {
171
254
  React.createElement(Trans, null, "Case owner's phone number"),
172
255
  React.createElement("span", { className: `form-required ${isExportingPDF ? 'hide-in-pdf' : ''}`, "aria-hidden": true }, "*"),
173
256
  ContactPhoneNumberPopOver()),
174
- React.createElement(PhoneInput, { phoneValue: localFullPhone, onPhoneValueChange: onPhoneChange, onCountryCodeChange: onCountryCodeChange, validations: isPhoneNumberValid, invalid: invalid, setInvalid: setInvalid, isLoading: isFetchingSso }),
257
+ React.createElement(PhoneInput, { phoneValue: localFullPhone, countryCode: phoneCountryCode, onPhoneValueChange: onPhoneChange, onCountryCodeChange: onCountryCodeChange, validations: isPhoneNumberValid, invalid: invalid, setInvalid: setInvalid, isLoading: isFetchingSso || isSettingLocalPhone, shouldNotSetCountryCode: shouldNotSetCountryCode }),
175
258
  React.createElement(MandatoryPhonePopOver, null),
176
259
  !invalid &&
177
260
  getPhone().length < PHONE_LIMIT &&
@@ -13,5 +13,7 @@ import { CaseValuesToWatch } from './Constants';
13
13
  export declare function getChangedValueTooltip<T>(valueNameCb: (current: T, previous: T) => CaseValuesToWatch, accessor?: (value: T, otherValue: T) => any): (currentValue: T, previousValue: T) => React.JSX.Element;
14
14
  export declare const isPhoneValid: (countryCode: string, phoneLine: string) => boolean;
15
15
  export declare const trimAndReplacePlus: (value: string) => string;
16
+ export declare const removeAllSpaces: (value: string) => string;
17
+ export declare const removeAllChars: (value: string) => string;
16
18
  export declare const getProductObj: (products: Partial<ISEProduct>[], product: string) => Partial<ISEProduct>;
17
19
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAGpE,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EACpC,WAAW,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,iBAAiB,EAC3D,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,KAAK,GAAG,kBAErB,CAAC,iBAAiB,CAAC,uBAQ5C;AAED,eAAO,MAAM,YAAY,gBAAiB,MAAM,aAAa,MAAM,KAAG,OAarE,CAAC;AAEF,eAAO,MAAM,kBAAkB,UAAW,MAAM,WAG/C,CAAC;AAEF,eAAO,MAAM,aAAa,aAAc,QAAQ,UAAU,CAAC,EAAE,WAAW,MAAM,wBAG7E,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAGpE,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EACpC,WAAW,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,iBAAiB,EAC3D,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,KAAK,GAAG,kBAErB,CAAC,iBAAiB,CAAC,uBAQ5C;AAED,eAAO,MAAM,YAAY,gBAAiB,MAAM,aAAa,MAAM,KAAG,OAarE,CAAC;AAEF,eAAO,MAAM,kBAAkB,UAAW,MAAM,WAG/C,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,MAAM,WAI5C,CAAC;AAEF,eAAO,MAAM,cAAc,UAAW,MAAM,WAI3C,CAAC;AAEF,eAAO,MAAM,aAAa,aAAc,QAAQ,UAAU,CAAC,EAAE,WAAW,MAAM,wBAG7E,CAAC"}
@@ -43,6 +43,18 @@ export const trimAndReplacePlus = (value) => {
43
43
  return '';
44
44
  return (_a = value === null || value === void 0 ? void 0 : value.trim()) === null || _a === void 0 ? void 0 : _a.replace('+', '');
45
45
  };
46
+ export const removeAllSpaces = (value) => {
47
+ if (!value)
48
+ return '';
49
+ // to remove all trailing and in between spaces
50
+ return value === null || value === void 0 ? void 0 : value.replace(/\s+/g, '');
51
+ };
52
+ export const removeAllChars = (value) => {
53
+ if (!value)
54
+ return '';
55
+ // to remove all chars, brackets and have only digits
56
+ return value === null || value === void 0 ? void 0 : value.replace(/[^0-9]/g, '');
57
+ };
46
58
  export const getProductObj = (products, product) => {
47
59
  const productIndex = findIndex(products, (p) => p.product === product);
48
60
  return productIndex === -1 ? {} : products[productIndex];
@@ -20,6 +20,6 @@ export declare enum CaseRecommendationEvalEnum {
20
20
  }
21
21
  export declare const PHONE_LINE_CANNOT_BE_EMPTY = "Phone number cannot be empty when country code is given.";
22
22
  export declare const PHONE_NO_CHAR_ERROR = "Phone number can only have digits.";
23
- export declare const PHONE_IS_NOT_VALID = "Phone number is invalid.";
23
+ export declare const PHONE_IS_NOT_VALID = "Phone number without country code is invalid.";
24
24
  export declare const PHONE_INSTRUCTION = "A current phone number with the country code helps us support you better.";
25
25
  //# sourceMappingURL=caseDetailsConstants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"caseDetailsConstants.d.ts","sourceRoot":"","sources":["../../../src/constants/caseDetailsConstants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oCAAoC,yBAAyB,CAAC;AAE3E,oBAAY,mBAAmB;IAC3B,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,UAAU,gBAAgB;IAC1B,aAAa,kBAAkB;IAC/B,OAAO,YAAY;CACtB;AAED,oBAAY,cAAc;IACtB,MAAM,WAAW;IACjB,mBAAmB,wBAAwB;IAC3C,iBAAiB,uBAAuB;CAC3C;AAED,oBAAY,0BAA0B;IAClC,OAAO,MAAM;IACb,WAAW,OAAO;IAClB,OAAO,MAAM;CAChB;AAED,eAAO,MAAM,0BAA0B,6DAA6D,CAAC;AAErG,eAAO,MAAM,mBAAmB,uCAAuC,CAAC;AAExE,eAAO,MAAM,kBAAkB,6BAA6B,CAAC;AAE7D,eAAO,MAAM,iBAAiB,8EAA8E,CAAC"}
1
+ {"version":3,"file":"caseDetailsConstants.d.ts","sourceRoot":"","sources":["../../../src/constants/caseDetailsConstants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oCAAoC,yBAAyB,CAAC;AAE3E,oBAAY,mBAAmB;IAC3B,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAC3B,aAAa,kBAAkB;IAC/B,UAAU,gBAAgB;IAC1B,aAAa,kBAAkB;IAC/B,OAAO,YAAY;CACtB;AAED,oBAAY,cAAc;IACtB,MAAM,WAAW;IACjB,mBAAmB,wBAAwB;IAC3C,iBAAiB,uBAAuB;CAC3C;AAED,oBAAY,0BAA0B;IAClC,OAAO,MAAM;IACb,WAAW,OAAO;IAClB,OAAO,MAAM;CAChB;AAED,eAAO,MAAM,0BAA0B,6DAA6D,CAAC;AAErG,eAAO,MAAM,mBAAmB,uCAAuC,CAAC;AAExE,eAAO,MAAM,kBAAkB,kDAAkD,CAAC;AAElF,eAAO,MAAM,iBAAiB,8EAA8E,CAAC"}
@@ -23,5 +23,5 @@ export var CaseRecommendationEvalEnum;
23
23
  })(CaseRecommendationEvalEnum || (CaseRecommendationEvalEnum = {}));
24
24
  export const PHONE_LINE_CANNOT_BE_EMPTY = 'Phone number cannot be empty when country code is given.';
25
25
  export const PHONE_NO_CHAR_ERROR = 'Phone number can only have digits.';
26
- export const PHONE_IS_NOT_VALID = 'Phone number is invalid.';
26
+ export const PHONE_IS_NOT_VALID = 'Phone number without country code is invalid.';
27
27
  export const PHONE_INSTRUCTION = 'A current phone number with the country code helps us support you better.';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "2.2.129-beta.5",
3
+ "version": "2.2.129-beta.7",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -60,8 +60,8 @@
60
60
  "@progress/kendo-licensing": "1.3.5",
61
61
  "@progress/kendo-react-pdf": "^5.16.0",
62
62
  "@redux-devtools/extension": "^3.3.0",
63
- "@rh-support/components": "2.1.61",
64
- "@rh-support/react-context": "2.1.69",
63
+ "@rh-support/components": "2.1.61-beta.1",
64
+ "@rh-support/react-context": "2.1.69-beta.1",
65
65
  "@rh-support/types": "2.0.3",
66
66
  "@rh-support/user-permissions": "2.1.44",
67
67
  "@rh-support/utils": "2.1.33",
@@ -131,5 +131,5 @@
131
131
  "defaults and supports es6-module",
132
132
  "maintained node versions"
133
133
  ],
134
- "gitHead": "927066c6474faa9f0b51fd2a554557af1d393961"
134
+ "gitHead": "d867a78014ee4a08aa8d7bf9e0dc9bd08ce6ac5a"
135
135
  }