@atlaskit/editor-plugin-collab-edit 4.0.2 → 4.0.3
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,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-collab-edit
|
|
2
2
|
|
|
3
|
+
## 4.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#187144](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/187144)
|
|
8
|
+
[`a16147d8fbdfe`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a16147d8fbdfe) -
|
|
9
|
+
Bump @atlaskit/adf-schema to v49.0.5
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 4.0.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -67,6 +67,8 @@ var createTelepointers = exports.createTelepointers = function createTelepointer
|
|
|
67
67
|
color: avatarColor.backgroundColor
|
|
68
68
|
}), ";");
|
|
69
69
|
cursor.setAttribute('data-initial', initial);
|
|
70
|
+
cursor.setAttribute('aria-label', "".concat(fullName, " cursor position"));
|
|
71
|
+
cursor.setAttribute('role', 'button');
|
|
70
72
|
if ((0, _platformFeatureFlags.fg)('confluence_team_presence_scroll_to_pointer')) {
|
|
71
73
|
cursor.setAttribute(_collab.TELEPOINTER_DATA_SESSION_ID_ATTR, sessionId);
|
|
72
74
|
// If there is an ongoing expand animation, we'll keep the telepointer expanded
|
|
@@ -79,11 +81,13 @@ var createTelepointers = exports.createTelepointers = function createTelepointer
|
|
|
79
81
|
fullNameEl.textContent = fullName;
|
|
80
82
|
fullNameEl.className = 'telepointer-fullname';
|
|
81
83
|
fullNameEl.style.backgroundColor = avatarColor.backgroundColor;
|
|
84
|
+
fullNameEl.setAttribute('aria-hidden', 'true');
|
|
82
85
|
cursor.appendChild(fullNameEl);
|
|
83
86
|
var initialEl = document.createElement('span');
|
|
84
87
|
initialEl.textContent = initial;
|
|
85
88
|
initialEl.className = 'telepointer-initial';
|
|
86
89
|
initialEl.style.backgroundColor = avatarColor.backgroundColor;
|
|
90
|
+
initialEl.setAttribute('aria-hidden', 'true');
|
|
87
91
|
cursor.appendChild(initialEl);
|
|
88
92
|
}
|
|
89
93
|
return decorations.concat(_view.Decoration.widget(to, spaceJoinerAfter, {
|
|
@@ -49,6 +49,8 @@ export const createTelepointers = (from, to, sessionId, isSelection, initial, pr
|
|
|
49
49
|
color: avatarColor.backgroundColor
|
|
50
50
|
})};`;
|
|
51
51
|
cursor.setAttribute('data-initial', initial);
|
|
52
|
+
cursor.setAttribute('aria-label', `${fullName} cursor position`);
|
|
53
|
+
cursor.setAttribute('role', 'button');
|
|
52
54
|
if (fg('confluence_team_presence_scroll_to_pointer')) {
|
|
53
55
|
cursor.setAttribute(TELEPOINTER_DATA_SESSION_ID_ATTR, sessionId);
|
|
54
56
|
// If there is an ongoing expand animation, we'll keep the telepointer expanded
|
|
@@ -61,11 +63,13 @@ export const createTelepointers = (from, to, sessionId, isSelection, initial, pr
|
|
|
61
63
|
fullNameEl.textContent = fullName;
|
|
62
64
|
fullNameEl.className = 'telepointer-fullname';
|
|
63
65
|
fullNameEl.style.backgroundColor = avatarColor.backgroundColor;
|
|
66
|
+
fullNameEl.setAttribute('aria-hidden', 'true');
|
|
64
67
|
cursor.appendChild(fullNameEl);
|
|
65
68
|
const initialEl = document.createElement('span');
|
|
66
69
|
initialEl.textContent = initial;
|
|
67
70
|
initialEl.className = 'telepointer-initial';
|
|
68
71
|
initialEl.style.backgroundColor = avatarColor.backgroundColor;
|
|
72
|
+
initialEl.setAttribute('aria-hidden', 'true');
|
|
69
73
|
cursor.appendChild(initialEl);
|
|
70
74
|
}
|
|
71
75
|
return decorations.concat(Decoration.widget(to, spaceJoinerAfter, {
|
|
@@ -58,6 +58,8 @@ export var createTelepointers = function createTelepointers(from, to, sessionId,
|
|
|
58
58
|
color: avatarColor.backgroundColor
|
|
59
59
|
}), ";");
|
|
60
60
|
cursor.setAttribute('data-initial', initial);
|
|
61
|
+
cursor.setAttribute('aria-label', "".concat(fullName, " cursor position"));
|
|
62
|
+
cursor.setAttribute('role', 'button');
|
|
61
63
|
if (fg('confluence_team_presence_scroll_to_pointer')) {
|
|
62
64
|
cursor.setAttribute(TELEPOINTER_DATA_SESSION_ID_ATTR, sessionId);
|
|
63
65
|
// If there is an ongoing expand animation, we'll keep the telepointer expanded
|
|
@@ -70,11 +72,13 @@ export var createTelepointers = function createTelepointers(from, to, sessionId,
|
|
|
70
72
|
fullNameEl.textContent = fullName;
|
|
71
73
|
fullNameEl.className = 'telepointer-fullname';
|
|
72
74
|
fullNameEl.style.backgroundColor = avatarColor.backgroundColor;
|
|
75
|
+
fullNameEl.setAttribute('aria-hidden', 'true');
|
|
73
76
|
cursor.appendChild(fullNameEl);
|
|
74
77
|
var initialEl = document.createElement('span');
|
|
75
78
|
initialEl.textContent = initial;
|
|
76
79
|
initialEl.className = 'telepointer-initial';
|
|
77
80
|
initialEl.style.backgroundColor = avatarColor.backgroundColor;
|
|
81
|
+
initialEl.setAttribute('aria-hidden', 'true');
|
|
78
82
|
cursor.appendChild(initialEl);
|
|
79
83
|
}
|
|
80
84
|
return decorations.concat(Decoration.widget(to, spaceJoinerAfter, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-collab-edit",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"description": "Collab Edit plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
".": "./src/index.ts"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@atlaskit/adf-schema": "^
|
|
33
|
+
"@atlaskit/adf-schema": "^49.0.6",
|
|
34
34
|
"@atlaskit/custom-steps": "^0.11.0",
|
|
35
35
|
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^3.0.0",
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
"@atlaskit/frontend-utilities": "^3.1.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
44
|
"@atlaskit/prosemirror-collab": "^0.17.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^9.
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^9.7.0",
|
|
46
46
|
"@babel/runtime": "^7.0.0",
|
|
47
47
|
"memoize-one": "^6.0.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@atlaskit/editor-common": "^107.
|
|
50
|
+
"@atlaskit/editor-common": "^107.8.0",
|
|
51
51
|
"react": "^18.2.0",
|
|
52
52
|
"react-dom": "^18.2.0"
|
|
53
53
|
},
|