@atlaskit/react-ufo 4.5.9 → 4.5.10
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/ufo-interaction-ignore
|
|
2
2
|
|
|
3
|
+
## 4.5.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`071602112aa5e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/071602112aa5e) -
|
|
8
|
+
Set default unknown interaction rate when it is not configured
|
|
9
|
+
|
|
3
10
|
## 4.5.9
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/dist/cjs/config/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.DEFAULT_TTVC_REVISION = exports.CLEANUP_TIMEOUT = void 0;
|
|
7
|
+
exports.UNKNOWN_INTERACTION_RATE = exports.DEFAULT_TTVC_REVISION = exports.CLEANUP_TIMEOUT = void 0;
|
|
8
8
|
exports.getAwaitBM3TTIList = getAwaitBM3TTIList;
|
|
9
9
|
exports.getCapabilityRate = getCapabilityRate;
|
|
10
10
|
exports.getConfig = getConfig;
|
|
@@ -30,6 +30,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
30
30
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
31
31
|
var config;
|
|
32
32
|
var DEFAULT_TTVC_REVISION = exports.DEFAULT_TTVC_REVISION = 'fy25.03';
|
|
33
|
+
var UNKNOWN_INTERACTION_RATE = exports.UNKNOWN_INTERACTION_RATE = 1000;
|
|
33
34
|
|
|
34
35
|
// Defensively typed, since this is directly user-editable
|
|
35
36
|
// and they could delete empty members
|
|
@@ -123,6 +124,14 @@ function getInteractionRate(name, interactionKind) {
|
|
|
123
124
|
return 0;
|
|
124
125
|
}
|
|
125
126
|
}
|
|
127
|
+
var isUnknown = name === 'unknown';
|
|
128
|
+
if (isUnknown) {
|
|
129
|
+
if ((rates === null || rates === void 0 ? void 0 : rates[name]) != null) {
|
|
130
|
+
return rates[name];
|
|
131
|
+
}
|
|
132
|
+
// Return default rate for unknown events when no explicit rate is configured
|
|
133
|
+
return UNKNOWN_INTERACTION_RATE;
|
|
134
|
+
}
|
|
126
135
|
if (rates != null) {
|
|
127
136
|
// Decide the rate explicitly
|
|
128
137
|
if (rates[name] != null) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
2
|
let config;
|
|
3
3
|
export const DEFAULT_TTVC_REVISION = 'fy25.03';
|
|
4
|
+
export const UNKNOWN_INTERACTION_RATE = 1000;
|
|
4
5
|
|
|
5
6
|
// Defensively typed, since this is directly user-editable
|
|
6
7
|
// and they could delete empty members
|
|
@@ -99,6 +100,14 @@ export function getInteractionRate(name, interactionKind) {
|
|
|
99
100
|
return 0;
|
|
100
101
|
}
|
|
101
102
|
}
|
|
103
|
+
const isUnknown = name === 'unknown';
|
|
104
|
+
if (isUnknown) {
|
|
105
|
+
if ((rates === null || rates === void 0 ? void 0 : rates[name]) != null) {
|
|
106
|
+
return rates[name];
|
|
107
|
+
}
|
|
108
|
+
// Return default rate for unknown events when no explicit rate is configured
|
|
109
|
+
return UNKNOWN_INTERACTION_RATE;
|
|
110
|
+
}
|
|
102
111
|
if (rates != null) {
|
|
103
112
|
// Decide the rate explicitly
|
|
104
113
|
if (rates[name] != null) {
|
package/dist/esm/config/index.js
CHANGED
|
@@ -6,6 +6,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
var config;
|
|
8
8
|
export var DEFAULT_TTVC_REVISION = 'fy25.03';
|
|
9
|
+
export var UNKNOWN_INTERACTION_RATE = 1000;
|
|
9
10
|
|
|
10
11
|
// Defensively typed, since this is directly user-editable
|
|
11
12
|
// and they could delete empty members
|
|
@@ -99,6 +100,14 @@ export function getInteractionRate(name, interactionKind) {
|
|
|
99
100
|
return 0;
|
|
100
101
|
}
|
|
101
102
|
}
|
|
103
|
+
var isUnknown = name === 'unknown';
|
|
104
|
+
if (isUnknown) {
|
|
105
|
+
if ((rates === null || rates === void 0 ? void 0 : rates[name]) != null) {
|
|
106
|
+
return rates[name];
|
|
107
|
+
}
|
|
108
|
+
// Return default rate for unknown events when no explicit rate is configured
|
|
109
|
+
return UNKNOWN_INTERACTION_RATE;
|
|
110
|
+
}
|
|
102
111
|
if (rates != null) {
|
|
103
112
|
// Decide the rate explicitly
|
|
104
113
|
if (rates[name] != null) {
|
|
@@ -37,6 +37,7 @@ type Rates = {
|
|
|
37
37
|
};
|
|
38
38
|
export type TTVCRevision = 'fy25.01' | 'fy25.02' | 'fy25.03';
|
|
39
39
|
export declare const DEFAULT_TTVC_REVISION = "fy25.03";
|
|
40
|
+
export declare const UNKNOWN_INTERACTION_RATE = 1000;
|
|
40
41
|
export type ReactHydrationStats = {
|
|
41
42
|
/**
|
|
42
43
|
* Indicates if hydration of SSR content failed, so React switching to client-side rendering and re-rendered from scratch.
|
|
@@ -37,6 +37,7 @@ type Rates = {
|
|
|
37
37
|
};
|
|
38
38
|
export type TTVCRevision = 'fy25.01' | 'fy25.02' | 'fy25.03';
|
|
39
39
|
export declare const DEFAULT_TTVC_REVISION = "fy25.03";
|
|
40
|
+
export declare const UNKNOWN_INTERACTION_RATE = 1000;
|
|
40
41
|
export type ReactHydrationStats = {
|
|
41
42
|
/**
|
|
42
43
|
* Indicates if hydration of SSR content failed, so React switching to client-side rendering and re-rendered from scratch.
|