@atlaskit/renderer 109.37.0 → 109.39.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 +20 -0
- package/afm-jira/tsconfig.json +3 -0
- package/dist/cjs/messages.js +13 -1
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/cjs/ui/annotations/element/mark.js +37 -1
- package/dist/es2019/messages.js +12 -0
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/es2019/ui/annotations/element/mark.js +35 -1
- package/dist/esm/messages.js +12 -0
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/esm/ui/annotations/element/mark.js +37 -1
- package/dist/types/messages.d.ts +12 -0
- package/dist/types/ui/annotations/element/mark.d.ts +6 -6
- package/dist/types-ts4.5/messages.d.ts +12 -0
- package/dist/types-ts4.5/ui/annotations/element/mark.d.ts +6 -6
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 109.39.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#115188](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/115188)
|
|
8
|
+
[`6d33539d8ed41`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6d33539d8ed41) -
|
|
9
|
+
Announcing inline comments to screenreaders on renderer
|
|
10
|
+
|
|
11
|
+
## 109.38.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#115247](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/115247)
|
|
16
|
+
[`251d23ff9e6c8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/251d23ff9e6c8) -
|
|
17
|
+
upgrade adf-schema version to 38.0.0
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 109.37.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
package/afm-jira/tsconfig.json
CHANGED
package/dist/cjs/messages.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.tableCellMessages = exports.headingAnchorLinkMessages = void 0;
|
|
6
|
+
exports.tableCellMessages = exports.inlineCommentMessages = exports.headingAnchorLinkMessages = void 0;
|
|
7
7
|
var _reactIntlNext = require("react-intl-next");
|
|
8
8
|
var headingAnchorLinkMessages = exports.headingAnchorLinkMessages = (0, _reactIntlNext.defineMessages)({
|
|
9
9
|
copyHeadingLinkToClipboard: {
|
|
@@ -43,4 +43,16 @@ var tableCellMessages = exports.tableCellMessages = (0, _reactIntlNext.defineMes
|
|
|
43
43
|
defaultMessage: 'descending',
|
|
44
44
|
description: 'this table column is sorted in descending order'
|
|
45
45
|
}
|
|
46
|
+
});
|
|
47
|
+
var inlineCommentMessages = exports.inlineCommentMessages = (0, _reactIntlNext.defineMessages)({
|
|
48
|
+
contentRendererInlineCommentMarkerStart: {
|
|
49
|
+
id: 'fabric.editor.inlineComment.marker.start',
|
|
50
|
+
defaultMessage: 'inline comment start',
|
|
51
|
+
description: 'Starting marker to indicate that text is highlighted with an inline comment by a screen reader.'
|
|
52
|
+
},
|
|
53
|
+
contentRendererInlineCommentMarkerEnd: {
|
|
54
|
+
id: 'fabric.editor.inlineComment.marker.end',
|
|
55
|
+
defaultMessage: 'inline comment end',
|
|
56
|
+
description: 'Ending marker to indicate that text was highlighted with an inline comment by a screen reader.'
|
|
57
|
+
}
|
|
46
58
|
});
|
|
@@ -56,7 +56,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
56
56
|
var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
57
57
|
var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
58
58
|
var packageName = "@atlaskit/renderer";
|
|
59
|
-
var packageVersion = "109.
|
|
59
|
+
var packageVersion = "109.39.0";
|
|
60
60
|
var defaultNodeComponents = exports.defaultNodeComponents = _nodes.nodeToReact;
|
|
61
61
|
var Renderer = exports.Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
62
62
|
(0, _inherits2.default)(Renderer, _PureComponent);
|
|
@@ -14,6 +14,8 @@ var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gat
|
|
|
14
14
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
15
15
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
16
16
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
|
+
var _reactIntlNext = require("react-intl-next");
|
|
18
|
+
var _messages = require("../../../messages");
|
|
17
19
|
var _templateObject;
|
|
18
20
|
/** @jsx jsx */
|
|
19
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -26,6 +28,27 @@ var markStyles = function markStyles() {
|
|
|
26
28
|
var isMobile = function isMobile() {
|
|
27
29
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
28
30
|
};
|
|
31
|
+
var accessibilityStyles = function accessibilityStyles(startMarker, endMarker) {
|
|
32
|
+
return (0, _react2.css)({
|
|
33
|
+
'&::before, &::after': {
|
|
34
|
+
clipPath: 'inset(100%)',
|
|
35
|
+
clip: 'rect(1px, 1px, 1px, 1px)',
|
|
36
|
+
height: '1px',
|
|
37
|
+
overflow: 'hidden',
|
|
38
|
+
position: 'absolute',
|
|
39
|
+
whiteSpace: 'nowrap',
|
|
40
|
+
width: '1px'
|
|
41
|
+
},
|
|
42
|
+
'&::before': {
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
44
|
+
content: "' [".concat(startMarker, "] '")
|
|
45
|
+
},
|
|
46
|
+
'&::after': {
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
48
|
+
content: "' [".concat(endMarker, "] '")
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
};
|
|
29
52
|
var MarkComponent = exports.MarkComponent = function MarkComponent(_ref) {
|
|
30
53
|
var annotationParentIds = _ref.annotationParentIds,
|
|
31
54
|
children = _ref.children,
|
|
@@ -36,6 +59,7 @@ var MarkComponent = exports.MarkComponent = function MarkComponent(_ref) {
|
|
|
36
59
|
onClick = _ref.onClick,
|
|
37
60
|
useBlockLevel = _ref.useBlockLevel;
|
|
38
61
|
var isInlineCommentsKbAccessible = _featureGateJsClient.default.checkGate('inline_comments_keyboard_accessible_renderer');
|
|
62
|
+
var intl = (0, _reactIntlNext.useIntl)();
|
|
39
63
|
var annotationIds = (0, _react.useMemo)(function () {
|
|
40
64
|
return (0, _toConsumableArray2.default)(new Set([].concat((0, _toConsumableArray2.default)(annotationParentIds), [id])));
|
|
41
65
|
}, [id, annotationParentIds]);
|
|
@@ -92,9 +116,21 @@ var MarkComponent = exports.MarkComponent = function MarkComponent(_ref) {
|
|
|
92
116
|
} : _objectSpread({
|
|
93
117
|
'aria-details': annotationIds.join(', ')
|
|
94
118
|
}, desktopAccessibilityAttributes);
|
|
119
|
+
var getAccessibilityStyles = function getAccessibilityStyles() {
|
|
120
|
+
if (isMobile()) {
|
|
121
|
+
return {};
|
|
122
|
+
}
|
|
123
|
+
if (isInlineCommentsKbAccessible) {
|
|
124
|
+
var startMarker = intl.formatMessage(_messages.inlineCommentMessages.contentRendererInlineCommentMarkerStart);
|
|
125
|
+
var endMarker = intl.formatMessage(_messages.inlineCommentMessages.contentRendererInlineCommentMarkerEnd);
|
|
126
|
+
return accessibilityStyles(startMarker, endMarker);
|
|
127
|
+
} else {
|
|
128
|
+
return {};
|
|
129
|
+
}
|
|
130
|
+
};
|
|
95
131
|
return (0, _react2.jsx)(useBlockLevel ? 'div' : 'mark', _objectSpread(_objectSpread(_objectSpread((0, _defineProperty2.default)({
|
|
96
132
|
id: id
|
|
97
133
|
}, (0, _platformFeatureFlags.getBooleanFF)('platform.editor.allow-inline-comments-for-inline-nodes') ? 'onClickCapture' : 'onClick', onMarkClick), accessibility), overriddenData), !useBlockLevel && {
|
|
98
|
-
css: [markStyles]
|
|
134
|
+
css: [markStyles, getAccessibilityStyles()]
|
|
99
135
|
}), children);
|
|
100
136
|
};
|
package/dist/es2019/messages.js
CHANGED
|
@@ -37,4 +37,16 @@ export const tableCellMessages = defineMessages({
|
|
|
37
37
|
defaultMessage: 'descending',
|
|
38
38
|
description: 'this table column is sorted in descending order'
|
|
39
39
|
}
|
|
40
|
+
});
|
|
41
|
+
export const inlineCommentMessages = defineMessages({
|
|
42
|
+
contentRendererInlineCommentMarkerStart: {
|
|
43
|
+
id: 'fabric.editor.inlineComment.marker.start',
|
|
44
|
+
defaultMessage: 'inline comment start',
|
|
45
|
+
description: 'Starting marker to indicate that text is highlighted with an inline comment by a screen reader.'
|
|
46
|
+
},
|
|
47
|
+
contentRendererInlineCommentMarkerEnd: {
|
|
48
|
+
id: 'fabric.editor.inlineComment.marker.end',
|
|
49
|
+
defaultMessage: 'inline comment end',
|
|
50
|
+
description: 'Ending marker to indicate that text was highlighted with an inline comment by a screen reader.'
|
|
51
|
+
}
|
|
40
52
|
});
|
|
@@ -38,7 +38,7 @@ import { nodeToReact } from '../../react/nodes';
|
|
|
38
38
|
export const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
39
39
|
export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
40
40
|
const packageName = "@atlaskit/renderer";
|
|
41
|
-
const packageVersion = "109.
|
|
41
|
+
const packageVersion = "109.39.0";
|
|
42
42
|
export const defaultNodeComponents = nodeToReact;
|
|
43
43
|
export class Renderer extends PureComponent {
|
|
44
44
|
constructor(props) {
|
|
@@ -7,6 +7,8 @@ import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
|
7
7
|
import { AnnotationSharedCSSByState } from '@atlaskit/editor-common/styles';
|
|
8
8
|
import { AnnotationMarkStates } from '@atlaskit/adf-schema';
|
|
9
9
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
10
|
+
import { useIntl } from 'react-intl-next';
|
|
11
|
+
import { inlineCommentMessages } from '../../../messages';
|
|
10
12
|
|
|
11
13
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState` is not object-safe
|
|
12
14
|
const markStyles = () => css`
|
|
@@ -27,6 +29,25 @@ const markStyles = () => css`
|
|
|
27
29
|
const isMobile = () => {
|
|
28
30
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
29
31
|
};
|
|
32
|
+
const accessibilityStyles = (startMarker, endMarker) => css({
|
|
33
|
+
'&::before, &::after': {
|
|
34
|
+
clipPath: 'inset(100%)',
|
|
35
|
+
clip: 'rect(1px, 1px, 1px, 1px)',
|
|
36
|
+
height: '1px',
|
|
37
|
+
overflow: 'hidden',
|
|
38
|
+
position: 'absolute',
|
|
39
|
+
whiteSpace: 'nowrap',
|
|
40
|
+
width: '1px'
|
|
41
|
+
},
|
|
42
|
+
'&::before': {
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
44
|
+
content: `' [${startMarker}] '`
|
|
45
|
+
},
|
|
46
|
+
'&::after': {
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
48
|
+
content: `' [${endMarker}] '`
|
|
49
|
+
}
|
|
50
|
+
});
|
|
30
51
|
export const MarkComponent = ({
|
|
31
52
|
annotationParentIds,
|
|
32
53
|
children,
|
|
@@ -38,6 +59,7 @@ export const MarkComponent = ({
|
|
|
38
59
|
useBlockLevel
|
|
39
60
|
}) => {
|
|
40
61
|
const isInlineCommentsKbAccessible = FeatureGates.checkGate('inline_comments_keyboard_accessible_renderer');
|
|
62
|
+
const intl = useIntl();
|
|
41
63
|
const annotationIds = useMemo(() => [...new Set([...annotationParentIds, id])], [id, annotationParentIds]);
|
|
42
64
|
const onMarkClick = useCallback(event => {
|
|
43
65
|
// prevent inline mark logic for media block marks
|
|
@@ -94,13 +116,25 @@ export const MarkComponent = ({
|
|
|
94
116
|
'aria-details': annotationIds.join(', '),
|
|
95
117
|
...desktopAccessibilityAttributes
|
|
96
118
|
};
|
|
119
|
+
const getAccessibilityStyles = () => {
|
|
120
|
+
if (isMobile()) {
|
|
121
|
+
return {};
|
|
122
|
+
}
|
|
123
|
+
if (isInlineCommentsKbAccessible) {
|
|
124
|
+
const startMarker = intl.formatMessage(inlineCommentMessages.contentRendererInlineCommentMarkerStart);
|
|
125
|
+
const endMarker = intl.formatMessage(inlineCommentMessages.contentRendererInlineCommentMarkerEnd);
|
|
126
|
+
return accessibilityStyles(startMarker, endMarker);
|
|
127
|
+
} else {
|
|
128
|
+
return {};
|
|
129
|
+
}
|
|
130
|
+
};
|
|
97
131
|
return jsx(useBlockLevel ? 'div' : 'mark', {
|
|
98
132
|
id,
|
|
99
133
|
[getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes') ? 'onClickCapture' : 'onClick']: onMarkClick,
|
|
100
134
|
...accessibility,
|
|
101
135
|
...overriddenData,
|
|
102
136
|
...(!useBlockLevel && {
|
|
103
|
-
css: [markStyles]
|
|
137
|
+
css: [markStyles, getAccessibilityStyles()]
|
|
104
138
|
})
|
|
105
139
|
}, children);
|
|
106
140
|
};
|
package/dist/esm/messages.js
CHANGED
|
@@ -37,4 +37,16 @@ export var tableCellMessages = defineMessages({
|
|
|
37
37
|
defaultMessage: 'descending',
|
|
38
38
|
description: 'this table column is sorted in descending order'
|
|
39
39
|
}
|
|
40
|
+
});
|
|
41
|
+
export var inlineCommentMessages = defineMessages({
|
|
42
|
+
contentRendererInlineCommentMarkerStart: {
|
|
43
|
+
id: 'fabric.editor.inlineComment.marker.start',
|
|
44
|
+
defaultMessage: 'inline comment start',
|
|
45
|
+
description: 'Starting marker to indicate that text is highlighted with an inline comment by a screen reader.'
|
|
46
|
+
},
|
|
47
|
+
contentRendererInlineCommentMarkerEnd: {
|
|
48
|
+
id: 'fabric.editor.inlineComment.marker.end',
|
|
49
|
+
defaultMessage: 'inline comment end',
|
|
50
|
+
description: 'Ending marker to indicate that text was highlighted with an inline comment by a screen reader.'
|
|
51
|
+
}
|
|
40
52
|
});
|
|
@@ -48,7 +48,7 @@ import { nodeToReact } from '../../react/nodes';
|
|
|
48
48
|
export var NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
49
49
|
export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
50
50
|
var packageName = "@atlaskit/renderer";
|
|
51
|
-
var packageVersion = "109.
|
|
51
|
+
var packageVersion = "109.39.0";
|
|
52
52
|
export var defaultNodeComponents = nodeToReact;
|
|
53
53
|
export var Renderer = /*#__PURE__*/function (_PureComponent) {
|
|
54
54
|
_inherits(Renderer, _PureComponent);
|
|
@@ -13,6 +13,8 @@ import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
|
13
13
|
import { AnnotationSharedCSSByState } from '@atlaskit/editor-common/styles';
|
|
14
14
|
import { AnnotationMarkStates } from '@atlaskit/adf-schema';
|
|
15
15
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
16
|
+
import { useIntl } from 'react-intl-next';
|
|
17
|
+
import { inlineCommentMessages } from '../../../messages';
|
|
16
18
|
|
|
17
19
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState` is not object-safe
|
|
18
20
|
var markStyles = function markStyles() {
|
|
@@ -21,6 +23,27 @@ var markStyles = function markStyles() {
|
|
|
21
23
|
var isMobile = function isMobile() {
|
|
22
24
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
23
25
|
};
|
|
26
|
+
var accessibilityStyles = function accessibilityStyles(startMarker, endMarker) {
|
|
27
|
+
return css({
|
|
28
|
+
'&::before, &::after': {
|
|
29
|
+
clipPath: 'inset(100%)',
|
|
30
|
+
clip: 'rect(1px, 1px, 1px, 1px)',
|
|
31
|
+
height: '1px',
|
|
32
|
+
overflow: 'hidden',
|
|
33
|
+
position: 'absolute',
|
|
34
|
+
whiteSpace: 'nowrap',
|
|
35
|
+
width: '1px'
|
|
36
|
+
},
|
|
37
|
+
'&::before': {
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
39
|
+
content: "' [".concat(startMarker, "] '")
|
|
40
|
+
},
|
|
41
|
+
'&::after': {
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
43
|
+
content: "' [".concat(endMarker, "] '")
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
};
|
|
24
47
|
export var MarkComponent = function MarkComponent(_ref) {
|
|
25
48
|
var annotationParentIds = _ref.annotationParentIds,
|
|
26
49
|
children = _ref.children,
|
|
@@ -31,6 +54,7 @@ export var MarkComponent = function MarkComponent(_ref) {
|
|
|
31
54
|
onClick = _ref.onClick,
|
|
32
55
|
useBlockLevel = _ref.useBlockLevel;
|
|
33
56
|
var isInlineCommentsKbAccessible = FeatureGates.checkGate('inline_comments_keyboard_accessible_renderer');
|
|
57
|
+
var intl = useIntl();
|
|
34
58
|
var annotationIds = useMemo(function () {
|
|
35
59
|
return _toConsumableArray(new Set([].concat(_toConsumableArray(annotationParentIds), [id])));
|
|
36
60
|
}, [id, annotationParentIds]);
|
|
@@ -87,9 +111,21 @@ export var MarkComponent = function MarkComponent(_ref) {
|
|
|
87
111
|
} : _objectSpread({
|
|
88
112
|
'aria-details': annotationIds.join(', ')
|
|
89
113
|
}, desktopAccessibilityAttributes);
|
|
114
|
+
var getAccessibilityStyles = function getAccessibilityStyles() {
|
|
115
|
+
if (isMobile()) {
|
|
116
|
+
return {};
|
|
117
|
+
}
|
|
118
|
+
if (isInlineCommentsKbAccessible) {
|
|
119
|
+
var startMarker = intl.formatMessage(inlineCommentMessages.contentRendererInlineCommentMarkerStart);
|
|
120
|
+
var endMarker = intl.formatMessage(inlineCommentMessages.contentRendererInlineCommentMarkerEnd);
|
|
121
|
+
return accessibilityStyles(startMarker, endMarker);
|
|
122
|
+
} else {
|
|
123
|
+
return {};
|
|
124
|
+
}
|
|
125
|
+
};
|
|
90
126
|
return jsx(useBlockLevel ? 'div' : 'mark', _objectSpread(_objectSpread(_objectSpread(_defineProperty({
|
|
91
127
|
id: id
|
|
92
128
|
}, getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes') ? 'onClickCapture' : 'onClick', onMarkClick), accessibility), overriddenData), !useBlockLevel && {
|
|
93
|
-
css: [markStyles]
|
|
129
|
+
css: [markStyles, getAccessibilityStyles()]
|
|
94
130
|
}), children);
|
|
95
131
|
};
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -37,3 +37,15 @@ export declare const tableCellMessages: {
|
|
|
37
37
|
description: string;
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
|
+
export declare const inlineCommentMessages: {
|
|
41
|
+
contentRendererInlineCommentMarkerStart: {
|
|
42
|
+
id: string;
|
|
43
|
+
defaultMessage: string;
|
|
44
|
+
description: string;
|
|
45
|
+
};
|
|
46
|
+
contentRendererInlineCommentMarkerEnd: {
|
|
47
|
+
id: string;
|
|
48
|
+
defaultMessage: string;
|
|
49
|
+
description: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -13,7 +13,7 @@ type MarkComponentProps = {
|
|
|
13
13
|
useBlockLevel?: boolean;
|
|
14
14
|
};
|
|
15
15
|
export declare const MarkComponent: ({ annotationParentIds, children, dataAttributes, id, state, hasFocus, onClick, useBlockLevel, }: React.PropsWithChildren<MarkComponentProps>) => React.ReactElement<{
|
|
16
|
-
css?:
|
|
16
|
+
css?: {}[] | undefined;
|
|
17
17
|
'data-mark-type': string;
|
|
18
18
|
'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
|
|
19
19
|
'data-id': string;
|
|
@@ -21,7 +21,7 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
|
|
|
21
21
|
'aria-disabled': boolean;
|
|
22
22
|
id: string;
|
|
23
23
|
} | {
|
|
24
|
-
css?:
|
|
24
|
+
css?: {}[] | undefined;
|
|
25
25
|
'data-mark-annotation-state': AnnotationMarkStates;
|
|
26
26
|
'data-has-focus': boolean;
|
|
27
27
|
'data-mark-type': string;
|
|
@@ -30,7 +30,7 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
|
|
|
30
30
|
'aria-disabled': boolean;
|
|
31
31
|
id: string;
|
|
32
32
|
} | {
|
|
33
|
-
css?:
|
|
33
|
+
css?: {}[] | undefined;
|
|
34
34
|
'data-mark-type': string;
|
|
35
35
|
'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
|
|
36
36
|
'data-id': string;
|
|
@@ -43,7 +43,7 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
|
|
|
43
43
|
'aria-disabled'?: undefined;
|
|
44
44
|
id: string;
|
|
45
45
|
} | {
|
|
46
|
-
css?:
|
|
46
|
+
css?: {}[] | undefined;
|
|
47
47
|
'data-mark-annotation-state': AnnotationMarkStates;
|
|
48
48
|
'data-has-focus': boolean;
|
|
49
49
|
'data-mark-type': string;
|
|
@@ -57,7 +57,7 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
|
|
|
57
57
|
'aria-disabled'?: undefined;
|
|
58
58
|
id: string;
|
|
59
59
|
} | {
|
|
60
|
-
css?:
|
|
60
|
+
css?: {}[] | undefined;
|
|
61
61
|
'data-mark-type': string;
|
|
62
62
|
'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
|
|
63
63
|
'data-id': string;
|
|
@@ -70,7 +70,7 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
|
|
|
70
70
|
'aria-disabled'?: undefined;
|
|
71
71
|
id: string;
|
|
72
72
|
} | {
|
|
73
|
-
css?:
|
|
73
|
+
css?: {}[] | undefined;
|
|
74
74
|
'data-mark-annotation-state': AnnotationMarkStates;
|
|
75
75
|
'data-has-focus': boolean;
|
|
76
76
|
'data-mark-type': string;
|
|
@@ -37,3 +37,15 @@ export declare const tableCellMessages: {
|
|
|
37
37
|
description: string;
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
|
+
export declare const inlineCommentMessages: {
|
|
41
|
+
contentRendererInlineCommentMarkerStart: {
|
|
42
|
+
id: string;
|
|
43
|
+
defaultMessage: string;
|
|
44
|
+
description: string;
|
|
45
|
+
};
|
|
46
|
+
contentRendererInlineCommentMarkerEnd: {
|
|
47
|
+
id: string;
|
|
48
|
+
defaultMessage: string;
|
|
49
|
+
description: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -13,7 +13,7 @@ type MarkComponentProps = {
|
|
|
13
13
|
useBlockLevel?: boolean;
|
|
14
14
|
};
|
|
15
15
|
export declare const MarkComponent: ({ annotationParentIds, children, dataAttributes, id, state, hasFocus, onClick, useBlockLevel, }: React.PropsWithChildren<MarkComponentProps>) => React.ReactElement<{
|
|
16
|
-
css?:
|
|
16
|
+
css?: {}[] | undefined;
|
|
17
17
|
'data-mark-type': string;
|
|
18
18
|
'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
|
|
19
19
|
'data-id': string;
|
|
@@ -21,7 +21,7 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
|
|
|
21
21
|
'aria-disabled': boolean;
|
|
22
22
|
id: string;
|
|
23
23
|
} | {
|
|
24
|
-
css?:
|
|
24
|
+
css?: {}[] | undefined;
|
|
25
25
|
'data-mark-annotation-state': AnnotationMarkStates;
|
|
26
26
|
'data-has-focus': boolean;
|
|
27
27
|
'data-mark-type': string;
|
|
@@ -30,7 +30,7 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
|
|
|
30
30
|
'aria-disabled': boolean;
|
|
31
31
|
id: string;
|
|
32
32
|
} | {
|
|
33
|
-
css?:
|
|
33
|
+
css?: {}[] | undefined;
|
|
34
34
|
'data-mark-type': string;
|
|
35
35
|
'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
|
|
36
36
|
'data-id': string;
|
|
@@ -43,7 +43,7 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
|
|
|
43
43
|
'aria-disabled'?: undefined;
|
|
44
44
|
id: string;
|
|
45
45
|
} | {
|
|
46
|
-
css?:
|
|
46
|
+
css?: {}[] | undefined;
|
|
47
47
|
'data-mark-annotation-state': AnnotationMarkStates;
|
|
48
48
|
'data-has-focus': boolean;
|
|
49
49
|
'data-mark-type': string;
|
|
@@ -57,7 +57,7 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
|
|
|
57
57
|
'aria-disabled'?: undefined;
|
|
58
58
|
id: string;
|
|
59
59
|
} | {
|
|
60
|
-
css?:
|
|
60
|
+
css?: {}[] | undefined;
|
|
61
61
|
'data-mark-type': string;
|
|
62
62
|
'data-mark-annotation-type': import("@atlaskit/adf-schema").AnnotationTypes;
|
|
63
63
|
'data-id': string;
|
|
@@ -70,7 +70,7 @@ export declare const MarkComponent: ({ annotationParentIds, children, dataAttrib
|
|
|
70
70
|
'aria-disabled'?: undefined;
|
|
71
71
|
id: string;
|
|
72
72
|
} | {
|
|
73
|
-
css?:
|
|
73
|
+
css?: {}[] | undefined;
|
|
74
74
|
'data-mark-annotation-state': AnnotationMarkStates;
|
|
75
75
|
'data-has-focus': boolean;
|
|
76
76
|
'data-mark-type': string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "109.
|
|
3
|
+
"version": "109.39.0",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -24,22 +24,22 @@
|
|
|
24
24
|
"runReact18": true
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaskit/adf-schema": "^
|
|
28
|
-
"@atlaskit/adf-utils": "^19.
|
|
27
|
+
"@atlaskit/adf-schema": "^38.0.0",
|
|
28
|
+
"@atlaskit/adf-utils": "^19.4.0",
|
|
29
29
|
"@atlaskit/analytics-listeners": "^8.10.0",
|
|
30
30
|
"@atlaskit/analytics-namespaced-context": "^6.10.0",
|
|
31
31
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
32
32
|
"@atlaskit/button": "^18.0.0",
|
|
33
33
|
"@atlaskit/code": "^15.3.0",
|
|
34
|
-
"@atlaskit/editor-common": "^83.
|
|
35
|
-
"@atlaskit/editor-json-transformer": "^8.
|
|
34
|
+
"@atlaskit/editor-common": "^83.3.0",
|
|
35
|
+
"@atlaskit/editor-json-transformer": "^8.15.0",
|
|
36
36
|
"@atlaskit/editor-palette": "1.6.0",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
38
38
|
"@atlaskit/editor-shared-styles": "^2.12.0",
|
|
39
39
|
"@atlaskit/emoji": "^67.6.0",
|
|
40
40
|
"@atlaskit/feature-gate-js-client": "^4.18.0",
|
|
41
41
|
"@atlaskit/icon": "^22.5.0",
|
|
42
|
-
"@atlaskit/link-datasource": "^2.
|
|
42
|
+
"@atlaskit/link-datasource": "^2.5.0",
|
|
43
43
|
"@atlaskit/media-card": "^77.12.0",
|
|
44
44
|
"@atlaskit/media-client": "^27.3.0",
|
|
45
45
|
"@atlaskit/media-client-react": "^2.0.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@atlaskit/media-ui": "^25.10.0",
|
|
49
49
|
"@atlaskit/media-viewer": "^48.6.0",
|
|
50
50
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
51
|
-
"@atlaskit/smart-card": "^27.
|
|
51
|
+
"@atlaskit/smart-card": "^27.8.0",
|
|
52
52
|
"@atlaskit/status": "^1.4.0",
|
|
53
53
|
"@atlaskit/task-decision": "^17.10.0",
|
|
54
54
|
"@atlaskit/theme": "^12.11.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@af/visual-regression": "*",
|
|
74
74
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
75
75
|
"@atlaskit/css-reset": "^6.9.0",
|
|
76
|
-
"@atlaskit/editor-test-helpers": "^18.
|
|
76
|
+
"@atlaskit/editor-test-helpers": "^18.25.0",
|
|
77
77
|
"@atlaskit/link-provider": "^1.11.0",
|
|
78
78
|
"@atlaskit/link-test-helpers": "^7.0.0",
|
|
79
79
|
"@atlaskit/linking-common": "^5.7.0",
|