@dynatrace/react-native-plugin 2.291.1 → 2.291.2

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/README.md CHANGED
@@ -1414,9 +1414,10 @@ If you are struggling with a problem, submit a support ticket to Dynatrace (supp
1414
1414
  <br/><br/>
1415
1415
  ## Changelog
1416
1416
 
1417
- 2.291.1
1417
+ 2.291.2
1418
1418
  * Update Android (8.291.1.1002) & iOS Agent (8.291.1.1004)
1419
1419
  * Updated the way we report unhandled errors without a stacktrace
1420
+ * Touchable instrumentation was partly broken for static access
1420
1421
 
1421
1422
  2.289.1
1422
1423
  * Update Android (8.289.2.1007) & iOS Agent (8.289.1.1015)
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ var _a, _b, _c;
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  exports.Pressable = exports.Text = exports.TouchableWithoutFeedback = exports.TouchableNativeFeedback = exports.TouchableHighlight = exports.TouchableOpacity = exports.Button = void 0;
4
5
  const ReactNative = require("react-native");
@@ -6,12 +7,33 @@ const React = require("react");
6
7
  const Types_1 = require("../instrumentor/model/Types");
7
8
  exports.Button = React.forwardRef((props, ref) => React.createElement(ReactNative.Button, Object.assign({}, props, { ref: ref })));
8
9
  exports.Button._dtInfo = { type: Types_1.Types.Button };
9
- exports.TouchableOpacity = React.forwardRef((props, ref) => React.createElement(ReactNative.TouchableOpacity, Object.assign({}, props, { ref: ref })));
10
- exports.TouchableOpacity._dtInfo = { type: Types_1.Types.TouchableOpacity };
11
- exports.TouchableHighlight = React.forwardRef((props, ref) => React.createElement(ReactNative.TouchableHighlight, Object.assign({}, props, { ref: ref })));
12
- exports.TouchableHighlight._dtInfo = { type: Types_1.Types.TouchableHighlight };
13
- exports.TouchableNativeFeedback = React.forwardRef((props, ref) => React.createElement(ReactNative.TouchableNativeFeedback, Object.assign({}, props, { ref: ref })));
14
- exports.TouchableNativeFeedback._dtInfo = { type: Types_1.Types.TouchableNativeFeedback };
10
+ if (typeof ReactNative.TouchableOpacity === 'object') {
11
+ exports.TouchableOpacity = Object.assign({ _dtInfo: { type: Types_1.Types.TouchableOpacity } }, ReactNative.TouchableOpacity);
12
+ }
13
+ else {
14
+ exports.TouchableOpacity = (_a = class TouchableOpacity extends (ReactNative.TouchableOpacity) {
15
+ },
16
+ _a._dtInfo = { type: Types_1.Types.TouchableOpacity },
17
+ _a);
18
+ }
19
+ if (typeof ReactNative.TouchableHighlight === 'object') {
20
+ exports.TouchableHighlight = Object.assign({ _dtInfo: { type: Types_1.Types.TouchableHighlight } }, ReactNative.TouchableHighlight);
21
+ }
22
+ else {
23
+ exports.TouchableHighlight = (_b = class TouchableHighlight extends (ReactNative.TouchableHighlight) {
24
+ },
25
+ _b._dtInfo = { type: Types_1.Types.TouchableHighlight },
26
+ _b);
27
+ }
28
+ if (typeof ReactNative.TouchableNativeFeedback === 'object') {
29
+ exports.TouchableNativeFeedback = Object.assign({ _dtInfo: { type: Types_1.Types.TouchableNativeFeedback } }, ReactNative.TouchableNativeFeedback);
30
+ }
31
+ else {
32
+ exports.TouchableNativeFeedback = (_c = class TouchableNativeFeedback extends (ReactNative.TouchableNativeFeedback) {
33
+ },
34
+ _c._dtInfo = { type: Types_1.Types.TouchableNativeFeedback },
35
+ _c);
36
+ }
15
37
  exports.TouchableWithoutFeedback = React.forwardRef((props, ref) => React.createElement(ReactNative.TouchableWithoutFeedback, Object.assign({}, props, { ref: ref })));
16
38
  exports.TouchableWithoutFeedback._dtInfo = { type: Types_1.Types.TouchableWithoutFeedback };
17
39
  exports.Text = React.forwardRef((props, ref) => React.createElement(ReactNative.Text, Object.assign({}, props, { ref: ref })));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynatrace/react-native-plugin",
3
- "version": "2.291.1",
3
+ "version": "2.291.2",
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": "typings/react-native-dynatrace.d.ts",
@@ -85,7 +85,7 @@
85
85
  "react-native": ">=0.62.0"
86
86
  },
87
87
  "devDependencies": {
88
- "@babel/cli": "^7.22.9",
88
+ "@babel/cli": "^7.24.5",
89
89
  "@babel/plugin-proposal-class-properties": "^7.8.3",
90
90
  "@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
91
91
  "@babel/plugin-proposal-optional-chaining": "^7.8.3",