@microsoft/applicationinsights-react-js 3.2.5-nightly.2202-11 → 3.2.5-nightly.2203-03

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,7 +1,7 @@
1
1
  {
2
2
  "metadata": {
3
3
  "toolPackage": "@microsoft/api-extractor",
4
- "toolVersion": "7.19.4",
4
+ "toolVersion": "7.19.5",
5
5
  "schemaVersion": 1004,
6
6
  "oldestForwardsCompatibleVersion": 1001,
7
7
  "tsdocConfig": {
@@ -422,6 +422,20 @@
422
422
  "releaseTag": "Public",
423
423
  "name": "ReactPlugin",
424
424
  "members": [
425
+ {
426
+ "kind": "Constructor",
427
+ "canonicalReference": "@microsoft/applicationinsights-react-js!ReactPlugin:constructor(1)",
428
+ "docComment": "/**\n * Constructs a new instance of the `ReactPlugin` class\n */\n",
429
+ "excerptTokens": [
430
+ {
431
+ "kind": "Content",
432
+ "text": "constructor();"
433
+ }
434
+ ],
435
+ "releaseTag": "Public",
436
+ "overloadIndex": 1,
437
+ "parameters": []
438
+ },
425
439
  {
426
440
  "kind": "Method",
427
441
  "canonicalReference": "@microsoft/applicationinsights-react-js!ReactPlugin#getAppInsights:member(1)",
@@ -786,8 +800,9 @@
786
800
  "text": ", customProperties?: "
787
801
  },
788
802
  {
789
- "kind": "Content",
790
- "text": "{\n [key: string]: any;\n }"
803
+ "kind": "Reference",
804
+ "text": "ICustomProperties",
805
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ICustomProperties:interface"
791
806
  },
792
807
  {
793
808
  "kind": "Content",
@@ -955,8 +970,9 @@
955
970
  "text": ", customProperties?: "
956
971
  },
957
972
  {
958
- "kind": "Content",
959
- "text": "{\n [key: string]: any;\n }"
973
+ "kind": "Reference",
974
+ "text": "ICustomProperties",
975
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ICustomProperties:interface"
960
976
  },
961
977
  {
962
978
  "kind": "Content",
@@ -1157,14 +1173,23 @@
1157
1173
  },
1158
1174
  {
1159
1175
  "kind": "Content",
1160
- "text": ", componentName: string) => () => void"
1176
+ "text": ", componentName: string, customProperties?: "
1177
+ },
1178
+ {
1179
+ "kind": "Reference",
1180
+ "text": "ICustomProperties",
1181
+ "canonicalReference": "@microsoft/applicationinsights-core-js!ICustomProperties:interface"
1182
+ },
1183
+ {
1184
+ "kind": "Content",
1185
+ "text": ") => () => void"
1161
1186
  }
1162
1187
  ],
1163
1188
  "releaseTag": "Public",
1164
1189
  "name": "useTrackMetric",
1165
1190
  "variableTypeTokenRange": {
1166
1191
  "startIndex": 1,
1167
- "endIndex": 4
1192
+ "endIndex": 6
1168
1193
  }
1169
1194
  },
1170
1195
  {
@@ -54,6 +54,7 @@ export interface IReactExtensionConfig {
54
54
 
55
55
  // @public (undocumented)
56
56
  export class ReactPlugin extends BaseTelemetryPlugin {
57
+ constructor();
57
58
  getAppInsights(): IAppInsights;
58
59
  getCookieMgr(): ICookieMgr;
59
60
  // (undocumented)
@@ -66,17 +67,13 @@ export class ReactPlugin extends BaseTelemetryPlugin {
66
67
  // (undocumented)
67
68
  trackEvent(event: IEventTelemetry, customProperties?: ICustomProperties): void;
68
69
  // (undocumented)
69
- trackException(exception: IExceptionTelemetry, customProperties?: {
70
- [key: string]: any;
71
- }): void;
70
+ trackException(exception: IExceptionTelemetry, customProperties?: ICustomProperties): void;
72
71
  // (undocumented)
73
72
  trackMetric(metric: IMetricTelemetry, customProperties: ICustomProperties): void;
74
73
  // (undocumented)
75
74
  trackPageView(pageView: IPageViewTelemetry): void;
76
75
  // (undocumented)
77
- trackTrace(trace: ITraceTelemetry, customProperties?: {
78
- [key: string]: any;
79
- }): void;
76
+ trackTrace(trace: ITraceTelemetry, customProperties?: ICustomProperties): void;
80
77
  }
81
78
 
82
79
  // @public (undocumented)
@@ -88,7 +85,7 @@ export const useAppInsightsContext: () => ReactPlugin;
88
85
  export function useTrackEvent<T>(reactPlugin: ReactPlugin, eventName: string, eventData: T, skipFirstRun?: boolean): AIReactCustomEvent<T>;
89
86
 
90
87
  // @public (undocumented)
91
- export const useTrackMetric: (reactPlugin: ReactPlugin, componentName: string) => () => void;
88
+ export const useTrackMetric: (reactPlugin: ReactPlugin, componentName: string, customProperties?: ICustomProperties) => () => void;
92
89
 
93
90
  // @public
94
91
  export function withAITracking<P>(reactPlugin: ReactPlugin, Component: React_2.ComponentType<P>, componentName?: string, className?: string): React_2.ComponentClass<P>;
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights react plugin, 3.2.5-nightly.2202-11
2
+ * Microsoft Application Insights react plugin, 3.2.5-nightly.2203-03
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  *
@@ -69,8 +69,7 @@ declare namespace ApplicationInsights {
69
69
  class ReactPlugin extends BaseTelemetryPlugin {
70
70
  priority: number;
71
71
  identifier: string;
72
- private _analyticsPlugin;
73
- private _extensionConfig;
72
+ constructor();
74
73
  initialize(config: IConfiguration & IConfig, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain): void;
75
74
  /**
76
75
  * Get the current cookie manager for this instance
@@ -88,20 +87,15 @@ declare namespace ApplicationInsights {
88
87
  trackMetric(metric: IMetricTelemetry, customProperties: ICustomProperties): void;
89
88
  trackPageView(pageView: IPageViewTelemetry): void;
90
89
  trackEvent(event: IEventTelemetry, customProperties?: ICustomProperties): void;
91
- trackException(exception: IExceptionTelemetry, customProperties?: {
92
- [key: string]: any;
93
- }): void;
94
- trackTrace(trace: ITraceTelemetry, customProperties?: {
95
- [key: string]: any;
96
- }): void;
97
- private addHistoryListener;
90
+ trackException(exception: IExceptionTelemetry, customProperties?: ICustomProperties): void;
91
+ trackTrace(trace: ITraceTelemetry, customProperties?: ICustomProperties): void;
98
92
  }
99
93
 
100
94
  const useAppInsightsContext: () => ReactPlugin;
101
95
 
102
96
  function useTrackEvent<T>(reactPlugin: ReactPlugin, eventName: string, eventData: T, skipFirstRun?: boolean): AIReactCustomEvent<T>;
103
97
 
104
- const useTrackMetric: (reactPlugin: ReactPlugin, componentName: string) => () => void;
98
+ const useTrackMetric: (reactPlugin: ReactPlugin, componentName: string, customProperties?: ICustomProperties) => () => void;
105
99
 
106
100
  /**
107
101
  * Higher-order component function to hook Application Insights tracking