@mongodb-js/compass-web 0.17.4 → 0.18.1

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.
@@ -1,6 +1,5 @@
1
1
  import type { Logger } from '@mongodb-js/compass-logging/provider';
2
2
  import { mongoLogId } from '@mongodb-js/compass-logging/provider';
3
- export type TrackFunction = (event: string, properties: Record<string, any>) => void;
4
3
  export type LogMessage = {
5
4
  id: number;
6
5
  t: {
@@ -15,7 +14,7 @@ export type LogMessage = {
15
14
  export type LogFunction = (message: LogMessage) => void;
16
15
  export type DebugFunction = (...args: any[]) => void;
17
16
  type Debugger = Logger['debug'];
18
- export declare class CompassWebLoggerAndTelemetry implements Logger {
17
+ export declare class CompassWebLogger implements Logger {
19
18
  private component;
20
19
  private callbackRef;
21
20
  log: Logger['log'];
@@ -29,9 +28,9 @@ export declare class CompassWebLoggerAndTelemetry implements Logger {
29
28
  mongoLogId: typeof mongoLogId;
30
29
  createLogger: (component: string) => Logger;
31
30
  }
32
- export declare function useCompassWebLoggerAndTelemetry(callbacks: {
31
+ export declare function useCompassWebLogger(callbacks: {
33
32
  onLog?: LogFunction;
34
33
  onDebug?: DebugFunction;
35
- }): CompassWebLoggerAndTelemetry;
34
+ }): CompassWebLogger;
36
35
  export {};
37
- //# sourceMappingURL=logger-and-telemetry.d.ts.map
36
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAGnE,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAGlE,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACrB,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,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