@o3r/application 14.1.0-prerelease.4 → 14.1.0-prerelease.41

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.
@@ -47,10 +47,10 @@ class OtterApplicationDevtools {
47
47
  isProduction: isProductionEnvironment(this.document?.body.dataset)
48
48
  };
49
49
  }
50
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: OtterApplicationDevtools, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
51
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: OtterApplicationDevtools, providedIn: 'root' }); }
50
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: OtterApplicationDevtools, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
51
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: OtterApplicationDevtools, providedIn: 'root' }); }
52
52
  }
53
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: OtterApplicationDevtools, decorators: [{
53
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: OtterApplicationDevtools, decorators: [{
54
54
  type: Injectable,
55
55
  args: [{ providedIn: 'root' }]
56
56
  }] });
@@ -78,10 +78,10 @@ class ApplicationDevtoolsConsoleService {
78
78
  displayApplicationInfo() {
79
79
  console.info('Application info', this.applicationDevtools.getApplicationInformation());
80
80
  }
81
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: ApplicationDevtoolsConsoleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
82
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: ApplicationDevtoolsConsoleService, providedIn: 'root' }); }
81
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: ApplicationDevtoolsConsoleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
82
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: ApplicationDevtoolsConsoleService, providedIn: 'root' }); }
83
83
  }
84
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: ApplicationDevtoolsConsoleService, decorators: [{
84
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: ApplicationDevtoolsConsoleService, decorators: [{
85
85
  type: Injectable,
86
86
  args: [{
87
87
  providedIn: 'root'
@@ -206,10 +206,10 @@ class ApplicationDevtoolsMessageService {
206
206
  .catch((err) => this.logger.warn('Visual testing utilities are not available:', err));
207
207
  this.sendApplicationInformation();
208
208
  }
209
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: ApplicationDevtoolsMessageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
210
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: ApplicationDevtoolsMessageService, providedIn: 'root' }); }
209
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: ApplicationDevtoolsMessageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
210
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: ApplicationDevtoolsMessageService, providedIn: 'root' }); }
211
211
  }
