@vgip/meta-ui 2.4.0 → 2.4.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.
@@ -821,6 +821,7 @@ const metaNormalizer = (meta, integration, resourceType) => {
821
821
  else if (resourceType === 'contact') {
822
822
  metaV3.fieldsMap = {
823
823
  phoneNumber: 'telephone1',
824
+ email: 'emailaddress1',
824
825
  firstName: 'firstname',
825
826
  lastName: 'lastname'
826
827
  };
@@ -828,6 +829,7 @@ const metaNormalizer = (meta, integration, resourceType) => {
828
829
  else if (resourceType === 'account') {
829
830
  metaV3.fieldsMap = {
830
831
  phoneNumber: 'telephone1',
832
+ email: 'emailaddress1',
831
833
  displayName: 'name'
832
834
  };
833
835
  }
@@ -1213,6 +1215,9 @@ class MetaContextService {
1213
1215
  if (context.displayName) {
1214
1216
  this.displayName = context.displayName;
1215
1217
  }
1218
+ if (context.email) {
1219
+ this.email = context.email;
1220
+ }
1216
1221
  }
1217
1222
  }
1218
1223
  setOnClick2Dial(callback) {
@@ -2582,6 +2587,7 @@ class MetaResource {
2582
2587
  if (this.metaContext && this.fieldsMap) {
2583
2588
  setTimeout(() => {
2584
2589
  this.suggestFieldProperty(this.fieldsMap.phoneNumber, this.metaContext.phoneNumber);
2590
+ this.suggestFieldProperty(this.fieldsMap.email, this.metaContext.email);
2585
2591
  if (this.fieldsMap.firstName || this.fieldsMap.lastName) {
2586
2592
  const names = (this.metaContext.displayName || '').split(' ');
2587
2593
  this.suggestFieldProperty(this.fieldsMap.firstName, names[0]);