@atlaskit/editor-plugin-collab-edit 4.0.2 → 4.1.0
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,26 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-collab-edit
|
|
2
2
|
|
|
3
|
+
## 4.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#189314](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/189314)
|
|
8
|
+
[`22c6251496010`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/22c6251496010) -
|
|
9
|
+
Exported missing types that were already being inferred from existing exports
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 4.0.3
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#187144](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/187144)
|
|
20
|
+
[`a16147d8fbdfe`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a16147d8fbdfe) -
|
|
21
|
+
Bump @atlaskit/adf-schema to v49.0.5
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 4.0.2
|
|
4
25
|
|
|
5
26
|
### 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/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { collabEditPlugin } from './collabEditPlugin';
|
|
2
|
-
export type { CollabEditPlugin, CollabEditPluginOptions } from './collabEditPluginType';
|
|
2
|
+
export type { CollabEditPlugin, CollabEditPluginOptions, CollabEditPluginDependencies, } from './collabEditPluginType';
|
|
3
3
|
export type { CollabInitializedMetadata, CollabEditPluginSharedState, ReadOnlyParticipants, PrivateCollabEditOptions, CollabSendableSteps, } from './types';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { collabEditPlugin } from './collabEditPlugin';
|
|
2
|
-
export type { CollabEditPlugin, CollabEditPluginOptions } from './collabEditPluginType';
|
|
2
|
+
export type { CollabEditPlugin, CollabEditPluginOptions, CollabEditPluginDependencies, } from './collabEditPluginType';
|
|
3
3
|
export type { CollabInitializedMetadata, CollabEditPluginSharedState, ReadOnlyParticipants, PrivateCollabEditOptions, CollabSendableSteps, } from './types';
|
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.1.0",
|
|
4
4
|
"description": "Collab Edit plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,33 +30,33 @@
|
|
|
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",
|
|
37
|
-
"@atlaskit/editor-plugin-connectivity": "^3.
|
|
37
|
+
"@atlaskit/editor-plugin-connectivity": "^3.1.0",
|
|
38
38
|
"@atlaskit/editor-plugin-editor-viewmode": "^5.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-feature-flags": "^2.0.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
41
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
41
|
+
"@atlaskit/editor-shared-styles": "^3.5.0",
|
|
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.9.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.9.0",
|
|
51
51
|
"react": "^18.2.0",
|
|
52
52
|
"react-dom": "^18.2.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@af/integration-testing": "workspace:^",
|
|
56
56
|
"@af/visual-regression": "workspace:^",
|
|
57
|
-
"@atlaskit/editor-plugin-mentions": "^5.
|
|
57
|
+
"@atlaskit/editor-plugin-mentions": "^5.2.0",
|
|
58
58
|
"@atlaskit/editor-plugin-text-formatting": "^3.0.0",
|
|
59
|
-
"@atlaskit/editor-plugin-type-ahead": "^3.
|
|
59
|
+
"@atlaskit/editor-plugin-type-ahead": "^3.1.0",
|
|
60
60
|
"@atlaskit/editor-plugin-unsupported-content": "^3.0.0",
|
|
61
61
|
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
62
62
|
"@atlaskit/ssr": "workspace:^",
|