@rededor/site-front-end-lib 0.0.41 → 0.0.42

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.
@@ -3,6 +3,7 @@ import { Router } from '@angular/router';
3
3
  import { LibConfig } from '../../tokens/LibConfig';
4
4
  import { PhoneService } from '../../services/phone/phone.service';
5
5
  import { RdsitePhoneModalDirective } from '../rdsite-phone-modal/rdsite-phone-modal.directive';
6
+ import { DeviceDetectorService } from 'ngx-device-detector';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class RdsiteLinkDirective {
8
9
  private router;
@@ -12,18 +13,21 @@ export declare class RdsiteLinkDirective {
12
13
  private element;
13
14
  private phoneService;
14
15
  private rdsitePhoneModalDirective;
16
+ private deviceDetectorService;
15
17
  private externalRegex;
16
18
  private telRegex;
17
19
  private mailRegex;
20
+ private whatsAppRegex;
18
21
  private siteUrlList;
19
22
  private allowedTags;
20
23
  anchorAdjustment: number | null;
21
24
  anchorExtraAdjustment: number | null;
22
25
  phonemodal: TemplateRef<HTMLElement> | null;
23
- constructor(router: Router, platformId: object, document: Document, libConfig: LibConfig, element: ElementRef<any>, phoneService: PhoneService, rdsitePhoneModalDirective: RdsitePhoneModalDirective);
26
+ constructor(router: Router, platformId: object, document: Document, libConfig: LibConfig, element: ElementRef<any>, phoneService: PhoneService, rdsitePhoneModalDirective: RdsitePhoneModalDirective, deviceDetectorService: DeviceDetectorService);
24
27
  onClick(event: Event): void;
25
28
  private isPhone;
26
29
  private isMail;
30
+ private isWhats;
27
31
  private phoneClicked;
28
32
  private setPhoneModal;
29
33
  private isExternalUrl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rededor/site-front-end-lib",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0",