@microsoft/applicationinsights-react-native 3.0.3 → 4.0.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/browser/applicationinsights-react-native.js +1995 -1061
- package/browser/applicationinsights-react-native.js.map +1 -1
- package/browser/applicationinsights-react-native.min.js +2 -2
- package/browser/applicationinsights-react-native.min.js.map +1 -1
- package/dist/applicationinsights-react-native.api.json +147 -17
- package/dist/applicationinsights-react-native.api.md +9 -1
- package/dist/applicationinsights-react-native.d.ts +8 -4
- package/dist/applicationinsights-react-native.js +1995 -1061
- package/dist/applicationinsights-react-native.js.map +1 -1
- package/dist/applicationinsights-react-native.min.js +2 -2
- package/dist/applicationinsights-react-native.min.js.map +1 -1
- package/dist/applicationinsights-react-native.rollup.d.ts +8 -4
- package/dist-esm/DeviceInfo/DeviceModule.js +1 -1
- package/dist-esm/DeviceInfo/ReactNativeDeviceInfo.js +1 -1
- package/dist-esm/Interfaces/IDeviceInfoModule.js +1 -1
- package/dist-esm/Interfaces/INativeDevice.js +1 -1
- package/dist-esm/Interfaces/IReactNativePluginConfig.js +1 -1
- package/dist-esm/Interfaces/index.js +1 -1
- package/dist-esm/ReactNativeManualDevicePlugin.js +236 -0
- package/dist-esm/ReactNativeManualDevicePlugin.js.map +1 -0
- package/dist-esm/ReactNativePlugin.js +8 -209
- package/dist-esm/ReactNativePlugin.js.map +1 -1
- package/dist-esm/index.js +3 -2
- package/dist-esm/index.js.map +1 -1
- package/dist-esm/manualIndex.js +9 -0
- package/dist-esm/manualIndex.js.map +1 -0
- package/package.json +14 -6
- package/types/ReactNativeManualDevicePlugin.d.ts +43 -0
- package/types/ReactNativePlugin.d.ts +3 -41
- package/types/index.d.ts +2 -1
- package/types/manualIndex.d.ts +4 -0
- package/types/tsdoc-metadata.json +1 -1
- package/src/DeviceInfo/DeviceModule.ts +0 -44
- package/src/DeviceInfo/ReactNativeDeviceInfo.ts +0 -13
- package/src/Interfaces/IDeviceInfoModule.ts +0 -31
- package/src/Interfaces/INativeDevice.ts +0 -19
- package/src/Interfaces/IReactNativePluginConfig.ts +0 -19
- package/src/Interfaces/index.ts +0 -7
- package/src/ReactNativePlugin.ts +0 -303
- package/src/index.ts +0 -10
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"metadata": {
|
|
3
3
|
"toolPackage": "@microsoft/api-extractor",
|
|
4
|
-
"toolVersion": "7.
|
|
4
|
+
"toolVersion": "7.36.3",
|
|
5
5
|
"schemaVersion": 1011,
|
|
6
6
|
"oldestForwardsCompatibleVersion": 1001,
|
|
7
7
|
"tsdocConfig": {
|
|
@@ -509,12 +509,12 @@
|
|
|
509
509
|
},
|
|
510
510
|
{
|
|
511
511
|
"kind": "Class",
|
|
512
|
-
"canonicalReference": "@microsoft/applicationinsights-react-native!
|
|
512
|
+
"canonicalReference": "@microsoft/applicationinsights-react-native!ReactNativeManualDevicePlugin:class",
|
|
513
513
|
"docComment": "",
|
|
514
514
|
"excerptTokens": [
|
|
515
515
|
{
|
|
516
516
|
"kind": "Content",
|
|
517
|
-
"text": "export declare class
|
|
517
|
+
"text": "export declare class ReactNativeManualDevicePlugin extends "
|
|
518
518
|
},
|
|
519
519
|
{
|
|
520
520
|
"kind": "Reference",
|
|
@@ -526,15 +526,15 @@
|
|
|
526
526
|
"text": " "
|
|
527
527
|
}
|
|
528
528
|
],
|
|
529
|
-
"fileUrlPath": "types/
|
|
529
|
+
"fileUrlPath": "types/ReactNativeManualDevicePlugin.d.ts",
|
|
530
530
|
"releaseTag": "Public",
|
|
531
531
|
"isAbstract": false,
|
|
532
|
-
"name": "
|
|
532
|
+
"name": "ReactNativeManualDevicePlugin",
|
|
533
533
|
"preserveMemberOrder": false,
|
|
534
534
|
"members": [
|
|
535
535
|
{
|
|
536
536
|
"kind": "Property",
|
|
537
|
-
"canonicalReference": "@microsoft/applicationinsights-react-native!
|
|
537
|
+
"canonicalReference": "@microsoft/applicationinsights-react-native!ReactNativeManualDevicePlugin#_nextPlugin:member",
|
|
538
538
|
"docComment": "",
|
|
539
539
|
"excerptTokens": [
|
|
540
540
|
{
|
|
@@ -565,8 +565,8 @@
|
|
|
565
565
|
},
|
|
566
566
|
{
|
|
567
567
|
"kind": "Constructor",
|
|
568
|
-
"canonicalReference": "@microsoft/applicationinsights-react-native!
|
|
569
|
-
"docComment": "/**\n * Constructs a new instance of the `
|
|
568
|
+
"canonicalReference": "@microsoft/applicationinsights-react-native!ReactNativeManualDevicePlugin:constructor(1)",
|
|
569
|
+
"docComment": "/**\n * Constructs a new instance of the `ReactNativeManualDevicePlugin` class\n */\n",
|
|
570
570
|
"excerptTokens": [
|
|
571
571
|
{
|
|
572
572
|
"kind": "Content",
|
|
@@ -596,9 +596,58 @@
|
|
|
596
596
|
}
|
|
597
597
|
]
|
|
598
598
|
},
|
|
599
|
+
{
|
|
600
|
+
"kind": "Method",
|
|
601
|
+
"canonicalReference": "@microsoft/applicationinsights-react-native!ReactNativeManualDevicePlugin#getDeviceInfoModule:member(1)",
|
|
602
|
+
"docComment": "",
|
|
603
|
+
"excerptTokens": [
|
|
604
|
+
{
|
|
605
|
+
"kind": "Content",
|
|
606
|
+
"text": "protected getDeviceInfoModule(_deviceInfoModule: "
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"kind": "Content",
|
|
610
|
+
"text": "any"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"kind": "Content",
|
|
614
|
+
"text": "): "
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
"kind": "Reference",
|
|
618
|
+
"text": "IDeviceInfoModule",
|
|
619
|
+
"canonicalReference": "@microsoft/applicationinsights-react-native!IDeviceInfoModule:interface"
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"kind": "Content",
|
|
623
|
+
"text": ";"
|
|
624
|
+
}
|
|
625
|
+
],
|
|
626
|
+
"isStatic": false,
|
|
627
|
+
"returnTypeTokenRange": {
|
|
628
|
+
"startIndex": 3,
|
|
629
|
+
"endIndex": 4
|
|
630
|
+
},
|
|
631
|
+
"releaseTag": "Public",
|
|
632
|
+
"isProtected": true,
|
|
633
|
+
"overloadIndex": 1,
|
|
634
|
+
"parameters": [
|
|
635
|
+
{
|
|
636
|
+
"parameterName": "_deviceInfoModule",
|
|
637
|
+
"parameterTypeTokenRange": {
|
|
638
|
+
"startIndex": 1,
|
|
639
|
+
"endIndex": 2
|
|
640
|
+
},
|
|
641
|
+
"isOptional": false
|
|
642
|
+
}
|
|
643
|
+
],
|
|
644
|
+
"isOptional": false,
|
|
645
|
+
"isAbstract": false,
|
|
646
|
+
"name": "getDeviceInfoModule"
|
|
647
|
+
},
|
|
599
648
|
{
|
|
600
649
|
"kind": "Property",
|
|
601
|
-
"canonicalReference": "@microsoft/applicationinsights-react-native!
|
|
650
|
+
"canonicalReference": "@microsoft/applicationinsights-react-native!ReactNativeManualDevicePlugin#identifier:member",
|
|
602
651
|
"docComment": "",
|
|
603
652
|
"excerptTokens": [
|
|
604
653
|
{
|
|
@@ -628,7 +677,7 @@
|
|
|
628
677
|
},
|
|
629
678
|
{
|
|
630
679
|
"kind": "Method",
|
|
631
|
-
"canonicalReference": "@microsoft/applicationinsights-react-native!
|
|
680
|
+
"canonicalReference": "@microsoft/applicationinsights-react-native!ReactNativeManualDevicePlugin#initialize:member(1)",
|
|
632
681
|
"docComment": "",
|
|
633
682
|
"excerptTokens": [
|
|
634
683
|
{
|
|
@@ -719,7 +768,7 @@
|
|
|
719
768
|
},
|
|
720
769
|
{
|
|
721
770
|
"kind": "Property",
|
|
722
|
-
"canonicalReference": "@microsoft/applicationinsights-react-native!
|
|
771
|
+
"canonicalReference": "@microsoft/applicationinsights-react-native!ReactNativeManualDevicePlugin#priority:member",
|
|
723
772
|
"docComment": "",
|
|
724
773
|
"excerptTokens": [
|
|
725
774
|
{
|
|
@@ -749,7 +798,7 @@
|
|
|
749
798
|
},
|
|
750
799
|
{
|
|
751
800
|
"kind": "Method",
|
|
752
|
-
"canonicalReference": "@microsoft/applicationinsights-react-native!
|
|
801
|
+
"canonicalReference": "@microsoft/applicationinsights-react-native!ReactNativeManualDevicePlugin#processTelemetry:member(1)",
|
|
753
802
|
"docComment": "",
|
|
754
803
|
"excerptTokens": [
|
|
755
804
|
{
|
|
@@ -815,7 +864,7 @@
|
|
|
815
864
|
},
|
|
816
865
|
{
|
|
817
866
|
"kind": "Method",
|
|
818
|
-
"canonicalReference": "@microsoft/applicationinsights-react-native!
|
|
867
|
+
"canonicalReference": "@microsoft/applicationinsights-react-native!ReactNativeManualDevicePlugin#setDeviceId:member(1)",
|
|
819
868
|
"docComment": "/**\n * Manually set the deviceId, if set before initialization and automatic device info collection is enabled this value may get overwritten. If you want to keep this value disable auto collection by setting the `disableDeviceCollection` config to true.\n *\n * @param newId - The value to use as the device Id.\n */\n",
|
|
820
869
|
"excerptTokens": [
|
|
821
870
|
{
|
|
@@ -863,8 +912,8 @@
|
|
|
863
912
|
},
|
|
864
913
|
{
|
|
865
914
|
"kind": "Method",
|
|
866
|
-
"canonicalReference": "@microsoft/applicationinsights-react-native!
|
|
867
|
-
"docComment": "/**\n * Set the module that will be used during initialization when collecting device is enabled (the default), automatic collection can be disabled via the `disableDeviceCollection` config.
|
|
915
|
+
"canonicalReference": "@microsoft/applicationinsights-react-native!ReactNativeManualDevicePlugin#setDeviceInfoModule:member(1)",
|
|
916
|
+
"docComment": "/**\n * Set the module that will be used during initialization when collecting device is enabled (the default), automatic collection can be disabled via the `disableDeviceCollection` config. If no `deviceInfoModule` is set and collection is enabled, an error will be thrown.\n *\n * @param deviceInfoModule - \n */\n",
|
|
868
917
|
"excerptTokens": [
|
|
869
918
|
{
|
|
870
919
|
"kind": "Content",
|
|
@@ -912,7 +961,7 @@
|
|
|
912
961
|
},
|
|
913
962
|
{
|
|
914
963
|
"kind": "Method",
|
|
915
|
-
"canonicalReference": "@microsoft/applicationinsights-react-native!
|
|
964
|
+
"canonicalReference": "@microsoft/applicationinsights-react-native!ReactNativeManualDevicePlugin#setDeviceModel:member(1)",
|
|
916
965
|
"docComment": "/**\n * Manually set the device model, if set before initialization and automatic device info collection is enabled this value may get overwritten. If you want to keep this value disable auto collection by setting the `disableDeviceCollection` config to true.\n *\n * @param newModel - The value to use as the device model.\n */\n",
|
|
917
966
|
"excerptTokens": [
|
|
918
967
|
{
|
|
@@ -960,7 +1009,7 @@
|
|
|
960
1009
|
},
|
|
961
1010
|
{
|
|
962
1011
|
"kind": "Method",
|
|
963
|
-
"canonicalReference": "@microsoft/applicationinsights-react-native!
|
|
1012
|
+
"canonicalReference": "@microsoft/applicationinsights-react-native!ReactNativeManualDevicePlugin#setDeviceType:member(1)",
|
|
964
1013
|
"docComment": "/**\n * Manually set the device type (class), if set before initialization and automatic device info collection is enabled this value may get overwritten. If you want to keep this value disable auto collection by setting the `disableDeviceCollection` config to true.\n *\n * @param newType - The value to use as the device type\n */\n",
|
|
965
1014
|
"excerptTokens": [
|
|
966
1015
|
{
|
|
@@ -1012,6 +1061,87 @@
|
|
|
1012
1061
|
"endIndex": 2
|
|
1013
1062
|
},
|
|
1014
1063
|
"implementsTokenRanges": []
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
"kind": "Class",
|
|
1067
|
+
"canonicalReference": "@microsoft/applicationinsights-react-native!ReactNativePlugin:class",
|
|
1068
|
+
"docComment": "",
|
|
1069
|
+
"excerptTokens": [
|
|
1070
|
+
{
|
|
1071
|
+
"kind": "Content",
|
|
1072
|
+
"text": "export declare class ReactNativePlugin extends "
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
"kind": "Reference",
|
|
1076
|
+
"text": "ReactNativeManualDevicePlugin",
|
|
1077
|
+
"canonicalReference": "@microsoft/applicationinsights-react-native!ReactNativeManualDevicePlugin:class"
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
"kind": "Content",
|
|
1081
|
+
"text": " "
|
|
1082
|
+
}
|
|
1083
|
+
],
|
|
1084
|
+
"fileUrlPath": "types/ReactNativePlugin.d.ts",
|
|
1085
|
+
"releaseTag": "Public",
|
|
1086
|
+
"isAbstract": false,
|
|
1087
|
+
"name": "ReactNativePlugin",
|
|
1088
|
+
"preserveMemberOrder": false,
|
|
1089
|
+
"members": [
|
|
1090
|
+
{
|
|
1091
|
+
"kind": "Method",
|
|
1092
|
+
"canonicalReference": "@microsoft/applicationinsights-react-native!ReactNativePlugin#getDeviceInfoModule:member(1)",
|
|
1093
|
+
"docComment": "",
|
|
1094
|
+
"excerptTokens": [
|
|
1095
|
+
{
|
|
1096
|
+
"kind": "Content",
|
|
1097
|
+
"text": "protected getDeviceInfoModule(_deviceInfoModule: "
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
"kind": "Content",
|
|
1101
|
+
"text": "any"
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
"kind": "Content",
|
|
1105
|
+
"text": "): "
|
|
1106
|
+
},
|
|
1107
|
+
{
|
|
1108
|
+
"kind": "Reference",
|
|
1109
|
+
"text": "IDeviceInfoModule",
|
|
1110
|
+
"canonicalReference": "@microsoft/applicationinsights-react-native!IDeviceInfoModule:interface"
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
"kind": "Content",
|
|
1114
|
+
"text": ";"
|
|
1115
|
+
}
|
|
1116
|
+
],
|
|
1117
|
+
"isStatic": false,
|
|
1118
|
+
"returnTypeTokenRange": {
|
|
1119
|
+
"startIndex": 3,
|
|
1120
|
+
"endIndex": 4
|
|
1121
|
+
},
|
|
1122
|
+
"releaseTag": "Public",
|
|
1123
|
+
"isProtected": true,
|
|
1124
|
+
"overloadIndex": 1,
|
|
1125
|
+
"parameters": [
|
|
1126
|
+
{
|
|
1127
|
+
"parameterName": "_deviceInfoModule",
|
|
1128
|
+
"parameterTypeTokenRange": {
|
|
1129
|
+
"startIndex": 1,
|
|
1130
|
+
"endIndex": 2
|
|
1131
|
+
},
|
|
1132
|
+
"isOptional": false
|
|
1133
|
+
}
|
|
1134
|
+
],
|
|
1135
|
+
"isOptional": false,
|
|
1136
|
+
"isAbstract": false,
|
|
1137
|
+
"name": "getDeviceInfoModule"
|
|
1138
|
+
}
|
|
1139
|
+
],
|
|
1140
|
+
"extendsTokenRange": {
|
|
1141
|
+
"startIndex": 1,
|
|
1142
|
+
"endIndex": 2
|
|
1143
|
+
},
|
|
1144
|
+
"implementsTokenRanges": []
|
|
1015
1145
|
}
|
|
1016
1146
|
]
|
|
1017
1147
|
}
|
|
@@ -36,9 +36,11 @@ export interface IReactNativePluginConfig {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
// @public (undocumented)
|
|
39
|
-
export class
|
|
39
|
+
export class ReactNativeManualDevicePlugin extends BaseTelemetryPlugin {
|
|
40
40
|
constructor(config?: IReactNativePluginConfig);
|
|
41
41
|
// (undocumented)
|
|
42
|
+
protected getDeviceInfoModule(_deviceInfoModule: any): IDeviceInfoModule;
|
|
43
|
+
// (undocumented)
|
|
42
44
|
identifier: string;
|
|
43
45
|
// (undocumented)
|
|
44
46
|
initialize(config?: IReactNativePluginConfig | object, // need `| object` to coerce to interface
|
|
@@ -55,6 +57,12 @@ export class ReactNativePlugin extends BaseTelemetryPlugin {
|
|
|
55
57
|
setDeviceType(newType: string): void;
|
|
56
58
|
}
|
|
57
59
|
|
|
60
|
+
// @public (undocumented)
|
|
61
|
+
export class ReactNativePlugin extends ReactNativeManualDevicePlugin {
|
|
62
|
+
// (undocumented)
|
|
63
|
+
protected getDeviceInfoModule(_deviceInfoModule: any): IDeviceInfoModule;
|
|
64
|
+
}
|
|
65
|
+
|
|
58
66
|
// (No @packageDocumentation comment for this package)
|
|
59
67
|
|
|
60
68
|
```
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights react native plugin,
|
|
2
|
+
* Microsoft Application Insights react native plugin, 4.0.0
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -77,21 +77,21 @@ declare namespace ApplicationInsights {
|
|
|
77
77
|
uniqueIdPromiseTimeout?: number;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
class
|
|
80
|
+
class ReactNativeManualDevicePlugin extends BaseTelemetryPlugin {
|
|
81
81
|
identifier: string;
|
|
82
82
|
priority: number;
|
|
83
83
|
_nextPlugin?: ITelemetryPlugin;
|
|
84
84
|
private _setExceptionHandler;
|
|
85
85
|
private _collectDeviceInfo;
|
|
86
86
|
constructor(config?: IReactNativePluginConfig);
|
|
87
|
+
protected getDeviceInfoModule(_deviceInfoModule: any): IDeviceInfoModule;
|
|
87
88
|
initialize(config?: IReactNativePluginConfig | object, // need `| object` to coerce to interface
|
|
88
89
|
core?: IAppInsightsCore, extensions?: IPlugin[]): void;
|
|
89
90
|
processTelemetry(env: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
|
|
90
91
|
/**
|
|
91
92
|
* Set the module that will be used during initialization when collecting device is enabled
|
|
92
93
|
* (the default), automatic collection can be disabled via the `disableDeviceCollection`
|
|
93
|
-
* config.
|
|
94
|
-
* `deviceInfoModule` is set and collection is enabled.
|
|
94
|
+
* config. If no `deviceInfoModule` is set and collection is enabled, an error will be thrown.
|
|
95
95
|
* @param deviceInfoModule
|
|
96
96
|
*/
|
|
97
97
|
setDeviceInfoModule(deviceInfoModule: IDeviceInfoModule): void;
|
|
@@ -118,5 +118,9 @@ declare namespace ApplicationInsights {
|
|
|
118
118
|
setDeviceType(newType: string): void;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
+
class ReactNativePlugin extends ReactNativeManualDevicePlugin {
|
|
122
|
+
protected getDeviceInfoModule(_deviceInfoModule: any): IDeviceInfoModule;
|
|
123
|
+
}
|
|
124
|
+
|
|
121
125
|
|
|
122
126
|
}
|