@microsoft/applicationinsights-web 2.8.0-beta.2202-06 → 2.8.0-beta.2203-02

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/README.md +1 -0
  2. package/browser/{ai.2.8.0-beta.2202-06.cjs.js → ai.2.8.0-beta.2203-02.cjs.js} +876 -515
  3. package/browser/ai.2.8.0-beta.2203-02.cjs.js.map +1 -0
  4. package/browser/ai.2.8.0-beta.2203-02.cjs.min.js +6 -0
  5. package/browser/ai.2.8.0-beta.2203-02.cjs.min.js.map +1 -0
  6. package/browser/{ai.2.8.0-beta.2202-06.gbl.js → ai.2.8.0-beta.2203-02.gbl.js} +876 -515
  7. package/browser/ai.2.8.0-beta.2203-02.gbl.js.map +1 -0
  8. package/browser/ai.2.8.0-beta.2203-02.gbl.min.js +6 -0
  9. package/browser/ai.2.8.0-beta.2203-02.gbl.min.js.map +1 -0
  10. package/browser/ai.2.8.0-beta.2203-02.integrity.json +66 -0
  11. package/browser/{ai.2.8.0-beta.2202-06.js → ai.2.8.0-beta.2203-02.js} +876 -515
  12. package/browser/ai.2.8.0-beta.2203-02.js.map +1 -0
  13. package/browser/ai.2.8.0-beta.2203-02.min.js +6 -0
  14. package/browser/ai.2.8.0-beta.2203-02.min.js.map +1 -0
  15. package/browser/ai.2.cjs.js +875 -514
  16. package/browser/ai.2.cjs.js.map +1 -1
  17. package/browser/ai.2.cjs.min.js +2 -2
  18. package/browser/ai.2.cjs.min.js.map +1 -1
  19. package/browser/ai.2.gbl.js +875 -514
  20. package/browser/ai.2.gbl.js.map +1 -1
  21. package/browser/ai.2.gbl.min.js +2 -2
  22. package/browser/ai.2.gbl.min.js.map +1 -1
  23. package/browser/ai.2.js +875 -514
  24. package/browser/ai.2.js.map +1 -1
  25. package/browser/ai.2.min.js +2 -2
  26. package/browser/ai.2.min.js.map +1 -1
  27. package/dist/applicationinsights-web.api.json +328 -568
  28. package/dist/applicationinsights-web.api.md +44 -32
  29. package/dist/applicationinsights-web.d.ts +298 -93
  30. package/dist/applicationinsights-web.js +941 -578
  31. package/dist/applicationinsights-web.js.map +1 -1
  32. package/dist/applicationinsights-web.min.js +2 -2
  33. package/dist/applicationinsights-web.min.js.map +1 -1
  34. package/dist/applicationinsights-web.rollup.d.ts +298 -93
  35. package/dist-esm/ApplicationInsightsContainer.js +1 -1
  36. package/dist-esm/ApplicationInsightsDeprecated.js +1 -1
  37. package/dist-esm/Init.js +1 -1
  38. package/dist-esm/Initialization.js +1 -1
  39. package/dist-esm/applicationinsights-web.js +1 -1
  40. package/package.json +7 -7
  41. package/types/Initialization.d.ts +6 -2
  42. package/browser/ai.2.8.0-beta.2202-06.cjs.js.map +0 -1
  43. package/browser/ai.2.8.0-beta.2202-06.cjs.min.js +0 -6
  44. package/browser/ai.2.8.0-beta.2202-06.cjs.min.js.map +0 -1
  45. package/browser/ai.2.8.0-beta.2202-06.gbl.js.map +0 -1
  46. package/browser/ai.2.8.0-beta.2202-06.gbl.min.js +0 -6
  47. package/browser/ai.2.8.0-beta.2202-06.gbl.min.js.map +0 -1
  48. package/browser/ai.2.8.0-beta.2202-06.integrity.json +0 -66
  49. package/browser/ai.2.8.0-beta.2202-06.js.map +0 -1
  50. package/browser/ai.2.8.0-beta.2202-06.min.js +0 -6
  51. package/browser/ai.2.8.0-beta.2202-06.min.js.map +0 -1
