@webtrekk-smart-pixel/angular 1.1.1 → 1.1.4

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.
Files changed (51) hide show
  1. package/{dist/smart-pixel-angular.umd.js → bundles/webtrekk-smart-pixel-angular.umd.js} +253 -260
  2. package/bundles/webtrekk-smart-pixel-angular.umd.js.map +1 -0
  3. package/esm2015/lib/Directives/ContentEngagementDirective.js +31 -0
  4. package/esm2015/lib/Directives/ContentEngagementDirective.ngsummary.json +1 -0
  5. package/esm2015/lib/Directives/DataDirective.js +66 -0
  6. package/esm2015/lib/Directives/DataDirective.ngsummary.json +1 -0
  7. package/esm2015/lib/Directives/DataTypes.js +2 -0
  8. package/esm2015/lib/Directives/DataTypes.ngsummary.json +1 -0
  9. package/esm2015/lib/Directives/ExtensionDirective.js +25 -0
  10. package/esm2015/lib/Directives/ExtensionDirective.ngsummary.json +1 -0
  11. package/esm2015/lib/Directives/ProductListDirective.js +30 -0
  12. package/esm2015/lib/Directives/ProductListDirective.ngsummary.json +1 -0
  13. package/esm2015/lib/Directives/TeaserDirective.js +31 -0
  14. package/esm2015/lib/Directives/TeaserDirective.ngsummary.json +1 -0
  15. package/esm2015/lib/WebtrekkSmartPixelAngular.js +133 -0
  16. package/esm2015/lib/WebtrekkSmartPixelAngular.ngsummary.json +1 -0
  17. package/esm2015/lib/WebtrekkSmartPixelAutoTracking.js +44 -0
  18. package/esm2015/lib/WebtrekkSmartPixelAutoTracking.ngfactory.js +14 -0
  19. package/esm2015/lib/WebtrekkSmartPixelAutoTracking.ngsummary.json +1 -0
  20. package/esm2015/lib/WebtrekkSmartPixelConfig.js +12 -0
  21. package/esm2015/lib/WebtrekkSmartPixelConfig.ngsummary.json +1 -0
  22. package/esm2015/lib/WebtrekkSmartPixelModule.js +54 -0
  23. package/esm2015/lib/WebtrekkSmartPixelModule.ngfactory.js +15 -0
  24. package/esm2015/lib/WebtrekkSmartPixelModule.ngsummary.json +1 -0
  25. package/esm2015/lib/WebtrekkSmartPixelToken.js +3 -0
  26. package/esm2015/lib/WebtrekkSmartPixelToken.ngsummary.json +1 -0
  27. package/esm2015/public-api.js +22 -0
  28. package/esm2015/public-api.ngsummary.json +1 -0
  29. package/esm2015/webtrekk-smart-pixel-angular.js +6 -0
  30. package/esm2015/webtrekk-smart-pixel-angular.ngsummary.json +1 -0
  31. package/fesm2015/webtrekk-smart-pixel-angular.js +422 -0
  32. package/fesm2015/webtrekk-smart-pixel-angular.js.map +1 -0
  33. package/lib/Directives/ContentEngagementDirective.d.ts +10 -0
  34. package/lib/Directives/DataDirective.d.ts +17 -0
  35. package/lib/Directives/DataTypes.d.ts +176 -0
  36. package/lib/Directives/ExtensionDirective.d.ts +9 -0
  37. package/lib/Directives/ProductListDirective.d.ts +10 -0
  38. package/lib/Directives/TeaserDirective.d.ts +10 -0
  39. package/lib/WebtrekkSmartPixelAngular.d.ts +19 -0
  40. package/lib/WebtrekkSmartPixelAutoTracking.d.ts +9 -0
  41. package/lib/WebtrekkSmartPixelAutoTracking.ngfactory.d.ts +3 -0
  42. package/lib/WebtrekkSmartPixelConfig.d.ts +22 -0
  43. package/lib/WebtrekkSmartPixelModule.d.ts +5 -0
  44. package/lib/WebtrekkSmartPixelModule.ngfactory.d.ts +3 -0
  45. package/lib/WebtrekkSmartPixelToken.d.ts +3 -0
  46. package/package.json +19 -6
  47. package/public-api.d.ts +17 -0
  48. package/webtrekk-smart-pixel-angular.d.ts +6 -0
  49. package/webtrekk-smart-pixel-angular.metadata.json +1 -0
  50. package/CHANGELOG.md +0 -45
  51. package/index.js +0 -4
