@memberjunction/ng-link-directives 4.2.0 → 4.3.0

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.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=link-directives.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link-directives.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/link-directives.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Tests for link-directives package:
3
+ * - BaseLink (pure logic)
4
+ * - Module exports verification
5
+ */
6
+ import { describe, it, expect, vi } from 'vitest';
7
+ vi.mock('@angular/core', () => ({
8
+ Directive: () => (target) => target,
9
+ NgModule: () => (target) => target,
10
+ Input: () => () => { },
11
+ ElementRef: class {
12
+ },
13
+ Renderer2: class {
14
+ },
15
+ OnInit: class {
16
+ },
17
+ HostListener: () => () => { },
18
+ }));
19
+ vi.mock('@memberjunction/core', () => ({
20
+ EntityField: class {
21
+ },
22
+ EntityInfo: class {
23
+ },
24
+ BaseEntity: class {
25
+ },
26
+ CompositeKey: class {
27
+ },
28
+ Metadata: class {
29
+ Entities = [];
30
+ },
31
+ LogError: vi.fn(),
32
+ LogStatus: vi.fn(),
33
+ }));
34
+ vi.mock('@memberjunction/ng-shared', () => ({
35
+ NavigationService: class {
36
+ OpenEntityRecord = vi.fn();
37
+ },
38
+ }));
39
+ describe('link-directives package', () => {
40
+ it('should export BaseLink class', async () => {
41
+ const mod = await import('../lib/ng-base-link');
42
+ expect(mod.BaseLink).toBeDefined();
43
+ });
44
+ it('should export EmailLink directive', async () => {
45
+ const mod = await import('../lib/ng-email-link');
46
+ expect(mod.EmailLink).toBeDefined();
47
+ });
48
+ it('should export WebLink directive', async () => {
49
+ const mod = await import('../lib/ng-web-link');
50
+ expect(mod.WebLink).toBeDefined();
51
+ });
52
+ it('should export FieldLink directive', async () => {
53
+ const mod = await import('../lib/ng-field-link');
54
+ expect(mod.FieldLink).toBeDefined();
55
+ });
56
+ });
57
+ //# sourceMappingURL=link-directives.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link-directives.test.js","sourceRoot":"","sources":["../../src/__tests__/link-directives.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAElD,EAAE,CAAC,IAAI,CAAC,eAAe,EAAE,GAAG,EAAE,CAAC,CAAC;IAC9B,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC,MAAgB,EAAE,EAAE,CAAC,MAAM;IAC7C,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,MAAgB,EAAE,EAAE,CAAC,MAAM;IAC5C,KAAK,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,GAAE,CAAC;IACrB,UAAU,EAAE;KAAQ;IACpB,SAAS,EAAE;KAAQ;IACnB,MAAM,EAAE;KAAQ;IAChB,YAAY,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,GAAE,CAAC;CAC7B,CAAC,CAAC,CAAC;AAEJ,EAAE,CAAC,IAAI,CAAC,sBAAsB,EAAE,GAAG,EAAE,CAAC,CAAC;IACrC,WAAW,EAAE;KAAQ;IACrB,UAAU,EAAE;KAAQ;IACpB,UAAU,EAAE;KAAQ;IACpB,YAAY,EAAE;KAAQ;IACtB,QAAQ,EAAE;QAAQ,QAAQ,GAAG,EAAE,CAAC;KAAE;IAClC,QAAQ,EAAE,EAAE,CAAC,EAAE,EAAE;IACjB,SAAS,EAAE,EAAE,CAAC,EAAE,EAAE;CACnB,CAAC,CAAC,CAAC;AAEJ,EAAE,CAAC,IAAI,CAAC,2BAA2B,EAAE,GAAG,EAAE,CAAC,CAAC;IAC1C,iBAAiB,EAAE;QACjB,gBAAgB,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;KAC5B;CACF,CAAC,CAAC,CAAC;AAEJ,QAAQ,CAAC,yBAAyB,EAAE,GAAG,EAAE;IACvC,EAAE,CAAC,8BAA8B,EAAE,KAAK,IAAI,EAAE;QAC5C,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,CAAC;QAChD,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE,CAAC;IACrC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mCAAmC,EAAE,KAAK,IAAI,EAAE;QACjD,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,CAAC;QACjD,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,WAAW,EAAE,CAAC;IACtC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iCAAiC,EAAE,KAAK,IAAI,EAAE;QAC/C,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,CAAC;QAC/C,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC;IACpC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mCAAmC,EAAE,KAAK,IAAI,EAAE;QACjD,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,CAAC;QACjD,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,WAAW,EAAE,CAAC;IACtC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ng-link-directives",
3
- "version": "4.2.0",
3
+ "version": "4.3.0",
4
4
  "description": "MemberJunction: Angular Link Directives for turning an element in an angular app into an email, web, or record link",
5
5
  "main": "./dist/public-api.js",
6
6
  "typings": "./dist/public-api.d.ts",
@@ -8,7 +8,7 @@
8
8
  "/dist"
9
9
  ],
10
10
  "scripts": {
11
- "test": "echo \"Error: no test specified\" && exit 1",
11
+ "test": "echo \"No tests configured yet\"",
12
12
  "build": "ngc"
13
13
  },
14
14
  "keywords": [
@@ -30,8 +30,8 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "tslib": "^2.8.1",
33
- "@memberjunction/core": "4.2.0",
34
- "@memberjunction/ng-shared": "4.2.0"
33
+ "@memberjunction/core": "4.3.0",
34
+ "@memberjunction/ng-shared": "4.3.0"
35
35
  },
36
36
  "sideEffects": false,
37
37
  "repository": {