@bloomscorp/ngx-bloomsight 1.5.1 → 2.0.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/LICENSE.md +21 -0
- package/README.md +276 -144
- package/fesm2022/bloomscorp-ngx-bloomsight.mjs +168 -0
- package/fesm2022/bloomscorp-ngx-bloomsight.mjs.map +1 -0
- package/package.json +30 -17
- package/types/bloomscorp-ngx-bloomsight.d.ts +171 -0
- package/esm2020/bloomscorp-ngx-bloomsight.mjs +0 -5
- package/esm2020/lib/ngx-bloomsight.component.mjs +0 -22
- package/esm2020/lib/ngx-bloomsight.module.mjs +0 -33
- package/esm2020/lib/ngx-bloomsight.service.mjs +0 -14
- package/esm2020/lib/service/bloomsight-event.service.mjs +0 -45
- package/esm2020/lib/service/bloomsight-mail.service.mjs +0 -25
- package/esm2020/public-api.mjs +0 -9
- package/fesm2015/bloomscorp-ngx-bloomsight.mjs +0 -138
- package/fesm2015/bloomscorp-ngx-bloomsight.mjs.map +0 -1
- package/fesm2020/bloomscorp-ngx-bloomsight.mjs +0 -134
- package/fesm2020/bloomscorp-ngx-bloomsight.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/ngx-bloomsight.component.d.ts +0 -8
- package/lib/ngx-bloomsight.module.d.ts +0 -10
- package/lib/ngx-bloomsight.service.d.ts +0 -6
- package/lib/service/bloomsight-event.service.d.ts +0 -17
- package/lib/service/bloomsight-mail.service.d.ts +0 -10
- package/public-api.d.ts +0 -5
package/package.json
CHANGED
|
@@ -1,32 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bloomscorp/ngx-bloomsight",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Angular wrapper for bloomsight.js: provideBloomsight() and one BloomsightService for events, page views, mail and errors.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"angular",
|
|
7
|
+
"bloomsight",
|
|
8
|
+
"analytics",
|
|
9
|
+
"event-tracking",
|
|
10
|
+
"page-views",
|
|
11
|
+
"blooms-ai"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://github.com/bloomscorp/ngx-bloomsight#readme",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/bloomscorp/ngx-bloomsight/issues"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/bloomscorp/ngx-bloomsight.git"
|
|
20
|
+
},
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"sideEffects": false,
|
|
4
23
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "
|
|
6
|
-
"@angular/core": "
|
|
7
|
-
"@
|
|
24
|
+
"@angular/common": ">=19.0.0 <23.0.0",
|
|
25
|
+
"@angular/core": ">=19.0.0 <23.0.0",
|
|
26
|
+
"@angular/router": ">=19.0.0 <23.0.0",
|
|
27
|
+
"rxjs": ">=7.0.0 <9.0.0",
|
|
28
|
+
"@bloomscorp/bloomsight.js": ">=0.9.2 <1.0.0"
|
|
8
29
|
},
|
|
9
30
|
"dependencies": {
|
|
10
31
|
"tslib": "^2.3.0"
|
|
11
32
|
},
|
|
12
|
-
"module": "
|
|
13
|
-
"
|
|
14
|
-
"esm2020": "esm2020/bloomscorp-ngx-bloomsight.mjs",
|
|
15
|
-
"fesm2020": "fesm2020/bloomscorp-ngx-bloomsight.mjs",
|
|
16
|
-
"fesm2015": "fesm2015/bloomscorp-ngx-bloomsight.mjs",
|
|
17
|
-
"typings": "index.d.ts",
|
|
33
|
+
"module": "fesm2022/bloomscorp-ngx-bloomsight.mjs",
|
|
34
|
+
"typings": "types/bloomscorp-ngx-bloomsight.d.ts",
|
|
18
35
|
"exports": {
|
|
19
36
|
"./package.json": {
|
|
20
37
|
"default": "./package.json"
|
|
21
38
|
},
|
|
22
39
|
".": {
|
|
23
|
-
"types": "./
|
|
24
|
-
"
|
|
25
|
-
"es2020": "./fesm2020/bloomscorp-ngx-bloomsight.mjs",
|
|
26
|
-
"es2015": "./fesm2015/bloomscorp-ngx-bloomsight.mjs",
|
|
27
|
-
"node": "./fesm2015/bloomscorp-ngx-bloomsight.mjs",
|
|
28
|
-
"default": "./fesm2020/bloomscorp-ngx-bloomsight.mjs"
|
|
40
|
+
"types": "./types/bloomscorp-ngx-bloomsight.d.ts",
|
|
41
|
+
"default": "./fesm2022/bloomscorp-ngx-bloomsight.mjs"
|
|
29
42
|
}
|
|
30
43
|
},
|
|
31
|
-
"
|
|
44
|
+
"type": "module"
|
|
32
45
|
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { EnvironmentProviders, InjectionToken } from "@angular/core";
|
|
3
|
+
import { EmailEngineType, IBloomsightError, IConfig } from "@bloomscorp/bloomsight.js";
|
|
4
|
+
import { Observable } from "rxjs";
|
|
5
|
+
/**
|
|
6
|
+
* The configuration object `provideBloomsight()` accepts.
|
|
7
|
+
*
|
|
8
|
+
* This exists so that **a consumer of this library never has to import
|
|
9
|
+
* `@bloomscorp/bloomsight.js` itself**. Before this type was exported, typing
|
|
10
|
+
* the configuration meant reaching into the core package — which is
|
|
11
|
+
* backwards for a wrapper: the whole point of `ngx-bloomsight` is to be the
|
|
12
|
+
* only thing an Angular app talks to.
|
|
13
|
+
*
|
|
14
|
+
* It is an alias rather than a redeclaration on purpose. The core owns the
|
|
15
|
+
* shape, this package owns the *name*, so the core can restructure its
|
|
16
|
+
* internals without changing our public API, and we can narrow or extend the
|
|
17
|
+
* contract later without a breaking rename.
|
|
18
|
+
*
|
|
19
|
+
* See P1 in MODERNISATION.md.
|
|
20
|
+
*/
|
|
21
|
+
export type BloomsightConfig = IConfig;
|
|
22
|
+
/**
|
|
23
|
+
* Set up Bloomsight for an application. Call it once, in the root providers:
|
|
24
|
+
*
|
|
25
|
+
* ```ts
|
|
26
|
+
* bootstrapApplication(AppComponent, {
|
|
27
|
+
* providers: [
|
|
28
|
+
* provideRouter(routes),
|
|
29
|
+
* provideBloomsight({ propertyToken: '…', isDevelopmentMode: false })
|
|
30
|
+
* ]
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* It provides the configuration and starts the SDK when the application starts.
|
|
35
|
+
* Page views are then recorded from the router automatically, and
|
|
36
|
+
* `BloomsightService` can be injected anywhere — including lazy-loaded routes,
|
|
37
|
+
* and components that only send mail.
|
|
38
|
+
*
|
|
39
|
+
* Returns `EnvironmentProviders`, which Angular accepts only in an environment
|
|
40
|
+
* injector — the application or a route — never in a component's `providers`.
|
|
41
|
+
* That replaces 1.x's `NgxBloomsightModule.forRoot()`, whose services existed
|
|
42
|
+
* only where the module was imported with `forRoot()` (B6), and twice if a
|
|
43
|
+
* lazy module imported it again (B7).
|
|
44
|
+
*/
|
|
45
|
+
export declare function provideBloomsight(config: BloomsightConfig): EnvironmentProviders;
|
|
46
|
+
/**
|
|
47
|
+
* The configuration given to `provideBloomsight()`.
|
|
48
|
+
*
|
|
49
|
+
* A real `InjectionToken` (P3). 1.x used the string `'bloomsightConfig'`,
|
|
50
|
+
* which carries no type — whatever was injected under it was trusted to be a
|
|
51
|
+
* config — and which any other library could collide with.
|
|
52
|
+
*
|
|
53
|
+
* Inject it to read the configuration the app started with. Provide it through
|
|
54
|
+
* `provideBloomsight()`, not directly: that is what also starts the SDK.
|
|
55
|
+
*
|
|
56
|
+
* The explicit annotation is deliberate. Inferred, the published declaration
|
|
57
|
+
* comes out as `InjectionToken<import("@bloomscorp/bloomsight.js").IConfig>` —
|
|
58
|
+
* the compiler expands the alias — and the core's name leaks into this
|
|
59
|
+
* package's public types (§2.3).
|
|
60
|
+
*/
|
|
61
|
+
export declare const BLOOMSIGHT_CONFIG: InjectionToken<BloomsightConfig>;
|
|
62
|
+
/**
|
|
63
|
+
* A failure reported by the SDK: emitted by `BloomsightService.errors$`, handed
|
|
64
|
+
* to `BloomsightConfig.onError`, and the error of a failed `sendMail()`.
|
|
65
|
+
*
|
|
66
|
+
* Exported for the same reason as `BloomsightConfig`: without it, an app that
|
|
67
|
+
* wants to route Bloomsight failures into its own monitoring has to import
|
|
68
|
+
* `@bloomscorp/bloomsight.js` to type the handler — which defeats the point of
|
|
69
|
+
* a wrapper. Inline arrow functions get the type by inference; a *named*
|
|
70
|
+
* handler, or storing the error, needs the type by name.
|
|
71
|
+
*
|
|
72
|
+
* Alias rather than redeclaration, as with `BloomsightConfig`: the core owns
|
|
73
|
+
* the shape, this package owns the name.
|
|
74
|
+
*/
|
|
75
|
+
export type BloomsightError = IBloomsightError;
|
|
76
|
+
/**
|
|
77
|
+
* The payload of a data event, as `BloomsightService.trackData()` accepts it.
|
|
78
|
+
*
|
|
79
|
+
* The same shape the core's `resolveDataEvent` takes, given a name here so a
|
|
80
|
+
* consumer can type a payload it builds up before sending — without importing
|
|
81
|
+
* `@bloomscorp/bloomsight.js` (the facade rule).
|
|
82
|
+
*/
|
|
83
|
+
export type BloomsightEventData = {
|
|
84
|
+
[key: string]: any;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Mail delivery engine, selecting the backend endpoint that handles the send:
|
|
88
|
+
* `'GMAIL'` or `'CUSTOM_SMTP'`.
|
|
89
|
+
*
|
|
90
|
+
* An alias of the core's own `EmailEngineType`, the same way `BloomsightConfig`
|
|
91
|
+
* aliases `IConfig`: the core owns the shape, this package owns the name.
|
|
92
|
+
* Since bloomsight.js 0.9.2 — this package's peer floor — that type accepts the
|
|
93
|
+
* plain strings as well as `EmailEngineTypeEnum`, and the enum is a real runtime
|
|
94
|
+
* value exported from the core's root (P6).
|
|
95
|
+
*
|
|
96
|
+
* This used to be a separately declared string union, passed to the core
|
|
97
|
+
* through `as unknown as`. That cast switched off the one compile-time check on
|
|
98
|
+
* the engine: had the core ever renamed an engine, this package would still
|
|
99
|
+
* have compiled and quietly sent mail to the wrong endpoint. Aliasing the core's
|
|
100
|
+
* type means such a change now fails the build here instead.
|
|
101
|
+
*/
|
|
102
|
+
export type BloomsightEmailEngine = EmailEngineType;
|
|
103
|
+
/**
|
|
104
|
+
* One mail, as `BloomsightService.sendMail()` accepts it.
|
|
105
|
+
*
|
|
106
|
+
* Named fields replace 1.x's seven positional arguments (P4). Three of those
|
|
107
|
+
* were plain strings in a row — engine id, template id, owner id — so swapping
|
|
108
|
+
* two compiled cleanly and sent the mail with the wrong template. By name, they
|
|
109
|
+
* cannot be swapped.
|
|
110
|
+
*/
|
|
111
|
+
export interface BloomsightMailRequest {
|
|
112
|
+
/** The mail engine configured on the Bloomsight dashboard. */
|
|
113
|
+
engineId: string;
|
|
114
|
+
/** The template to render. */
|
|
115
|
+
templateId: string;
|
|
116
|
+
/**
|
|
117
|
+
* The user who owns the template. Required by the standalone Bloomsight
|
|
118
|
+
* server, which receives it as the `userId` form field.
|
|
119
|
+
*/
|
|
120
|
+
templateOwnerId: string;
|
|
121
|
+
/**
|
|
122
|
+
* The values the template fills in. Each field arrives at the server as
|
|
123
|
+
* `metadata[<name>]`.
|
|
124
|
+
*/
|
|
125
|
+
data: FormData;
|
|
126
|
+
/** Which endpoint delivers it. Defaults to `'GMAIL'`. */
|
|
127
|
+
engine?: BloomsightEmailEngine;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Everything an app does with Bloomsight: events, mail, and failures.
|
|
131
|
+
*
|
|
132
|
+
* One root service, replacing 1.x's `BloomsightEventService` and
|
|
133
|
+
* `BloomsightMailService`. It does not start the SDK — `provideBloomsight()`
|
|
134
|
+
* does that when the app starts — so injecting it has no side effects.
|
|
135
|
+
*
|
|
136
|
+
* During server-side rendering every method is a no-op (A3).
|
|
137
|
+
*/
|
|
138
|
+
export declare class BloomsightService {
|
|
139
|
+
private readonly config;
|
|
140
|
+
private readonly isBrowser;
|
|
141
|
+
/**
|
|
142
|
+
* Every failure the SDK reports after you subscribe — rejected or
|
|
143
|
+
* unreachable requests, with the server's own code where there is one.
|
|
144
|
+
* The configured `onError` is called as well.
|
|
145
|
+
*
|
|
146
|
+
* Mail failures are not included: they are the error of that `sendMail()`
|
|
147
|
+
* call, where a caller is already waiting for them.
|
|
148
|
+
*/
|
|
149
|
+
readonly errors$: Observable<BloomsightError>;
|
|
150
|
+
/** Record a simple event. */
|
|
151
|
+
track(eventToken: string): void;
|
|
152
|
+
/** Record a data event, with its payload. */
|
|
153
|
+
trackData(eventToken: string, data: BloomsightEventData): void;
|
|
154
|
+
/**
|
|
155
|
+
* Send a mail through the standalone Bloomsight server. Mail always goes
|
|
156
|
+
* there, whatever `target` is set to.
|
|
157
|
+
*
|
|
158
|
+
* Nothing is sent until the result is subscribed to, and it is sent once per
|
|
159
|
+
* subscription — the same as `HttpClient`. It emits once and completes when
|
|
160
|
+
* the server accepts the mail, and errors with a `BloomsightError`
|
|
161
|
+
* (`code: 'MAIL_FAILED'`) when it does not.
|
|
162
|
+
*
|
|
163
|
+
* Under `logOnly` the mail is handed to the core, which logs it and sends
|
|
164
|
+
* nothing, and the result still emits and completes, so a UI waiting on it
|
|
165
|
+
* is released (F2). During server-side rendering it completes without
|
|
166
|
+
* sending or emitting.
|
|
167
|
+
*/
|
|
168
|
+
sendMail(request: BloomsightMailRequest): Observable<void>;
|
|
169
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BloomsightService, never>;
|
|
170
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
171
|
+
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public-api';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmxvb21zY29ycC1uZ3gtYmxvb21zaWdodC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2Jsb29tc2NvcnAvbmd4LWJsb29tc2lnaHQvc3JjL2Jsb29tc2NvcnAtbmd4LWJsb29tc2lnaHQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class NgxBloomsightComponent {
|
|
4
|
-
constructor() { }
|
|
5
|
-
ngOnInit() {
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
NgxBloomsightComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgxBloomsightComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9
|
-
NgxBloomsightComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: NgxBloomsightComponent, selector: "lib-ngx-bloomsight", ngImport: i0, template: `
|
|
10
|
-
<p>
|
|
11
|
-
ngx-bloomsight works!
|
|
12
|
-
</p>
|
|
13
|
-
`, isInline: true });
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgxBloomsightComponent, decorators: [{
|
|
15
|
-
type: Component,
|
|
16
|
-
args: [{ selector: 'lib-ngx-bloomsight', template: `
|
|
17
|
-
<p>
|
|
18
|
-
ngx-bloomsight works!
|
|
19
|
-
</p>
|
|
20
|
-
` }]
|
|
21
|
-
}], ctorParameters: function () { return []; } });
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWJsb29tc2lnaHQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYmxvb21zY29ycC9uZ3gtYmxvb21zaWdodC9zcmMvbGliL25neC1ibG9vbXNpZ2h0LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLE1BQU0sZUFBZSxDQUFDOztBQVlsRCxNQUFNLE9BQU8sc0JBQXNCO0lBRWpDLGdCQUFnQixDQUFDO0lBRWpCLFFBQVE7SUFDUixDQUFDOzttSEFMVSxzQkFBc0I7dUdBQXRCLHNCQUFzQiwwREFSdkI7Ozs7R0FJVDsyRkFJVSxzQkFBc0I7a0JBVmxDLFNBQVM7K0JBQ0Usb0JBQW9CLFlBQ3BCOzs7O0dBSVQiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQsIE9uSW5pdCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xyXG5cclxuQENvbXBvbmVudCh7XHJcbiAgc2VsZWN0b3I6ICdsaWItbmd4LWJsb29tc2lnaHQnLFxyXG4gIHRlbXBsYXRlOiBgXHJcbiAgICA8cD5cclxuICAgICAgbmd4LWJsb29tc2lnaHQgd29ya3MhXHJcbiAgICA8L3A+XHJcbiAgYCxcclxuICBzdHlsZXM6IFtcclxuICBdXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBOZ3hCbG9vbXNpZ2h0Q29tcG9uZW50IGltcGxlbWVudHMgT25Jbml0IHtcclxuXHJcbiAgY29uc3RydWN0b3IoKSB7IH1cclxuXHJcbiAgbmdPbkluaXQoKTogdm9pZCB7XHJcbiAgfVxyXG5cclxufVxyXG4iXX0=
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { NgxBloomsightComponent } from './ngx-bloomsight.component';
|
|
3
|
-
import { BloomsightEventService } from './service/bloomsight-event.service';
|
|
4
|
-
import { BloomsightMailService } from './service/bloomsight-mail.service';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export class NgxBloomsightModule {
|
|
7
|
-
static forRoot(bloomsightConfig) {
|
|
8
|
-
return {
|
|
9
|
-
ngModule: NgxBloomsightModule,
|
|
10
|
-
providers: [
|
|
11
|
-
BloomsightEventService,
|
|
12
|
-
BloomsightMailService,
|
|
13
|
-
{ provide: 'bloomsightConfig', useValue: bloomsightConfig }
|
|
14
|
-
]
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
NgxBloomsightModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgxBloomsightModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
19
|
-
NgxBloomsightModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: NgxBloomsightModule, declarations: [NgxBloomsightComponent], exports: [NgxBloomsightComponent] });
|
|
20
|
-
NgxBloomsightModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgxBloomsightModule });
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgxBloomsightModule, decorators: [{
|
|
22
|
-
type: NgModule,
|
|
23
|
-
args: [{
|
|
24
|
-
declarations: [
|
|
25
|
-
NgxBloomsightComponent
|
|
26
|
-
],
|
|
27
|
-
imports: [],
|
|
28
|
-
exports: [
|
|
29
|
-
NgxBloomsightComponent
|
|
30
|
-
]
|
|
31
|
-
}]
|
|
32
|
-
}] });
|
|
33
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWJsb29tc2lnaHQubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYmxvb21zY29ycC9uZ3gtYmxvb21zaWd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dWU6IGJsb29tc2lnaHRDb25maWd9XHJcbiAgICAgICAgICAgIF1cclxuICAgICAgICB9O1xyXG4gICAgfVxyXG59XHJcbiJdfQ==
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class NgxBloomsightService {
|
|
4
|
-
constructor() { }
|
|
5
|
-
}
|
|
6
|
-
NgxBloomsightService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgxBloomsightService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7
|
-
NgxBloomsightService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgxBloomsightService, providedIn: 'root' });
|
|
8
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgxBloomsightService, decorators: [{
|
|
9
|
-
type: Injectable,
|
|
10
|
-
args: [{
|
|
11
|
-
providedIn: 'root'
|
|
12
|
-
}]
|
|
13
|
-
}], ctorParameters: function () { return []; } });
|
|
14
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWJsb29tc2lnaHQuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Jsb29tc2NvcnAvbmd4LWJsb29tc2lnaHQvc3JjL2xpYi9uZ3gtYmxvb21zaWdodC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBSzNDLE1BQU0sT0FBTyxvQkFBb0I7SUFFL0IsZ0JBQWdCLENBQUM7O2lIQUZOLG9CQUFvQjtxSEFBcEIsb0JBQW9CLGNBRm5CLE1BQU07MkZBRVAsb0JBQW9CO2tCQUhoQyxVQUFVO21CQUFDO29CQUNWLFVBQVUsRUFBRSxNQUFNO2lCQUNuQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGFibGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuXHJcbkBJbmplY3RhYmxlKHtcclxuICBwcm92aWRlZEluOiAncm9vdCdcclxufSlcclxuZXhwb3J0IGNsYXNzIE5neEJsb29tc2lnaHRTZXJ2aWNlIHtcclxuXHJcbiAgY29uc3RydWN0b3IoKSB7IH1cclxufVxyXG4iXX0=
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Inject, Injectable } from '@angular/core';
|
|
2
|
-
import { init } from '@bloomscorp/bloomsight.js';
|
|
3
|
-
import { pageViewObserver as pageView } from '@bloomscorp/bloomsight.js';
|
|
4
|
-
import { NavigationEnd } from '@angular/router';
|
|
5
|
-
import { resolveSimpleEvent as simpleEvent } from '@bloomscorp/bloomsight.js';
|
|
6
|
-
import { resolveDataEvent as dataEvent } from '@bloomscorp/bloomsight.js';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "@angular/router";
|
|
9
|
-
export class BloomsightEventService {
|
|
10
|
-
constructor(_config, _router) {
|
|
11
|
-
this._config = _config;
|
|
12
|
-
this._router = _router;
|
|
13
|
-
this._previousUrl = '';
|
|
14
|
-
this.init();
|
|
15
|
-
this.pageViewObserver();
|
|
16
|
-
}
|
|
17
|
-
init() {
|
|
18
|
-
init(this._config);
|
|
19
|
-
}
|
|
20
|
-
pageViewObserver() {
|
|
21
|
-
this._router.events.subscribe(event => {
|
|
22
|
-
if (event instanceof NavigationEnd) {
|
|
23
|
-
if (this._previousUrl !== event.url) {
|
|
24
|
-
pageView();
|
|
25
|
-
}
|
|
26
|
-
this._previousUrl = event.url;
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
resolveSimpleEvent(eventToken, label = '') {
|
|
31
|
-
simpleEvent(eventToken, label);
|
|
32
|
-
}
|
|
33
|
-
resolveDataEvent(eventToken, eventData, label = '') {
|
|
34
|
-
dataEvent(eventToken, eventData, label);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
BloomsightEventService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: BloomsightEventService, deps: [{ token: 'bloomsightConfig' }, { token: i1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
38
|
-
BloomsightEventService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: BloomsightEventService });
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: BloomsightEventService, decorators: [{
|
|
40
|
-
type: Injectable
|
|
41
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
42
|
-
type: Inject,
|
|
43
|
-
args: ['bloomsightConfig']
|
|
44
|
-
}] }, { type: i1.Router }]; } });
|
|
45
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmxvb21zaWdodC1ldmVudC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYmxvb21zY29ycC9uZ3gtYmxvb21zaWdodC9zcmMvbGliL3NlcnZpY2UvYmxvb21zaWdodC1ldmVudC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxNQUFNLEVBQUUsVUFBVSxFQUFvQixNQUFNLGVBQWUsQ0FBQztBQUNwRSxPQUFPLEVBQUMsSUFBSSxFQUFDLE1BQU0sMkJBQTJCLENBQUM7QUFDL0MsT0FBTyxFQUFDLGdCQUFnQixJQUFJLFFBQVEsRUFBQyxNQUFNLDJCQUEyQixDQUFD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B7ZmlsdGVyLCB0YWtlfSBmcm9tICdyeGpzL29wZXJhdG9ycyc7XHJcbmltcG9ydCB7U3Vic2NyaXB0aW9ufSBmcm9tICdyeGpzJztcclxuXHJcbkBJbmplY3RhYmxlKClcclxuZXhwb3J0IGNsYXNzIEJsb29tc2lnaHRFdmVudFNlcnZpY2Uge1xyXG5cclxuICAgIHByaXZhdGUgX3ByZXZpb3VzVXJsOiBzdHJpbmcgPSAnJztcclxuXHJcbiAgICBpbml0KCkge1xyXG4gICAgICAgIGluaXQodGhpcy5fY29uZmlnKTtcclxuICAgIH1cclxuXHJcbiAgICBjb25zdHJ1Y3RvcihcclxuICAgICAgICBASW5qZWN0KCdibG9vbXNpZ2h0Q29uZmlnJykgcHJpdmF0ZSBfY29uZmlnOiBJQ29uZmlnLFxyXG4gICAgICAgIHByaXZhdGUgX3JvdXRlcjogUm91dGVyXHJcbiAgICApIHtcclxuICAgICAgICB0aGlzLmluaXQoKTtcclxuICAgICAgICB0aGlzLnBhZ2VWaWV3T2JzZXJ2ZXIoKTtcclxuICAgIH1cclxuXHJcbiAgICBwdWJsaWMgcGFnZVZpZXdPYnNlcnZlcigpOiB2b2lkIHtcclxuICAgICAgICBcclxuICAgICAgICB0aGlzLl9yb3V0ZXIuZXZlbnRzLnN1YnNjcmliZShldmVudCA9PiB7XHJcbiAgICAgICAgICAgIGlmIChldmVudCBpbnN0YW5jZW9mIE5hdmlnYXRpb25FbmQpIHtcclxuICAgICAgICAgICAgICAgIFxyXG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuX3ByZXZpb3VzVXJsICE9PSBldmVudC51cmwpIHtcclxuICAgICAgICAgICAgICAgICAgICBwYWdlVmlldygpO1xyXG4gICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgICAgIHRoaXMuX3ByZXZpb3VzVXJsID0gZXZlbnQudXJsO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfSk7XHJcbiAgICB9XHJcblxyXG5cclxuICAgIHB1YmxpYyByZXNvbHZlU2ltcGxlRXZlbnQoZXZlbnRUb2tlbjogc3RyaW5nLCBsYWJlbDogc3RyaW5nID0gJycpOiB2b2lkIHtcclxuICAgICAgICBzaW1wbGVFdmVudChldmVudFRva2VuLCBsYWJlbCk7XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIHJlc29sdmVEYXRhRXZlbnQoXHJcbiAgICAgICAgZXZlbnRUb2tlbjogc3RyaW5nLCBcclxuICAgICAgICBldmVudERhdGE6IHtba2V5OiBzdHJpbmddOiBhbnl9LFxyXG4gICAgICAgIGxhYmVsOiBzdHJpbmcgPSAnJ1xyXG4gICAgKTogdm9pZCB7XHJcbiAgICAgICAgZGF0YUV2ZW50KGV2ZW50VG9rZW4sIGV2ZW50RGF0YSwgbGFiZWwpO1xyXG4gICAgfVxyXG59XHJcbiJdfQ==
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Inject, Injectable } from '@angular/core';
|
|
2
|
-
import { init } from '@bloomscorp/bloomsight.js';
|
|
3
|
-
import { sendEmail as mail } from '@bloomscorp/bloomsight.js';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export class BloomsightMailService {
|
|
6
|
-
constructor(_config) {
|
|
7
|
-
this._config = _config;
|
|
8
|
-
this.init();
|
|
9
|
-
}
|
|
10
|
-
init() {
|
|
11
|
-
init(this._config);
|
|
12
|
-
}
|
|
13
|
-
sendMail(engineId, templateId, templateOwnerId, emailMetaData, onSuccess, onError) {
|
|
14
|
-
mail(engineId, templateId, templateOwnerId, emailMetaData, onSuccess, onError);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
BloomsightMailService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: BloomsightMailService, deps: [{ token: 'bloomsightConfig' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
18
|
-
BloomsightMailService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: BloomsightMailService });
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: BloomsightMailService, decorators: [{
|
|
20
|
-
type: Injectable
|
|
21
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
22
|
-
type: Inject,
|
|
23
|
-
args: ['bloomsightConfig']
|
|
24
|
-
}] }]; } });
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmxvb21zaWdodC1tYWlsLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9ibG9vbXNjb3JwL25neC1ibG9vbXNpZ2h0L3NyYy9saWIvc2VydmljZS9ibG9vbXNpZ2h0LW1haWwuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUMsTUFBTSxFQUFFLFVBQVUsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUNqRCxPQUFPLEVBQUMsSUFBSSxFQUFDLE1BQU0sMkJBQTJCLENBQUM7QUFFL0MsT0FBTyxFQUFDLFNBQVMsSUFBSSxJQUFJLEVBQUMsTUFBTSwyQkFBMkIsQ0FBQzs7QUFHNUQsTUFBTSxPQUFPLHFCQUFxQjtJQU05QixZQUN3QyxPQUFnQjtRQUFoQixZQUFPLEdBQVAsT0FBTyxDQUFTO1FBRXBELElBQUksQ0FBQyxJQUFJLEVBQUUsQ0FBQztJQUNoQixDQUFDO0lBUkQsSUFBSTtRQUNBLElBQUksQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUM7SUFDdkIsQ0FBQztJQVFNLFFBQVEsQ0FDWCxRQUFnQixFQUNoQixVQUFrQixFQUNsQixlQUF1QixFQUN2QixhQUF1QixFQUN2QixTQUFxQixFQUNyQixPQUFtQjtRQUVuQixJQUFJL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csXHJcbiAgICAgICAgZW1haWxNZXRhRGF0YTogRm9ybURhdGEsXHJcbiAgICAgICAgb25TdWNjZXNzOiAoKSA9PiB2b2lkLFxyXG4gICAgICAgIG9uRXJyb3I6ICgpID0+IHZvaWRcclxuICAgICk6IHZvaWQge1xyXG4gICAgICAgIG1haWwoZW5naW5lSWQsIHRlbXBsYXRlSWQsIHRlbXBsYXRlT3duZXJJZCwgZW1haWxNZXRhRGF0YSwgb25TdWNjZXNzLCBvbkVycm9yKTtcclxuICAgIH1cclxuXHJcbn0iXX0=
|
package/esm2020/public-api.mjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Public API Surface of ngx-bloomsight
|
|
3
|
-
*/
|
|
4
|
-
export * from './lib/ngx-bloomsight.service';
|
|
5
|
-
export * from './lib/ngx-bloomsight.component';
|
|
6
|
-
export * from './lib/ngx-bloomsight.module';
|
|
7
|
-
export * from './lib/service/bloomsight-event.service';
|
|
8
|
-
export * from './lib/service/bloomsight-mail.service';
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2Jsb29tc2NvcnAvbmd4LWJsb29tc2lnaHQvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLDhCQUE4QixDQUFDO0FBQzdDLGNBQWMsZ0NBQWdDLENBQUM7QUFDL0MsY0FBYyw2QkFBNkIsQ0FBQztBQUM1QyxjQUFjLHdDQUF3QyxDQUFDO0FBQ3ZELGNBQWMsdUNBQXVDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxyXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2Ygbmd4LWJsb29tc2lnaHRcclxuICovXHJcblxyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9uZ3gtYmxvb21zaWdodC5zZXJ2aWNlJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvbmd4LWJsb29tc2lnaHQuY29tcG9uZW50JztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvbmd4LWJsb29tc2lnaHQubW9kdWxlJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvc2VydmljZS9ibG9vbXNpZ2h0LWV2ZW50LnNlcnZpY2UnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9zZXJ2aWNlL2Jsb29tc2lnaHQtbWFpbC5zZXJ2aWNlJztcclxuIl19
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Component, Inject, NgModule } from '@angular/core';
|
|
3
|
-
import { init, pageViewObserver, resolveSimpleEvent, resolveDataEvent, sendEmail } from '@bloomscorp/bloomsight.js';
|
|
4
|
-
import * as i1 from '@angular/router';
|
|
5
|
-
import { NavigationEnd } from '@angular/router';
|
|
6
|
-
|
|
7
|
-
class NgxBloomsightService {
|
|
8
|
-
constructor() { }
|
|
9
|
-
}
|
|
10
|
-
NgxBloomsightService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgxBloomsightService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11
|
-
NgxBloomsightService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgxBloomsightService, providedIn: 'root' });
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgxBloomsightService, decorators: [{
|
|
13
|
-
type: Injectable,
|
|
14
|
-
args: [{
|
|
15
|
-
providedIn: 'root'
|
|
16
|
-
}]
|
|
17
|
-
}], ctorParameters: function () { return []; } });
|
|
18
|
-
|
|
19
|
-
class NgxBloomsightComponent {
|
|
20
|
-
constructor() { }
|
|
21
|
-
ngOnInit() {
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
NgxBloomsightComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgxBloomsightComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
25
|
-
NgxBloomsightComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: NgxBloomsightComponent, selector: "lib-ngx-bloomsight", ngImport: i0, template: `
|
|
26
|
-
<p>
|
|
27
|
-
ngx-bloomsight works!
|
|
28
|
-
</p>
|
|
29
|
-
`, isInline: true });
|
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgxBloomsightComponent, decorators: [{
|
|
31
|
-
type: Component,
|
|
32
|
-
args: [{ selector: 'lib-ngx-bloomsight', template: `
|
|
33
|
-
<p>
|
|
34
|
-
ngx-bloomsight works!
|
|
35
|
-
</p>
|
|
36
|
-
` }]
|
|
37
|
-
}], ctorParameters: function () { return []; } });
|
|
38
|
-
|
|
39
|
-
class BloomsightEventService {
|
|
40
|
-
constructor(_config, _router) {
|
|
41
|
-
this._config = _config;
|
|
42
|
-
this._router = _router;
|
|
43
|
-
this._previousUrl = '';
|
|
44
|
-
this.init();
|
|
45
|
-
this.pageViewObserver();
|
|
46
|
-
}
|
|
47
|
-
init() {
|
|
48
|
-
init(this._config);
|
|
49
|
-
}
|
|
50
|
-
pageViewObserver() {
|
|
51
|
-
this._router.events.subscribe(event => {
|
|
52
|
-
if (event instanceof NavigationEnd) {
|
|
53
|
-
if (this._previousUrl !== event.url) {
|
|
54
|
-
pageViewObserver();
|
|
55
|
-
}
|
|
56
|
-
this._previousUrl = event.url;
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
resolveSimpleEvent(eventToken, label = '') {
|
|
61
|
-
resolveSimpleEvent(eventToken, label);
|
|
62
|
-
}
|
|
63
|
-
resolveDataEvent(eventToken, eventData, label = '') {
|
|
64
|
-
resolveDataEvent(eventToken, eventData, label);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
BloomsightEventService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: BloomsightEventService, deps: [{ token: 'bloomsightConfig' }, { token: i1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
68
|
-
BloomsightEventService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: BloomsightEventService });
|
|
69
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: BloomsightEventService, decorators: [{
|
|
70
|
-
type: Injectable
|
|
71
|
-
}], ctorParameters: function () {
|
|
72
|
-
return [{ type: undefined, decorators: [{
|
|
73
|
-
type: Inject,
|
|
74
|
-
args: ['bloomsightConfig']
|
|
75
|
-
}] }, { type: i1.Router }];
|
|
76
|
-
} });
|
|
77
|
-
|
|
78
|
-
class BloomsightMailService {
|
|
79
|
-
constructor(_config) {
|
|
80
|
-
this._config = _config;
|
|
81
|
-
this.init();
|
|
82
|
-
}
|
|
83
|
-
init() {
|
|
84
|
-
init(this._config);
|
|
85
|
-
}
|
|
86
|
-
sendMail(engineId, templateId, templateOwnerId, emailMetaData, onSuccess, onError) {
|
|
87
|
-
sendEmail(engineId, templateId, templateOwnerId, emailMetaData, onSuccess, onError);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
BloomsightMailService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: BloomsightMailService, deps: [{ token: 'bloomsightConfig' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
91
|
-
BloomsightMailService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: BloomsightMailService });
|
|
92
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: BloomsightMailService, decorators: [{
|
|
93
|
-
type: Injectable
|
|
94
|
-
}], ctorParameters: function () {
|
|
95
|
-
return [{ type: undefined, decorators: [{
|
|
96
|
-
type: Inject,
|
|
97
|
-
args: ['bloomsightConfig']
|
|
98
|
-
}] }];
|
|
99
|
-
} });
|
|
100
|
-
|
|
101
|
-
class NgxBloomsightModule {
|
|
102
|
-
static forRoot(bloomsightConfig) {
|
|
103
|
-
return {
|
|
104
|
-
ngModule: NgxBloomsightModule,
|
|
105
|
-
providers: [
|
|
106
|
-
BloomsightEventService,
|
|
107
|
-
BloomsightMailService,
|
|
108
|
-
{ provide: 'bloomsightConfig', useValue: bloomsightConfig }
|
|
109
|
-
]
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
NgxBloomsightModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgxBloomsightModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
114
|
-
NgxBloomsightModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: NgxBloomsightModule, declarations: [NgxBloomsightComponent], exports: [NgxBloomsightComponent] });
|
|
115
|
-
NgxBloomsightModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgxBloomsightModule });
|
|
116
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgxBloomsightModule, decorators: [{
|
|
117
|
-
type: NgModule,
|
|
118
|
-
args: [{
|
|
119
|
-
declarations: [
|
|
120
|
-
NgxBloomsightComponent
|
|
121
|
-
],
|
|
122
|
-
imports: [],
|
|
123
|
-
exports: [
|
|
124
|
-
NgxBloomsightComponent
|
|
125
|
-
]
|
|
126
|
-
}]
|
|
127
|
-
}] });
|
|
128
|
-
|
|
129
|
-
/*
|
|
130
|
-
* Public API Surface of ngx-bloomsight
|
|
131
|
-
*/
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Generated bundle index. Do not edit.
|
|
135
|
-
*/
|
|
136
|
-
|
|
137
|
-
export { BloomsightEventService, BloomsightMailService, NgxBloomsightComponent, NgxBloomsightModule, NgxBloomsightService };
|
|
138
|
-
//# sourceMappingURL=bloomscorp-ngx-bloomsight.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bloomscorp-ngx-bloomsight.mjs","sources":["../../../../projects/bloomscorp/ngx-bloomsight/src/lib/ngx-bloomsight.service.ts","../../../../projects/bloomscorp/ngx-bloomsight/src/lib/ngx-bloomsight.component.ts","../../../../projects/bloomscorp/ngx-bloomsight/src/lib/service/bloomsight-event.service.ts","../../../../projects/bloomscorp/ngx-bloomsight/src/lib/service/bloomsight-mail.service.ts","../../../../projects/bloomscorp/ngx-bloomsight/src/lib/ngx-bloomsight.module.ts","../../../../projects/bloomscorp/ngx-bloomsight/src/public-api.ts","../../../../projects/bloomscorp/ngx-bloomsight/src/bloomscorp-ngx-bloomsight.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class NgxBloomsightService {\r\n\r\n constructor() { }\r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'lib-ngx-bloomsight',\r\n template: `\r\n <p>\r\n ngx-bloomsight works!\r\n </p>\r\n `,\r\n styles: [\r\n ]\r\n})\r\nexport class NgxBloomsightComponent implements OnInit {\r\n\r\n constructor() { }\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n}\r\n","import {Inject, Injectable, OnDestroy, OnInit} from '@angular/core';\r\nimport {init} from '@bloomscorp/bloomsight.js';\r\nimport {pageViewObserver as pageView} from '@bloomscorp/bloomsight.js';\r\nimport {NavigationEnd, Router} from '@angular/router';\r\nimport {IConfig} from '@bloomscorp/bloomsight.js/dist/configuration/interface/config';\r\nimport {resolveSimpleEvent as simpleEvent} from '@bloomscorp/bloomsight.js';\r\nimport {resolveDataEvent as dataEvent} from '@bloomscorp/bloomsight.js';\r\nimport {sendEmail as mail} from '@bloomscorp/bloomsight.js';\r\nimport {filter, take} from 'rxjs/operators';\r\nimport {Subscription} from 'rxjs';\r\n\r\n@Injectable()\r\nexport class BloomsightEventService {\r\n\r\n private _previousUrl: string = '';\r\n\r\n init() {\r\n init(this._config);\r\n }\r\n\r\n constructor(\r\n @Inject('bloomsightConfig') private _config: IConfig,\r\n private _router: Router\r\n ) {\r\n this.init();\r\n this.pageViewObserver();\r\n }\r\n\r\n public pageViewObserver(): void {\r\n \r\n this._router.events.subscribe(event => {\r\n if (event instanceof NavigationEnd) {\r\n \r\n if (this._previousUrl !== event.url) {\r\n pageView();\r\n }\r\n\r\n this._previousUrl = event.url;\r\n }\r\n });\r\n }\r\n\r\n\r\n public resolveSimpleEvent(eventToken: string, label: string = ''): void {\r\n simpleEvent(eventToken, label);\r\n }\r\n\r\n public resolveDataEvent(\r\n eventToken: string, \r\n eventData: {[key: string]: any},\r\n label: string = ''\r\n ): void {\r\n dataEvent(eventToken, eventData, label);\r\n }\r\n}\r\n","import {Inject, Injectable} from '@angular/core';\r\nimport {init} from '@bloomscorp/bloomsight.js';\r\nimport {IConfig} from '@bloomscorp/bloomsight.js/dist/configuration/interface/config';\r\nimport {sendEmail as mail} from '@bloomscorp/bloomsight.js';\r\n\r\n@Injectable()\r\nexport class BloomsightMailService {\r\n\r\n init() {\r\n init(this._config);\r\n }\r\n\r\n constructor(\r\n @Inject('bloomsightConfig') private _config: IConfig,\r\n ) {\r\n this.init();\r\n }\r\n\r\n public sendMail(\r\n engineId: string,\r\n templateId: string,\r\n templateOwnerId: string,\r\n emailMetaData: FormData,\r\n onSuccess: () => void,\r\n onError: () => void\r\n ): void {\r\n mail(engineId, templateId, templateOwnerId, emailMetaData, onSuccess, onError);\r\n }\r\n\r\n}","import {ModuleWithProviders, NgModule} from '@angular/core';\r\nimport {NgxBloomsightComponent} from './ngx-bloomsight.component';\r\nimport {BloomsightEventService} from './service/bloomsight-event.service';\r\nimport {IConfig} from '@bloomscorp/bloomsight.js/dist/configuration/interface/config';\r\nimport {BloomsightMailService} from './service/bloomsight-mail.service';\r\n\r\n\r\n\r\n@NgModule({\r\n declarations: [\r\n NgxBloomsightComponent\r\n ],\r\n imports: [\r\n ],\r\n exports: [\r\n NgxBloomsightComponent\r\n ]\r\n})\r\nexport class NgxBloomsightModule {\r\n \r\n static forRoot(bloomsightConfig: IConfig): ModuleWithProviders<NgxBloomsightModule> {\r\n\r\n return {\r\n ngModule: NgxBloomsightModule,\r\n providers: [\r\n BloomsightEventService, \r\n BloomsightMailService, \r\n {provide: 'bloomsightConfig', useValue: bloomsightConfig}\r\n ]\r\n };\r\n }\r\n}\r\n","/*\r\n * Public API Surface of ngx-bloomsight\r\n */\r\n\r\nexport * from './lib/ngx-bloomsight.service';\r\nexport * from './lib/ngx-bloomsight.component';\r\nexport * from './lib/ngx-bloomsight.module';\r\nexport * from './lib/service/bloomsight-event.service';\r\nexport * from './lib/service/bloomsight-mail.service';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["pageView","simpleEvent","dataEvent","mail"],"mappings":";;;;;;MAKa,oBAAoB,CAAA;AAE/B,IAAA,WAAA,GAAA,GAAiB;;iHAFN,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAApB,oBAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,cAFnB,MAAM,EAAA,CAAA,CAAA;2FAEP,oBAAoB,EAAA,U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