@@ -0,0 +1,12 @@
1
+ export class DefaultConfig {
2
+ constructor() {
3
+ this.trackId = '';
4
+ this.trackDomain = '';
5
+ this.activateAutoTracking = true;
6
+ this.activateActions = false;
7
+ this.activateTeaser = false;
8
+ this.activateProductList = false;
9
+ this.activateContentEngagement = false;
10
+ }
11
+ }
12
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZX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0Q29uZmlnIGltcGxlbWVudHMgV2VidHJla2tTbWFydFBpeGVsQ29uZmlnIHtcbiAgICB0cmFja0lkID0gJyc7XG4gICAgdHJhY2tEb21haW4gPSAnJztcbiAgICBhY3RpdmF0ZUF1dG9UcmFja2luZyA9IHRydWU7XG4gICAgYWN0aXZhdGVBY3Rpb25zID0gZmFsc2U7XG4gICAgYWN0aXZhdGVUZWFzZXIgPSBmYWxzZTtcbiAgICBhY3RpdmF0ZVByb2R1Y3RMaXN0ID0gZmFsc2U7XG4gICAgYWN0aXZhdGVDb250ZW50RW5nYWdlbWVudCA9IGZhbHNlO1xufVxuIl19
@@ -0,0 +1 @@
1
+ {"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"interface"}},{"symbol":{"__symbol":1,"members":[]},"metadata":{"__symbolic":"interface"}},{"symbol":{"__symbol":2,"members":[]},"metadata":{"__symbolic":"class"}}],"symbols":[{"__symbol":0,"name":"WebtrekkSmartPixelConfig","filePath":"./WebtrekkSmartPixelConfig"},{"__symbol":1,"name":"WebtrekkSmartPixelRouterlessConfig","filePath":"./WebtrekkSmartPixelConfig"},{"__symbol":2,"name":"DefaultConfig","filePath":"./WebtrekkSmartPixelConfig"}]}
@@ -0,0 +1,54 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { DataDirective } from './Directives/DataDirective';
3
+ import { TeaserDirective } from './Directives/TeaserDirective';
4
+ import { ProductListDirective } from './Directives/ProductListDirective';
5
+ import { ContentEngagementDirective } from './Directives/ContentEngagementDirective';
6
+ import { ExtensionDirective } from './Directives/ExtensionDirective';
7
+ import { WebtrekkSmartPixelAngular } from './WebtrekkSmartPixelAngular';
8
+ import { WebtrekkSmartPixelAutoTracking } from './WebtrekkSmartPixelAutoTracking';
9
+ import { DefaultConfig } from './WebtrekkSmartPixelConfig';
10
+ import { WEBTREKK_SMART_PIXEL_TOKEN } from './WebtrekkSmartPixelToken';
11
+ import { webtrekkSmartPixelAngular } from '../public-api';
12
+ const defaultConfig = new DefaultConfig();
13
+ export class WebtrekkSmartPixelModule {
14
+ static forRoot(conf = {}) {
15
+ return {
16
+ ngModule: WebtrekkSmartPixelModule,
17
+ providers: [
18
+ {
19
+ provide: WEBTREKK_SMART_PIXEL_TOKEN,
20
+ useValue: Object.assign(Object.assign({}, defaultConfig), conf)
21
+ },
22
+ {
23
+ provide: WebtrekkSmartPixelAngular,
24
+ useValue: webtrekkSmartPixelAngular
25
+ }
26
+ ]
27
+ };
28
+ }
29
+ }
30
+ WebtrekkSmartPixelModule.decorators = [
31
+ { type: NgModule, args: [{
32
+ declarations: [
33
+ DataDirective,
34
+ ExtensionDirective,
35
+ TeaserDirective,
36
+ ProductListDirective,
37
+ ContentEngagementDirective
38
+ ],
39
+ exports: [
40
+ DataDirective,
41
+ ExtensionDirective,
42
+ TeaserDirective,
43
+ ProductListDirective,
44
+ ContentEngagementDirective,
45
+ WebtrekkSmartPixelAutoTracking
46
+ ],
47
+ imports: [
48
+ WebtrekkSmartPixelAutoTracking
49
+ ],
50
+ providers: [],
51
+ bootstrap: []
52
+ },] }
53
+ ];
54
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiV2VidHJla2tTbWFydFBpeGVsTW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi9XZWJ0cmVra1NtYXJ0UGl4ZWxNb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFFBQVEsRUFBc0IsTUFBTSxlQUFlLENBQUM7QUFFNUQsT0FBTyxFQUFDLGFBQWEsRUFBQyxNQUFNLDRCQUE0QixDQUFDO0FBQ3pELE9BQU8sRUFBQyxlQUFlLEVBQUMsTUFBTSw4QkFBOEIsQ0FBQztBQUM3RCxPQUFPLEVBQUMsb0JBQW9CLEVBQUMsTUFBTSxtQ0FBbUMsQ0FBQztBQUN2RSxPQ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aWRlcnM8V2VidHJla2tTbWFydFBpeGVsTW9kdWxlPiB7XG4gICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICBuZ01vZHVsZTogV2VidHJla2tTbWFydFBpeGVsTW9kdWxlLFxuICAgICAgICAgICAgcHJvdmlkZXJzOiBbXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICBwcm92aWRlOiBXRUJUUkVLS19TTUFSVF9QSVhFTF9UT0tFTixcbiAgICAgICAgICAgICAgICAgICAgdXNlVmFsdWU6IHsuLi5kZWZhdWx0Q29uZmlnLCAuLi5jb25mfVxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICBwcm92aWRlOiBXZWJ0cmVra1NtYXJ0UGl4ZWxBbmd1bGFyLFxuICAgICAgICAgICAgICAgICAgICB1c2VWYWx1ZTogd2VidHJla2tTbWFydFBpeGVsQW5ndWxhclxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIF1cbiAgICAgICAgfTtcbiAgICB9XG59XG4iXX0=
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @fileoverview This file was generated by the Angular template compiler. Do not edit.
3
+ *
4
+ * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes,extraRequire}
5
+ * tslint:disable
6
+ */
7
+ import * as i0 from "@angular/core";
8
+ import * as i1 from "./WebtrekkSmartPixelModule";
9
+ import * as i2 from "./WebtrekkSmartPixelAutoTracking";
10
+ import * as i3 from "@angular/router";
11
+ import * as i4 from "./WebtrekkSmartPixelAngular";
12
+ import * as i5 from "./WebtrekkSmartPixelToken";
13
+ var WebtrekkSmartPixelModuleNgFactory = i0.ɵcmf(i1.WebtrekkSmartPixelModule, [], function (_l) { return i0.ɵmod([i0.ɵmpd(512, i0.ComponentFactoryResolver, i0.ɵCodegenComponentFactoryResolver, [[8, []], [3, i0.ComponentFactoryResolver], i0.NgModuleRef]), i0.ɵmpd(1073742336, i2.WebtrekkSmartPixelAutoTracking, i2.WebtrekkSmartPixelAutoTracking, [i3.Router, i4.WebtrekkSmartPixelAngular, i5.WEBTREKK_SMART_PIXEL_TOKEN]), i0.ɵmpd(1073742336, i1.WebtrekkSmartPixelModule, i1.WebtrekkSmartPixelModule, [])]); });
14
+ export { WebtrekkSmartPixelModuleNgFactory as WebtrekkSmartPixelModuleNgFactory };
15
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiV2VidHJla2tTbWFydFBpeGVsTW9kdWxlLm5nZmFjdG9yeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvV2VidHJla2tTbWFydFBpeGVsTW9kdWxlLm5nZmFjdG9yeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgaTAgZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgKiBhcyBpMSBmcm9tICcuL1dlYnRyZWtrU21hcnRQaXhlbE1vZHVsZSc7XG5pbXBvcnQgKiBhcyBpMiBmcm9tICcuL0RpcmVjdGl2ZXMvRGF0YURpcmVjdGl2ZSc7XG5pbXBvcnQgKiBhcyBpMyBmcm9tICcuL0RpcmVjdGl2ZXMvRXh0ZW5zaW9uRGlyZWN0aXZlJztcbmltcG9ydCAqIGFzIGk0IGZyb20gJy4vRGlyZWN0aXZlcy9UZWFzZXJEaXJlY3RpdmUnO1xuaW1wb3J0ICogYXMgaTUgZnJvbSAnLi9EaXJlY3RpdmVzL1Byb2R1Y3RMaXN0RGlyZWN0aXZlJztcbmltcG9ydCAqIGFzIGk2IGZyb20gJy4vRGlyZWN0aXZlcy9Db250ZW50RW5nYWdlbWVudERpcmVjdGl2ZSc7XG5pbXBvcnQgKiBhcyBpNyBmcm9tICcuL1dlYnRyZWtrU21hcnRQaXhlbEF1dG9UcmFja2luZyc7XG5leHBvcnQgY29uc3QgV2VidHJla2tTbWFydFBpeGVsTW9kdWxlTmdGYWN0b3J5OmkwLk5nTW9kdWxlRmFjdG9yeTxpMS5XZWJ0cmVra1NtYXJ0UGl4ZWxNb2R1bGU+ID0gKG51bGwgYXMgYW55KTtcbnZhciBfZGVjbDBfMDppMi5EYXRhRGlyZWN0aXZlID0gKDxhbnk+KG51bGwgYXMgYW55KSk7XG52YXIgX2RlY2wwXzE6aTMuRXh0ZW5zaW9uRGlyZWN0aXZlID0gKDxhbnk+KG51bGwgYXMgYW55KSk7XG52YXIgX2RlY2wwXzI6aTQuVGVhc2VyRGlyZWN0aXZlID0gKDxhbnk+KG51bGwgYXMgYW55KSk7XG52YXIgX2RlY2wwXzM6aTUuUHJvZHVjdExpc3REaXJlY3RpdmUgPSAoPGFueT4obnVsbCBhcyBhbnkpKTtcbnZhciBfZGVjbDBfNDppNi5Db250ZW50RW5nYWdlbWVudERpcmVjdGl2ZSA9ICg8YW55PihudWxsIGFzIGFueSkpO1xudmFyIF9kZWNsMF82Omk3LldlYnRyZWtrU21hcnRQaXhlbEF1dG9UcmFja2luZyA9ICg8YW55PihudWxsIGFzIGFueSkpO1xudmFyIF9kZWNsMF83OmkwLlRlbXBsYXRlUmVmPGFueT4gPSAoPGFueT4obnVsbCBhcyBhbnkpKTtcbnZhciBfZGVjbDBfODppMC5FbGVtZW50UmVmPGFueT4gPSAoPGFueT4obnVsbCBhcyBhbnkpKTtcbiJdfQ==
@@ -0,0 +1 @@
1
+ {"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","statics":{"forRoot":{"__symbolic":"function","parameters":["conf"],"value":{"ngModule":{"__symbol":0,"members":[]},"providers":[{"provide":{"__symbol":1,"members":[]},"useValue":{}},{"provide":{"__symbol":2,"members":[]},"useValue":{"__symbol":3,"members":[]}}]},"defaults":[{}]}}},"type":{"summaryKind":2,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]},"entryComponents":[],"providers":[],"modules":[{"reference":{"__symbol":4,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":5,"members":[]}}}},{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":2,"members":[]}}}},{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":1,"members":[]}}}}],"lifecycleHooks":[]},{"reference":{"__symbol":0,"members":[]},"diDeps":[],"lifecycleHooks":[]}],"exportedDirectives":[{"reference":{"__symbol":6,"members":[]}},{"reference":{"__symbol":7,"members":[]}},{"reference":{"__symbol":8,"members":[]}},{"reference":{"__symbol":9,"members":[]}},{"reference":{"__symbol":10,"members":[]}}],"exportedPipes":[]}}],"symbols":[{"__symbol":0,"name":"WebtrekkSmartPixelModule","filePath":"./WebtrekkSmartPixelModule"},{"__symbol":1,"name":"WEBTREKK_SMART_PIXEL_TOKEN","filePath":"./WebtrekkSmartPixelToken"},{"__symbol":2,"name":"WebtrekkSmartPixelAngular","filePath":"./WebtrekkSmartPixelAngular"},{"__symbol":3,"name":"webtrekkSmartPixelAngular","filePath":"../public-api"},{"__symbol":4,"name":"WebtrekkSmartPixelAutoTracking","filePath":"./WebtrekkSmartPixelAutoTracking"},{"__symbol":5,"name":"Router","filePath":"@angular/router"},{"__symbol":6,"name":"DataDirective","filePath":"./Directives/DataDirective"},{"__symbol":7,"name":"ExtensionDirective","filePath":"./Directives/ExtensionDirective"},{"__symbol":8,"name":"TeaserDirective","filePath":"./Directives/TeaserDirective"},{"__symbol":9,"name":"ProductListDirective","filePath":"./Directives/ProductListDirective"},{"__symbol":10,"name":"ContentEngagementDirective","filePath":"./Directives/ContentEngagementDirective"}]}
@@ -0,0 +1,3 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ export const WEBTREKK_SMART_PIXEL_TOKEN = new InjectionToken('WEBTREKK-SMART-PIXEL-ANGULAR');
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiV2VidHJla2tTbWFydFBpeGVsVG9rZW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL1dlYnRyZWtrU21hcnRQaXhlbFRva2VuLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxjQUFjLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFJN0MsTUFBTSxDQUFDLE1BQU0sMEJBQTBCLEdBQUcsSUFBSSxjQUFjLENBQTJCLDhCQUE4QixDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0luamVjdGlvblRva2VufSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuaW1wb3J0IHtXZWJ0cmVra1NtYXJ0UGl4ZWxDb25maWd9IGZyb20gJy4vV2VidHJla2tTbWFydFBpeGVsQ29uZmlnJztcblxuZXhwb3J0IGNvbnN0IFdFQlRSRUtLX1NNQVJUX1BJWEVMX1RPS0VOID0gbmV3IEluamVjdGlvblRva2VuPFdlYnRyZWtrU21hcnRQaXhlbENvbmZpZz4oJ1dFQlRSRUtLLVNNQVJULVBJWEVMLUFOR1VMQVInKTtcbiJdfQ==
@@ -0,0 +1 @@
1
+ {"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"new","expression":{"__symbol":1,"members":[]},"arguments":["WEBTREKK-SMART-PIXEL-ANGULAR"]}}],"symbols":[{"__symbol":0,"name":"WEBTREKK_SMART_PIXEL_TOKEN","filePath":"./WebtrekkSmartPixelToken"},{"__symbol":1,"name":"InjectionToken","filePath":"@angular/core"}]}
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Public API Surface of smart-pixel-angular
3
+ */
4
+ export { WebtrekkSmartPixelModule } from './lib/WebtrekkSmartPixelModule';
5
+ export { WebtrekkSmartPixelAngular } from './lib/WebtrekkSmartPixelAngular';
6
+ import { WebtrekkSmartPixelModule } from './lib/WebtrekkSmartPixelModule';
7
+ import { WebtrekkSmartPixelAngular } from './lib/WebtrekkSmartPixelAngular';
8
+ export { DataDirective } from './lib/Directives/DataDirective';
9
+ export { TeaserDirective } from './lib/Directives/TeaserDirective';
10
+ export { ProductListDirective } from './lib/Directives/ProductListDirective';
11
+ export { ContentEngagementDirective } from './lib/Directives/ContentEngagementDirective';
12
+ export { ExtensionDirective } from './lib/Directives/ExtensionDirective';
13
+ export { WebtrekkSmartPixelAutoTracking } from './lib/WebtrekkSmartPixelAutoTracking';
14
+ // compatibility for v0
15
+ export const webtrekkSmartPixelAngular = new WebtrekkSmartPixelAngular();
16
+ export default {
17
+ WebtrekkSmartPixelModule,
18
+ WebtrekkSmartPixelAngular,
19
+ // compatibility for v0
20
+ webtrekkSmartPixelAngular
21
+ };
22
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsT0FBTyxFQUFDLHdCQUF3QixFQUFDLE1BQU0sZ0NBQWdDLENBQUM7QUFDeEUsT0FBTyxFQUFDLHlCQUF5QixFQUFDLE1BQU0saUNBQWlDLENBQUM7QUFFMUUsT0FBTyxFQUFDLHdCQUF3QixFQUFDLE1BQU0sZ0NBQWdDLENBQUM7QUFDeEUsT0FBTyxFQUFDLHlCQUF5QixFQUFDLE1BQU0saUNBQWlDLENBQUM7QUFFMUUsT0FBTyxFQUFDLGFBQWEsRUFBQyxNQUFNLGdDQUFnQyxDQUFDO0FBQzdELE9BQU8sRUFBQyxlQUFlLEVBQUMsTUFBTSxrQ0FBa0MsQ0FBQztBQUNqRSxPQUFP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vbGliL0RpcmVjdGl2ZXMvVGVhc2VyRGlyZWN0aXZlJztcbmV4cG9ydCB7UHJvZHVjdExpc3REaXJlY3RpdmV9IGZyb20gJy4vbGliL0RpcmVjdGl2ZXMvUHJvZHVjdExpc3REaXJlY3RpdmUnO1xuZXhwb3J0IHtDb250ZW50RW5nYWdlbWVudERpcmVjdGl2ZX0gZnJvbSAnLi9saWIvRGlyZWN0aXZlcy9Db250ZW50RW5nYWdlbWVudERpcmVjdGl2ZSc7XG5leHBvcnQge0V4dGVuc2lvbkRpcmVjdGl2ZX0gZnJvbSAnLi9saWIvRGlyZWN0aXZlcy9FeHRlbnNpb25EaXJlY3RpdmUnO1xuZXhwb3J0IHtXZWJ0cmVra1NtYXJ0UGl4ZWxBdXRvVHJhY2tpbmd9IGZyb20gJy4vbGliL1dlYnRyZWtrU21hcnRQaXhlbEF1dG9UcmFja2luZyc7XG5cbi8vIGNvbXBhdGliaWxpdHkgZm9yIHYwXG5leHBvcnQgY29uc3Qgd2VidHJla2tTbWFydFBpeGVsQW5ndWxhciA9IG5ldyBXZWJ0cmVra1NtYXJ0UGl4ZWxBbmd1bGFyKCk7XG5cbmV4cG9ydCBkZWZhdWx0IHtcbiAgICBXZWJ0cmVra1NtYXJ0UGl4ZWxNb2R1bGUsXG4gICAgV2VidHJla2tTbWFydFBpeGVsQW5ndWxhcixcblxuICAgIC8vIGNvbXBhdGliaWxpdHkgZm9yIHYwXG4gICAgd2VidHJla2tTbWFydFBpeGVsQW5ndWxhclxufTtcbiJdfQ==
@@ -0,0 +1 @@
1
+ {"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbol":1,"members":[]}},{"symbol":{"__symbol":2,"members":[]},"metadata":{"__symbol":3,"members":[]}},{"symbol":{"__symbol":4,"members":[]},"metadata":{"__symbol":5,"members":[]}},{"symbol":{"__symbol":6,"members":[]},"metadata":{"__symbol":7,"members":[]}},{"symbol":{"__symbol":8,"members":[]},"metadata":{"__symbol":9,"members":[]}},{"symbol":{"__symbol":10,"members":[]},"metadata":{"__symbol":11,"members":[]}},{"symbol":{"__symbol":12,"members":[]},"metadata":{"__symbol":13,"members":[]}},{"symbol":{"__symbol":14,"members":[]},"metadata":{"__symbol":15,"members":[]}},{"symbol":{"__symbol":16,"members":[]},"metadata":{"__symbolic":"new","expression":{"__symbol":3,"members":[]}}}],"symbols":[{"__symbol":0,"name":"WebtrekkSmartPixelModule","filePath":"./public-api"},{"__symbol":1,"name":"WebtrekkSmartPixelModule","filePath":"./lib/WebtrekkSmartPixelModule"},{"__symbol":2,"name":"WebtrekkSmartPixelAngular","filePath":"./public-api"},{"__symbol":3,"name":"WebtrekkSmartPixelAngular","filePath":"./lib/WebtrekkSmartPixelAngular"},{"__symbol":4,"name":"DataDirective","filePath":"./public-api"},{"__symbol":5,"name":"DataDirective","filePath":"./lib/Directives/DataDirective"},{"__symbol":6,"name":"TeaserDirective","filePath":"./public-api"},{"__symbol":7,"name":"TeaserDirective","filePath":"./lib/Directives/TeaserDirective"},{"__symbol":8,"name":"ProductListDirective","filePath":"./public-api"},{"__symbol":9,"name":"ProductListDirective","filePath":"./lib/Directives/ProductListDirective"},{"__symbol":10,"name":"ContentEngagementDirective","filePath":"./public-api"},{"__symbol":11,"name":"ContentEngagementDirective","filePath":"./lib/Directives/ContentEngagementDirective"},{"__symbol":12,"name":"ExtensionDirective","filePath":"./public-api"},{"__symbol":13,"name":"ExtensionDirective","filePath":"./lib/Directives/ExtensionDirective"},{"__symbol":14,"name":"WebtrekkSmartPixelAutoTracking","filePath":"./public-api"},{"__symbol":15,"name":"WebtrekkSmartPixelAutoTracking","filePath":"./lib/WebtrekkSmartPixelAutoTracking"},{"__symbol":16,"name":"webtrekkSmartPixelAngular","filePath":"./public-api"}]}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public-api';
5
+ export { WEBTREKK_SMART_PIXEL_TOKEN as ɵa } from './lib/WebtrekkSmartPixelToken';
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2VidHJla2stc21hcnQtcGl4ZWwtYW5ndWxhci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy93ZWJ0cmVray1zbWFydC1waXhlbC1hbmd1bGFyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUM7QUFHN0IsT0FBTyxFQUFDLDBCQUEwQixJQUFJLEVBQUUsRUFBQyxNQUFNLCtCQUErQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuXG5leHBvcnQge1dlYnRyZWtrU21hcnRQaXhlbENvbmZpZyBhcyDJtWJ9IGZyb20gJy4vbGliL1dlYnRyZWtrU21hcnRQaXhlbENvbmZpZyc7XG5leHBvcnQge1dFQlRSRUtLX1NNQVJUX1BJWEVMX1RPS0VOIGFzIMm1YX0gZnJvbSAnLi9saWIvV2VidHJla2tTbWFydFBpeGVsVG9rZW4nOyJdfQ==
@@ -0,0 +1 @@
1
+ {"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbol":1,"members":[]}},{"symbol":{"__symbol":2,"members":[]},"metadata":{"__symbol":3,"members":[]}},{"symbol":{"__symbol":4,"members":[]},"metadata":{"__symbol":5,"members":[]}},{"symbol":{"__symbol":6,"members":[]},"metadata":{"__symbol":7,"members":[]}},{"symbol":{"__symbol":8,"members":[]},"metadata":{"__symbol":9,"members":[]}},{"symbol":{"__symbol":10,"members":[]},"metadata":{"__symbol":11,"members":[]}},{"symbol":{"__symbol":12,"members":[]},"metadata":{"__symbol":13,"members":[]}},{"symbol":{"__symbol":14,"members":[]},"metadata":{"__symbol":15,"members":[]}},{"symbol":{"__symbol":16,"members":[]},"metadata":{"__symbol":17,"members":[]}},{"symbol":{"__symbol":18,"members":[]},"metadata":{"__symbol":19,"members":[]}},{"symbol":{"__symbol":20,"members":[]},"metadata":{"__symbol":21,"members":[]}}],"symbols":[{"__symbol":0,"name":"WebtrekkSmartPixelModule","filePath":"./webtrekk-smart-pixel-angular"},{"__symbol":1,"name":"WebtrekkSmartPixelModule","filePath":"./public-api"},{"__symbol":2,"name":"WebtrekkSmartPixelAngular","filePath":"./webtrekk-smart-pixel-angular"},{"__symbol":3,"name":"WebtrekkSmartPixelAngular","filePath":"./public-api"},{"__symbol":4,"name":"DataDirective","filePath":"./webtrekk-smart-pixel-angular"},{"__symbol":5,"name":"DataDirective","filePath":"./public-api"},{"__symbol":6,"name":"TeaserDirective","filePath":"./webtrekk-smart-pixel-angular"},{"__symbol":7,"name":"TeaserDirective","filePath":"./public-api"},{"__symbol":8,"name":"ProductListDirective","filePath":"./webtrekk-smart-pixel-angular"},{"__symbol":9,"name":"ProductListDirective","filePath":"./public-api"},{"__symbol":10,"name":"ContentEngagementDirective","filePath":"./webtrekk-smart-pixel-angular"},{"__symbol":11,"name":"ContentEngagementDirective","filePath":"./public-api"},{"__symbol":12,"name":"ExtensionDirective","filePath":"./webtrekk-smart-pixel-angular"},{"__symbol":13,"name":"ExtensionDirective","filePath":"./public-api"},{"__symbol":14,"name":"WebtrekkSmartPixelAutoTracking","filePath":"./webtrekk-smart-pixel-angular"},{"__symbol":15,"name":"WebtrekkSmartPixelAutoTracking","filePath":"./public-api"},{"__symbol":16,"name":"webtrekkSmartPixelAngular","filePath":"./webtrekk-smart-pixel-angular"},{"__symbol":17,"name":"webtrekkSmartPixelAngular","filePath":"./public-api"},{"__symbol":18,"name":"ɵb","filePath":"./webtrekk-smart-pixel-angular"},{"__symbol":19,"name":"WebtrekkSmartPixelConfig","filePath":"./lib/WebtrekkSmartPixelConfig"},{"__symbol":20,"name":"ɵa","filePath":"./webtrekk-smart-pixel-angular"},{"__symbol":21,"name":"WEBTREKK_SMART_PIXEL_TOKEN","filePath":"./lib/WebtrekkSmartPixelToken"}]}
@@ -0,0 +1,422 @@
1
+ import { Injectable, Directive, Input, ElementRef, InjectionToken, NgModule, Inject } from '@angular/core';
2
+ import wtSmart from '@webtrekk-smart-pixel/core';
3
+ import { NavigationEnd, Router } from '@angular/router';
4
+ import { filter, delay } from 'rxjs/operators';
5
+
6
+ let pixel_;
7
+ const getWindow_ = () => {
8
+ return ((typeof window !== 'undefined') ? window : null);
9
+ };
10
+ const ɵ0 = getWindow_;
11
+ const getDocument_ = () => {
12
+ return ((typeof window !== 'undefined' && typeof window.document !== 'undefined') ? window.document : null);
13
+ };
14
+ const ɵ1 = getDocument_;
15
+ const init_ = () => {
16
+ const window_ = getWindow_();
17
+ const document_ = getDocument_();
18
+ if (window_ !== null && document_ !== null) {
19
+ pixel_ = wtSmart.use(window_, document_);
20
+ // @ts-ignore
21
+ window_['wtSmart'] = pixel_;
22
+ window_['wtSmart']['_ps'](1, '1.1.4');
23
+ }
24
+ };
25
+ const ɵ2 = init_;
26
+ class WebtrekkSmartPixelAngular {
27
+ call(call) {
28
+ if (!pixel_) {
29
+ init_();
30
+ }
31
+ if (pixel_) {
32
+ pixel_.push(call);
33
+ }
34
+ }
35
+ init(data) {
36
+ this.call((pix) => {
37
+ pix.init.add(data);
38
+ });
39
+ }
40
+ advanced(data) {
41
+ this.call((pix) => {
42
+ pix.advanced.add(data);
43
+ });
44
+ }
45
+ page(name, data) {
46
+ this.call((pix) => {
47
+ if (typeof name === 'string') {
48
+ pix.page.data.add(name, data);
49
+ }
50
+ else {
51
+ pix.page.data.add(name);
52
+ }
53
+ });
54
+ }
55
+ action(name, data) {
56
+ this.call((pix) => {
57
+ if (typeof name === 'string') {
58
+ pix.action.data.add(name, data);
59
+ }
60
+ else {
61
+ pix.action.data.add(name);
62
+ }
63
+ });
64
+ }
65
+ session(data) {
66
+ this.call((pix) => {
67
+ pix.session.data.add(data);
68
+ });
69
+ }
70
+ campaign(data) {
71
+ this.call((pix) => {
72
+ pix.campaign.data.add(data);
73
+ });
74
+ }
75
+ customer(id, data, validation) {
76
+ this.call((pix) => {
77
+ if (typeof id === 'string') {
78
+ pix.customer.data.add(id, data, validation);
79
+ }
80
+ else {
81
+ pix.customer.data.add(id);
82
+ }
83
+ });
84
+ }
85
+ product(action, data) {
86
+ this.call((pix) => {
87
+ const method = (action === 'view' || action === 'basket') ? 'set' : 'add';
88
+ // @ts-ignore
89
+ pix.product[action].data[method]([data]);
90
+ });
91
+ }
92
+ products(action, data) {
93
+ this.call((pix) => {
94
+ const method = (action === 'view' || action === 'basket') ? 'set' : 'add';
95
+ // @ts-ignore
96
+ pix.product[action].data[method](data);
97
+ });
98
+ }
99
+ order(data) {
100
+ this.call((pix) => {
101
+ pix.order.data.add(data);
102
+ });
103
+ }
104
+ extension(extension, action, config) {
105
+ if (!extension) {
106
+ return;
107
+ }
108
+ if (!action) {
109
+ action = 'activate';
110
+ }
111
+ this.call((pix) => {
112
+ // @ts-ignore
113
+ pix.extension[extension][action](config);
114
+ });
115
+ }
116
+ track(keepData) {
117
+ this.call((pix) => {
118
+ pix.track(keepData);
119
+ });
120
+ }
121
+ trackPage(keepData) {
122
+ this.call((pix) => {
123
+ pix.trackPage(keepData);
124
+ });
125
+ }
126
+ trackAction(keepData) {
127
+ this.call((pix) => {
128
+ pix.trackAction(keepData);
129
+ });
130
+ }
131
+ }
132
+ WebtrekkSmartPixelAngular.decorators = [
133
+ { type: Injectable }
134
+ ];
135
+
136
+ const directiveSelector = '[wt-advanced-data],'
137
+ + '[wt-campaign-data],'
138
+ + '[wt-customer-data],'
139
+ + '[wt-init-data],'
140
+ + '[wt-order-data],'
141
+ + '[wt-page-data],'
142
+ + '[wt-product-data],'
143
+ + '[wt-session-data]';
144
+ class DataDirective {
145
+ constructor(pixel) {
146
+ this.pixel = pixel;
147
+ }
148
+ ngAfterContentInit() {
149
+ if (this.wtAdvancedData) {
150
+ this.pixel.advanced(this.wtAdvancedData);
151
+ }
152
+ if (this.wtCampaignData) {
153
+ this.pixel.campaign(this.wtCampaignData);
154
+ }
155
+ if (this.wtCustomerData) {
156
+ this.pixel.customer(this.wtCustomerData && this.wtCustomerData.id ? this.wtCustomerData.id : this.wtCustomerData, this.wtCustomerData, this.wtCustomerData.validation);
157
+ }
158
+ if (this.wtInitData) {
159
+ this.pixel.init(this.wtInitData);
160
+ }
161
+ if (this.wtOrderData) {
162
+ this.pixel.order(this.wtOrderData);
163
+ }
164
+ if (this.wtPageData) {
165
+ this.pixel.page(this.wtPageData && this.wtPageData.name ? this.wtPageData.name : this.wtPageData, this.wtPageData);
166
+ }
167
+ if (this.wtProductData) {
168
+ this.pixel.product(this.wtProductData && this.wtProductData.action ? this.wtProductData.action : 'view', this.wtProductData);
169
+ }
170
+ if (this.wtSessionData) {
171
+ this.pixel.session(this.wtSessionData);
172
+ }
173
+ if (typeof this.wtTrack !== 'undefined') {
174
+ setTimeout(() => {
175
+ this.pixel.track();
176
+ }, 0);
177
+ }
178
+ }
179
+ }
180
+ DataDirective.decorators = [
181
+ { type: Directive, args: [{
182
+ selector: directiveSelector
183
+ },] }
184
+ ];
185
+ DataDirective.ctorParameters = () => [
186
+ { type: WebtrekkSmartPixelAngular }
187
+ ];
188
+ DataDirective.propDecorators = {
189
+ wtAdvancedData: [{ type: Input, args: ['wt-advanced-data',] }],
190
+ wtCampaignData: [{ type: Input, args: ['wt-campaign-data',] }],
191
+ wtCustomerData: [{ type: Input, args: ['wt-customer-data',] }],
192
+ wtInitData: [{ type: Input, args: ['wt-init-data',] }],
193
+ wtOrderData: [{ type: Input, args: ['wt-order-data',] }],
194
+ wtPageData: [{ type: Input, args: ['wt-page-data',] }],
195
+ wtProductData: [{ type: Input, args: ['wt-product-data',] }],
196
+ wtSessionData: [{ type: Input, args: ['wt-session-data',] }],
197
+ wtTrack: [{ type: Input, args: ['wt-track',] }]
198
+ };
199
+
200
+ class TeaserDirective {
201
+ constructor(elementRef, pixel) {
202
+ this.elementRef = elementRef;
203
+ this.pixel = pixel;
204
+ }
205
+ ngAfterContentInit() {
206
+ this.pixel.call((pix) => {
207
+ pix.extension.teaser_tracking.add({
208
+ selector: this.wtTeaserElement && this.wtTeaserElement.selector ? this.wtTeaserElement.selector : this.elementRef.nativeElement,
209
+ data: this.wtTeaserElement,
210
+ conversion: this.wtTeaserElement
211
+ });
212
+ });
213
+ }
214
+ }
215
+ TeaserDirective.decorators = [
216
+ { type: Directive, args: [{
217
+ selector: '[wt-teaser]',
218
+ exportAs: 'wt-teaser'
219
+ },] }
220
+ ];
221
+ TeaserDirective.ctorParameters = () => [
222
+ { type: ElementRef },
223
+ { type: WebtrekkSmartPixelAngular }
224
+ ];
225
+ TeaserDirective.propDecorators = {
226
+ wtTeaserElement: [{ type: Input, args: ['wt-teaser',] }]
227
+ };
228
+
229
+ class ProductListDirective {
230
+ constructor(elementRef, pixel) {
231
+ this.elementRef = elementRef;
232
+ this.pixel = pixel;
233
+ }
234
+ ngAfterContentInit() {
235
+ this.pixel.call((pix) => {
236
+ pix.extension.product_list_tracking.add({
237
+ selector: this.wtProductListElement && this.wtProductListElement.selector ? this.wtProductListElement.selector : this.elementRef.nativeElement,
238
+ data: this.wtProductListElement
239
+ });
240
+ });
241
+ }
242
+ }
243
+ ProductListDirective.decorators = [
244
+ { type: Directive, args: [{
245
+ selector: '[wt-product-list]',
246
+ exportAs: 'wt-product-list'
247
+ },] }
248
+ ];
249
+ ProductListDirective.ctorParameters = () => [
250
+ { type: ElementRef },
251
+ { type: WebtrekkSmartPixelAngular }
252
+ ];
253
+ ProductListDirective.propDecorators = {
254
+ wtProductListElement: [{ type: Input, args: ['wt-product-list',] }]
255
+ };
256
+
257
+ class ContentEngagementDirective {
258
+ constructor(elementRef, pixel) {
259
+ this.elementRef = elementRef;
260
+ this.pixel = pixel;
261
+ }
262
+ ngAfterContentInit() {
263
+ this.pixel.call((pix) => {
264
+ pix.extension.content_engagement.add({
265
+ selector: this.wtContentEngagementElement && this.wtContentEngagementElement.selector ? this.wtContentEngagementElement.selector : this.elementRef.nativeElement,
266
+ name: this.wtContentEngagementElement && this.wtContentEngagementElement.name ? this.wtContentEngagementElement.name : '',
267
+ config: this.wtContentEngagementElement
268
+ });
269
+ });
270
+ }
271
+ }
272
+ ContentEngagementDirective.decorators = [
273
+ { type: Directive, args: [{
274
+ selector: '[wt-content-engagement]',
275
+ exportAs: 'wt-content-engagement'
276
+ },] }
277
+ ];
278
+ ContentEngagementDirective.ctorParameters = () => [
279
+ { type: ElementRef },
280
+ { type: WebtrekkSmartPixelAngular }
281
+ ];
282
+ ContentEngagementDirective.propDecorators = {
283
+ wtContentEngagementElement: [{ type: Input, args: ['wt-content-engagement',] }]
284
+ };
285
+
286
+ class ExtensionDirective {
287
+ constructor(pixel) {
288
+ this.pixel = pixel;
289
+ }
290
+ ngAfterContentInit() {
291
+ if (this.wtExtensionData) {
292
+ this.pixel.extension(this.wtExtensionData.name, this.wtExtensionData.action, this.wtExtensionData.config);
293
+ }
294
+ }
295
+ }
296
+ ExtensionDirective.decorators = [
297
+ { type: Directive, args: [{
298
+ selector: '[wt-extension]',
299
+ exportAs: 'wt-extension'
300
+ },] }
301
+ ];
302
+ ExtensionDirective.ctorParameters = () => [
303
+ { type: WebtrekkSmartPixelAngular }
304
+ ];
305
+ ExtensionDirective.propDecorators = {
306
+ wtExtensionData: [{ type: Input, args: ['wt-extension',] }]
307
+ };
308
+
309
+ const WEBTREKK_SMART_PIXEL_TOKEN = new InjectionToken('WEBTREKK-SMART-PIXEL-ANGULAR');
310
+
311
+ class WebtrekkSmartPixelAutoTracking {
312
+ constructor(router, pixel, config) {
313
+ this.router = router;
314
+ this.pixel = pixel;
315
+ this.config = config;
316
+ this.pixel.init(this.config);
317
+ if (this.config.activateActions) {
318
+ this.pixel.extension('action', 'activate');
319
+ }
320
+ if (this.config.activateTeaser) {
321
+ this.pixel.extension('teaser_tracking', 'activate');
322
+ }
323
+ if (this.config.activateProductList) {
324
+ this.pixel.extension('product_list_tracking', 'activate');
325
+ }
326
+ if (this.config.activateContentEngagement) {
327
+ this.pixel.extension('content_engagement', 'activate');
328
+ }
329
+ if (this.config.activateAutoTracking || this.config.activateActions) {
330
+ this.router.events.pipe(filter(e => e instanceof NavigationEnd), delay(0)).subscribe(() => {
331
+ if (this.config.activateAutoTracking) {
332
+ this.pixel.trackPage();
333
+ }
334
+ if (this.config.activateActions) {
335
+ this.pixel.extension('action', 'reload');
336
+ }
337
+ });
338
+ }
339
+ }
340
+ }
341
+ WebtrekkSmartPixelAutoTracking.decorators = [
342
+ { type: NgModule }
343
+ ];
344
+ WebtrekkSmartPixelAutoTracking.ctorParameters = () => [
345
+ { type: Router },
346
+ { type: WebtrekkSmartPixelAngular },
347
+ { type: undefined, decorators: [{ type: Inject, args: [WEBTREKK_SMART_PIXEL_TOKEN,] }] }
348
+ ];
349
+
350
+ class DefaultConfig {
351
+ constructor() {
352
+ this.trackId = '';
353
+ this.trackDomain = '';
354
+ this.activateAutoTracking = true;
355
+ this.activateActions = false;
356
+ this.activateTeaser = false;
357
+ this.activateProductList = false;
358
+ this.activateContentEngagement = false;
359
+ }
360
+ }
361
+
362
+ const defaultConfig = new DefaultConfig();
363
+ class WebtrekkSmartPixelModule {
364
+ static forRoot(conf = {}) {
365
+ return {
366
+ ngModule: WebtrekkSmartPixelModule,
367
+ providers: [
368
+ {
369
+ provide: WEBTREKK_SMART_PIXEL_TOKEN,
370
+ useValue: Object.assign(Object.assign({}, defaultConfig), conf)
371
+ },
372
+ {
373
+ provide: WebtrekkSmartPixelAngular,
374
+ useValue: webtrekkSmartPixelAngular
375
+ }
376
+ ]
377
+ };
378
+ }
379
+ }
380
+ WebtrekkSmartPixelModule.decorators = [
381
+ { type: NgModule, args: [{
382
+ declarations: [
383
+ DataDirective,
384
+ ExtensionDirective,
385
+ TeaserDirective,
386
+ ProductListDirective,
387
+ ContentEngagementDirective
388
+ ],
389
+ exports: [
390
+ DataDirective,
391
+ ExtensionDirective,
392
+ TeaserDirective,
393
+ ProductListDirective,
394
+ ContentEngagementDirective,
395
+ WebtrekkSmartPixelAutoTracking
396
+ ],
397
+ imports: [
398
+ WebtrekkSmartPixelAutoTracking
399
+ ],
400
+ providers: [],
401
+ bootstrap: []
402
+ },] }
403
+ ];
404
+
405
+ /*
406
+ * Public API Surface of smart-pixel-angular
407
+ */
408
+ // compatibility for v0
409
+ const webtrekkSmartPixelAngular = new WebtrekkSmartPixelAngular();
410
+ var publicApi = {
411
+ WebtrekkSmartPixelModule,
412
+ WebtrekkSmartPixelAngular,
413
+ // compatibility for v0
414
+ webtrekkSmartPixelAngular
415
+ };
416
+
417
+ /**
418
+ * Generated bundle index. Do not edit.
419
+ */
420
+
421
+ export { ContentEngagementDirective, DataDirective, ExtensionDirective, ProductListDirective, TeaserDirective, WebtrekkSmartPixelAngular, WebtrekkSmartPixelAutoTracking, WebtrekkSmartPixelModule, webtrekkSmartPixelAngular, WEBTREKK_SMART_PIXEL_TOKEN as ɵa };
422
+ //# sourceMappingURL=webtrekk-smart-pixel-angular.js.map