@dynatrace/react-native-plugin 2.333.1 → 2.335.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.
@@ -0,0 +1,492 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getTouchElementMeta = void 0;
4
+ class TouchMetaResolver {
5
+ constructor(config) {
6
+ this.rootWrapperLikePatterns = [
7
+ /Animated/,
8
+ /Controller/,
9
+ /Detector/,
10
+ /NativeComponent/,
11
+ /Wrapper/,
12
+ /Clipping/,
13
+ ];
14
+ this.genericContainerCodeTagNames = new Set([
15
+ 'View',
16
+ 'Background',
17
+ 'Drawer',
18
+ 'DrawerView',
19
+ 'DrawerViewBase',
20
+ 'Freeze',
21
+ 'DelayedFreeze',
22
+ 'Suspender',
23
+ 'MaybeScreen',
24
+ 'MaybeScreenContainer',
25
+ 'Screen',
26
+ 'ScreenContainer',
27
+ 'RNSScreen',
28
+ 'RNSScreenContainer',
29
+ 'GestureHandlerRootView',
30
+ 'RNGestureHandlerRootView',
31
+ 'PanGestureHandler',
32
+ ]);
33
+ this.internalCodeTagExactNames = new Set([
34
+ 'main(RootComponent)',
35
+ 'PerformanceLoggerContext',
36
+ 'RootTagContext',
37
+ 'Wrapped',
38
+ 'AnalyticsRoot',
39
+ ]);
40
+ this.uselessWrapperCodeTagExactNames = new Set([
41
+ 'DynatraceFunctionalComponent',
42
+ 'DynatraceClassComponent',
43
+ 'NavigationContainer',
44
+ 'BaseNavigationContainer',
45
+ 'Navigator',
46
+ 'DrawerNavigator',
47
+ 'SafeAreaProviderCompat',
48
+ 'Handler',
49
+ 'AnimatedComponent',
50
+ 'Component',
51
+ 'ScreenNavigationContainer',
52
+ 'ScreenWrapper',
53
+ 'Suspense',
54
+ 'AnimatedScreen',
55
+ 'ScreenComponent',
56
+ 'KeyboardControllerViewAnimated',
57
+ ]);
58
+ this.internalCodeTagPatterns = [
59
+ /Context$/,
60
+ /Provider$/,
61
+ /^Route(?:\(|$)/,
62
+ /^Animated(?:Component)?\(.+\)$/,
63
+ /^Anonymous$/,
64
+ /NavigationContent/,
65
+ /NavigationStateListenerProvider/,
66
+ /PreventRemoveProvider/,
67
+ /EnsureSingleNavigator/,
68
+ /SceneView/,
69
+ /StaticContainer/,
70
+ /GestureHandler/,
71
+ /expo-router\/build\//,
72
+ ];
73
+ this.pressHandlers = [
74
+ 'onPress',
75
+ 'onLongPress',
76
+ 'onPressIn',
77
+ 'onPressOut',
78
+ ];
79
+ this.config = Object.assign({ filterInternalCodeTags: true }, config);
80
+ }
81
+ resolve(event) {
82
+ var _a, _b, _c, _d;
83
+ try {
84
+ const raw = event;
85
+ const targetInst = (_a = raw._targetInst) !== null && _a !== void 0 ? _a : (_b = raw.nativeEvent) === null || _b === void 0 ? void 0 : _b._targetInst;
86
+ const touchElementName = (_c = this.getNodeName(targetInst)) !== null && _c !== void 0 ? _c : 'unknown';
87
+ const touchPath = this.buildAppCodeTagPathFromNode(targetInst !== null && targetInst !== void 0 ? targetInst : null);
88
+ const pressNode = this.findPressNode(targetInst !== null && targetInst !== void 0 ? targetInst : null);
89
+ const press = pressNode === null
90
+ ? null
91
+ : {
92
+ elementName: (_d = this.getNodeName(pressNode)) !== null && _d !== void 0 ? _d : 'unknown',
93
+ appCodeTagPath: this.buildAppCodeTagPathFromNode(pressNode),
94
+ isParent: Boolean(pressNode !== targetInst),
95
+ };
96
+ return {
97
+ touch: {
98
+ elementName: touchElementName,
99
+ appCodeTagPath: touchPath,
100
+ },
101
+ press,
102
+ };
103
+ }
104
+ catch (_e) {
105
+ return {
106
+ touch: { elementName: 'unknown', appCodeTagPath: 'unknown' },
107
+ press: null,
108
+ };
109
+ }
110
+ }
111
+ buildAppCodeTagPathFromNode(node) {
112
+ var _a;
113
+ if (node === null) {
114
+ return 'unknown';
115
+ }
116
+ const targetToRootCodeTags = [];
117
+ let pathCursor = node;
118
+ while (pathCursor !== null) {
119
+ const codeTagSegment = this.getNodeCodeTagSegment(pathCursor);
120
+ if (codeTagSegment !== null) {
121
+ targetToRootCodeTags.push(codeTagSegment);
122
+ }
123
+ pathCursor = (_a = pathCursor.return) !== null && _a !== void 0 ? _a : null;
124
+ }
125
+ const normalizedCodeTags = this.collapseConsecutiveDuplicates(targetToRootCodeTags);
126
+ const rootToTargetCodeTags = [...normalizedCodeTags].reverse();
127
+ const appRootTrimmedCodeTags = this.trimToAppRoot(rootToTargetCodeTags);
128
+ const uiRootTrimmedCodeTags = this.trimToUiRootAnchor(appRootTrimmedCodeTags);
129
+ const dtPathPreferredCodeTags = this.preferDtPathCodeTags(uiRootTrimmedCodeTags);
130
+ const dtPathPreferredCodeTagNames = dtPathPreferredCodeTags.map((segment) => segment.name);
131
+ const trimmedRootToTargetCodeTags = this.trimFrameworkPrefix(dtPathPreferredCodeTagNames);
132
+ const filteredRootToTargetCodeTags = this.config.filterInternalCodeTags
133
+ ? this.filterAppCodeTags(trimmedRootToTargetCodeTags)
134
+ : trimmedRootToTargetCodeTags;
135
+ const dedupedFilteredRootToTargetCodeTags = this.collapseConsecutiveDuplicateNames(filteredRootToTargetCodeTags);
136
+ let appRootToTargetCodeTags = ['unknown'];
137
+ if (dedupedFilteredRootToTargetCodeTags.length > 0) {
138
+ appRootToTargetCodeTags = dedupedFilteredRootToTargetCodeTags;
139
+ }
140
+ else if (trimmedRootToTargetCodeTags.length > 0) {
141
+ appRootToTargetCodeTags = trimmedRootToTargetCodeTags;
142
+ }
143
+ return appRootToTargetCodeTags.join('/') || 'unknown';
144
+ }
145
+ getNodeName(node) {
146
+ var _a, _b;
147
+ if (node === null || node === undefined) {
148
+ return null;
149
+ }
150
+ const props = (_a = node.memoizedProps) !== null && _a !== void 0 ? _a : {};
151
+ const dtName = props.dtName;
152
+ if (typeof dtName === 'string' && dtName.trim().length > 0) {
153
+ return dtName.trim();
154
+ }
155
+ const testId = props.testID;
156
+ if (typeof testId === 'string' && testId.trim().length > 0) {
157
+ return testId;
158
+ }
159
+ const accessibilityLabel = props.accessibilityLabel;
160
+ if (typeof accessibilityLabel === 'string' &&
161
+ accessibilityLabel.trim().length > 0) {
162
+ return accessibilityLabel;
163
+ }
164
+ const dtPathIdName = this.getCodeTagNameFromDtPathId(props);
165
+ if (dtPathIdName !== null) {
166
+ return dtPathIdName;
167
+ }
168
+ const codeTagName = this.getNodeCodeTagName(node);
169
+ const isTextLike = codeTagName === 'Text' || codeTagName === 'RCTText';
170
+ const shouldReadChildrenText = isTextLike || this.hasPressHandler(props);
171
+ if (shouldReadChildrenText) {
172
+ const childText = this.extractTextFromChildren(props.children);
173
+ if (childText !== null) {
174
+ return childText;
175
+ }
176
+ }
177
+ return ((_b = this.getComponentTypeName(node.elementType)) !== null && _b !== void 0 ? _b : this.getComponentTypeName(node.type));
178
+ }
179
+ findPressNode(startNode) {
180
+ var _a;
181
+ let cursor = startNode;
182
+ while (cursor !== null) {
183
+ if (this.hasPressHandler(cursor.memoizedProps)) {
184
+ return cursor;
185
+ }
186
+ cursor = (_a = cursor.return) !== null && _a !== void 0 ? _a : null;
187
+ }
188
+ return null;
189
+ }
190
+ collapseConsecutiveDuplicates(items) {
191
+ const result = [];
192
+ for (const item of items) {
193
+ const previous = result.at(-1);
194
+ if (previous === undefined || previous.name !== item.name) {
195
+ result.push(item);
196
+ continue;
197
+ }
198
+ if (item.fromDtPathId && !previous.fromDtPathId) {
199
+ previous.fromDtPathId = true;
200
+ }
201
+ if (item.isUiRoot && !previous.isUiRoot) {
202
+ previous.isUiRoot = true;
203
+ }
204
+ }
205
+ return result;
206
+ }
207
+ trimToUiRootAnchor(rootToTargetCodeTags) {
208
+ if (rootToTargetCodeTags.length === 0) {
209
+ return rootToTargetCodeTags;
210
+ }
211
+ let uiRootIndex = -1;
212
+ for (let i = rootToTargetCodeTags.length - 1; i >= 0; i--) {
213
+ if (rootToTargetCodeTags[i].isUiRoot) {
214
+ uiRootIndex = i;
215
+ break;
216
+ }
217
+ }
218
+ if (uiRootIndex < 0) {
219
+ return rootToTargetCodeTags;
220
+ }
221
+ return rootToTargetCodeTags.slice(uiRootIndex);
222
+ }
223
+ trimToAppRoot(rootToTargetCodeTags) {
224
+ if (rootToTargetCodeTags.length === 0) {
225
+ return rootToTargetCodeTags;
226
+ }
227
+ let start = 0;
228
+ const analyticsRootIndex = rootToTargetCodeTags.findIndex((segment) => segment.name === 'AnalyticsRoot');
229
+ if (analyticsRootIndex < 0) {
230
+ return [];
231
+ }
232
+ start = analyticsRootIndex + 1;
233
+ const enforceStableRootSignal = rootToTargetCodeTags
234
+ .slice(start)
235
+ .some((segment) => segment.fromDtPathId || segment.isUiRoot);
236
+ while (start < rootToTargetCodeTags.length - 1) {
237
+ const segment = rootToTargetCodeTags[start];
238
+ const name = segment.name;
239
+ const isProviderLike = /Provider(?:Compat)?$/.test(name);
240
+ const isBlacklistedStart = this.shouldDropCodeTagName(name, false);
241
+ const hasStableRootSignal = segment.fromDtPathId || segment.isUiRoot;
242
+ const shouldSkipByRootRule = enforceStableRootSignal && !hasStableRootSignal;
243
+ const isLikelyWrapperRoot = !hasStableRootSignal &&
244
+ this.rootWrapperLikePatterns.some((pattern) => pattern.test(name));
245
+ if (!isProviderLike &&
246
+ !isBlacklistedStart &&
247
+ !shouldSkipByRootRule &&
248
+ !isLikelyWrapperRoot) {
249
+ break;
250
+ }
251
+ start += 1;
252
+ }
253
+ return rootToTargetCodeTags.slice(start);
254
+ }
255
+ collapseConsecutiveDuplicateNames(items) {
256
+ const result = [];
257
+ for (const item of items) {
258
+ if (result.at(-1) !== item) {
259
+ result.push(item);
260
+ }
261
+ }
262
+ return result;
263
+ }
264
+ preferDtPathCodeTags(rootToTargetCodeTags) {
265
+ if (rootToTargetCodeTags.length === 0) {
266
+ return rootToTargetCodeTags;
267
+ }
268
+ const firstDtPathIndex = rootToTargetCodeTags.findIndex((segment) => segment.fromDtPathId);
269
+ if (firstDtPathIndex < 0) {
270
+ return rootToTargetCodeTags;
271
+ }
272
+ const fromFirstDtPath = rootToTargetCodeTags.slice(firstDtPathIndex);
273
+ return fromFirstDtPath.filter((segment, index) => {
274
+ if (segment.fromDtPathId) {
275
+ return true;
276
+ }
277
+ const isLeaf = index === fromFirstDtPath.length - 1;
278
+ return !this.shouldDropCodeTagName(segment.name, isLeaf);
279
+ });
280
+ }
281
+ isInternalCodeTagName(name) {
282
+ if (this.internalCodeTagExactNames.has(name)) {
283
+ return true;
284
+ }
285
+ return this.internalCodeTagPatterns.some((pattern) => pattern.test(name));
286
+ }
287
+ shouldDropCodeTagName(name, isLeaf) {
288
+ if (name.trim().length === 0) {
289
+ return true;
290
+ }
291
+ if (!isLeaf && this.uselessWrapperCodeTagExactNames.has(name)) {
292
+ return true;
293
+ }
294
+ if (this.isInternalCodeTagName(name)) {
295
+ return true;
296
+ }
297
+ if (!isLeaf && this.genericContainerCodeTagNames.has(name)) {
298
+ return true;
299
+ }
300
+ return false;
301
+ }
302
+ filterAppCodeTags(rootToTargetTags) {
303
+ return rootToTargetTags.filter((name, index) => {
304
+ const isLeaf = index === rootToTargetTags.length - 1;
305
+ return !this.shouldDropCodeTagName(name, isLeaf);
306
+ });
307
+ }
308
+ hasPressHandler(props) {
309
+ if (props === null || props === undefined) {
310
+ return false;
311
+ }
312
+ for (const key of this.pressHandlers) {
313
+ if (typeof props[key] === 'function') {
314
+ return true;
315
+ }
316
+ }
317
+ return false;
318
+ }
319
+ trimFrameworkPrefix(rootToTargetTags) {
320
+ if (rootToTargetTags.length === 0) {
321
+ return rootToTargetTags;
322
+ }
323
+ let indexRouteMarker = -1;
324
+ for (let i = rootToTargetTags.length - 1; i >= 0; i--) {
325
+ if (rootToTargetTags[i] === 'Index' ||
326
+ rootToTargetTags[i].startsWith('Index(')) {
327
+ indexRouteMarker = i;
328
+ break;
329
+ }
330
+ }
331
+ if (indexRouteMarker >= 0 &&
332
+ indexRouteMarker < rootToTargetTags.length - 1) {
333
+ return rootToTargetTags.slice(indexRouteMarker + 1);
334
+ }
335
+ const touchCaptureIndex = rootToTargetTags.lastIndexOf('TouchCapture');
336
+ if (touchCaptureIndex >= 0 &&
337
+ touchCaptureIndex < rootToTargetTags.length - 1) {
338
+ return rootToTargetTags.slice(touchCaptureIndex + 1);
339
+ }
340
+ return rootToTargetTags;
341
+ }
342
+ extractTextFromChildren(children, maxDepth = 5) {
343
+ var _a;
344
+ if (maxDepth <= 0) {
345
+ return null;
346
+ }
347
+ if (typeof children === 'string' || typeof children === 'number') {
348
+ const str = String(children).trim();
349
+ return str.length > 0 ? str : null;
350
+ }
351
+ if (Array.isArray(children)) {
352
+ for (const child of children) {
353
+ const text = this.extractTextFromChildren(child, maxDepth - 1);
354
+ if (text !== null) {
355
+ return text;
356
+ }
357
+ }
358
+ }
359
+ if (typeof children === 'object' &&
360
+ children !== null &&
361
+ 'props' in children &&
362
+ typeof children.props === 'object') {
363
+ const nestedChildren = (_a = children.props) === null || _a === void 0 ? void 0 : _a.children;
364
+ return this.extractTextFromChildren(nestedChildren, maxDepth - 1);
365
+ }
366
+ return null;
367
+ }
368
+ getCodeTagNameFromDtPathId(props) {
369
+ if (props === null || props === undefined) {
370
+ return null;
371
+ }
372
+ const rawDtPathId = props.dtPathID;
373
+ if (typeof rawDtPathId !== 'string') {
374
+ return null;
375
+ }
376
+ const trimmedDtPathId = rawDtPathId.trim();
377
+ if (trimmedDtPathId.length === 0) {
378
+ return null;
379
+ }
380
+ const strippedSuffix = trimmedDtPathId.replace(/_\d+_\d+$/, '');
381
+ const normalizedName = this.normalizeCodeTagName(strippedSuffix);
382
+ return normalizedName;
383
+ }
384
+ hasUiRootMarker(props) {
385
+ if (props === null || props === undefined) {
386
+ return false;
387
+ }
388
+ const rawUiRoot = props.dtUIRoot;
389
+ if (rawUiRoot === null || rawUiRoot === undefined) {
390
+ return false;
391
+ }
392
+ if (typeof rawUiRoot === 'boolean') {
393
+ return rawUiRoot;
394
+ }
395
+ if (typeof rawUiRoot === 'string') {
396
+ const normalized = rawUiRoot.trim().toLowerCase();
397
+ return normalized.length > 0 && normalized !== 'false';
398
+ }
399
+ return true;
400
+ }
401
+ getComponentTypeName(value) {
402
+ var _a, _b, _c, _d;
403
+ if (value === null || value === undefined) {
404
+ return null;
405
+ }
406
+ if (typeof value === 'string') {
407
+ return value;
408
+ }
409
+ if (typeof value === 'function') {
410
+ return ((_b = (_a = value
411
+ .displayName) !== null && _a !== void 0 ? _a : value.name) !== null && _b !== void 0 ? _b : null);
412
+ }
413
+ if (typeof value === 'object') {
414
+ const objectValue = value;
415
+ return (_d = (_c = objectValue.displayName) !== null && _c !== void 0 ? _c : objectValue.name) !== null && _d !== void 0 ? _d : null;
416
+ }
417
+ return null;
418
+ }
419
+ normalizeCodeTagName(name) {
420
+ if (name === null) {
421
+ return null;
422
+ }
423
+ const trimmedName = name.trim();
424
+ if (trimmedName.length === 0) {
425
+ return null;
426
+ }
427
+ if (trimmedName === 'RCTView' ||
428
+ trimmedName === 'RNView' ||
429
+ trimmedName === 'View') {
430
+ return 'View';
431
+ }
432
+ if (trimmedName === 'RCTText' ||
433
+ trimmedName === 'RNText' ||
434
+ trimmedName === 'Text') {
435
+ return 'Text';
436
+ }
437
+ if (trimmedName === 'RCTScrollView' || trimmedName === 'ScrollView') {
438
+ return 'ScrollView';
439
+ }
440
+ if (trimmedName === 'VirtualizedList') {
441
+ return 'FlatList';
442
+ }
443
+ return trimmedName;
444
+ }
445
+ getNodeCodeTagName(node) {
446
+ var _a, _b;
447
+ return (_b = (_a = this.getNodeCodeTagSegment(node)) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : null;
448
+ }
449
+ getNodeCodeTagSegment(node) {
450
+ var _a, _b;
451
+ if (node === null || node === undefined) {
452
+ return null;
453
+ }
454
+ const isUiRoot = this.hasUiRootMarker(node.memoizedProps);
455
+ const fromDtPathId = this.getCodeTagNameFromDtPathId(node.memoizedProps);
456
+ if (fromDtPathId !== null) {
457
+ return {
458
+ name: fromDtPathId,
459
+ fromDtPathId: true,
460
+ isUiRoot,
461
+ };
462
+ }
463
+ const dtInfoName = (_b = (_a = node.type) === null || _a === void 0 ? void 0 : _a._dtInfo) === null || _b === void 0 ? void 0 : _b.name;
464
+ if (typeof dtInfoName === 'string' && dtInfoName.trim().length > 0) {
465
+ return {
466
+ name: dtInfoName.trim(),
467
+ fromDtPathId: false,
468
+ isUiRoot,
469
+ };
470
+ }
471
+ const fromElementType = this.normalizeCodeTagName(this.getComponentTypeName(node.elementType));
472
+ if (fromElementType !== null) {
473
+ return {
474
+ name: fromElementType,
475
+ fromDtPathId: false,
476
+ isUiRoot,
477
+ };
478
+ }
479
+ const fromType = this.normalizeCodeTagName(this.getComponentTypeName(node.type));
480
+ if (fromType !== null) {
481
+ return {
482
+ name: fromType,
483
+ fromDtPathId: false,
484
+ isUiRoot,
485
+ };
486
+ }
487
+ return null;
488
+ }
489
+ }
490
+ const resolver = new TouchMetaResolver();
491
+ const getTouchElementMeta = (event) => resolver.resolve(event);
492
+ exports.getTouchElementMeta = getTouchElementMeta;
@@ -1,65 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Literals = exports.IdName = exports.AttrName = exports.PressKey = exports.DangerousWrapDeny = exports.StopMemberProp = exports.TabBase = exports.StopMemberBase = exports.StopId = void 0;
4
- var StopId;
5
- (function (StopId) {
6
- StopId["React"] = "React";
7
- StopId["Fragment"] = "Fragment";
8
- StopId["Segment"] = "Segment";
9
- StopId["AnalyticsRoot"] = "AnalyticsRoot";
10
- StopId["PathPrefix"] = "PathPrefix";
11
- StopId["NavigationTraceInner"] = "NavigationTraceInner";
12
- StopId["TabButton"] = "TabButton";
13
- StopId["NavigationContainer"] = "NavigationContainer";
14
- })(StopId = exports.StopId || (exports.StopId = {}));
15
- var StopMemberBase;
16
- (function (StopMemberBase) {
17
- StopMemberBase["Stack"] = "Stack";
18
- StopMemberBase["NativeStack"] = "NativeStack";
19
- StopMemberBase["MaterialBottomTab"] = "MaterialBottomTab";
20
- StopMemberBase["MaterialTopTab"] = "MaterialTopTab";
21
- StopMemberBase["Drawer"] = "Drawer";
22
- })(StopMemberBase = exports.StopMemberBase || (exports.StopMemberBase = {}));
23
- var TabBase;
24
- (function (TabBase) {
25
- TabBase["Tabs"] = "Tabs";
26
- TabBase["Tab"] = "Tab";
27
- TabBase["BottomTab"] = "BottomTab";
28
- TabBase["MaterialBottomTab"] = "MaterialBottomTab";
29
- TabBase["MaterialTopTab"] = "MaterialTopTab";
30
- })(TabBase = exports.TabBase || (exports.TabBase = {}));
31
- var StopMemberProp;
32
- (function (StopMemberProp) {
33
- StopMemberProp["Screen"] = "Screen";
34
- StopMemberProp["Group"] = "Group";
35
- })(StopMemberProp = exports.StopMemberProp || (exports.StopMemberProp = {}));
36
- var DangerousWrapDeny;
37
- (function (DangerousWrapDeny) {
38
- DangerousWrapDeny["KeyboardAwareScrollView"] = "KeyboardAwareScrollView";
39
- DangerousWrapDeny["SectionListWithKeyboardAwareScrollView"] = "SectionListWithKeyboardAwareScrollView";
40
- })(DangerousWrapDeny = exports.DangerousWrapDeny || (exports.DangerousWrapDeny = {}));
41
- var PressKey;
42
- (function (PressKey) {
43
- PressKey["onPress"] = "onPress";
44
- PressKey["onLongPress"] = "onLongPress";
45
- PressKey["onPressIn"] = "onPressIn";
46
- PressKey["onPressOut"] = "onPressOut";
47
- PressKey["onTap"] = "onTap";
48
- PressKey["onClick"] = "onClick";
49
- })(PressKey = exports.PressKey || (exports.PressKey = {}));
50
- var AttrName;
51
- (function (AttrName) {
52
- AttrName["Options"] = "options";
53
- AttrName["TabBarButton"] = "tabBarButton";
54
- AttrName["DtUIMask"] = "dtMask";
55
- AttrName["Key"] = "key";
56
- AttrName["Name"] = "name";
57
- })(AttrName = exports.AttrName || (exports.AttrName = {}));
58
- var IdName;
59
- (function (IdName) {
60
- IdName["DtPrefix"] = "__DT_PREFIX";
61
- IdName["DtEmit"] = "__DT_emit";
62
- })(IdName = exports.IdName || (exports.IdName = {}));
3
+ exports.Literals = void 0;
63
4
  exports.Literals = {
64
5
  ReactFragmentFQN: 'React.Fragment',
65
6
  NavigatorProp: 'Navigator',
@@ -69,7 +10,5 @@ exports.Literals = {
69
10
  KeySuffixPrefix: '~dt@',
70
11
  DefaultRuntimeImport: '@dynatrace/react-native-plugin/lib/features/ui-interaction/Runtime',
71
12
  DefaultArtifactsDir: 'node_modules/@dynatrace/react-native-plugin/build/ui_instrumented',
72
- DefaultSegmentName: 'Segment',
73
- DefaultTabButtonName: 'TabButton',
74
13
  DefaultRootName: 'AnalyticsRoot',
75
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynatrace/react-native-plugin",
3
- "version": "2.333.1",
3
+ "version": "2.335.1",
4
4
  "description": "This plugin gives you the ability to use the Dynatrace Mobile agent in your react native application.",
5
5
  "main": "index.js",
6
6
  "types": "types.d.ts",
@@ -24,6 +24,7 @@
24
24
  "scripts": {
25
25
  "uninstall": "node ./scripts/Uninstall.js",
26
26
  "test": "jest --runInBand",
27
+ "test:coverage": "jest --runInBand --coverage",
27
28
  "test:debug": "node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand",
28
29
  "test:local": "npm run lint && node runner.js test",
29
30
  "test:examples": "node tests/jsdoc_examples/RunJestTest.js",
@@ -48,7 +49,7 @@
48
49
  "author": "Dynatrace",
49
50
  "license": "SEE LICENSE IN LICENSE.md",
50
51
  "dependencies": {
51
- "@babel/runtime": "^7.28.6",
52
+ "@babel/runtime": "^7.29.2",
52
53
  "jscodeshift": "^17.3.0",
53
54
  "plist": "^3.1.0",
54
55
  "proxy-polyfill": "^0.3.2",
@@ -56,7 +57,7 @@
56
57
  },
57
58
  "homepage": "https://www.dynatrace.com/",
58
59
  "peerDependencies": {
59
- "@babel/parser": ">=7.4.4",
60
+ "@babel/core": ">=7.4.4",
60
61
  "@react-native-picker/picker": ">=1.0.0",
61
62
  "diff": "^8.0.2",
62
63
  "react": ">=16.11.0",
@@ -67,12 +68,7 @@
67
68
  "ast-types": "npm:ast-types-x"
68
69
  },
69
70
  "ast-types": "npm:ast-types-x",
70
- "flow-parser": "0.160",
71
- "fast-xml-parser@>=4.3.6 <=5.3.5": "5.3.6",
72
- "@isaacs/brace-expansion": ">=5.0.1",
73
- "minimatch@>=9.0.0 <9.0.6": ">=9.0.6",
74
- "minimatch@>=10.0.0 <10.2.2": ">=10.2.2",
75
- "minimatch@>=3.0.0 <3.1.3": ">=3.1.3"
71
+ "flow-parser": "0.160"
76
72
  },
77
73
  "devDependencies": {
78
74
  "@babel/plugin-transform-class-properties": "^7.27.1",
@@ -158,6 +154,7 @@
158
154
  "instrumentation/model/*.js",
159
155
  "instrumentation/parser/*.js",
160
156
  "instrumentation/DynatraceInstrumentation.js",
157
+ "instrumentation/BabelPluginDynatrace.js",
161
158
  "lib/*.js",
162
159
  "lib/core/*.js",
163
160
  "lib/core/configuration/*.js",
@@ -111,7 +111,7 @@ Pod::Spec.new do |s|
111
111
  #
112
112
 
113
113
  s.dependency "React"
114
- s.dependency 'Dynatrace', '~> 8.333.1.1005'
114
+ s.dependency 'Dynatrace', '~> 8.335.1.1009'
115
115
 
116
116
  # Allows for better compatibility for older and newer versions
117
117
  if defined?(install_modules_dependencies)