ngx-pendo 1.9.0 → 1.10.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.
- package/esm2020/lib/ngx-pendo-id.directive.mjs +3 -3
- package/esm2020/lib/ngx-pendo-section.directive.mjs +3 -3
- package/esm2020/lib/ngx-pendo.component.mjs +6 -13
- package/esm2020/lib/ngx-pendo.module.mjs +5 -5
- package/esm2020/lib/ngx-pendo.service.mjs +3 -3
- package/fesm2015/ngx-pendo.mjs +18 -25
- package/fesm2015/ngx-pendo.mjs.map +1 -1
- package/fesm2020/ngx-pendo.mjs +18 -25
- package/fesm2020/ngx-pendo.mjs.map +1 -1
- package/{ngx-pendo.d.ts → index.d.ts} +0 -0
- package/lib/ngx-pendo-id.directive.d.ts +1 -1
- package/lib/ngx-pendo-section.directive.d.ts +1 -1
- package/lib/ngx-pendo.component.d.ts +2 -4
- package/package.json +5 -5
|
@@ -32,9 +32,9 @@ export class NgxPendoIdDirective {
|
|
|
32
32
|
return this.inherit ? undefined : true;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
NgxPendoIdDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
36
|
-
NgxPendoIdDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
35
|
+
NgxPendoIdDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoIdDirective, deps: [{ token: i1.NgxPendoService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
36
|
+
NgxPendoIdDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0", type: NgxPendoIdDirective, selector: "[ngx-pendo-id]", inputs: { pendoId: ["ngx-pendo-id", "pendoId"], inherit: ["ngx-pendo-inherit", "inherit"] }, host: { properties: { "attr.data-pendo-id": "this.pendoId", "attr.ngx-pendo-disable-inherit": "this.disableInherit" } }, ngImport: i0 });
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoIdDirective, decorators: [{
|
|
38
38
|
type: Directive,
|
|
39
39
|
args: [{
|
|
40
40
|
selector: '[ngx-pendo-id]'
|
|
@@ -30,9 +30,9 @@ export class NgxPendoSectionDirective {
|
|
|
30
30
|
this.subscriptions = [];
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
NgxPendoSectionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
34
|
-
NgxPendoSectionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
33
|
+
NgxPendoSectionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoSectionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
34
|
+
NgxPendoSectionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0", type: NgxPendoSectionDirective, selector: "[ngx-pendo-section]", inputs: { pendoSection: ["ngx-pendo-section", "pendoSection"], inherit: ["ngx-pendo-inherit", "inherit"] }, host: { properties: { "attr.ngx-pendo-section": "this.pendoSection", "attr.ngx-pendo-disable-inherit": "this.disableInherit" } }, queries: [{ propertyName: "idDirectives", predicate: NgxPendoIdDirective }, { propertyName: "sectionDirectives", predicate: NgxPendoSectionDirective }, { propertyName: "allIdDirectives", predicate: NgxPendoIdDirective, descendants: true }], usesOnChanges: true, ngImport: i0 });
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoSectionDirective, decorators: [{
|
|
36
36
|
type: Directive,
|
|
37
37
|
args: [{
|
|
38
38
|
selector: '[ngx-pendo-section]'
|
|
@@ -2,26 +2,19 @@ import { Component } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export class NgxPendoComponent {
|
|
4
4
|
constructor() { }
|
|
5
|
-
ngOnInit() {
|
|
6
|
-
}
|
|
7
5
|
}
|
|
8
|
-
NgxPendoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
9
|
-
NgxPendoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
6
|
+
NgxPendoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7
|
+
NgxPendoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: NgxPendoComponent, selector: "lib-ngx-pendo", ngImport: i0, template: `
|
|
10
8
|
<p>
|
|
11
9
|
ngx-pendo works!
|
|
12
10
|
</p>
|
|
13
11
|
`, isInline: true });
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoComponent, decorators: [{
|
|
15
13
|
type: Component,
|
|
16
|
-
args: [{
|
|
17
|
-
// eslint-disable-next-line @angular-eslint/component-selector
|
|
18
|
-
selector: 'lib-ngx-pendo',
|
|
19
|
-
template: `
|
|
14
|
+
args: [{ selector: 'lib-ngx-pendo', template: `
|
|
20
15
|
<p>
|
|
21
16
|
ngx-pendo works!
|
|
22
17
|
</p>
|
|
23
|
-
|
|
24
|
-
styles: []
|
|
25
|
-
}]
|
|
18
|
+
` }]
|
|
26
19
|
}], ctorParameters: function () { return []; } });
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXBlbmRvLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1wZW5kby9zcmMvbGliL25neC1wZW5kby5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFZMUMsTUFBTSxPQUFPLGlCQUFpQjtJQUM1QixnQkFBZSxDQUFDOzs4R0FETCxpQkFBaUI7a0dBQWpCLGlCQUFpQixxREFQbEI7Ozs7R0FJVDsyRkFHVSxpQkFBaUI7a0JBVjdCLFNBQVM7K0JBRUUsZUFBZSxZQUNmOzs7O0dBSVQiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQENvbXBvbmVudCh7XG4gIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBAYW5ndWxhci1lc2xpbnQvY29tcG9uZW50LXNlbGVjdG9yXG4gIHNlbGVjdG9yOiAnbGliLW5neC1wZW5kbycsXG4gIHRlbXBsYXRlOiBgXG4gICAgPHA+XG4gICAgICBuZ3gtcGVuZG8gd29ya3MhXG4gICAgPC9wPlxuICBgLFxuICBzdHlsZXM6IFtdXG59KVxuZXhwb3J0IGNsYXNzIE5neFBlbmRvQ29tcG9uZW50IHtcbiAgY29uc3RydWN0b3IoKSB7fVxufVxuIl19
|
|
@@ -28,14 +28,14 @@ export class NgxPendoModule {
|
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
NgxPendoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
32
|
-
NgxPendoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
31
|
+
NgxPendoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
32
|
+
NgxPendoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoModule, declarations: [NgxPendoComponent,
|
|
33
33
|
NgxPendoIdDirective,
|
|
34
34
|
NgxPendoSectionDirective], exports: [NgxPendoComponent,
|
|
35
35
|
NgxPendoIdDirective,
|
|
36
36
|
NgxPendoSectionDirective] });
|
|
37
|
-
NgxPendoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
37
|
+
NgxPendoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoModule });
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoModule, decorators: [{
|
|
39
39
|
type: NgModule,
|
|
40
40
|
args: [{
|
|
41
41
|
declarations: [
|
|
@@ -51,4 +51,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
|
|
|
51
51
|
],
|
|
52
52
|
}]
|
|
53
53
|
}] });
|
|
54
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
54
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXBlbmRvLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1wZW5kby9zcmMvbGliL25neC1wZW5kby5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBdUIsTUFBTSxlQUFlLENBQUM7Q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CBjbGFzcyBOZ3hQZW5kb01vZHVsZSB7XG4gIHN0YXRpYyBmb3JSb290KHNldHRpbmdzOiBJUGVuZG9TZXR0aW5ncyk6IE1vZHVsZVdpdGhQcm92aWRlcnM8Tmd4UGVuZG9Nb2R1bGU+IHtcbiAgICByZXR1cm4ge1xuICAgICAgbmdNb2R1bGU6IE5neFBlbmRvTW9kdWxlLFxuICAgICAgcHJvdmlkZXJzOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBwcm92aWRlOiBOR1hfUEVORE9fU0VUVElOR1NfVE9LRU4sXG4gICAgICAgICAgdXNlVmFsdWU6IHNldHRpbmdzXG4gICAgICAgIH0sXG4gICAgICAgIE5HWF9QRU5ET19JTklUSUFMSVpFUl9QUk9WSURFUixcbiAgICAgICAgTmd4UGVuZG9TZXJ2aWNlLFxuICAgICAgXSxcbiAgICB9O1xuICB9XG5cbiAgc3RhdGljIGZvckNoaWxkKCk6IE1vZHVsZVdpdGhQcm92aWRlcnM8Tmd4UGVuZG9Nb2R1bGU+IHtcbiAgICByZXR1cm4ge1xuICAgICAgbmdNb2R1bGU6IE5neFBlbmRvTW9kdWxlLFxuICAgICAgcHJvdmlkZXJzOiBbXG4gICAgICAgIE5neFBlbmRvU2VydmljZSxcbiAgICAgIF0sXG4gICAgfTtcbiAgfVxufVxuIl19
|
|
@@ -29,9 +29,9 @@ export class NgxPendoService {
|
|
|
29
29
|
return (this.pendoIdFormatter ? ids.map(id => this.pendoIdFormatter(id)) : ids).join('.');
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
NgxPendoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
33
|
-
NgxPendoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
32
|
+
NgxPendoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoService, deps: [{ token: NGX_PENDO_SETTINGS_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
33
|
+
NgxPendoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoService });
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoService, decorators: [{
|
|
35
35
|
type: Injectable
|
|
36
36
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
37
37
|
type: Inject,
|
package/fesm2015/ngx-pendo.mjs
CHANGED
|
@@ -74,9 +74,9 @@ class NgxPendoService {
|
|
|
74
74
|
return (this.pendoIdFormatter ? ids.map(id => this.pendoIdFormatter(id)) : ids).join('.');
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
NgxPendoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
78
|
-
NgxPendoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
79
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
77
|
+
NgxPendoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoService, deps: [{ token: NGX_PENDO_SETTINGS_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
78
|
+
NgxPendoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoService });
|
|
79
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoService, decorators: [{
|
|
80
80
|
type: Injectable
|
|
81
81
|
}], ctorParameters: function () {
|
|
82
82
|
return [{ type: undefined, decorators: [{
|
|
@@ -116,9 +116,9 @@ class NgxPendoIdDirective {
|
|
|
116
116
|
return this.inherit ? undefined : true;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
NgxPendoIdDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
120
|
-
NgxPendoIdDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
121
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
119
|
+
NgxPendoIdDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoIdDirective, deps: [{ token: NgxPendoService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
120
|
+
NgxPendoIdDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0", type: NgxPendoIdDirective, selector: "[ngx-pendo-id]", inputs: { pendoId: ["ngx-pendo-id", "pendoId"], inherit: ["ngx-pendo-inherit", "inherit"] }, host: { properties: { "attr.data-pendo-id": "this.pendoId", "attr.ngx-pendo-disable-inherit": "this.disableInherit" } }, ngImport: i0 });
|
|
121
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoIdDirective, decorators: [{
|
|
122
122
|
type: Directive,
|
|
123
123
|
args: [{
|
|
124
124
|
selector: '[ngx-pendo-id]'
|
|
@@ -164,9 +164,9 @@ class NgxPendoSectionDirective {
|
|
|
164
164
|
this.subscriptions = [];
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
NgxPendoSectionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
168
|
-
NgxPendoSectionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
169
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
167
|
+
NgxPendoSectionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoSectionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
168
|
+
NgxPendoSectionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0", type: NgxPendoSectionDirective, selector: "[ngx-pendo-section]", inputs: { pendoSection: ["ngx-pendo-section", "pendoSection"], inherit: ["ngx-pendo-inherit", "inherit"] }, host: { properties: { "attr.ngx-pendo-section": "this.pendoSection", "attr.ngx-pendo-disable-inherit": "this.disableInherit" } }, queries: [{ propertyName: "idDirectives", predicate: NgxPendoIdDirective }, { propertyName: "sectionDirectives", predicate: NgxPendoSectionDirective }, { propertyName: "allIdDirectives", predicate: NgxPendoIdDirective, descendants: true }], usesOnChanges: true, ngImport: i0 });
|
|
169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoSectionDirective, decorators: [{
|
|
170
170
|
type: Directive,
|
|
171
171
|
args: [{
|
|
172
172
|
selector: '[ngx-pendo-section]'
|
|
@@ -196,27 +196,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
|
|
|
196
196
|
|
|
197
197
|
class NgxPendoComponent {
|
|
198
198
|
constructor() { }
|
|
199
|
-
ngOnInit() {
|
|
200
|
-
}
|
|
201
199
|
}
|
|
202
|
-
NgxPendoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
203
|
-
NgxPendoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
200
|
+
NgxPendoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
201
|
+
NgxPendoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: NgxPendoComponent, selector: "lib-ngx-pendo", ngImport: i0, template: `
|
|
204
202
|
<p>
|
|
205
203
|
ngx-pendo works!
|
|
206
204
|
</p>
|
|
207
205
|
`, isInline: true });
|
|
208
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
206
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoComponent, decorators: [{
|
|
209
207
|
type: Component,
|
|
210
|
-
args: [{
|
|
211
|
-
// eslint-disable-next-line @angular-eslint/component-selector
|
|
212
|
-
selector: 'lib-ngx-pendo',
|
|
213
|
-
template: `
|
|
208
|
+
args: [{ selector: 'lib-ngx-pendo', template: `
|
|
214
209
|
<p>
|
|
215
210
|
ngx-pendo works!
|
|
216
211
|
</p>
|
|
217
|
-
|
|
218
|
-
styles: []
|
|
219
|
-
}]
|
|
212
|
+
` }]
|
|
220
213
|
}], ctorParameters: function () { return []; } });
|
|
221
214
|
|
|
222
215
|
class NgxPendoModule {
|
|
@@ -242,14 +235,14 @@ class NgxPendoModule {
|
|
|
242
235
|
};
|
|
243
236
|
}
|
|
244
237
|
}
|
|
245
|
-
NgxPendoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
246
|
-
NgxPendoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
238
|
+
NgxPendoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
239
|
+
NgxPendoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoModule, declarations: [NgxPendoComponent,
|
|
247
240
|
NgxPendoIdDirective,
|
|
248
241
|
NgxPendoSectionDirective], exports: [NgxPendoComponent,
|
|
249
242
|
NgxPendoIdDirective,
|
|
250
243
|
NgxPendoSectionDirective] });
|
|
251
|
-
NgxPendoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
252
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
244
|
+
NgxPendoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoModule });
|
|
245
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoModule, decorators: [{
|
|
253
246
|
type: NgModule,
|
|
254
247
|
args: [{
|
|
255
248
|
declarations: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-pendo.mjs","sources":["../../../projects/ngx-pendo/src/lib/ngx-pendo.injectors.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo.service.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo-id.directive.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo-section.directive.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo.component.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo.module.ts","../../../projects/ngx-pendo/src/public-api.ts","../../../projects/ngx-pendo/src/ngx-pendo.ts"],"sourcesContent":["import { APP_INITIALIZER, InjectionToken, isDevMode, Provider } from '@angular/core';\nimport { interval } from 'rxjs';\nimport { IPendoSettings } from './ngx-pendo.interfaces';\n\ndeclare var pendo: any;\n\nexport const NGX_PENDO_SETTINGS_TOKEN = new InjectionToken<IPendoSettings>('ngx-pendo-settings', {\n factory: () => ({ pendoApiKey: '' }),\n});\n\nconst DEFAULT_PENDO_SCRIPT_ORIGIN = 'https://cdn.pendo.io';\n\nexport const NGX_PENDO_INITIALIZER_PROVIDER: Provider = {\n provide: APP_INITIALIZER,\n multi: true,\n useFactory: pendoInitializer,\n deps: [\n NGX_PENDO_SETTINGS_TOKEN,\n ],\n};\n\nexport function pendoInitializer($settings: IPendoSettings): () => Promise<void> {\n return async () => {\n if (!$settings.pendoApiKey) {\n if (isDevMode()) {\n console.error('Empty api key for Pendo. Make sure to provide one when initializing NgxPendoModule.');\n }\n\n return;\n }\n\n await new Promise<void>((resolve, reject) => {\n const script = document.createElement('script');\n script.async = true;\n script.src = `${$settings.pendoScriptOrigin || DEFAULT_PENDO_SCRIPT_ORIGIN}/agent/static/${$settings.pendoApiKey}/pendo.js`;\n document.head.appendChild(script);\n script.onerror = async () => {\n // The script may have been blocked by an ad blocker\n resolve();\n };\n script.onload = async () => {\n // when enableDebugging should load extra js\n const sub = interval(100).subscribe(() => {\n if (pendo) {\n sub.unsubscribe();\n resolve();\n }\n });\n };\n });\n };\n}\n","import { Injectable, Inject } from '@angular/core';\nimport { NGX_PENDO_SETTINGS_TOKEN } from './ngx-pendo.injectors';\nimport { IAccount, IVisitor, IPendoSettings } from './ngx-pendo.interfaces';\n\ndeclare var pendo: any;\n\nconst DEFAULT_PENDO_ID_FORMATTER: (pendoId: string) => string = pendoId => pendoId;\n\n@Injectable()\nexport class NgxPendoService {\n\n private pendoIdFormatter: (pendoId: string) => string;\n\n /**\n * Constructor\n *\n * @param settings IPendoSettings\n */\n constructor(@Inject(NGX_PENDO_SETTINGS_TOKEN) settings: IPendoSettings) {\n this.pendoIdFormatter = settings.pendoIdFormatter || DEFAULT_PENDO_ID_FORMATTER;\n }\n\n /**\n * Completely re-initialize the Agent with new options\n *\n * @param visitor IVisitor\n * @param account IAccount\n */\n initialize(visitor: IVisitor, account?: IAccount): void {\n pendo.initialize({ visitor, account });\n }\n\n /**\n * Format Pendo\n *\n * @param ids string[]\n */\n formatPendoId(...ids: string[]): string {\n return (this.pendoIdFormatter ? ids.map(id => this.pendoIdFormatter(id)) : ids).join('.');\n }\n\n}\n","import { Directive, Input, HostBinding } from '@angular/core';\nimport { IPendoDirective } from './ngx-pendo.interfaces';\nimport { NgxPendoService } from './ngx-pendo.service';\nimport { NgxPendoSectionDirective } from './ngx-pendo-section.directive';\n\n@Directive({\n selector: '[ngx-pendo-id]'\n})\nexport class NgxPendoIdDirective implements IPendoDirective {\n private _parent!: NgxPendoSectionDirective;\n\n private _pendoSections: string[] = [];\n\n private _pendoId!: string;\n\n @Input('ngx-pendo-id')\n @HostBinding('attr.data-pendo-id')\n get pendoId(): string {\n return this.service.formatPendoId(...this._pendoSections, this._pendoId);\n }\n set pendoId(value: string) {\n this._pendoId = value;\n }\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('ngx-pendo-inherit')\n inherit = true;\n\n get parent(): NgxPendoSectionDirective {\n return this._parent;\n }\n set parent(value: NgxPendoSectionDirective) {\n this._parent = value;\n setTimeout(() => {\n this._pendoSections = [];\n let cur = this.inherit ? value : null;\n while (cur) {\n this._pendoSections.unshift(cur.pendoSection);\n cur = cur.inherit ? cur.parent : null;\n }\n });\n }\n\n @HostBinding('attr.ngx-pendo-disable-inherit')\n get disableInherit(): boolean | undefined {\n return this.inherit ? undefined : true;\n }\n\n constructor(private service: NgxPendoService) {}\n}\n","import {\n Directive,\n Input,\n HostBinding,\n ContentChildren,\n QueryList,\n AfterContentInit,\n OnDestroy,\n OnChanges,\n SimpleChanges\n} from '@angular/core';\nimport { merge, Subscription } from 'rxjs';\nimport { startWith } from 'rxjs/operators';\nimport { IPendoDirective } from './ngx-pendo.interfaces';\nimport { NgxPendoIdDirective } from './ngx-pendo-id.directive';\n\n@Directive({\n selector: '[ngx-pendo-section]'\n})\nexport class NgxPendoSectionDirective implements IPendoDirective, AfterContentInit, OnChanges, OnDestroy {\n @Input('ngx-pendo-section')\n @HostBinding('attr.ngx-pendo-section')\n pendoSection!: string;\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('ngx-pendo-inherit')\n inherit = true;\n\n @HostBinding('attr.ngx-pendo-disable-inherit')\n get disableInherit(): boolean | undefined {\n return this.inherit ? undefined : true;\n }\n\n parent!: NgxPendoSectionDirective;\n\n @ContentChildren(NgxPendoIdDirective, { descendants: false })\n idDirectives!: QueryList<NgxPendoIdDirective>;\n\n @ContentChildren(NgxPendoSectionDirective, { descendants: false })\n sectionDirectives!: QueryList<NgxPendoSectionDirective>;\n\n @ContentChildren(NgxPendoIdDirective, { descendants: true })\n allIdDirectives!: QueryList<NgxPendoIdDirective>;\n\n private subscriptions: Subscription[] = [];\n\n ngAfterContentInit(): void {\n // set all child parent\n this.subscriptions.push(\n merge(\n this.sectionDirectives.changes.pipe(startWith(this.sectionDirectives)),\n this.idDirectives.changes.pipe(startWith(this.idDirectives))\n ).subscribe((items: QueryList<IPendoDirective>) =>\n items.forEach(item => {\n if (item !== this) {\n item.parent = this;\n }\n })\n )\n );\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.pendoSection && !changes.pendoSection.firstChange) {\n this.allIdDirectives.forEach(i => (i.parent = i.parent));\n }\n }\n\n ngOnDestroy(): void {\n this.subscriptions.forEach(s => s.unsubscribe());\n this.subscriptions = [];\n }\n}\n","import { Component, OnInit } from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'lib-ngx-pendo',\n template: `\n <p>\n ngx-pendo works!\n </p>\n `,\n styles: []\n})\nexport class NgxPendoComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit(): void {\n }\n\n}\n","import { NgModule, ModuleWithProviders } from '@angular/core';\nimport { NgxPendoComponent } from './ngx-pendo.component';\nimport { NGX_PENDO_SETTINGS_TOKEN, NGX_PENDO_INITIALIZER_PROVIDER } from './ngx-pendo.injectors';\nimport { NgxPendoIdDirective } from './ngx-pendo-id.directive';\nimport { NgxPendoSectionDirective } from './ngx-pendo-section.directive';\nimport { IPendoSettings } from './ngx-pendo.interfaces';\nimport { NgxPendoService } from './ngx-pendo.service';\n\n@NgModule({\n declarations: [\n NgxPendoComponent,\n NgxPendoIdDirective,\n NgxPendoSectionDirective,\n ],\n imports: [],\n exports: [\n NgxPendoComponent,\n NgxPendoIdDirective,\n NgxPendoSectionDirective,\n ],\n})\nexport class NgxPendoModule {\n static forRoot(settings: IPendoSettings): ModuleWithProviders<NgxPendoModule> {\n return {\n ngModule: NgxPendoModule,\n providers: [\n {\n provide: NGX_PENDO_SETTINGS_TOKEN,\n useValue: settings\n },\n NGX_PENDO_INITIALIZER_PROVIDER,\n NgxPendoService,\n ],\n };\n }\n\n static forChild(): ModuleWithProviders<NgxPendoModule> {\n return {\n ngModule: NgxPendoModule,\n providers: [\n NgxPendoService,\n ],\n };\n }\n}\n","/*\n * Public API Surface of ngx-pendo\n */\n\nexport * from './lib/ngx-pendo-id.directive';\nexport * from './lib/ngx-pendo-section.directive';\nexport * from './lib/ngx-pendo.service';\nexport * from './lib/ngx-pendo.component';\nexport * from './lib/ngx-pendo.injectors';\nexport * from './lib/ngx-pendo.interfaces';\nexport * from './lib/ngx-pendo.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAMa,wBAAwB,GAAG,IAAI,cAAc,CAAiB,oBAAoB,EAAE;IAC/F,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC;CACrC,EAAE;AAEH,MAAM,2BAA2B,GAAG,sBAAsB,CAAC;MAE9C,8BAA8B,GAAa;IACtD,OAAO,EAAE,eAAe;IACxB,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,gBAAgB;IAC5B,IAAI,EAAE;QACJ,wBAAwB;KACzB;EACD;SAEc,gBAAgB,CAAC,SAAyB;IACxD,OAAO;QACL,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE;YAC1B,IAAI,SAAS,EAAE,EAAE;gBACf,OAAO,CAAC,KAAK,CAAC,qFAAqF,CAAC,CAAC;aACtG;YAED,OAAO;SACR;QAED,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM;YACtC,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;YAChD,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC;YACpB,MAAM,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,iBAAiB,IAAI,2BAA2B,iBAAiB,SAAS,CAAC,WAAW,WAAW,CAAC;YAC5H,QAAQ,CA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,eAAe;uBAAC,mBAAmB,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE;;;MC7BhD,iBAAiB;IAE5B,iBAAiB;IAEjB,QAAQ;KACP;;8GALU,iBAAiB;kGAAjB,iBAAiB,qDAPlB;;;;GAIT;2FAGU,iBAAiB;kBAV7B,SAAS;mBAAC;;oBAET,QAAQ,EAAE,eAAe;oBACzB,QAAQ,EAAE;;;;GAIT;oBACD,MAAM,EAAE,EAAE;iBACX;;;MCUY,cAAc;IACzB,OAAO,OAAO,CAAC,QAAwB;QACrC,OAAO;YACL,QAAQ,EAAE,cAAc;YACxB,SAAS,EAAE;gBACT;oBACE,OAAO,EAAE,wBAAwB;oBACjC,QAAQ,EAAE,QAAQ;iBACnB;gBACD,8BAA8B;gBAC9B,eAAe;aAChB;SACF,CAAC;KACH;IAED,OAAO,QAAQ;QACb,OAAO;YACL,QAAQ,EAAE,cAAc;YACxB,SAAS,EAAE;gBACT,eAAe;aAChB;SACF,CAAC;KACH;;2GAtBU,cAAc;4GAAd,cAAc,iBAXvB,iBAAiB;QACjB,mBAAmB;QACnB,wBAAwB,aAIxB,iBAAiB;QACjB,mBAAmB;QACnB,wBAAwB;4GAGf,cAAc,YAPhB,EAAE;2FAOA,cAAc;kBAb1B,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,iBAAiB;wBACjB,mBAAmB;wBACnB,wBAAwB;qBACzB;oBACD,OAAO,EAAE,EAAE;oBACX,OAAO,EAAE;wBACP,iBAAiB;wBACjB,mBAAmB;wBACnB,wBAAwB;qBACzB;iBACF;;;ACpBD;;;;ACAA;;;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-pendo.mjs","sources":["../../../projects/ngx-pendo/src/lib/ngx-pendo.injectors.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo.service.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo-id.directive.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo-section.directive.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo.component.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo.module.ts","../../../projects/ngx-pendo/src/public-api.ts","../../../projects/ngx-pendo/src/ngx-pendo.ts"],"sourcesContent":["import { APP_INITIALIZER, InjectionToken, isDevMode, Provider } from '@angular/core';\nimport { interval } from 'rxjs';\nimport { IPendoSettings } from './ngx-pendo.interfaces';\n\ndeclare var pendo: any;\n\nexport const NGX_PENDO_SETTINGS_TOKEN = new InjectionToken<IPendoSettings>('ngx-pendo-settings', {\n factory: () => ({ pendoApiKey: '' }),\n});\n\nconst DEFAULT_PENDO_SCRIPT_ORIGIN = 'https://cdn.pendo.io';\n\nexport const NGX_PENDO_INITIALIZER_PROVIDER: Provider = {\n provide: APP_INITIALIZER,\n multi: true,\n useFactory: pendoInitializer,\n deps: [\n NGX_PENDO_SETTINGS_TOKEN,\n ],\n};\n\nexport function pendoInitializer($settings: IPendoSettings): () => Promise<void> {\n return async () => {\n if (!$settings.pendoApiKey) {\n if (isDevMode()) {\n console.error('Empty api key for Pendo. Make sure to provide one when initializing NgxPendoModule.');\n }\n\n return;\n }\n\n await new Promise<void>((resolve, reject) => {\n const script = document.createElement('script');\n script.async = true;\n script.src = `${$settings.pendoScriptOrigin || DEFAULT_PENDO_SCRIPT_ORIGIN}/agent/static/${$settings.pendoApiKey}/pendo.js`;\n document.head.appendChild(script);\n script.onerror = async () => {\n // The script may have been blocked by an ad blocker\n resolve();\n };\n script.onload = async () => {\n // when enableDebugging should load extra js\n const sub = interval(100).subscribe(() => {\n if (pendo) {\n sub.unsubscribe();\n resolve();\n }\n });\n };\n });\n };\n}\n","import { Injectable, Inject } from '@angular/core';\nimport { NGX_PENDO_SETTINGS_TOKEN } from './ngx-pendo.injectors';\nimport { IAccount, IVisitor, IPendoSettings } from './ngx-pendo.interfaces';\n\ndeclare var pendo: any;\n\nconst DEFAULT_PENDO_ID_FORMATTER: (pendoId: string) => string = pendoId => pendoId;\n\n@Injectable()\nexport class NgxPendoService {\n\n private pendoIdFormatter: (pendoId: string) => string;\n\n /**\n * Constructor\n *\n * @param settings IPendoSettings\n */\n constructor(@Inject(NGX_PENDO_SETTINGS_TOKEN) settings: IPendoSettings) {\n this.pendoIdFormatter = settings.pendoIdFormatter || DEFAULT_PENDO_ID_FORMATTER;\n }\n\n /**\n * Completely re-initialize the Agent with new options\n *\n * @param visitor IVisitor\n * @param account IAccount\n */\n initialize(visitor: IVisitor, account?: IAccount): void {\n pendo.initialize({ visitor, account });\n }\n\n /**\n * Format Pendo\n *\n * @param ids string[]\n */\n formatPendoId(...ids: string[]): string {\n return (this.pendoIdFormatter ? ids.map(id => this.pendoIdFormatter(id)) : ids).join('.');\n }\n\n}\n","import { Directive, Input, HostBinding } from '@angular/core';\nimport { IPendoDirective } from './ngx-pendo.interfaces';\nimport { NgxPendoService } from './ngx-pendo.service';\nimport { NgxPendoSectionDirective } from './ngx-pendo-section.directive';\n\n@Directive({\n selector: '[ngx-pendo-id]'\n})\nexport class NgxPendoIdDirective implements IPendoDirective {\n private _parent!: NgxPendoSectionDirective;\n\n private _pendoSections: string[] = [];\n\n private _pendoId!: string;\n\n @Input('ngx-pendo-id')\n @HostBinding('attr.data-pendo-id')\n get pendoId(): string {\n return this.service.formatPendoId(...this._pendoSections, this._pendoId);\n }\n set pendoId(value: string) {\n this._pendoId = value;\n }\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('ngx-pendo-inherit')\n inherit = true;\n\n get parent(): NgxPendoSectionDirective {\n return this._parent;\n }\n set parent(value: NgxPendoSectionDirective) {\n this._parent = value;\n setTimeout(() => {\n this._pendoSections = [];\n let cur = this.inherit ? value : null;\n while (cur) {\n this._pendoSections.unshift(cur.pendoSection);\n cur = cur.inherit ? cur.parent : null;\n }\n });\n }\n\n @HostBinding('attr.ngx-pendo-disable-inherit')\n get disableInherit(): boolean | undefined {\n return this.inherit ? undefined : true;\n }\n\n constructor(private service: NgxPendoService) {}\n}\n","import {\n Directive,\n Input,\n HostBinding,\n ContentChildren,\n QueryList,\n AfterContentInit,\n OnDestroy,\n OnChanges,\n SimpleChanges\n} from '@angular/core';\nimport { merge, Subscription } from 'rxjs';\nimport { startWith } from 'rxjs/operators';\nimport { IPendoDirective } from './ngx-pendo.interfaces';\nimport { NgxPendoIdDirective } from './ngx-pendo-id.directive';\n\n@Directive({\n selector: '[ngx-pendo-section]'\n})\nexport class NgxPendoSectionDirective implements IPendoDirective, AfterContentInit, OnChanges, OnDestroy {\n @Input('ngx-pendo-section')\n @HostBinding('attr.ngx-pendo-section')\n pendoSection!: string;\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('ngx-pendo-inherit')\n inherit = true;\n\n @HostBinding('attr.ngx-pendo-disable-inherit')\n get disableInherit(): boolean | undefined {\n return this.inherit ? undefined : true;\n }\n\n parent!: NgxPendoSectionDirective;\n\n @ContentChildren(NgxPendoIdDirective, { descendants: false })\n idDirectives!: QueryList<NgxPendoIdDirective>;\n\n @ContentChildren(NgxPendoSectionDirective, { descendants: false })\n sectionDirectives!: QueryList<NgxPendoSectionDirective>;\n\n @ContentChildren(NgxPendoIdDirective, { descendants: true })\n allIdDirectives!: QueryList<NgxPendoIdDirective>;\n\n private subscriptions: Subscription[] = [];\n\n ngAfterContentInit(): void {\n // set all child parent\n this.subscriptions.push(\n merge(\n this.sectionDirectives.changes.pipe(startWith(this.sectionDirectives)),\n this.idDirectives.changes.pipe(startWith(this.idDirectives))\n ).subscribe((items: QueryList<IPendoDirective>) =>\n items.forEach(item => {\n if (item !== this) {\n item.parent = this;\n }\n })\n )\n );\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.pendoSection && !changes.pendoSection.firstChange) {\n this.allIdDirectives.forEach(i => (i.parent = i.parent));\n }\n }\n\n ngOnDestroy(): void {\n this.subscriptions.forEach(s => s.unsubscribe());\n this.subscriptions = [];\n }\n}\n","import { Component } from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'lib-ngx-pendo',\n template: `\n <p>\n ngx-pendo works!\n </p>\n `,\n styles: []\n})\nexport class NgxPendoComponent {\n constructor() {}\n}\n","import { NgModule, ModuleWithProviders } from '@angular/core';\nimport { NgxPendoComponent } from './ngx-pendo.component';\nimport { NGX_PENDO_SETTINGS_TOKEN, NGX_PENDO_INITIALIZER_PROVIDER } from './ngx-pendo.injectors';\nimport { NgxPendoIdDirective } from './ngx-pendo-id.directive';\nimport { NgxPendoSectionDirective } from './ngx-pendo-section.directive';\nimport { IPendoSettings } from './ngx-pendo.interfaces';\nimport { NgxPendoService } from './ngx-pendo.service';\n\n@NgModule({\n declarations: [\n NgxPendoComponent,\n NgxPendoIdDirective,\n NgxPendoSectionDirective,\n ],\n imports: [],\n exports: [\n NgxPendoComponent,\n NgxPendoIdDirective,\n NgxPendoSectionDirective,\n ],\n})\nexport class NgxPendoModule {\n static forRoot(settings: IPendoSettings): ModuleWithProviders<NgxPendoModule> {\n return {\n ngModule: NgxPendoModule,\n providers: [\n {\n provide: NGX_PENDO_SETTINGS_TOKEN,\n useValue: settings\n },\n NGX_PENDO_INITIALIZER_PROVIDER,\n NgxPendoService,\n ],\n };\n }\n\n static forChild(): ModuleWithProviders<NgxPendoModule> {\n return {\n ngModule: NgxPendoModule,\n providers: [\n NgxPendoService,\n ],\n };\n }\n}\n","/*\n * Public API Surface of ngx-pendo\n */\n\nexport * from './lib/ngx-pendo-id.directive';\nexport * from './lib/ngx-pendo-section.directive';\nexport * from './lib/ngx-pendo.service';\nexport * from './lib/ngx-pendo.component';\nexport * from './lib/ngx-pendo.injectors';\nexport * from './lib/ngx-pendo.interfaces';\nexport * from './lib/ngx-pendo.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.NgxPendoService"],"mappings":";;;;;;MAMa,wBAAwB,GAAG,IAAI,cAAc,CAAiB,oBAAoB,EAAE;IAC/F,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC;AACrC,CAAA,EAAE;AAEH,MAAM,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"}
|
package/fesm2020/ngx-pendo.mjs
CHANGED
|
@@ -73,9 +73,9 @@ class NgxPendoService {
|
|
|
73
73
|
return (this.pendoIdFormatter ? ids.map(id => this.pendoIdFormatter(id)) : ids).join('.');
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
NgxPendoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
77
|
-
NgxPendoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
78
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
76
|
+
NgxPendoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoService, deps: [{ token: NGX_PENDO_SETTINGS_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
77
|
+
NgxPendoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoService });
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoService, decorators: [{
|
|
79
79
|
type: Injectable
|
|
80
80
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
81
81
|
type: Inject,
|
|
@@ -113,9 +113,9 @@ class NgxPendoIdDirective {
|
|
|
113
113
|
return this.inherit ? undefined : true;
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
NgxPendoIdDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
117
|
-
NgxPendoIdDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
118
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
116
|
+
NgxPendoIdDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoIdDirective, deps: [{ token: NgxPendoService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
117
|
+
NgxPendoIdDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0", type: NgxPendoIdDirective, selector: "[ngx-pendo-id]", inputs: { pendoId: ["ngx-pendo-id", "pendoId"], inherit: ["ngx-pendo-inherit", "inherit"] }, host: { properties: { "attr.data-pendo-id": "this.pendoId", "attr.ngx-pendo-disable-inherit": "this.disableInherit" } }, ngImport: i0 });
|
|
118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoIdDirective, decorators: [{
|
|
119
119
|
type: Directive,
|
|
120
120
|
args: [{
|
|
121
121
|
selector: '[ngx-pendo-id]'
|
|
@@ -161,9 +161,9 @@ class NgxPendoSectionDirective {
|
|
|
161
161
|
this.subscriptions = [];
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
NgxPendoSectionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
165
|
-
NgxPendoSectionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
166
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
164
|
+
NgxPendoSectionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoSectionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
165
|
+
NgxPendoSectionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.0", type: NgxPendoSectionDirective, selector: "[ngx-pendo-section]", inputs: { pendoSection: ["ngx-pendo-section", "pendoSection"], inherit: ["ngx-pendo-inherit", "inherit"] }, host: { properties: { "attr.ngx-pendo-section": "this.pendoSection", "attr.ngx-pendo-disable-inherit": "this.disableInherit" } }, queries: [{ propertyName: "idDirectives", predicate: NgxPendoIdDirective }, { propertyName: "sectionDirectives", predicate: NgxPendoSectionDirective }, { propertyName: "allIdDirectives", predicate: NgxPendoIdDirective, descendants: true }], usesOnChanges: true, ngImport: i0 });
|
|
166
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoSectionDirective, decorators: [{
|
|
167
167
|
type: Directive,
|
|
168
168
|
args: [{
|
|
169
169
|
selector: '[ngx-pendo-section]'
|
|
@@ -193,27 +193,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.0", ngImpor
|
|
|
193
193
|
|
|
194
194
|
class NgxPendoComponent {
|
|
195
195
|
constructor() { }
|
|
196
|
-
ngOnInit() {
|
|
197
|
-
}
|
|
198
196
|
}
|
|
199
|
-
NgxPendoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
200
|
-
NgxPendoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
197
|
+
NgxPendoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
198
|
+
NgxPendoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: NgxPendoComponent, selector: "lib-ngx-pendo", ngImport: i0, template: `
|
|
201
199
|
<p>
|
|
202
200
|
ngx-pendo works!
|
|
203
201
|
</p>
|
|
204
202
|
`, isInline: true });
|
|
205
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoComponent, decorators: [{
|
|
206
204
|
type: Component,
|
|
207
|
-
args: [{
|
|
208
|
-
// eslint-disable-next-line @angular-eslint/component-selector
|
|
209
|
-
selector: 'lib-ngx-pendo',
|
|
210
|
-
template: `
|
|
205
|
+
args: [{ selector: 'lib-ngx-pendo', template: `
|
|
211
206
|
<p>
|
|
212
207
|
ngx-pendo works!
|
|
213
208
|
</p>
|
|
214
|
-
|
|
215
|
-
styles: []
|
|
216
|
-
}]
|
|
209
|
+
` }]
|
|
217
210
|
}], ctorParameters: function () { return []; } });
|
|
218
211
|
|
|
219
212
|
class NgxPendoModule {
|
|
@@ -239,14 +232,14 @@ class NgxPendoModule {
|
|
|
239
232
|
};
|
|
240
233
|
}
|
|
241
234
|
}
|
|
242
|
-
NgxPendoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
243
|
-
NgxPendoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
235
|
+
NgxPendoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
236
|
+
NgxPendoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoModule, declarations: [NgxPendoComponent,
|
|
244
237
|
NgxPendoIdDirective,
|
|
245
238
|
NgxPendoSectionDirective], exports: [NgxPendoComponent,
|
|
246
239
|
NgxPendoIdDirective,
|
|
247
240
|
NgxPendoSectionDirective] });
|
|
248
|
-
NgxPendoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
249
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
241
|
+
NgxPendoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoModule });
|
|
242
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: NgxPendoModule, decorators: [{
|
|
250
243
|
type: NgModule,
|
|
251
244
|
args: [{
|
|
252
245
|
declarations: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-pendo.mjs","sources":["../../../projects/ngx-pendo/src/lib/ngx-pendo.injectors.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo.service.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo-id.directive.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo-section.directive.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo.component.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo.module.ts","../../../projects/ngx-pendo/src/public-api.ts","../../../projects/ngx-pendo/src/ngx-pendo.ts"],"sourcesContent":["import { APP_INITIALIZER, InjectionToken, isDevMode, Provider } from '@angular/core';\nimport { interval } from 'rxjs';\nimport { IPendoSettings } from './ngx-pendo.interfaces';\n\ndeclare var pendo: any;\n\nexport const NGX_PENDO_SETTINGS_TOKEN = new InjectionToken<IPendoSettings>('ngx-pendo-settings', {\n factory: () => ({ pendoApiKey: '' }),\n});\n\nconst DEFAULT_PENDO_SCRIPT_ORIGIN = 'https://cdn.pendo.io';\n\nexport const NGX_PENDO_INITIALIZER_PROVIDER: Provider = {\n provide: APP_INITIALIZER,\n multi: true,\n useFactory: pendoInitializer,\n deps: [\n NGX_PENDO_SETTINGS_TOKEN,\n ],\n};\n\nexport function pendoInitializer($settings: IPendoSettings): () => Promise<void> {\n return async () => {\n if (!$settings.pendoApiKey) {\n if (isDevMode()) {\n console.error('Empty api key for Pendo. Make sure to provide one when initializing NgxPendoModule.');\n }\n\n return;\n }\n\n await new Promise<void>((resolve, reject) => {\n const script = document.createElement('script');\n script.async = true;\n script.src = `${$settings.pendoScriptOrigin || DEFAULT_PENDO_SCRIPT_ORIGIN}/agent/static/${$settings.pendoApiKey}/pendo.js`;\n document.head.appendChild(script);\n script.onerror = async () => {\n // The script may have been blocked by an ad blocker\n resolve();\n };\n script.onload = async () => {\n // when enableDebugging should load extra js\n const sub = interval(100).subscribe(() => {\n if (pendo) {\n sub.unsubscribe();\n resolve();\n }\n });\n };\n });\n };\n}\n","import { Injectable, Inject } from '@angular/core';\nimport { NGX_PENDO_SETTINGS_TOKEN } from './ngx-pendo.injectors';\nimport { IAccount, IVisitor, IPendoSettings } from './ngx-pendo.interfaces';\n\ndeclare var pendo: any;\n\nconst DEFAULT_PENDO_ID_FORMATTER: (pendoId: string) => string = pendoId => pendoId;\n\n@Injectable()\nexport class NgxPendoService {\n\n private pendoIdFormatter: (pendoId: string) => string;\n\n /**\n * Constructor\n *\n * @param settings IPendoSettings\n */\n constructor(@Inject(NGX_PENDO_SETTINGS_TOKEN) settings: IPendoSettings) {\n this.pendoIdFormatter = settings.pendoIdFormatter || DEFAULT_PENDO_ID_FORMATTER;\n }\n\n /**\n * Completely re-initialize the Agent with new options\n *\n * @param visitor IVisitor\n * @param account IAccount\n */\n initialize(visitor: IVisitor, account?: IAccount): void {\n pendo.initialize({ visitor, account });\n }\n\n /**\n * Format Pendo\n *\n * @param ids string[]\n */\n formatPendoId(...ids: string[]): string {\n return (this.pendoIdFormatter ? ids.map(id => this.pendoIdFormatter(id)) : ids).join('.');\n }\n\n}\n","import { Directive, Input, HostBinding } from '@angular/core';\nimport { IPendoDirective } from './ngx-pendo.interfaces';\nimport { NgxPendoService } from './ngx-pendo.service';\nimport { NgxPendoSectionDirective } from './ngx-pendo-section.directive';\n\n@Directive({\n selector: '[ngx-pendo-id]'\n})\nexport class NgxPendoIdDirective implements IPendoDirective {\n private _parent!: NgxPendoSectionDirective;\n\n private _pendoSections: string[] = [];\n\n private _pendoId!: string;\n\n @Input('ngx-pendo-id')\n @HostBinding('attr.data-pendo-id')\n get pendoId(): string {\n return this.service.formatPendoId(...this._pendoSections, this._pendoId);\n }\n set pendoId(value: string) {\n this._pendoId = value;\n }\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('ngx-pendo-inherit')\n inherit = true;\n\n get parent(): NgxPendoSectionDirective {\n return this._parent;\n }\n set parent(value: NgxPendoSectionDirective) {\n this._parent = value;\n setTimeout(() => {\n this._pendoSections = [];\n let cur = this.inherit ? value : null;\n while (cur) {\n this._pendoSections.unshift(cur.pendoSection);\n cur = cur.inherit ? cur.parent : null;\n }\n });\n }\n\n @HostBinding('attr.ngx-pendo-disable-inherit')\n get disableInherit(): boolean | undefined {\n return this.inherit ? undefined : true;\n }\n\n constructor(private service: NgxPendoService) {}\n}\n","import {\n Directive,\n Input,\n HostBinding,\n ContentChildren,\n QueryList,\n AfterContentInit,\n OnDestroy,\n OnChanges,\n SimpleChanges\n} from '@angular/core';\nimport { merge, Subscription } from 'rxjs';\nimport { startWith } from 'rxjs/operators';\nimport { IPendoDirective } from './ngx-pendo.interfaces';\nimport { NgxPendoIdDirective } from './ngx-pendo-id.directive';\n\n@Directive({\n selector: '[ngx-pendo-section]'\n})\nexport class NgxPendoSectionDirective implements IPendoDirective, AfterContentInit, OnChanges, OnDestroy {\n @Input('ngx-pendo-section')\n @HostBinding('attr.ngx-pendo-section')\n pendoSection!: string;\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('ngx-pendo-inherit')\n inherit = true;\n\n @HostBinding('attr.ngx-pendo-disable-inherit')\n get disableInherit(): boolean | undefined {\n return this.inherit ? undefined : true;\n }\n\n parent!: NgxPendoSectionDirective;\n\n @ContentChildren(NgxPendoIdDirective, { descendants: false })\n idDirectives!: QueryList<NgxPendoIdDirective>;\n\n @ContentChildren(NgxPendoSectionDirective, { descendants: false })\n sectionDirectives!: QueryList<NgxPendoSectionDirective>;\n\n @ContentChildren(NgxPendoIdDirective, { descendants: true })\n allIdDirectives!: QueryList<NgxPendoIdDirective>;\n\n private subscriptions: Subscription[] = [];\n\n ngAfterContentInit(): void {\n // set all child parent\n this.subscriptions.push(\n merge(\n this.sectionDirectives.changes.pipe(startWith(this.sectionDirectives)),\n this.idDirectives.changes.pipe(startWith(this.idDirectives))\n ).subscribe((items: QueryList<IPendoDirective>) =>\n items.forEach(item => {\n if (item !== this) {\n item.parent = this;\n }\n })\n )\n );\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.pendoSection && !changes.pendoSection.firstChange) {\n this.allIdDirectives.forEach(i => (i.parent = i.parent));\n }\n }\n\n ngOnDestroy(): void {\n this.subscriptions.forEach(s => s.unsubscribe());\n this.subscriptions = [];\n }\n}\n","import { Component, OnInit } from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'lib-ngx-pendo',\n template: `\n <p>\n ngx-pendo works!\n </p>\n `,\n styles: []\n})\nexport class NgxPendoComponent implements OnInit {\n\n constructor() { }\n\n ngOnInit(): void {\n }\n\n}\n","import { NgModule, ModuleWithProviders } from '@angular/core';\nimport { NgxPendoComponent } from './ngx-pendo.component';\nimport { NGX_PENDO_SETTINGS_TOKEN, NGX_PENDO_INITIALIZER_PROVIDER } from './ngx-pendo.injectors';\nimport { NgxPendoIdDirective } from './ngx-pendo-id.directive';\nimport { NgxPendoSectionDirective } from './ngx-pendo-section.directive';\nimport { IPendoSettings } from './ngx-pendo.interfaces';\nimport { NgxPendoService } from './ngx-pendo.service';\n\n@NgModule({\n declarations: [\n NgxPendoComponent,\n NgxPendoIdDirective,\n NgxPendoSectionDirective,\n ],\n imports: [],\n exports: [\n NgxPendoComponent,\n NgxPendoIdDirective,\n NgxPendoSectionDirective,\n ],\n})\nexport class NgxPendoModule {\n static forRoot(settings: IPendoSettings): ModuleWithProviders<NgxPendoModule> {\n return {\n ngModule: NgxPendoModule,\n providers: [\n {\n provide: NGX_PENDO_SETTINGS_TOKEN,\n useValue: settings\n },\n NGX_PENDO_INITIALIZER_PROVIDER,\n NgxPendoService,\n ],\n };\n }\n\n static forChild(): ModuleWithProviders<NgxPendoModule> {\n return {\n ngModule: NgxPendoModule,\n providers: [\n NgxPendoService,\n ],\n };\n }\n}\n","/*\n * Public API Surface of ngx-pendo\n */\n\nexport * from './lib/ngx-pendo-id.directive';\nexport * from './lib/ngx-pendo-section.directive';\nexport * from './lib/ngx-pendo.service';\nexport * from './lib/ngx-pendo.component';\nexport * from './lib/ngx-pendo.injectors';\nexport * from './lib/ngx-pendo.interfaces';\nexport * from './lib/ngx-pendo.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAMa,wBAAwB,GAAG,IAAI,cAAc,CAAiB,oBAAoB,EAAE;IAC/F,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC;CACrC,EAAE;AAEH,MAAM,2BAA2B,GAAG,sBAAsB,CAAC;MAE9C,8BAA8B,GAAa;IACtD,OAAO,EAAE,eAAe;IACxB,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,gBAAgB;IAC5B,IAAI,EAAE;QACJ,wBAAwB;KACzB;EACD;SAEc,gBAAgB,CAAC,SAAyB;IACxD,OAAO;QACL,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE;YAC1B,IAAI,SAAS,EAAE,EAAE;gBACf,OAAO,CAAC,KAAK,CAAC,qFAAqF,CAAC,CAAC;aACtG;YAED,OAAO;SACR;QAED,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM;YACtC,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;YAChD,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC;YACpB,MAAM,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,iBAAiB,IAAI,2BAA2B,iBAAiB,SAAS,CAAC,WAAW,WAAW,CAAC;YAC5H,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;YAClC,MAAM,CAAC,OAAO,GAAG;;gBAEf,OAAO,EAAE,CAAC;aACX,CAAC;YACF,MAAM,CAAC,MAAM,GAAG;;gBAEd,MAAM,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC;oBAClC,IAAI,KAAK,EAAE;wBACT,GAAG,CAAC,WAAW,EAAE,CAAC;wBAClB,OAAO,EAAE,CAAC;qBACX;iBACF,CAAC,CAAC;aACJ,CAAC;SACH,CAAC,CAAC;KACJ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SAAS,EAAE;gBACT;oBACE,OAAO,EAAE,wBAAwB;oBACjC,QAAQ,EAAE,QAAQ;iBACnB;gBACD,8BAA8B;gBAC9B,eAAe;aAChB;SACF,CAAC;KACH;IAED,OAAO,QAAQ;QACb,OAAO;YACL,QAAQ,EAAE,cAAc;YACxB,SAAS,EAAE;gBACT,eAAe;aAChB;SACF,CAAC;KACH;;2GAtBU,cAAc;4GAAd,cAAc,iBAXvB,iBAAiB;QACjB,mBAAmB;QACnB,wBAAwB,aAIxB,iBAAiB;QACjB,mBAAmB;QACnB,wBAAwB;4GAGf,cAAc,YAPhB,EAAE;2FAOA,cAAc;kBAb1B,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,iBAAiB;wBACjB,mBAAmB;wBACnB,wBAAwB;qBACzB;oBACD,OAAO,EAAE,EAAE;oBACX,OAAO,EAAE;wBACP,iBAAiB;wBACjB,mBAAmB;wBACnB,wBAAwB;qBACzB;iBACF;;;ACpBD;;;;ACAA;;;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-pendo.mjs","sources":["../../../projects/ngx-pendo/src/lib/ngx-pendo.injectors.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo.service.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo-id.directive.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo-section.directive.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo.component.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo.module.ts","../../../projects/ngx-pendo/src/public-api.ts","../../../projects/ngx-pendo/src/ngx-pendo.ts"],"sourcesContent":["import { APP_INITIALIZER, InjectionToken, isDevMode, Provider } from '@angular/core';\nimport { interval } from 'rxjs';\nimport { IPendoSettings } from './ngx-pendo.interfaces';\n\ndeclare var pendo: any;\n\nexport const NGX_PENDO_SETTINGS_TOKEN = new InjectionToken<IPendoSettings>('ngx-pendo-settings', {\n factory: () => ({ pendoApiKey: '' }),\n});\n\nconst DEFAULT_PENDO_SCRIPT_ORIGIN = 'https://cdn.pendo.io';\n\nexport const NGX_PENDO_INITIALIZER_PROVIDER: Provider = {\n provide: APP_INITIALIZER,\n multi: true,\n useFactory: pendoInitializer,\n deps: [\n NGX_PENDO_SETTINGS_TOKEN,\n ],\n};\n\nexport function pendoInitializer($settings: IPendoSettings): () => Promise<void> {\n return async () => {\n if (!$settings.pendoApiKey) {\n if (isDevMode()) {\n console.error('Empty api key for Pendo. Make sure to provide one when initializing NgxPendoModule.');\n }\n\n return;\n }\n\n await new Promise<void>((resolve, reject) => {\n const script = document.createElement('script');\n script.async = true;\n script.src = `${$settings.pendoScriptOrigin || DEFAULT_PENDO_SCRIPT_ORIGIN}/agent/static/${$settings.pendoApiKey}/pendo.js`;\n document.head.appendChild(script);\n script.onerror = async () => {\n // The script may have been blocked by an ad blocker\n resolve();\n };\n script.onload = async () => {\n // when enableDebugging should load extra js\n const sub = interval(100).subscribe(() => {\n if (pendo) {\n sub.unsubscribe();\n resolve();\n }\n });\n };\n });\n };\n}\n","import { Injectable, Inject } from '@angular/core';\nimport { NGX_PENDO_SETTINGS_TOKEN } from './ngx-pendo.injectors';\nimport { IAccount, IVisitor, IPendoSettings } from './ngx-pendo.interfaces';\n\ndeclare var pendo: any;\n\nconst DEFAULT_PENDO_ID_FORMATTER: (pendoId: string) => string = pendoId => pendoId;\n\n@Injectable()\nexport class NgxPendoService {\n\n private pendoIdFormatter: (pendoId: string) => string;\n\n /**\n * Constructor\n *\n * @param settings IPendoSettings\n */\n constructor(@Inject(NGX_PENDO_SETTINGS_TOKEN) settings: IPendoSettings) {\n this.pendoIdFormatter = settings.pendoIdFormatter || DEFAULT_PENDO_ID_FORMATTER;\n }\n\n /**\n * Completely re-initialize the Agent with new options\n *\n * @param visitor IVisitor\n * @param account IAccount\n */\n initialize(visitor: IVisitor, account?: IAccount): void {\n pendo.initialize({ visitor, account });\n }\n\n /**\n * Format Pendo\n *\n * @param ids string[]\n */\n formatPendoId(...ids: string[]): string {\n return (this.pendoIdFormatter ? ids.map(id => this.pendoIdFormatter(id)) : ids).join('.');\n }\n\n}\n","import { Directive, Input, HostBinding } from '@angular/core';\nimport { IPendoDirective } from './ngx-pendo.interfaces';\nimport { NgxPendoService } from './ngx-pendo.service';\nimport { NgxPendoSectionDirective } from './ngx-pendo-section.directive';\n\n@Directive({\n selector: '[ngx-pendo-id]'\n})\nexport class NgxPendoIdDirective implements IPendoDirective {\n private _parent!: NgxPendoSectionDirective;\n\n private _pendoSections: string[] = [];\n\n private _pendoId!: string;\n\n @Input('ngx-pendo-id')\n @HostBinding('attr.data-pendo-id')\n get pendoId(): string {\n return this.service.formatPendoId(...this._pendoSections, this._pendoId);\n }\n set pendoId(value: string) {\n this._pendoId = value;\n }\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('ngx-pendo-inherit')\n inherit = true;\n\n get parent(): NgxPendoSectionDirective {\n return this._parent;\n }\n set parent(value: NgxPendoSectionDirective) {\n this._parent = value;\n setTimeout(() => {\n this._pendoSections = [];\n let cur = this.inherit ? value : null;\n while (cur) {\n this._pendoSections.unshift(cur.pendoSection);\n cur = cur.inherit ? cur.parent : null;\n }\n });\n }\n\n @HostBinding('attr.ngx-pendo-disable-inherit')\n get disableInherit(): boolean | undefined {\n return this.inherit ? undefined : true;\n }\n\n constructor(private service: NgxPendoService) {}\n}\n","import {\n Directive,\n Input,\n HostBinding,\n ContentChildren,\n QueryList,\n AfterContentInit,\n OnDestroy,\n OnChanges,\n SimpleChanges\n} from '@angular/core';\nimport { merge, Subscription } from 'rxjs';\nimport { startWith } from 'rxjs/operators';\nimport { IPendoDirective } from './ngx-pendo.interfaces';\nimport { NgxPendoIdDirective } from './ngx-pendo-id.directive';\n\n@Directive({\n selector: '[ngx-pendo-section]'\n})\nexport class NgxPendoSectionDirective implements IPendoDirective, AfterContentInit, OnChanges, OnDestroy {\n @Input('ngx-pendo-section')\n @HostBinding('attr.ngx-pendo-section')\n pendoSection!: string;\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('ngx-pendo-inherit')\n inherit = true;\n\n @HostBinding('attr.ngx-pendo-disable-inherit')\n get disableInherit(): boolean | undefined {\n return this.inherit ? undefined : true;\n }\n\n parent!: NgxPendoSectionDirective;\n\n @ContentChildren(NgxPendoIdDirective, { descendants: false })\n idDirectives!: QueryList<NgxPendoIdDirective>;\n\n @ContentChildren(NgxPendoSectionDirective, { descendants: false })\n sectionDirectives!: QueryList<NgxPendoSectionDirective>;\n\n @ContentChildren(NgxPendoIdDirective, { descendants: true })\n allIdDirectives!: QueryList<NgxPendoIdDirective>;\n\n private subscriptions: Subscription[] = [];\n\n ngAfterContentInit(): void {\n // set all child parent\n this.subscriptions.push(\n merge(\n this.sectionDirectives.changes.pipe(startWith(this.sectionDirectives)),\n this.idDirectives.changes.pipe(startWith(this.idDirectives))\n ).subscribe((items: QueryList<IPendoDirective>) =>\n items.forEach(item => {\n if (item !== this) {\n item.parent = this;\n }\n })\n )\n );\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.pendoSection && !changes.pendoSection.firstChange) {\n this.allIdDirectives.forEach(i => (i.parent = i.parent));\n }\n }\n\n ngOnDestroy(): void {\n this.subscriptions.forEach(s => s.unsubscribe());\n this.subscriptions = [];\n }\n}\n","import { Component } from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'lib-ngx-pendo',\n template: `\n <p>\n ngx-pendo works!\n </p>\n `,\n styles: []\n})\nexport class NgxPendoComponent {\n constructor() {}\n}\n","import { NgModule, ModuleWithProviders } from '@angular/core';\nimport { NgxPendoComponent } from './ngx-pendo.component';\nimport { NGX_PENDO_SETTINGS_TOKEN, NGX_PENDO_INITIALIZER_PROVIDER } from './ngx-pendo.injectors';\nimport { NgxPendoIdDirective } from './ngx-pendo-id.directive';\nimport { NgxPendoSectionDirective } from './ngx-pendo-section.directive';\nimport { IPendoSettings } from './ngx-pendo.interfaces';\nimport { NgxPendoService } from './ngx-pendo.service';\n\n@NgModule({\n declarations: [\n NgxPendoComponent,\n NgxPendoIdDirective,\n NgxPendoSectionDirective,\n ],\n imports: [],\n exports: [\n NgxPendoComponent,\n NgxPendoIdDirective,\n NgxPendoSectionDirective,\n ],\n})\nexport class NgxPendoModule {\n static forRoot(settings: IPendoSettings): ModuleWithProviders<NgxPendoModule> {\n return {\n ngModule: NgxPendoModule,\n providers: [\n {\n provide: NGX_PENDO_SETTINGS_TOKEN,\n useValue: settings\n },\n NGX_PENDO_INITIALIZER_PROVIDER,\n NgxPendoService,\n ],\n };\n }\n\n static forChild(): ModuleWithProviders<NgxPendoModule> {\n return {\n ngModule: NgxPendoModule,\n providers: [\n NgxPendoService,\n ],\n };\n }\n}\n","/*\n * Public API Surface of ngx-pendo\n */\n\nexport * from './lib/ngx-pendo-id.directive';\nexport * from './lib/ngx-pendo-section.directive';\nexport * from './lib/ngx-pendo.service';\nexport * from './lib/ngx-pendo.component';\nexport * from './lib/ngx-pendo.injectors';\nexport * from './lib/ngx-pendo.interfaces';\nexport * from './lib/ngx-pendo.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.NgxPendoService"],"mappings":";;;;;MAMa,wBAAwB,GAAG,IAAI,cAAc,CAAiB,oBAAoB,EAAE;IAC/F,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC;AACrC,CAAA,EAAE;AAEH,MAAM,2BAA2B,GAAG,sBAAsB,CAAC;AAE9C,MAAA,8BAA8B,GAAa;AACtD,IAAA,OAAO,EAAE,eAAe;AACxB,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,UAAU,EAAE,gBAAgB;AAC5B,IAAA,IAAI,EAAE;QACJ,wBAAwB;AACzB,KAAA;EACD;AAEI,SAAU,gBAAgB,CAAC,SAAyB,EAAA;IACxD,OAAO,YAAW;AAChB,QAAA,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE;YAC1B,IAAI,SAAS,EAAE,EAAE;AACf,gBAAA,OAAO,CAAC,KAAK,CAAC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CAAA,CAAA;AAAd,cAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,iBAXvB,iBAAiB;QACjB,mBAAmB;AACnB,QAAA,wBAAwB,aAIxB,iBAAiB;QACjB,mBAAmB;QACnB,wBAAwB,CAAA,EAAA,CAAA,CAAA;4GAGf,cAAc,EAAA,CAAA,CAAA;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAb1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,iBAAiB;wBACjB,mBAAmB;wBACnB,wBAAwB;AACzB,qBAAA;AACD,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,OAAO,EAAE;wBACP,iBAAiB;wBACjB,mBAAmB;wBACnB,wBAAwB;AACzB,qBAAA;AACF,iBAAA,CAAA;;;ACpBD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
File without changes
|
|
@@ -15,5 +15,5 @@ export declare class NgxPendoIdDirective implements IPendoDirective {
|
|
|
15
15
|
get disableInherit(): boolean | undefined;
|
|
16
16
|
constructor(service: NgxPendoService);
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxPendoIdDirective, never>;
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxPendoIdDirective, "[ngx-pendo-id]", never, { "pendoId": "ngx-pendo-id"; "inherit": "ngx-pendo-inherit"; }, {}, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxPendoIdDirective, "[ngx-pendo-id]", never, { "pendoId": "ngx-pendo-id"; "inherit": "ngx-pendo-inherit"; }, {}, never, never, false>;
|
|
19
19
|
}
|
|
@@ -15,5 +15,5 @@ export declare class NgxPendoSectionDirective implements IPendoDirective, AfterC
|
|
|
15
15
|
ngOnChanges(changes: SimpleChanges): void;
|
|
16
16
|
ngOnDestroy(): void;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxPendoSectionDirective, never>;
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxPendoSectionDirective, "[ngx-pendo-section]", never, { "pendoSection": "ngx-pendo-section"; "inherit": "ngx-pendo-inherit"; }, {}, ["idDirectives", "sectionDirectives", "allIdDirectives"]>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxPendoSectionDirective, "[ngx-pendo-section]", never, { "pendoSection": "ngx-pendo-section"; "inherit": "ngx-pendo-inherit"; }, {}, ["idDirectives", "sectionDirectives", "allIdDirectives"], never, false>;
|
|
19
19
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class NgxPendoComponent
|
|
2
|
+
export declare class NgxPendoComponent {
|
|
4
3
|
constructor();
|
|
5
|
-
ngOnInit(): void;
|
|
6
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxPendoComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgxPendoComponent, "lib-ngx-pendo", never, {}, {}, never, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxPendoComponent, "lib-ngx-pendo", never, {}, {}, never, never, false>;
|
|
8
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-pendo",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "A simple wrapper to load Pendo by angular way",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"homepage": "https://github.com/yociduo/ngx-pendo",
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@angular/common": "^
|
|
25
|
-
"@angular/core": "^
|
|
24
|
+
"@angular/common": "^14.0.0",
|
|
25
|
+
"@angular/core": "^14.0.0"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"tslib": "^2.0.0"
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"esm2020": "esm2020/ngx-pendo.mjs",
|
|
34
34
|
"fesm2020": "fesm2020/ngx-pendo.mjs",
|
|
35
35
|
"fesm2015": "fesm2015/ngx-pendo.mjs",
|
|
36
|
-
"typings": "
|
|
36
|
+
"typings": "index.d.ts",
|
|
37
37
|
"exports": {
|
|
38
38
|
"./package.json": {
|
|
39
39
|
"default": "./package.json"
|
|
40
40
|
},
|
|
41
41
|
".": {
|
|
42
|
-
"types": "./
|
|
42
|
+
"types": "./index.d.ts",
|
|
43
43
|
"esm2020": "./esm2020/ngx-pendo.mjs",
|
|
44
44
|
"es2020": "./fesm2020/ngx-pendo.mjs",
|
|
45
45
|
"es2015": "./fesm2015/ngx-pendo.mjs",
|