@atlaskit/renderer 111.1.9 → 111.2.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 +23 -0
- package/dist/cjs/steps/index.js +18 -0
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/steps/index.js +18 -0
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/steps/index.js +18 -0
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 111.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#151190](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/151190)
|
|
8
|
+
[`a3723b1cdede2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a3723b1cdede2) -
|
|
9
|
+
[ux] [ED-25037] this change bumps @atlaskit/adf-schema from 40.9.0 to 40.9.4 which makes the
|
|
10
|
+
blockquote selectable, adds missing marks to the PM node spec and fixes a bug that converted
|
|
11
|
+
pasted external images to media groups.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
17
|
+
## 111.1.10
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [#151121](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/151121)
|
|
22
|
+
[`7327a31a5aaec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7327a31a5aaec) -
|
|
23
|
+
[ux] [ED-25172] Update resolvePos to handle when endContainer is a non-text node.
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
|
|
3
26
|
## 111.1.9
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/dist/cjs/steps/index.js
CHANGED
|
@@ -150,7 +150,25 @@ function resolvePos(node, offset) {
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* If anchor node is an element (e.g. after a triple click) the anchorOffset
|
|
156
|
+
* is the number of child nodes preceding the anchor.
|
|
157
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/Selection/anchorOffset
|
|
158
|
+
*
|
|
159
|
+
* For end pos we calculate the number of characters by stepping through
|
|
160
|
+
* each of the node's children.
|
|
161
|
+
*/
|
|
153
162
|
if (node instanceof HTMLElement && isPositionPointer(node)) {
|
|
163
|
+
if (findEnd) {
|
|
164
|
+
var count = getStartPos(node);
|
|
165
|
+
var children = node.childNodes;
|
|
166
|
+
for (var i = 0; i < offset; i++) {
|
|
167
|
+
var _children$i;
|
|
168
|
+
count += ((_children$i = children[i]) === null || _children$i === void 0 || (_children$i = _children$i.textContent) === null || _children$i === void 0 ? void 0 : _children$i.length) || 1;
|
|
169
|
+
}
|
|
170
|
+
return count;
|
|
171
|
+
}
|
|
154
172
|
return getStartPos(node) + offset;
|
|
155
173
|
}
|
|
156
174
|
var parent = findParent(node);
|
|
@@ -65,7 +65,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
65
65
|
var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
66
66
|
var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
67
67
|
var packageName = "@atlaskit/renderer";
|
|
68
|
-
var packageVersion = "111.
|
|
68
|
+
var packageVersion = "111.2.0";
|
|
69
69
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
70
70
|
containerName: 'ak-renderer-wrapper',
|
|
71
71
|
containerType: 'inline-size',
|
|
@@ -144,7 +144,25 @@ export function resolvePos(node, offset, findEnd = false) {
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* If anchor node is an element (e.g. after a triple click) the anchorOffset
|
|
150
|
+
* is the number of child nodes preceding the anchor.
|
|
151
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/Selection/anchorOffset
|
|
152
|
+
*
|
|
153
|
+
* For end pos we calculate the number of characters by stepping through
|
|
154
|
+
* each of the node's children.
|
|
155
|
+
*/
|
|
147
156
|
if (node instanceof HTMLElement && isPositionPointer(node)) {
|
|
157
|
+
if (findEnd) {
|
|
158
|
+
let count = getStartPos(node);
|
|
159
|
+
const children = node.childNodes;
|
|
160
|
+
for (let i = 0; i < offset; i++) {
|
|
161
|
+
var _children$i, _children$i$textConte;
|
|
162
|
+
count += ((_children$i = children[i]) === null || _children$i === void 0 ? void 0 : (_children$i$textConte = _children$i.textContent) === null || _children$i$textConte === void 0 ? void 0 : _children$i$textConte.length) || 1;
|
|
163
|
+
}
|
|
164
|
+
return count;
|
|
165
|
+
}
|
|
148
166
|
return getStartPos(node) + offset;
|
|
149
167
|
}
|
|
150
168
|
const parent = findParent(node);
|
|
@@ -45,7 +45,7 @@ import { nodeToReact } from '../../react/nodes';
|
|
|
45
45
|
export const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
46
46
|
export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
47
47
|
const packageName = "@atlaskit/renderer";
|
|
48
|
-
const packageVersion = "111.
|
|
48
|
+
const packageVersion = "111.2.0";
|
|
49
49
|
const setAsQueryContainerStyles = css({
|
|
50
50
|
containerName: 'ak-renderer-wrapper',
|
|
51
51
|
containerType: 'inline-size',
|
package/dist/esm/steps/index.js
CHANGED
|
@@ -141,7 +141,25 @@ export function resolvePos(node, offset) {
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* If anchor node is an element (e.g. after a triple click) the anchorOffset
|
|
147
|
+
* is the number of child nodes preceding the anchor.
|
|
148
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/Selection/anchorOffset
|
|
149
|
+
*
|
|
150
|
+
* For end pos we calculate the number of characters by stepping through
|
|
151
|
+
* each of the node's children.
|
|
152
|
+
*/
|
|
144
153
|
if (node instanceof HTMLElement && isPositionPointer(node)) {
|
|
154
|
+
if (findEnd) {
|
|
155
|
+
var count = getStartPos(node);
|
|
156
|
+
var children = node.childNodes;
|
|
157
|
+
for (var i = 0; i < offset; i++) {
|
|
158
|
+
var _children$i;
|
|
159
|
+
count += ((_children$i = children[i]) === null || _children$i === void 0 || (_children$i = _children$i.textContent) === null || _children$i === void 0 ? void 0 : _children$i.length) || 1;
|
|
160
|
+
}
|
|
161
|
+
return count;
|
|
162
|
+
}
|
|
145
163
|
return getStartPos(node) + offset;
|
|
146
164
|
}
|
|
147
165
|
var parent = findParent(node);
|
|
@@ -55,7 +55,7 @@ import { nodeToReact } from '../../react/nodes';
|
|
|
55
55
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
56
56
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
57
57
|
var packageName = "@atlaskit/renderer";
|
|
58
|
-
var packageVersion = "111.
|
|
58
|
+
var packageVersion = "111.2.0";
|
|
59
59
|
var setAsQueryContainerStyles = css({
|
|
60
60
|
containerName: 'ak-renderer-wrapper',
|
|
61
61
|
containerType: 'inline-size',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "111.
|
|
3
|
+
"version": "111.2.0",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -22,22 +22,22 @@
|
|
|
22
22
|
"runReact18": true
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@atlaskit/adf-schema": "^40.9.
|
|
26
|
-
"@atlaskit/adf-utils": "^19.
|
|
25
|
+
"@atlaskit/adf-schema": "^40.9.4",
|
|
26
|
+
"@atlaskit/adf-utils": "^19.9.0",
|
|
27
27
|
"@atlaskit/analytics-listeners": "^8.11.0",
|
|
28
28
|
"@atlaskit/analytics-namespaced-context": "^6.12.0",
|
|
29
29
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
30
30
|
"@atlaskit/button": "^20.2.0",
|
|
31
31
|
"@atlaskit/code": "^15.6.0",
|
|
32
|
-
"@atlaskit/editor-common": "^93.
|
|
33
|
-
"@atlaskit/editor-json-transformer": "^8.
|
|
32
|
+
"@atlaskit/editor-common": "^93.3.0",
|
|
33
|
+
"@atlaskit/editor-json-transformer": "^8.19.0",
|
|
34
34
|
"@atlaskit/editor-palette": "1.6.1",
|
|
35
35
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
36
36
|
"@atlaskit/editor-shared-styles": "^3.0.0",
|
|
37
37
|
"@atlaskit/emoji": "^67.8.0",
|
|
38
38
|
"@atlaskit/feature-gate-js-client": "^4.19.0",
|
|
39
39
|
"@atlaskit/icon": "^22.22.0",
|
|
40
|
-
"@atlaskit/link-datasource": "^3.
|
|
40
|
+
"@atlaskit/link-datasource": "^3.6.0",
|
|
41
41
|
"@atlaskit/media-card": "^78.5.0",
|
|
42
42
|
"@atlaskit/media-client": "^28.0.0",
|
|
43
43
|
"@atlaskit/media-client-react": "^2.2.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/media-ui": "^25.15.0",
|
|
47
47
|
"@atlaskit/media-viewer": "^49.1.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
49
|
-
"@atlaskit/smart-card": "^
|
|
49
|
+
"@atlaskit/smart-card": "^30.0.0",
|
|
50
50
|
"@atlaskit/status": "^1.5.0",
|
|
51
51
|
"@atlaskit/task-decision": "^17.11.0",
|
|
52
52
|
"@atlaskit/theme": "^13.0.0",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@atlaskit/css-reset": "^6.11.0",
|
|
75
75
|
"@atlaskit/link-provider": "^1.16.0",
|
|
76
76
|
"@atlaskit/link-test-helpers": "^7.5.0",
|
|
77
|
-
"@atlaskit/linking-common": "^5.
|
|
77
|
+
"@atlaskit/linking-common": "^5.12.0",
|
|
78
78
|
"@atlaskit/media-core": "^34.3.0",
|
|
79
79
|
"@atlaskit/media-integration-test-helpers": "^3.1.0",
|
|
80
80
|
"@atlaskit/media-test-helpers": "^34.4.0",
|