@atlaskit/renderer 153.6.0 → 153.6.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/CHANGELOG.md +15 -0
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/cjs/ui/annotations/hooks/user-selection.js +6 -0
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/es2019/ui/annotations/hooks/user-selection.js +6 -0
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/esm/ui/annotations/hooks/user-selection.js +6 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 153.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 153.6.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`b2fdfdb1b3d0f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b2fdfdb1b3d0f) -
|
|
14
|
+
Reset annotation selection deduplication after the active selection clears behind the
|
|
15
|
+
`confluence_comments_nudge_selection_readiness` experiment (isEnabled: false), allowing the same
|
|
16
|
+
text to be selected again for inline comment creation.
|
|
17
|
+
|
|
3
18
|
## 153.6.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -79,7 +79,7 @@ var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
79
79
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
80
80
|
var RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
81
81
|
var packageName = "@atlaskit/renderer";
|
|
82
|
-
var packageVersion = "153.
|
|
82
|
+
var packageVersion = "153.6.1";
|
|
83
83
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
84
84
|
containerName: 'ak-renderer-wrapper',
|
|
85
85
|
containerType: 'inline-size'
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.useUserSelectionRange = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
+
var _expVal = require("@atlaskit/platform-feature-experiments/exp-val");
|
|
8
9
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
9
10
|
var _AnnotationManagerContext = require("../contexts/AnnotationManagerContext");
|
|
10
11
|
var _AnnotationRangeContext = require("../contexts/AnnotationRangeContext");
|
|
@@ -23,6 +24,11 @@ var useUserSelectionRange = exports.useUserSelectionRange = function useUserSele
|
|
|
23
24
|
annotationManager = _useAnnotationManager.annotationManager;
|
|
24
25
|
var lastRangeRef = (0, _react.useRef)(null);
|
|
25
26
|
var isAnnotationManagerEnabled = !!annotationManager;
|
|
27
|
+
(0, _react.useEffect)(function () {
|
|
28
|
+
if (!range && (0, _expVal.expVal)('confluence_comments_nudge_selection_readiness', 'isEnabled', false)) {
|
|
29
|
+
lastRangeRef.current = null;
|
|
30
|
+
}
|
|
31
|
+
}, [range]);
|
|
26
32
|
var onSelectionChange = (0, _react.useCallback)(function (_event) {
|
|
27
33
|
var _document$body;
|
|
28
34
|
if (selectionTimeoutRef.current) {
|
|
@@ -64,7 +64,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
64
64
|
const TABLE_INFO_TIMEOUT = 10000;
|
|
65
65
|
const RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
66
66
|
const packageName = "@atlaskit/renderer";
|
|
67
|
-
const packageVersion = "153.
|
|
67
|
+
const packageVersion = "153.6.1";
|
|
68
68
|
const setAsQueryContainerStyles = css({
|
|
69
69
|
containerName: 'ak-renderer-wrapper',
|
|
70
70
|
containerType: 'inline-size'
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useEffect, useRef, useCallback } from 'react';
|
|
2
|
+
import { expVal } from '@atlaskit/platform-feature-experiments/exp-val';
|
|
2
3
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
4
|
import { useAnnotationManagerDispatch } from '../contexts/AnnotationManagerContext';
|
|
4
5
|
import { useAnnotationRangeDispatch, useAnnotationRangeState } from '../contexts/AnnotationRangeContext';
|
|
@@ -24,6 +25,11 @@ export const useUserSelectionRange = props => {
|
|
|
24
25
|
} = useAnnotationManagerDispatch();
|
|
25
26
|
const lastRangeRef = useRef(null);
|
|
26
27
|
const isAnnotationManagerEnabled = !!annotationManager;
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
if (!range && expVal('confluence_comments_nudge_selection_readiness', 'isEnabled', false)) {
|
|
30
|
+
lastRangeRef.current = null;
|
|
31
|
+
}
|
|
32
|
+
}, [range]);
|
|
27
33
|
const onSelectionChange = useCallback(_event => {
|
|
28
34
|
var _document$body;
|
|
29
35
|
if (selectionTimeoutRef.current) {
|
|
@@ -69,7 +69,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
69
69
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
70
70
|
var RENDER_EVENT_SAMPLE_RATE = 0.1;
|
|
71
71
|
var packageName = "@atlaskit/renderer";
|
|
72
|
-
var packageVersion = "153.
|
|
72
|
+
var packageVersion = "153.6.1";
|
|
73
73
|
var setAsQueryContainerStyles = css({
|
|
74
74
|
containerName: 'ak-renderer-wrapper',
|
|
75
75
|
containerType: 'inline-size'
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useEffect, useRef, useCallback } from 'react';
|
|
2
|
+
import { expVal } from '@atlaskit/platform-feature-experiments/exp-val';
|
|
2
3
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
4
|
import { useAnnotationManagerDispatch } from '../contexts/AnnotationManagerContext';
|
|
4
5
|
import { useAnnotationRangeDispatch, useAnnotationRangeState } from '../contexts/AnnotationRangeContext';
|
|
@@ -17,6 +18,11 @@ export var useUserSelectionRange = function useUserSelectionRange(props) {
|
|
|
17
18
|
annotationManager = _useAnnotationManager.annotationManager;
|
|
18
19
|
var lastRangeRef = useRef(null);
|
|
19
20
|
var isAnnotationManagerEnabled = !!annotationManager;
|
|
21
|
+
useEffect(function () {
|
|
22
|
+
if (!range && expVal('confluence_comments_nudge_selection_readiness', 'isEnabled', false)) {
|
|
23
|
+
lastRangeRef.current = null;
|
|
24
|
+
}
|
|
25
|
+
}, [range]);
|
|
20
26
|
var onSelectionChange = useCallback(function (_event) {
|
|
21
27
|
var _document$body;
|
|
22
28
|
if (selectionTimeoutRef.current) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "153.6.
|
|
3
|
+
"version": "153.6.2",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@atlaskit/smart-card": "^46.14.0",
|
|
72
72
|
"@atlaskit/status": "^5.17.0",
|
|
73
73
|
"@atlaskit/task-decision": "^21.16.0",
|
|
74
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
74
|
+
"@atlaskit/tmp-editor-statsig": "^264.0.0",
|
|
75
75
|
"@atlaskit/tokens": "^20.12.0",
|
|
76
76
|
"@atlaskit/tooltip": "^24.4.0",
|
|
77
77
|
"@atlaskit/visually-hidden": "^4.4.0",
|