@angular-helpers/browser-web-apis 21.4.0 → 21.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-helpers/browser-web-apis",
3
- "version": "21.4.0",
3
+ "version": "21.5.0",
4
4
  "description": "Sistema de servicios Angular para acceso formalizado a Browser Web APIs (cámara, permisos, geolocalización, etc.)",
5
5
  "homepage": "https://gaspar1992.github.io/angular-helpers/docs/browser-web-apis",
6
6
  "repository": {
@@ -23,6 +23,7 @@
23
23
  ],
24
24
  "author": "",
25
25
  "license": "MIT",
26
+ "sideEffects": false,
26
27
  "publishConfig": {
27
28
  "access": "public"
28
29
  },
@@ -44,7 +45,6 @@
44
45
  "default": "./fesm2022/angular-helpers-browser-web-apis.mjs"
45
46
  }
46
47
  },
47
- "sideEffects": false,
48
48
  "dependencies": {
49
49
  "tslib": "^2.3.0"
50
50
  }
@@ -1,32 +1,15 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import * as i0 from '@angular/core';
3
- import { DestroyRef, ElementRef, Signal, EnvironmentProviders } from '@angular/core';
3
+ import { DestroyRef, ElementRef, Signal, InjectionToken, EnvironmentProviders } from '@angular/core';
4
4
  import { CanActivateFn } from '@angular/router';
5
5
 
6
- type PermissionNameExt = PermissionName | 'clipboard-read' | 'clipboard-write';
7
- interface PermissionRequest {
8
- name: PermissionNameExt;
9
- state: PermissionState;
10
- }
11
- interface BrowserPermissions {
12
- query(descriptor: PermissionDescriptor): Promise<PermissionStatus>;
13
- isSupported(): boolean;
14
- }
15
-
16
- declare class PermissionsService implements BrowserPermissions {
17
- query(descriptor: PermissionDescriptor): Promise<PermissionStatus>;
18
- isSupported(): boolean;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<PermissionsService, never>;
20
- static ɵprov: i0.ɵɵInjectableDeclaration<PermissionsService>;
21
- }
22
-
23
6
  /**
24
7
  * Base class for all Browser Web API services.
25
8
  * Provides common functionality for:
26
9
  * - Platform detection (browser vs server)
27
10
  * - Support assertion via Template Method
28
11
  * - Error creation with cause chaining
29
- * - Structured logging
12
+ * - Structured logging via injectable BROWSER_API_LOGGER token
30
13
  * - Lifecycle management with destroyRef
31
14
  *
32
15
  * Services that also need permission querying should extend
@@ -35,6 +18,7 @@ declare class PermissionsService implements BrowserPermissions {
35
18
  declare abstract class BrowserApiBaseService {
36
19
  protected destroyRef: DestroyRef;
37
20
  protected platformId: Object;
21
+ private readonly logger;
38
22
  /**
39
23
  * Abstract method that must be implemented by child services.
40
24
  * Returns the API name used in log messages and error strings.
@@ -49,8 +33,8 @@ declare abstract class BrowserApiBaseService {
49
33
  */
50
34
  protected isServerEnvironment(): boolean;
51
35
  /**
52
- * Template Method: throws a standard error when the API is not available.
53
- * Uses getApiName() to produce consistent error messages.
36
+ * Template Method: asserts the service can run in the current environment.
37
+ * Subclasses must call super.ensureSupported() and then add their own API check.
54
38
  */
55
39
  protected ensureSupported(): void;
56
40
  /**
@@ -58,40 +42,43 @@ declare abstract class BrowserApiBaseService {
58
42
  */
59
43
  protected createError(message: string, cause?: unknown): Error;
60
44
  /**
61
- * Log an error with the service name as prefix.
45
+ * Log an error through the injected BROWSER_API_LOGGER (default: console).
62
46
  */
63
47
  protected logError(message: string, error?: unknown): void;
64
48
  /**
65
- * Log an informational message with the service name as prefix.
49
+ * Log a warning through the injected BROWSER_API_LOGGER (default: console).
50
+ */
51
+ protected logWarn(message: string): void;
52
+ /**
53
+ * Log an informational message through the injected BROWSER_API_LOGGER (default: console).
66
54
  */