212
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: ApplicationDevtoolsMessageService, decorators: [{
212
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: ApplicationDevtoolsMessageService, decorators: [{
213
213
  type: Injectable,
214
214
  args: [{
215
215
  providedIn: 'root'
@@ -232,16 +232,16 @@ class ApplicationDevtoolsModule {
232
232
  ]
233
233
  };
234
234
  }
235
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: ApplicationDevtoolsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
236
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.9", ngImport: i0, type: ApplicationDevtoolsModule }); }
237
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: ApplicationDevtoolsModule, providers: [
235
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: ApplicationDevtoolsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
236
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.4", ngImport: i0, type: ApplicationDevtoolsModule }); }
237
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: ApplicationDevtoolsModule, providers: [
238
238
  { provide: OTTER_APPLICATION_DEVTOOLS_OPTIONS, useValue: OTTER_APPLICATION_DEVTOOLS_DEFAULT_OPTIONS },
239
239
  ApplicationDevtoolsMessageService,
240
240
  ApplicationDevtoolsConsoleService,
241
241
  OtterApplicationDevtools
242
242
  ] }); }
243
243
  }
244
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: ApplicationDevtoolsModule, decorators: [{
244
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: ApplicationDevtoolsModule, decorators: [{
245
245
  type: NgModule,
246
246
  args: [{
247
247
  providers: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/application",
3
- "version": "14.1.0-prerelease.4",
3
+ "version": "14.1.0-prerelease.41",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -26,11 +26,11 @@
26
26
  "@angular-devkit/schematics": "^21.0.0",
27
27
  "@angular/common": "^21.0.0",
28
28
  "@angular/core": "^21.0.0",
29
- "@o3r/core": "~14.1.0-prerelease.4",
30
- "@o3r/logger": "~14.1.0-prerelease.4",
31
- "@o3r/routing": "~14.1.0-prerelease.4",
32
- "@o3r/schematics": "~14.1.0-prerelease.4",
33
- "@o3r/testing": "~14.1.0-prerelease.4",
29
+ "@o3r/core": "~14.1.0-prerelease.41",
30
+ "@o3r/logger": "~14.1.0-prerelease.41",
31
+ "@o3r/routing": "~14.1.0-prerelease.41",
32
+ "@o3r/schematics": "~14.1.0-prerelease.41",
33
+ "@o3r/testing": "~14.1.0-prerelease.41",
34
34
  "@schematics/angular": "^21.0.0",
35
35
  "rxjs": "^7.8.1",
36
36
  "type-fest": "^5.3.1",
@@ -54,11 +54,11 @@
54
54
  }
55
55
  },
56
56
  "dependencies": {
57
- "@o3r/schematics": "~14.1.0-prerelease.4",
57
+ "@o3r/schematics": "~14.1.0-prerelease.41",
58
58
  "tslib": "^2.6.2"
59
59
  },
60
60
  "engines": {
61
- "node": "^20.19.0 || ^22.17.0 || ^24.0.0"
61
+ "node": "^22.17.0 || ^24.0.0"
62
62
  },
63
63
  "schematics": "./collection.json",
64
64
  "ng-update": {
package/index.d.ts DELETED
@@ -1,162 +0,0 @@
1
- import { DevtoolsCommonOptions, OtterMessageContent, MessageDataTypes, ConnectContentMessage, RequestMessagesContentMessage, DevtoolsServiceInterface } from '@o3r/core';
2
- import * as i0 from '@angular/core';
3
- import { ModuleWithProviders, InjectionToken } from '@angular/core';
4
-
5
- /**
6
- * Method that returns the setting of the user regarding animations.
7
- * This setting is generally set in the Operating System settings, and it is used by browsers.
8
- * Refer to: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion
9
- */
10
- declare function prefersReducedMotion(): boolean;
11
-
12
- interface ApplicationDevtoolsServiceOptions extends DevtoolsCommonOptions {
13
- /**
14
- * Application name
15
- */
16
- appName?: string;
17
- /**
18
- * CSS classname applied to an HTML tag to hide it, ignore it, in the e2e visual testing process
19
- */
20
- e2eIgnoreClass?: string;
21
- }
22
- /**
23
- * Session information used to track all the calls done by one or several APIs of the SDK.
24
- */
25
- interface SessionInformation {
26
- /**
27
- * The session ID
28
- */
29
- id: string;
30
- /**
31
- * The generated time
32
- */
33
- generatedTime: Date;
34
- }
35
- /** Information relative loaded application */
36
- interface ApplicationInformation {
37
- /**
38
- * Application name
39
- */
40
- appName: string;
41
- /** Application Version */
42
- appVersion: string;
43
- /**
44
- * Session Information
45
- * @note This is a session ID will be provided only with the Amadeus Otter implementation of the application package.
46
- */
47
- session?: SessionInformation;
48
- /**
49
- * Log Link
50
- * @note This a link to Alf logs, it will be provided only with the Amadeus Otter implementation of the application package.
51
- */
52
- logLink?: string;
53
- /** Is Production Environment */
54
- isProduction: boolean;
55
- }
56
- /** Toggle Visual Testing */
57
- interface ToggleVisualTestingMessage extends OtterMessageContent<'toggleVisualTesting'> {
58
- /** Toggle the visual testing mode */
59
- toggle?: boolean;
60
- }
61
- /** Application Information Message Content */
62
- interface ApplicationInformationContentMessage extends ApplicationInformation, OtterMessageContent<'applicationInformation'> {
63
- }
64
- /** State selection message */
65
- interface StateSelectionContentMessage extends OtterMessageContent<'stateSelection'> {
66
- /** Name of the state */
67
- stateName: string;
68
- /** Color of the state */
69
- stateColor: string;
70
- /** Contrast color of the state */
71
- stateColorContrast: string;
72
- }
73
- /** Unselect state message */
74
- interface UnselectStateContentMessage extends OtterMessageContent<'unselectState'> {
75
- }
76
- type ApplicationMessageContents = ApplicationInformationContentMessage | StateSelectionContentMessage | UnselectStateContentMessage | ToggleVisualTestingMessage;
77
- /** List of possible DataTypes for Application messages */
78
- type ApplicationMessageDataTypes = MessageDataTypes<ApplicationMessageContents>;
79
- /** List of all messages for application purpose */
80
- type AvailableApplicationMessageContents = ApplicationMessageContents | ConnectContentMessage | RequestMessagesContentMessage<ApplicationMessageDataTypes>;
81
- /**
82
- * Determine if the given message is a Application message
83
- * @param message message to check
84
- */
85
- declare const isApplicationMessage: (message: any) => message is AvailableApplicationMessageContents;
86
-
87
- declare class OtterApplicationDevtools {
88
- private readonly options;
89
- private readonly document;
90
- private readonly env;
91
- getApplicationInformation(): ApplicationInformation;
92
- static ɵfac: i0.ɵɵFactoryDeclaration<OtterApplicationDevtools, never>;
93
- static ɵprov: i0.ɵɵInjectableDeclaration<OtterApplicationDevtools>;
94
- }
95
-
96
- declare class ApplicationDevtoolsConsoleService implements DevtoolsServiceInterface {
97
- /** Name of the Window property to access to the devtools */
98
- static readonly windowModuleName = "application";
99
- private readonly applicationDevtools;
100
- private readonly options;
101
- constructor();
102
- /** @inheritDoc */
103
- activate(): void;
104
- /** Display the information relative to the running application */
105
- displayApplicationInfo(): void;
106
- static ɵfac: i0.ɵɵFactoryDeclaration<ApplicationDevtoolsConsoleService, never>;
107
- static ɵprov: i0.ɵɵInjectableDeclaration<ApplicationDevtoolsConsoleService>;
108
- }
109
-
110
- declare class ApplicationDevtoolsMessageService implements DevtoolsServiceInterface {
111
- private readonly document;
112
- private readonly options;
113
- private readonly sendMessage;
114
- private readonly destroyRef;
115
- private readonly logger;
116
- private readonly applicationDevtools;
117
- constructor();
118
- private sendApplicationInformation;
119
- /**
120
- * Function to connect the plugin to the Otter DevTools extension
121
- */
122
- private connectPlugin;
123
- /**
124
- * Function to trigger a re-send a requested messages to the Otter Chrome DevTools extension
125
- * @param only restricted list of messages to re-send
126
- */
127
- private handleReEmitRequest;
128
- /**
129
- * Function to handle the incoming messages from Otter Chrome DevTools extension
130
- * @param message
131
- */
132
- private handleEvents;
133
- private unselectState;
134
- private onStateSelection;
135
- /**
136
- * Toggle visual testing rendering
137
- * @param enabled activate or deactivate the visual testing mode
138
- */
139
- private toggleVisualTestingRender;
140
- /** @inheritDoc */
141
- activate(): void;
142
- static ɵfac: i0.ɵɵFactoryDeclaration<ApplicationDevtoolsMessageService, never>;
143
- static ɵprov: i0.ɵɵInjectableDeclaration<ApplicationDevtoolsMessageService>;
144
- }
145
-
146
- declare class ApplicationDevtoolsModule {
147
- /**
148
- * Initialize Otter Devtools
149
- * @param options
150
- */
151
- static instrument(options: Partial<ApplicationDevtoolsServiceOptions>): ModuleWithProviders<ApplicationDevtoolsModule>;
152
- static ɵfac: i0.ɵɵFactoryDeclaration<ApplicationDevtoolsModule, never>;
153
- static ɵmod: i0.ɵɵNgModuleDeclaration<ApplicationDevtoolsModule, never, never, never>;
154
- static ɵinj: i0.ɵɵInjectorDeclaration<ApplicationDevtoolsModule>;
155
- }
156
-
157
- declare const OTTER_APPLICATION_DEVTOOLS_DEFAULT_OPTIONS: Readonly<ApplicationDevtoolsServiceOptions>;
158
- declare const OTTER_APPLICATION_DEVTOOLS_OPTIONS: InjectionToken<ApplicationDevtoolsServiceOptions>;
159
-
160
- export { ApplicationDevtoolsConsoleService, ApplicationDevtoolsMessageService, ApplicationDevtoolsModule, OTTER_APPLICATION_DEVTOOLS_DEFAULT_OPTIONS, OTTER_APPLICATION_DEVTOOLS_OPTIONS, OtterApplicationDevtools, isApplicationMessage, prefersReducedMotion };
161
- export type { ApplicationDevtoolsServiceOptions, ApplicationInformation, ApplicationInformationContentMessage, ApplicationMessageDataTypes, AvailableApplicationMessageContents, SessionInformation, StateSelectionContentMessage, ToggleVisualTestingMessage, UnselectStateContentMessage };
162
- //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sources":["../src/browser-preference/helper.ts","../src/devkit/application-devkit-interface.ts","../src/devkit/application-devtools.ts","../src/devkit/application-devtools-console-service.ts","../src/devkit/application-devtools-message-service.ts","../src/devkit/application-devtools-module.ts","../src/devkit/application-devtools-token.ts"],"sourcesContent":[null,null,null,null,null,null,null],"names":[],"mappings":";;;;AAAA;;;;AAIG;AACH,iBAAA,oBAAA;;ACGM,UAAA,iCAAA,SAAA,qBAAA;AACJ;;AAEG;;AAEH;;AAEG;;AAEJ;AAED;;AAEG;;AAED;;AAEG;;AAEH;;AAEG;;AAEJ;AAED;;AAEE;;AAEG;;;;AAIH;;;AAGG;;AAEH;;;AAGG;;;;AAIJ;AAED;;;;AAIC;AAED;AACM,UAAA,oCAAA,SAAA,sBAAA,EAAA,mBAAA;AACL;AAED;;;;;;;;AAQC;AAED;;AAC4F;AAE5F,KAAA,0BAAA,GAAA,oCAAA,GAAA,4BAAA,GAAA,2BAAA,GAAA,0BAAA;AAKA;;AAGA;AACM,KAAA,mCAAA,GAAA,0BAAA,GAAA,qBAAA,GAAA,6BAAA,CAAA,2BAAA;AAIN;;;AAGG;AACH,cAAA,oBAAA,+BAAA,mCAAA;;AC5EA,cAAA,wBAAA;AAEE;AACA;AACA;AAEO,iCAAA,sBAAA;;;AAOR;;ACZD,cAAA,iCAAA,YAAA,wBAAA;;AAKE;AAEA;AACA;;;;;;;;AAyBD;;AChBD,cAAA,iCAAA,YAAA,wBAAA;AAIE;AACA;AACA;AACA;AACA;AACA;;AAaA;AAIA;;AAEG;AACH;AAKA;;;AAGG;AACH;AAMA;;;AAGG;;AA+BH;AAOA;AAuBA;;;AAGG;;;;;;AAsBJ;;ACrJD,cAAA,yBAAA;AASE;;;AAGG;;;;;AAYJ;;ACtCD,cAAA,0CAAA,EAAA,QAAA,CAAA,iCAAA;AAIA,cAAA,kCAAA,EAAA,cAAA,CAAA,iCAAA;;;;"}