@atlaskit/react-ufo 2.16.0 → 2.16.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/ufo-interaction-ignore
|
|
2
2
|
|
|
3
|
+
## 2.16.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#116098](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116098)
|
|
8
|
+
[`9650ffb0c42b2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9650ffb0c42b2) -
|
|
9
|
+
Revert: [AFO-3379] Make the DefaultInteractionID trully global across multiple bundles
|
|
10
|
+
|
|
11
|
+
# Impact
|
|
12
|
+
|
|
13
|
+
No impact since the flag was never rolled out
|
|
14
|
+
|
|
3
15
|
## 2.16.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -5,24 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.useInteractionId = exports.getInteractionId = exports.default = exports.DefaultInteractionID = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
9
|
-
function getGlobalDefaultInteractionID() {
|
|
10
|
-
if (!(0, _platformFeatureFlags.fg)('platform_ufo_AFO-3379_fix_default_interaction')) {
|
|
11
|
-
return {
|
|
12
|
-
current: null
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
var ref = globalThis.__react_ufo__DefaultInteractionID;
|
|
16
|
-
if (ref) {
|
|
17
|
-
return ref;
|
|
18
|
-
}
|
|
19
|
-
var nextRef = {
|
|
20
|
-
current: null
|
|
21
|
-
};
|
|
22
|
-
globalThis.__react_ufo__DefaultInteractionID = nextRef;
|
|
23
|
-
return nextRef;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
8
|
// Same structure as react's useRef.
|
|
27
9
|
// This allows modals to use a ref to scope their value
|
|
28
10
|
// const id = useRef(null);
|
|
@@ -31,7 +13,9 @@ function getGlobalDefaultInteractionID() {
|
|
|
31
13
|
// The default InteractionID object is a global singleton
|
|
32
14
|
// It's the one that holds the root value used in routing,
|
|
33
15
|
// and is overwritten when we have new interactions start.
|
|
34
|
-
var DefaultInteractionID = exports.DefaultInteractionID =
|
|
16
|
+
var DefaultInteractionID = exports.DefaultInteractionID = {
|
|
17
|
+
current: null
|
|
18
|
+
};
|
|
35
19
|
|
|
36
20
|
// We use a context to allow modals to have their own lifecycle
|
|
37
21
|
var _default = exports.default = /*#__PURE__*/(0, _react.createContext)(DefaultInteractionID);
|
|
@@ -1,21 +1,4 @@
|
|
|
1
1
|
import { createContext } from 'react';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
-
function getGlobalDefaultInteractionID() {
|
|
4
|
-
if (!fg('platform_ufo_AFO-3379_fix_default_interaction')) {
|
|
5
|
-
return {
|
|
6
|
-
current: null
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
const ref = globalThis.__react_ufo__DefaultInteractionID;
|
|
10
|
-
if (ref) {
|
|
11
|
-
return ref;
|
|
12
|
-
}
|
|
13
|
-
const nextRef = {
|
|
14
|
-
current: null
|
|
15
|
-
};
|
|
16
|
-
globalThis.__react_ufo__DefaultInteractionID = nextRef;
|
|
17
|
-
return nextRef;
|
|
18
|
-
}
|
|
19
2
|
|
|
20
3
|
// Same structure as react's useRef.
|
|
21
4
|
// This allows modals to use a ref to scope their value
|
|
@@ -25,7 +8,9 @@ function getGlobalDefaultInteractionID() {
|
|
|
25
8
|
// The default InteractionID object is a global singleton
|
|
26
9
|
// It's the one that holds the root value used in routing,
|
|
27
10
|
// and is overwritten when we have new interactions start.
|
|
28
|
-
export const DefaultInteractionID =
|
|
11
|
+
export const DefaultInteractionID = {
|
|
12
|
+
current: null
|
|
13
|
+
};
|
|
29
14
|
|
|
30
15
|
// We use a context to allow modals to have their own lifecycle
|
|
31
16
|
export default /*#__PURE__*/createContext(DefaultInteractionID);
|
|
@@ -1,21 +1,4 @@
|
|
|
1
1
|
import { createContext } from 'react';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
-
function getGlobalDefaultInteractionID() {
|
|
4
|
-
if (!fg('platform_ufo_AFO-3379_fix_default_interaction')) {
|
|
5
|
-
return {
|
|
6
|
-
current: null
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
var ref = globalThis.__react_ufo__DefaultInteractionID;
|
|
10
|
-
if (ref) {
|
|
11
|
-
return ref;
|
|
12
|
-
}
|
|
13
|
-
var nextRef = {
|
|
14
|
-
current: null
|
|
15
|
-
};
|
|
16
|
-
globalThis.__react_ufo__DefaultInteractionID = nextRef;
|
|
17
|
-
return nextRef;
|
|
18
|
-
}
|
|
19
2
|
|
|
20
3
|
// Same structure as react's useRef.
|
|
21
4
|
// This allows modals to use a ref to scope their value
|
|
@@ -25,7 +8,9 @@ function getGlobalDefaultInteractionID() {
|
|
|
25
8
|
// The default InteractionID object is a global singleton
|
|
26
9
|
// It's the one that holds the root value used in routing,
|
|
27
10
|
// and is overwritten when we have new interactions start.
|
|
28
|
-
export var DefaultInteractionID =
|
|
11
|
+
export var DefaultInteractionID = {
|
|
12
|
+
current: null
|
|
13
|
+
};
|
|
29
14
|
|
|
30
15
|
// We use a context to allow modals to have their own lifecycle
|
|
31
16
|
export default /*#__PURE__*/createContext(DefaultInteractionID);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/react-ufo",
|
|
3
|
-
"version": "2.16.
|
|
3
|
+
"version": "2.16.1",
|
|
4
4
|
"description": "Parts of React UFO that are publicly available",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -130,9 +130,6 @@
|
|
|
130
130
|
"platform_ufo_fix_vc_observer_rounding_error": {
|
|
131
131
|
"type": "boolean"
|
|
132
132
|
},
|
|
133
|
-
"platform_ufo_AFO-3379_fix_default_interaction": {
|
|
134
|
-
"type": "boolean"
|
|
135
|
-
},
|
|
136
133
|
"platform_editor_ed-25937_ignore_mutations_for_ttvc": {
|
|
137
134
|
"type": "boolean"
|
|
138
135
|
},
|