67
55
  protected logInfo(message: string): void;
68
56
  static ɵfac: i0.ɵɵFactoryDeclaration<BrowserApiBaseService, never>;
69
57
  static ɵprov: i0.ɵɵInjectableDeclaration<BrowserApiBaseService>;
70
58
  }
71
59
 
72
- /**
73
- * Extension of `BrowserApiBaseService` for services that need to query
74
- * browser permissions via the Permissions API.
75
- *
76
- * Only services that actively call `requestPermission()` should extend this
77
- * class. All other services should extend `BrowserApiBaseService` directly
78
- * to avoid carrying an unnecessary PermissionsService dependency.
79
- */
80
- declare abstract class PermissionAwareBrowserApiBaseService extends BrowserApiBaseService {
81
- protected permissionsService: PermissionsService;
82
- /**
83
- * Query the Permissions API for the given permission name.
84
- * Returns `true` if the permission state is `'granted'`.
85
- */
86
- protected requestPermission(permission: PermissionNameExt): Promise<boolean>;
87
- static ɵfac: i0.ɵɵFactoryDeclaration<PermissionAwareBrowserApiBaseService, never>;
88
- static ɵprov: i0.ɵɵInjectableDeclaration<PermissionAwareBrowserApiBaseService>;
60
+ type PermissionNameExt = PermissionName | 'clipboard-read' | 'clipboard-write';
61
+ interface PermissionRequest {
62
+ name: PermissionNameExt;
63
+ state: PermissionState;
64
+ }
65
+ interface BrowserPermissions {
66
+ query(descriptor: PermissionDescriptor): Promise<PermissionStatus>;
67
+ isSupported(): boolean;
89
68
  }
90
69
 
91
- declare class CameraService extends PermissionAwareBrowserApiBaseService {
70
+ declare class PermissionsService extends BrowserApiBaseService implements BrowserPermissions {
71
+ protected getApiName(): string;
72
+ query(descriptor: PermissionDescriptor): Promise<PermissionStatus>;
73
+ isSupported(): boolean;
74
+ static ɵfac: i0.ɵɵFactoryDeclaration<PermissionsService, never>;
75
+ static ɵprov: i0.ɵɵInjectableDeclaration<PermissionsService>;
76
+ }
77
+
78
+ declare class CameraService extends BrowserApiBaseService {
92
79
  private currentStream;
93
80
  protected getApiName(): string;
94
- private ensureCameraSupport;
81
+ protected ensureSupported(): void;
95
82
  startCamera(constraints?: MediaStreamConstraints): Promise<MediaStream>;
96
83
  stopCamera(): void;
97
84
  switchCamera(deviceId: string, constraints?: MediaStreamConstraints): Promise<MediaStream>;
@@ -106,7 +93,7 @@ declare class CameraService extends PermissionAwareBrowserApiBaseService {
106
93
 
107
94
  declare class GeolocationService extends BrowserApiBaseService {
108
95
  protected getApiName(): string;
109
- private ensureGeolocationSupport;
96
+ protected ensureSupported(): void;
110
97
  getCurrentPosition(options?: PositionOptions): Promise<GeolocationPosition>;
111
98
  watchPosition(options?: PositionOptions): Observable<GeolocationPosition>;
112
99
  clearWatch(watchId: number): void;
@@ -121,7 +108,7 @@ interface DisplayMediaConstraints {
121
108
  }
122
109
  declare class MediaDevicesService extends BrowserApiBaseService {
123
110
  protected getApiName(): string;
124
- private ensureMediaDevicesSupport;
111
+ protected ensureSupported(): void;
125
112
  getDevices(): Promise<MediaDeviceInfo[]>;
126
113
  getUserMedia(constraints?: MediaStreamConstraints): Promise<MediaStream>;
127
114
  getDisplayMedia(constraints?: DisplayMediaConstraints): Promise<MediaStream>;
@@ -138,17 +125,17 @@ declare class MediaDevicesService extends BrowserApiBaseService {
138
125
 
139
126
  declare class NotificationService extends BrowserApiBaseService {
140
127
  protected getApiName(): string;
128
+ protected ensureSupported(): void;
141
129
  get permission(): NotificationPermission;
142
- isSupported(): boolean;
143
130
  requestNotificationPermission(): Promise<NotificationPermission>;
144
131
  showNotification(title: string, options?: NotificationOptions): Promise<Notification>;
145
132
  static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
146
133
  static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
147
134
  }
148
135
 
149
- declare class ClipboardService extends PermissionAwareBrowserApiBaseService {
136
+ declare class ClipboardService extends BrowserApiBaseService {
150
137
  protected getApiName(): string;
151
- private ensureClipboardPermission;
138
+ protected ensureSupported(): void;
152
139
  writeText(text: string): Promise<void>;
153
140
  readText(): Promise<string>;
154
141
  static ɵfac: i0.ɵɵFactoryDeclaration<ClipboardService, never>;
@@ -309,7 +296,7 @@ declare class BrowserCapabilityService {
309
296
  isSecureContext(): boolean;
310
297
  isSupported(capability: BrowserCapabilityId): boolean;
311
298
  getAllStatuses(): {
312
- id: "camera" | "geolocation" | "permissions" | "mediaDevices" | "clipboard" | "notification" | "webWorker" | "regexSecurity" | "webStorage" | "webShare" | "battery" | "webSocket" | "intersectionObserver" | "resizeObserver" | "pageVisibility" | "broadcastChannel" | "networkInformation" | "screenWakeLock" | "screenOrientation" | "fullscreen" | "fileSystemAccess" | "mediaRecorder" | "serverSentEvents" | "vibration" | "speechSynthesis" | "mutationObserver" | "performanceObserver" | "idleDetector" | "eyeDropper" | "barcodeDetector" | "webAudio" | "gamepad" | "webBluetooth" | "webUsb" | "webNfc" | "paymentRequest" | "credentialManagement";
299
+ id: "camera" | "geolocation" | "permissions" | "clipboard" | "notification" | "mediaDevices" | "webWorker" | "regexSecurity" | "webStorage" | "webShare" | "battery" | "webSocket" | "intersectionObserver" | "resizeObserver" | "pageVisibility" | "broadcastChannel" | "networkInformation" | "screenWakeLock" | "screenOrientation" | "fullscreen" | "fileSystemAccess" | "mediaRecorder" | "serverSentEvents" | "vibration" | "speechSynthesis" | "mutationObserver" | "performanceObserver" | "idleDetector" | "eyeDropper" | "barcodeDetector" | "webAudio" | "gamepad" | "webBluetooth" | "webUsb" | "webNfc" | "paymentRequest" | "credentialManagement";
313
300
  label: "Permissions API" | "Geolocation API" | "Clipboard API" | "Notification API" | "MediaDevices API" | "Camera API" | "Web Worker API" | "Regex Security" | "Web Storage" | "Web Share" | "Battery API" | "WebSocket API" | "Intersection Observer" | "Resize Observer" | "Page Visibility API" | "Broadcast Channel API" | "Network Information API" | "Screen Wake Lock API" | "Screen Orientation API" | "Fullscreen API" | "File System Access API" | "MediaRecorder API" | "Server-Sent Events" | "Vibration API" | "Speech Synthesis API" | "Mutation Observer" | "Performance Observer" | "Idle Detection API" | "EyeDropper API" | "Barcode Detection API" | "Web Audio API" | "Gamepad API" | "Web Bluetooth API" | "WebUSB API" | "Web NFC API" | "Payment Request API" | "Credential Management API";
314
301
  supported: boolean;
315
302
  secureContext: boolean;
@@ -349,7 +336,7 @@ declare global {
349
336
  declare class BatteryService extends BrowserApiBaseService {
350
337
  private batteryManager;
351
338
  protected getApiName(): string;
352
- private ensureBatterySupport;
339
+ protected ensureSupported(): void;
353
340
  initialize(): Promise<BatteryInfo>;
354
341
  getBatteryInfo(): BatteryInfo;
355
342
  watchBatteryInfo(): Observable<BatteryInfo>;
@@ -368,7 +355,7 @@ interface ShareResult {
368
355
  }
369
356
  declare class WebShareService extends BrowserApiBaseService {
370
357
  protected getApiName(): string;
371
- private ensureWebShareSupport;
358
+ protected ensureSupported(): void;
372
359
  share(data: ShareData): Promise<ShareResult>;
373
360
  canShare(): boolean;
374
361
  canShareFiles(): boolean;
@@ -396,21 +383,21 @@ interface StorageOptions {
396
383
  deserialize?: (value: string) => StorageValue;
397
384
  }
398
385
  interface StorageEvent {
399
- key: string;
386
+ key: string | null;
400
387
  newValue: StorageValue | null;
401
388
  oldValue: StorageValue | null;
402
389
  storageArea: 'localStorage' | 'sessionStorage';
403
390
  }
404
391
  declare class WebStorageService extends BrowserApiBaseService {
405
392
  private storageEvents;
406
- protected destroyRef: DestroyRef;
407
393
  constructor();
408
394
  protected getApiName(): string;
409
- private ensureStorageSupport;
395
+ protected ensureSupported(): void;
410
396
  private setupEventListeners;
411
397
  private serializeValue;
412
398
  private deserializeValue;
413
399
  private getKey;
400
+ private emitStorageChange;
414
401
  setLocalStorage<T extends StorageValue>(key: string, value: T, options?: StorageOptions): boolean;
415
402
  getLocalStorage<T extends StorageValue>(key: string, defaultValue?: T | null, options?: StorageOptions): T | null;
416
403
  removeLocalStorage(key: string, options?: StorageOptions): boolean;
@@ -457,19 +444,20 @@ declare class WebSocketService extends BrowserApiBaseService {
457
444
  private reconnectAttempts;
458
445
  private reconnectTimer;
459
446
  private heartbeatTimer;
447
+ private readonly _cleanup;
460
448
  protected getApiName(): string;
461
- private ensureWebSocketSupport;
449
+ protected ensureSupported(): void;
462
450
  connect(config: WebSocketConfig): Observable<WebSocketStatus>;
463
451
  disconnect(): void;
464
452
  send<T>(message: WebSocketMessage<T>): void;
465
453
  sendRaw(data: string): void;
466
454
  getStatus(): Observable<WebSocketStatus>;
467
455
  getMessages<T = unknown>(): Observable<WebSocketMessage<T>>;
456
+ getMessagesByType<T = unknown>(type: string): Observable<WebSocketMessage<T>>;
468
457
  private setupWebSocketHandlers;
469
458
  private startHeartbeat;
470
459
  private attemptReconnect;
471
460
  private updateStatus;
472
- private getCurrentStatus;
473
461
  getNativeWebSocket(): WebSocket | null;
474
462
  isConnected(): boolean;
475
463
  getReadyState(): number;
@@ -496,13 +484,13 @@ interface WorkerTask<T = unknown> {
496
484
  transferable?: Transferable[];
497
485
  }
498
486
  declare class WebWorkerService extends BrowserApiBaseService {
499
- protected destroyRef: DestroyRef;
500
487
  private workers;
501
488
  private workerStatuses;
502
489
  private workerMessages;
503
490
  private currentWorkerStatuses;
491
+ private readonly _cleanup;
504
492
  protected getApiName(): string;
505
- private ensureWorkerSupport;
493
+ protected ensureSupported(): void;
506
494
  createWorker(name: string, scriptUrl: string): Observable<WorkerStatus>;
507
495
  terminateWorker(name: string): void;
508
496
  terminateAllWorkers(): void;
@@ -704,7 +692,7 @@ declare class FileSystemAccessService extends BrowserApiBaseService {
704
692
  protected getApiName(): string;
705
693
  isSupported(): boolean;
706
694
  private get win();
707
- private ensureSupport;
695
+ protected ensureSupported(): void;
708
696
  openFile(options?: FileOpenOptions): Promise<File[]>;
709
697
  saveFile(content: string | Blob, options?: FileSaveOptions): Promise<void>;
710
698
  openDirectory(options?: {
@@ -1176,6 +1164,13 @@ declare class CredentialManagementService extends BrowserApiBaseService {
1176
1164
  static ɵprov: i0.ɵɵInjectableDeclaration<CredentialManagementService>;
1177
1165
  }
1178
1166
 
1167
+ interface BrowserApiLogger {
1168
+ info(message: string): void;
1169
+ warn(message: string): void;
1170
+ error(message: string, error?: unknown): void;
1171
+ }
1172
+ declare const BROWSER_API_LOGGER: InjectionToken<BrowserApiLogger>;
1173
+
1179
1174
  interface MediaDevice {
1180
1175
  deviceId: string;
1181
1176
  groupId: string;
@@ -1367,6 +1362,83 @@ declare class BrowserSupportUtil {
1367
1362
  */
1368
1363
  declare const permissionGuard: (permission: PermissionNameExt) => CanActivateFn;
1369
1364
 
1365
+ declare function providePermissions(): EnvironmentProviders;
1366
+
1367
+ declare function provideCamera(): EnvironmentProviders;
1368
+
1369
+ declare function provideGeolocation(): EnvironmentProviders;
1370
+
1371
+ declare function provideNotifications(): EnvironmentProviders;
1372
+
1373
+ declare function provideClipboard(): EnvironmentProviders;
1374
+
1375
+ declare function provideMediaDevices(): EnvironmentProviders;
1376
+
1377
+ declare function provideScreenWakeLock(): EnvironmentProviders;
1378
+
1379
+ declare function provideFileSystemAccess(): EnvironmentProviders;
1380
+
1381
+ declare function provideMediaRecorder(): EnvironmentProviders;
1382
+
1383
+ declare function provideIdleDetector(): EnvironmentProviders;
1384
+
1385
+ declare function provideBattery(): EnvironmentProviders;
1386
+
1387
+ declare function provideWebShare(): EnvironmentProviders;
1388
+
1389
+ declare function provideWebStorage(): EnvironmentProviders;
1390
+
1391
+ declare function provideWebSocket(): EnvironmentProviders;
1392
+
1393
+ declare function provideWebWorker(): EnvironmentProviders;
1394
+
1395
+ declare function provideIntersectionObserver(): EnvironmentProviders;
1396
+
1397
+ declare function provideResizeObserver(): EnvironmentProviders;
1398
+
1399
+ declare function providePageVisibility(): EnvironmentProviders;
1400
+
1401
+ declare function provideBroadcastChannel(): EnvironmentProviders;
1402
+
1403
+ declare function provideNetworkInformation(): EnvironmentProviders;
1404
+
1405
+ declare function provideScreenOrientation(): EnvironmentProviders;
1406
+
1407
+ declare function provideFullscreen(): EnvironmentProviders;
1408
+
1409
+ declare function provideServerSentEvents(): EnvironmentProviders;
1410
+
1411
+ declare function provideVibration(): EnvironmentProviders;
1412
+
1413
+ declare function provideSpeechSynthesis(): EnvironmentProviders;
1414
+
1415
+ declare function provideMutationObserver(): EnvironmentProviders;
1416
+
1417
+ declare function providePerformanceObserver(): EnvironmentProviders;
1418
+
1419
+ declare function provideEyeDropper(): EnvironmentProviders;
1420
+
1421
+ declare function provideBarcodeDetector(): EnvironmentProviders;
1422
+
1423
+ declare function provideWebAudio(): EnvironmentProviders;
1424
+
1425
+ declare function provideGamepad(): EnvironmentProviders;
1426
+
1427
+ declare function provideWebBluetooth(): EnvironmentProviders;
1428
+
1429
+ declare function provideWebUsb(): EnvironmentProviders;
1430
+
1431
+ declare function provideWebNfc(): EnvironmentProviders;
1432
+
1433
+ declare function providePaymentRequest(): EnvironmentProviders;
1434
+
1435
+ declare function provideCredentialManagement(): EnvironmentProviders;
1436
+
1437
+ declare function provideMediaApis(): EnvironmentProviders;
1438
+ declare function provideLocationApis(): EnvironmentProviders;
1439
+ declare function provideStorageApis(): EnvironmentProviders;
1440
+ declare function provideCommunicationApis(): EnvironmentProviders;
1441
+
1370
1442
  interface BrowserWebApisConfig {
1371
1443
  enableCamera?: boolean;
1372
1444
  enableGeolocation?: boolean;
@@ -1406,48 +1478,8 @@ interface BrowserWebApisConfig {
1406
1478
  }
1407
1479
  declare const defaultBrowserWebApisConfig: BrowserWebApisConfig;
1408
1480
  declare function provideBrowserWebApis(config?: BrowserWebApisConfig): EnvironmentProviders;
1409
- declare function provideCamera(): EnvironmentProviders;
1410
- declare function provideGeolocation(): EnvironmentProviders;
1411
- declare function provideNotifications(): EnvironmentProviders;
1412
- declare function provideClipboard(): EnvironmentProviders;
1413
- declare function provideMediaDevices(): EnvironmentProviders;
1414
- declare function provideBattery(): EnvironmentProviders;
1415
- declare function provideWebShare(): EnvironmentProviders;
1416
- declare function provideWebStorage(): EnvironmentProviders;
1417
- declare function provideWebSocket(): EnvironmentProviders;
1418
- declare function provideWebWorker(): EnvironmentProviders;
1419
- declare function providePermissions(): EnvironmentProviders;
1420
- declare function provideMediaApis(): EnvironmentProviders;
1421
- declare function provideLocationApis(): EnvironmentProviders;
1422
- declare function provideStorageApis(): EnvironmentProviders;
1423
- declare function provideCommunicationApis(): EnvironmentProviders;
1424
- declare function provideIntersectionObserver(): EnvironmentProviders;
1425
- declare function provideResizeObserver(): EnvironmentProviders;
1426
- declare function providePageVisibility(): EnvironmentProviders;
1427
- declare function provideBroadcastChannel(): EnvironmentProviders;
1428
- declare function provideNetworkInformation(): EnvironmentProviders;
1429
- declare function provideScreenWakeLock(): EnvironmentProviders;
1430
- declare function provideScreenOrientation(): EnvironmentProviders;
1431
- declare function provideFullscreen(): EnvironmentProviders;
1432
- declare function provideFileSystemAccess(): EnvironmentProviders;
1433
- declare function provideMediaRecorder(): EnvironmentProviders;
1434
- declare function provideServerSentEvents(): EnvironmentProviders;
1435
- declare function provideVibration(): EnvironmentProviders;
1436
- declare function provideSpeechSynthesis(): EnvironmentProviders;
1437
- declare function provideMutationObserver(): EnvironmentProviders;
1438
- declare function providePerformanceObserver(): EnvironmentProviders;
1439
- declare function provideIdleDetector(): EnvironmentProviders;
1440
- declare function provideEyeDropper(): EnvironmentProviders;
1441
- declare function provideBarcodeDetector(): EnvironmentProviders;
1442
- declare function provideWebAudio(): EnvironmentProviders;
1443
- declare function provideGamepad(): EnvironmentProviders;
1444
- declare function provideWebBluetooth(): EnvironmentProviders;
1445
- declare function provideWebUsb(): EnvironmentProviders;
1446
- declare function provideWebNfc(): EnvironmentProviders;
1447
- declare function providePaymentRequest(): EnvironmentProviders;
1448
- declare function provideCredentialManagement(): EnvironmentProviders;
1449
1481
 
1450
1482
  declare const version = "0.1.0";
1451
1483
 
1452
- export { BarcodeDetectorService, BatteryService, BroadcastChannelService, BrowserApiBaseService, BrowserCapabilityService, BrowserSupportUtil, CameraService, ClipboardService, ConnectionRegistryBaseService, CredentialManagementService, EyeDropperService, FileSystemAccessService, FullscreenService, GamepadService, GeolocationService, IdleDetectorService, IntersectionObserverService, MediaDevicesService, MediaRecorderService, MutationObserverService, NetworkInformationService, NotificationService, PageVisibilityService, PaymentRequestService, PerformanceObserverService, PermissionAwareBrowserApiBaseService, PermissionsService, ResizeObserverService, ScreenOrientationService, ScreenWakeLockService, ServerSentEventsService, SpeechSynthesisService, VibrationService, WebAudioService, WebBluetoothService, WebNfcService, WebShareService, WebSocketService, WebStorageService, WebUsbService, WebWorkerService, permissionGuard as createPermissionGuard, defaultBrowserWebApisConfig, injectGamepad, injectIdleDetector, injectIntersectionObserver, injectMutationObserver, injectNetworkInformation, injectPageVisibility, injectPerformanceObserver, injectResizeObserver, injectScreenOrientation, permissionGuard, provideBarcodeDetector, provideBattery, provideBroadcastChannel, provideBrowserWebApis, provideCamera, provideClipboard, provideCommunicationApis, provideCredentialManagement, provideEyeDropper, provideFileSystemAccess, provideFullscreen, provideGamepad, provideGeolocation, provideIdleDetector, provideIntersectionObserver, provideLocationApis, provideMediaApis, provideMediaDevices, provideMediaRecorder, provideMutationObserver, provideNetworkInformation, provideNotifications, providePageVisibility, providePaymentRequest, providePerformanceObserver, providePermissions, provideResizeObserver, provideScreenOrientation, provideScreenWakeLock, provideServerSentEvents, provideSpeechSynthesis, provideStorageApis, provideVibration, provideWebAudio, provideWebBluetooth, provideWebNfc, provideWebShare, provideWebSocket, provideWebStorage, provideWebUsb, provideWebWorker, version };
1453
- export type { AudioAnalyserData, AudioContextState, BarcodeFormat, BatteryInfo, BatteryManager, BluetoothDeviceInfo, BluetoothDeviceRef, BluetoothRequestDeviceOptions, BrowserCapabilityId, BrowserError, BrowserPermissions, BrowserWebApisConfig, CameraCapabilities, CameraInfo, ColorSelectionResult, ConnectionType, CredentialResult, DetectedBarcode, EffectiveConnectionType, ElementInput, ElementSize, ErrorCallback, EventHandler, FileOpenOptions, FileSaveOptions, GamepadRef, GamepadState, GeolocationCoordinates, GeolocationError, GeolocationOptions, GeolocationPosition$1 as GeolocationPosition, GeolocationWatchOptions, IdleDetectorOptions, IdleDetectorRef, IdleState, IntersectionObserverOptions, IntersectionRef, MediaDevice, MediaDeviceKind, MediaDevicesInfo, MediaStreamConstraints$1 as MediaStreamConstraints, MediaTrackConstraints$1 as MediaTrackConstraints, MutationObserverOptions, MutationRef, NdefMessage, NdefReadingEvent, NdefWriteOptions, NetworkInformation, NetworkInformationRef, OrientationInfo, OrientationLockType, OrientationType, PageVisibilityRef, PasswordCredentialData, PaymentDetailsInit, PaymentMethodConfig, PaymentOptionsConfig, PaymentResult, PerformanceEntryType, PerformanceObserverConfig, PerformanceObserverRef, PermissionNameExt, PermissionRequest, PublicKeyCredentialOptions, RecordingOptions, RecordingResult, RecordingState, ResizeObserverOptions, ResizeRef, SSEConfig, SSEConnectionState, SSEMessage, ScreenIdleState, ScreenOrientationRef, SpeechOptions, SpeechState, StorageEvent, StorageOptions, StorageValue, UsbDeviceFilterDef, UsbDeviceInfo, UsbDeviceRef, UserIdleState, VibrationPattern, VibrationPreset, VisibilityState, WakeLockStatus, WakeLockType, WebSocketConfig, WebSocketMessage, WebSocketStatus, WorkerMessage, WorkerStatus, WorkerTask };
1484
+ export { BROWSER_API_LOGGER, BarcodeDetectorService, BatteryService, BroadcastChannelService, BrowserApiBaseService, BrowserCapabilityService, BrowserSupportUtil, CameraService, ClipboardService, ConnectionRegistryBaseService, CredentialManagementService, EyeDropperService, FileSystemAccessService, FullscreenService, GamepadService, GeolocationService, IdleDetectorService, IntersectionObserverService, MediaDevicesService, MediaRecorderService, MutationObserverService, NetworkInformationService, NotificationService, PageVisibilityService, PaymentRequestService, PerformanceObserverService, PermissionsService, ResizeObserverService, ScreenOrientationService, ScreenWakeLockService, ServerSentEventsService, SpeechSynthesisService, VibrationService, WebAudioService, WebBluetoothService, WebNfcService, WebShareService, WebSocketService, WebStorageService, WebUsbService, WebWorkerService, permissionGuard as createPermissionGuard, defaultBrowserWebApisConfig, injectGamepad, injectIdleDetector, injectIntersectionObserver, injectMutationObserver, injectNetworkInformation, injectPageVisibility, injectPerformanceObserver, injectResizeObserver, injectScreenOrientation, permissionGuard, provideBarcodeDetector, provideBattery, provideBroadcastChannel, provideBrowserWebApis, provideCamera, provideClipboard, provideCommunicationApis, provideCredentialManagement, provideEyeDropper, provideFileSystemAccess, provideFullscreen, provideGamepad, provideGeolocation, provideIdleDetector, provideIntersectionObserver, provideLocationApis, provideMediaApis, provideMediaDevices, provideMediaRecorder, provideMutationObserver, provideNetworkInformation, provideNotifications, providePageVisibility, providePaymentRequest, providePerformanceObserver, providePermissions, provideResizeObserver, provideScreenOrientation, provideScreenWakeLock, provideServerSentEvents, provideSpeechSynthesis, provideStorageApis, provideVibration, provideWebAudio, provideWebBluetooth, provideWebNfc, provideWebShare, provideWebSocket, provideWebStorage, provideWebUsb, provideWebWorker, version };
1485
+ export type { AudioAnalyserData, AudioContextState, BarcodeFormat, BatteryInfo, BatteryManager, BluetoothDeviceInfo, BluetoothDeviceRef, BluetoothRequestDeviceOptions, BrowserApiLogger, BrowserCapabilityId, BrowserError, BrowserPermissions, BrowserWebApisConfig, CameraCapabilities, CameraInfo, ColorSelectionResult, ConnectionType, CredentialResult, DetectedBarcode, EffectiveConnectionType, ElementInput, ElementSize, ErrorCallback, EventHandler, FileOpenOptions, FileSaveOptions, GamepadRef, GamepadState, GeolocationCoordinates, GeolocationError, GeolocationOptions, GeolocationPosition$1 as GeolocationPosition, GeolocationWatchOptions, IdleDetectorOptions, IdleDetectorRef, IdleState, IntersectionObserverOptions, IntersectionRef, MediaDevice, MediaDeviceKind, MediaDevicesInfo, MediaStreamConstraints$1 as MediaStreamConstraints, MediaTrackConstraints$1 as MediaTrackConstraints, MutationObserverOptions, MutationRef, NdefMessage, NdefReadingEvent, NdefWriteOptions, NetworkInformation, NetworkInformationRef, OrientationInfo, OrientationLockType, OrientationType, PageVisibilityRef, PasswordCredentialData, PaymentDetailsInit, PaymentMethodConfig, PaymentOptionsConfig, PaymentResult, PerformanceEntryType, PerformanceObserverConfig, PerformanceObserverRef, PermissionNameExt, PermissionRequest, PublicKeyCredentialOptions, RecordingOptions, RecordingResult, RecordingState, ResizeObserverOptions, ResizeRef, SSEConfig, SSEConnectionState, SSEMessage, ScreenIdleState, ScreenOrientationRef, SpeechOptions, SpeechState, StorageEvent, StorageOptions, StorageValue, UsbDeviceFilterDef, UsbDeviceInfo, UsbDeviceRef, UserIdleState, VibrationPattern, VibrationPreset, VisibilityState, WakeLockStatus, WakeLockType, WebSocketConfig, WebSocketMessage, WebSocketStatus, WorkerMessage, WorkerStatus, WorkerTask };