@microsoft/applicationinsights-react-js 19.3.7-nightly.2507-03 → 19.3.7-nightly.2507-04
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/dist-esm/AppInsightsContext.js +0 -4
- package/dist-esm/AppInsightsContext.js.map +1 -1
- package/dist-esm/AppInsightsErrorBoundary.js +3 -7
- package/dist-esm/AppInsightsErrorBoundary.js.map +1 -1
- package/dist-esm/Interfaces/IReactExtensionConfig.js +2 -6
- package/dist-esm/Interfaces/IReactExtensionConfig.js.map +1 -1
- package/dist-esm/ReactPlugin.js +40 -19
- package/dist-esm/ReactPlugin.js.map +1 -1
- package/dist-esm/applicationinsights-react-js.js +2 -6
- package/dist-esm/applicationinsights-react-js.js.map +1 -1
- package/dist-esm/useTrackEvent.js +0 -4
- package/dist-esm/useTrackEvent.js.map +1 -1
- package/dist-esm/useTrackMetric.js +1 -5
- package/dist-esm/useTrackMetric.js.map +1 -1
- package/dist-esm/withAITracking.js +3 -7
- package/dist-esm/withAITracking.js.map +1 -1
- package/package.json +1 -1
- package/browser/applicationinsights-react-js.js +0 -3863
- package/browser/applicationinsights-react-js.js.map +0 -1
- package/browser/applicationinsights-react-js.min.js +0 -6
- package/browser/applicationinsights-react-js.min.js.map +0 -1
- package/dist/applicationinsights-react-js.api.json +0 -1982
- package/dist/applicationinsights-react-js.api.md +0 -129
- package/dist/applicationinsights-react-js.d.ts +0 -137
- package/dist/applicationinsights-react-js.js +0 -3863
- package/dist/applicationinsights-react-js.js.map +0 -1
- package/dist/applicationinsights-react-js.min.js +0 -6
- package/dist/applicationinsights-react-js.min.js.map +0 -1
- package/dist/applicationinsights-react-js.rollup.d.ts +0 -142
- package/types/tsdoc-metadata.json +0 -11
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Microsoft Application Insights react plugin, 19.3.7-nightly.2507-03
|
|
3
|
-
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
|
-
*
|
|
5
|
-
* Microsoft Application Insights Team
|
|
6
|
-
* https://github.com/microsoft/applicationinsights-react-js#readme
|
|
7
|
-
*
|
|
8
|
-
* ---------------------------------------------------------------------------
|
|
9
|
-
* This is a single combined (rollup) declaration file for the package,
|
|
10
|
-
* use this version if your build environment doesn't support the using the
|
|
11
|
-
* individual *.d.ts files or default namespace wrapped version.
|
|
12
|
-
* - Namespaced version: applicationinsights-react-js.d.ts
|
|
13
|
-
* ---------------------------------------------------------------------------
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
import { BaseTelemetryPlugin } from '@microsoft/applicationinsights-core-js';
|
|
17
|
-
import { Context } from 'react';
|
|
18
|
-
import { Dispatch } from 'react';
|
|
19
|
-
import { History as History_2 } from 'history';
|
|
20
|
-
import { IAppInsights } from '@microsoft/applicationinsights-common';
|
|
21
|
-
import { IAppInsightsCore } from '@microsoft/applicationinsights-core-js';
|
|
22
|
-
import { IConfig } from '@microsoft/applicationinsights-common';
|
|
23
|
-
import { IConfiguration } from '@microsoft/applicationinsights-core-js';
|
|
24
|
-
import { ICookieMgr } from '@microsoft/applicationinsights-core-js';
|
|
25
|
-
import { ICustomProperties } from '@microsoft/applicationinsights-core-js';
|
|
26
|
-
import { IEventTelemetry } from '@microsoft/applicationinsights-common';
|
|
27
|
-
import { IExceptionTelemetry } from '@microsoft/applicationinsights-common';
|
|
28
|
-
import { IMetricTelemetry } from '@microsoft/applicationinsights-common';
|
|
29
|
-
import { IPageViewTelemetry } from '@microsoft/applicationinsights-common';
|
|
30
|
-
import { IPlugin } from '@microsoft/applicationinsights-core-js';
|
|
31
|
-
import { IProcessTelemetryContext } from '@microsoft/applicationinsights-core-js';
|
|
32
|
-
import { ITelemetryContext } from '@microsoft/applicationinsights-common';
|
|
33
|
-
import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
|
|
34
|
-
import { ITelemetryPluginChain } from '@microsoft/applicationinsights-core-js';
|
|
35
|
-
import { ITraceTelemetry } from '@microsoft/applicationinsights-common';
|
|
36
|
-
import * as React_2 from 'react';
|
|
37
|
-
import { default as React_3 } from 'react';
|
|
38
|
-
import { SetStateAction } from 'react';
|
|
39
|
-
|
|
40
|
-
declare type AIReactCustomEvent<T> = Dispatch<SetStateAction<T>>;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Higher-order component base class to hook Application Insights tracking
|
|
44
|
-
* in a React component's lifecycle.
|
|
45
|
-
*/
|
|
46
|
-
export declare abstract class AITrackedComponentBase<P> extends React_2.Component<P> {
|
|
47
|
-
protected _mountTimestamp: number;
|
|
48
|
-
protected _firstActiveTimestamp: number;
|
|
49
|
-
protected _idleStartTimestamp: number;
|
|
50
|
-
protected _lastActiveTimestamp: number;
|
|
51
|
-
protected _totalIdleTime: number;
|
|
52
|
-
protected _idleCount: number;
|
|
53
|
-
protected _idleTimeout: number;
|
|
54
|
-
protected _intervalId?: any;
|
|
55
|
-
protected _componentName: string;
|
|
56
|
-
protected _reactPlugin: ReactPlugin;
|
|
57
|
-
constructor(props: P, reactPlugin: ReactPlugin, componentName: string);
|
|
58
|
-
componentDidMount(): void;
|
|
59
|
-
componentWillUnmount(): void;
|
|
60
|
-
protected trackActivity: (e: React_2.SyntheticEvent<any>) => void;
|
|
61
|
-
private getEngagementTimeSeconds;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export declare const AppInsightsContext: AppInsightsReactContext;
|
|
65
|
-
|
|
66
|
-
export declare class AppInsightsErrorBoundary extends React_3.Component<IAppInsightsErrorBoundaryProps, IAppInsightsErrorBoundaryState> {
|
|
67
|
-
state: {
|
|
68
|
-
hasError: boolean;
|
|
69
|
-
};
|
|
70
|
-
componentDidCatch(error: Error, errorInfo: React_3.ErrorInfo): void;
|
|
71
|
-
render(): React_3.ReactElement<unknown, string | React_3.JSXElementConstructor<any>>;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
declare type AppInsightsReactContext = Context<ReactPlugin>;
|
|
75
|
-
|
|
76
|
-
declare interface IAppInsightsErrorBoundaryProps {
|
|
77
|
-
appInsights: ReactPlugin;
|
|
78
|
-
onError: React_3.ComponentType<any>;
|
|
79
|
-
children: React_3.ReactElement;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
declare interface IAppInsightsErrorBoundaryState {
|
|
83
|
-
hasError: boolean;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Settings to initialize a ReactAI instance.
|
|
88
|
-
*/
|
|
89
|
-
export declare interface IReactExtensionConfig {
|
|
90
|
-
/**
|
|
91
|
-
* React router history for enabling Application Insights PageView tracking.
|
|
92
|
-
*
|
|
93
|
-
* @type {History}
|
|
94
|
-
* @memberof IReactAISettings
|
|
95
|
-
*/
|
|
96
|
-
readonly history?: History_2;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export declare class ReactPlugin extends BaseTelemetryPlugin {
|
|
100
|
-
priority: number;
|
|
101
|
-
identifier: string;
|
|
102
|
-
readonly context: ITelemetryContext;
|
|
103
|
-
constructor();
|
|
104
|
-
initialize(config: IConfiguration & IConfig, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain): void;
|
|
105
|
-
/**
|
|
106
|
-
* Get the current cookie manager for this instance
|
|
107
|
-
*/
|
|
108
|
-
getCookieMgr(): ICookieMgr;
|
|
109
|
-
/**
|
|
110
|
-
* Get application insights instance.
|
|
111
|
-
*/
|
|
112
|
-
getAppInsights(): IAppInsights;
|
|
113
|
-
/**
|
|
114
|
-
* Add Part A fields to the event
|
|
115
|
-
* @param event The event that needs to be processed
|
|
116
|
-
*/
|
|
117
|
-
processTelemetry(event: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
|
|
118
|
-
trackMetric(metric: IMetricTelemetry, customProperties: ICustomProperties): void;
|
|
119
|
-
trackPageView(pageView: IPageViewTelemetry): void;
|
|
120
|
-
trackEvent(event: IEventTelemetry, customProperties?: ICustomProperties): void;
|
|
121
|
-
trackException(exception: IExceptionTelemetry, customProperties?: ICustomProperties): void;
|
|
122
|
-
trackTrace(trace: ITraceTelemetry, customProperties?: ICustomProperties): void;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export declare const useAppInsightsContext: () => ReactPlugin;
|
|
126
|
-
|
|
127
|
-
export declare function useTrackEvent<T>(reactPlugin: ReactPlugin, eventName: string, eventData: T, skipFirstRun?: boolean): AIReactCustomEvent<T>;
|
|
128
|
-
|
|
129
|
-
export declare const useTrackMetric: (reactPlugin: ReactPlugin, componentName: string, customProperties?: ICustomProperties) => () => void;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Higher-order component function to hook Application Insights tracking
|
|
133
|
-
* in a React component's lifecycle.
|
|
134
|
-
*
|
|
135
|
-
* @param reactPlugin ReactPlugin instance
|
|
136
|
-
* @param Component the React component to be instrumented
|
|
137
|
-
* @param componentName (optional) component name
|
|
138
|
-
* @param className (optional) className of the HOC div
|
|
139
|
-
*/
|
|
140
|
-
export declare function withAITracking<P>(reactPlugin: ReactPlugin, Component: React_2.ComponentType<P>, componentName?: string, className?: string): React_2.ComponentClass<P>;
|
|
141
|
-
|
|
142
|
-
export { }
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
-
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
-
{
|
|
4
|
-
"tsdocVersion": "0.12",
|
|
5
|
-
"toolPackages": [
|
|
6
|
-
{
|
|
7
|
-
"packageName": "@microsoft/api-extractor",
|
|
8
|
-
"packageVersion": "7.52.8"
|
|
9
|
-
}
|
|
10
|
-
]
|
|
11
|
-
}
|