@@ -166,6 +166,7 @@ export class BaseCore implements IAppInsightsCore {
166
166
  static defaultConfig: IConfiguration;
167
167
  // (undocumented)
168
168
  eventCnt(): number;
169
+ evtNamespace(): string;
169
170
  // (undocumented)
170
171
  _extensions: IPlugin[];
171
172
  getCookieMgr(): ICookieMgr;
@@ -208,6 +209,9 @@ export abstract class BaseTelemetryPlugin implements ITelemetryPlugin {
208
209
  protected _addHook(hooks: IInstrumentHook | IInstrumentHook[]): void;
209
210
  core: IAppInsightsCore;
210
211
  diagLog: (itemCtx?: IProcessTelemetryContext) => IDiagnosticLogger;
212
+ // Warning: (ae-forgotten-export) The symbol "IProcessTelemetryUnloadContext" needs to be exported by the entry point applicationinsights-web.d.ts
213
+ // Warning: (ae-forgotten-export) The symbol "ITelemetryUnloadState" needs to be exported by the entry point applicationinsights-web.d.ts
214
+ protected _doTeardown?: (unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState, asyncCallback?: () => void) => void | boolean;
211
215
  protected _getTelCtx: (currentCtx?: IProcessTelemetryContext) => IProcessTelemetryContext;
212
216
  // (undocumented)
213
217
  identifier: string;
@@ -221,6 +225,7 @@ export abstract class BaseTelemetryPlugin implements ITelemetryPlugin {
221
225
  abstract processTelemetry(env: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
222
226
  protected setInitialized: (isInitialized: boolean) => void;
223
227
  setNextPlugin: (next: ITelemetryPlugin | ITelemetryPluginChain) => void;
228
+ teardown(unloadCtx?: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState): void | boolean;
224
229
  // (undocumented)
225
230
  version?: string;
226
231
  }
@@ -254,8 +259,6 @@ export class DependenciesPlugin extends BaseTelemetryPlugin implements IDependen
254
259
  priority: number;
255
260
  // (undocumented)
256
261
  processTelemetry(item: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
257
- // (undocumented)
258
- teardown(): void;
259
262
  trackDependencyData(dependency: IDependencyTelemetry, properties?: {
260
263
  [key: string]: any;
261
264
  }): void;
@@ -267,11 +270,16 @@ export class DependenciesPlugin extends BaseTelemetryPlugin implements IDependen
267
270
  }
268
271
 
269
272
  // @public (undocumented)
270
- export enum DistributedTracingModes {
271
- AI = 0,
272
- AI_AND_W3C = 1,
273
- W3C = 2
274
- }
273
+ export const DistributedTracingModes: {
274
+ AI: number;
275
+ AI_AND_W3C: number;
276
+ W3C: number;
277
+ };
278
+
279
+ // Warning: (ae-forgotten-export) The symbol "eDistributedTracingModes" needs to be exported by the entry point applicationinsights-web.d.ts
280
+ //
281
+ // @public (undocumented)
282
+ export type DistributedTracingModes = number | eDistributedTracingModes;
275
283
 
276
284
  // @public
277
285
  export function doPerf<T>(mgrSource: IPerfManagerProvider | IPerfManager, getSource: () => string, func: (perfEvt?: IPerfEvent) => T, details?: () => any, isAsync?: boolean): T;
@@ -386,6 +394,7 @@ export interface IAppInsightsCore extends IPerfManagerProvider {
386
394
  addTelemetryInitializer(telemetryInitializer: TelemetryInitializerFunction): ITelemetryInitializerHandler | void;
387
395
  // (undocumented)
388
396
  config: IConfiguration;
397
+ evtNamespace(): string;
389
398
  getCookieMgr(): ICookieMgr;
390
399
  getNotifyMgr(): INotificationManager;
391
400
  getPlugin<T extends IPlugin = IPlugin>(pluginIdentifier: string): ILoadedPlugin<T>;
@@ -604,7 +613,7 @@ export interface IConfiguration {
604
613
 
605
614
  // @public @deprecated
606
615
  export interface ICoreUtils {
607
- addEventHandler: (eventName: string, callback: any) => boolean;
616
+ addEventHandler: (eventName: string, callback: any, evtNamespace?: string | string[]) => boolean;
608
617
  arrForEach: <T>(arr: T[], callbackfn: (value: T, index?: number, array?: T[]) => void | number, thisArg?: any) => void;
609
618
  arrIndexOf: <T>(arr: T[], searchElement: T, fromIndex?: number) => number;
610
619
  arrMap: <T, R>(arr: T[], callbackfn: (value: T, index?: number, array?: T[]) => R, thisArg?: any) => R[];
@@ -848,8 +857,10 @@ export const _InternalMessageId: {
848
857
  InMemoryStorageBufferFull: number;
849
858
  };
850
859
 
860
+ // Warning: (ae-forgotten-export) The symbol "_eInternalMessageId" needs to be exported by the entry point applicationinsights-web.d.ts
861
+ //
851
862
  // @public (undocumented)
852
- export type _InternalMessageId = number | typeof _InternalMessageId;
863
+ export type _InternalMessageId = number | _eInternalMessageId;
853
864
 
854
865
  // @public (undocumented)
855
866
  export interface IPageViewPerformanceTelemetry extends IPartC {
@@ -912,25 +923,16 @@ export interface IPlugin {
912
923
  readonly identifier: string;
913
924
  initialize: (config: IConfiguration, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain) => void;
914
925
  isInitialized?: () => boolean;
915
- teardown?: () => void;
926
+ teardown?: (unloadCtx: IProcessTelemetryUnloadContext, unloadState?: ITelemetryUnloadState) => void | boolean;
916
927
  readonly version?: string;
917
928
  }
918
929
 
930
+ // Warning: (ae-forgotten-export) The symbol "IBaseProcessingContext" needs to be exported by the entry point applicationinsights-web.d.ts
931
+ //
919
932
  // @public
920
- export interface IProcessTelemetryContext {
921
- core: () => IAppInsightsCore;
933
+ export interface IProcessTelemetryContext extends IBaseProcessingContext {
922
934
  createNew: (plugins?: IPlugin[] | ITelemetryPluginChain, startAt?: IPlugin) => IProcessTelemetryContext;
923
- diagLog: () => IDiagnosticLogger;
924
- getCfg: () => IConfiguration;
925
- getConfig: (identifier: string, field: string, defaultValue?: number | string | boolean | string[] | RegExp[] | Function) => number | string | boolean | string[] | RegExp[] | Function;
926
- // Warning: (ae-forgotten-export) The symbol "GetExtCfgMergeType" needs to be exported by the entry point applicationinsights-web.d.ts
927
- getExtCfg: <T>(identifier: string, defaultValue?: T | any, mergeDefault?: GetExtCfgMergeType) => T;
928
- getNext: () => ITelemetryPluginChain;
929
- hasNext: () => boolean;
930
- iterate: <T extends ITelemetryPlugin = ITelemetryPlugin>(callback: (plugin: T) => void) => void;
931
- onComplete: (onComplete: () => void) => void;
932
- processNext: (env: ITelemetryItem) => void;
933
- setNext: (nextCtx: ITelemetryPluginChain) => void;
935
+ processNext: (env: ITelemetryItem) => boolean | void;
934
936
  }
935
937
 
936
938
  // @public (undocumented)
@@ -964,18 +966,19 @@ export interface ITelemetryItem {
964
966
  ver?: string;
965
967
  }
966
968
 
969
+ // Warning: (ae-forgotten-export) The symbol "ITelemetryProcessor" needs to be exported by the entry point applicationinsights-web.d.ts
970
+ //
967
971
  // @public
968
- export interface ITelemetryPlugin extends IPlugin {
972
+ export interface ITelemetryPlugin extends ITelemetryProcessor, IPlugin {
969
973
  readonly priority: number;
970
- processTelemetry: (env: ITelemetryItem, itemCtx?: IProcessTelemetryContext) => void;
971
974
  setNextPlugin?: (next: ITelemetryPlugin | ITelemetryPluginChain) => void;
972
975
  }
973
976
 
974
977
  // @public
975
- export interface ITelemetryPluginChain {
978
+ export interface ITelemetryPluginChain extends ITelemetryProcessor {
976
979
  getNext: () => ITelemetryPluginChain;
977
980
  getPlugin: () => ITelemetryPlugin;
978
- processTelemetry: (env: ITelemetryItem, itemCtx: IProcessTelemetryContext) => void;
981
+ unload?: (unloadCtx: IProcessTelemetryUnloadContext, unloadState: ITelemetryUnloadState) => void;
979
982
  }
980
983
 
981
984
  // @public (undocumented)
@@ -1053,10 +1056,15 @@ export interface IUtil {
1053
1056
  }
1054
1057
 
1055
1058
  // @public (undocumented)
1056
- export enum LoggingSeverity {
1057
- CRITICAL = 1,
1058
- WARNING = 2
1059
- }
1059
+ export const LoggingSeverity: {
1060
+ CRITICAL: number;
1061
+ WARNING: number;
1062
+ };
1063
+
1064
+ // Warning: (ae-forgotten-export) The symbol "eLoggingSeverity" needs to be exported by the entry point applicationinsights-web.d.ts
1065
+ //
1066
+ // @public (undocumented)
1067
+ export type LoggingSeverity = number | eLoggingSeverity;
1060
1068
 
1061
1069
  // Warning: (ae-forgotten-export) The symbol "MetricData" needs to be exported by the entry point applicationinsights-web.d.ts
1062
1070
  //
@@ -1361,7 +1369,11 @@ export const Telemetry: {
1361
1369
  SessionExt: string;
1362
1370
  SDKExt: string;
1363
1371
  };
1364
- DistributedTracingModes: typeof DistributedTracingModes;
1372
+ DistributedTracingModes: {
1373
+ AI: number;
1374
+ AI_AND_W3C: number;
1375
+ W3C: number;
1376
+ };
1365
1377
  };
1366
1378
 
1367
1379
  // Warning: (ae-forgotten-export) The symbol "MessageData" needs to be exported by the entry point applicationinsights-web.d.ts