@atlaskit/editor-plugin-emoji 1.0.2 → 1.0.4
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,18 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-emoji
|
|
2
2
|
|
|
3
|
+
## 1.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#64647](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/64647) [`f2cd17119b76`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f2cd17119b76) - [ECA11Y-15] Fixing screen reader announcement for Emoji
|
|
8
|
+
|
|
9
|
+
## 1.0.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#65031](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/65031) [`a00094111b5a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a00094111b5a) - ED-21609 Update adf-schema to 35.3.0
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 1.0.2
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -13,7 +13,9 @@ var EmojiAssistiveTextComponent = /*#__PURE__*/_react.default.memo(function (_re
|
|
|
13
13
|
var emojiShortName = _ref.emojiShortName;
|
|
14
14
|
var intl = (0, _reactIntlNext.useIntl)();
|
|
15
15
|
return /*#__PURE__*/_react.default.createElement("span", {
|
|
16
|
-
|
|
16
|
+
style: {
|
|
17
|
+
fontSize: 0
|
|
18
|
+
}
|
|
17
19
|
}, "".concat(intl.formatMessage(_messages.messages.emojiNodeLabel), " ").concat(emojiShortName));
|
|
18
20
|
});
|
|
19
21
|
function EmojiNodeView(props) {
|
|
@@ -23,9 +25,7 @@ function EmojiNodeView(props) {
|
|
|
23
25
|
text = _props$node$attrs.text;
|
|
24
26
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(EmojiAssistiveTextComponent, {
|
|
25
27
|
emojiShortName: shortName
|
|
26
|
-
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
27
|
-
"aria-hidden": "true"
|
|
28
|
-
}, /*#__PURE__*/_react.default.createElement(_Emoji.default, {
|
|
28
|
+
}), /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement(_Emoji.default, {
|
|
29
29
|
providers: props.providerFactory,
|
|
30
30
|
id: id,
|
|
31
31
|
shortName: shortName,
|
|
@@ -7,7 +7,9 @@ const EmojiAssistiveTextComponent = /*#__PURE__*/React.memo(({
|
|
|
7
7
|
}) => {
|
|
8
8
|
const intl = useIntl();
|
|
9
9
|
return /*#__PURE__*/React.createElement("span", {
|
|
10
|
-
|
|
10
|
+
style: {
|
|
11
|
+
fontSize: 0
|
|
12
|
+
}
|
|
11
13
|
}, `${intl.formatMessage(messages.emojiNodeLabel)} ${emojiShortName}`);
|
|
12
14
|
});
|
|
13
15
|
export function EmojiNodeView(props) {
|
|
@@ -18,9 +20,7 @@ export function EmojiNodeView(props) {
|
|
|
18
20
|
} = props.node.attrs;
|
|
19
21
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(EmojiAssistiveTextComponent, {
|
|
20
22
|
emojiShortName: shortName
|
|
21
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
22
|
-
"aria-hidden": "true"
|
|
23
|
-
}, /*#__PURE__*/React.createElement(Emoji, {
|
|
23
|
+
}), /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Emoji, {
|
|
24
24
|
providers: props.providerFactory,
|
|
25
25
|
id: id,
|
|
26
26
|
shortName: shortName,
|
|
@@ -6,7 +6,9 @@ var EmojiAssistiveTextComponent = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
6
6
|
var emojiShortName = _ref.emojiShortName;
|
|
7
7
|
var intl = useIntl();
|
|
8
8
|
return /*#__PURE__*/React.createElement("span", {
|
|
9
|
-
|
|
9
|
+
style: {
|
|
10
|
+
fontSize: 0
|
|
11
|
+
}
|
|
10
12
|
}, "".concat(intl.formatMessage(messages.emojiNodeLabel), " ").concat(emojiShortName));
|
|
11
13
|
});
|
|
12
14
|
export function EmojiNodeView(props) {
|
|
@@ -16,9 +18,7 @@ export function EmojiNodeView(props) {
|
|
|
16
18
|
text = _props$node$attrs.text;
|
|
17
19
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(EmojiAssistiveTextComponent, {
|
|
18
20
|
emojiShortName: shortName
|
|
19
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
20
|
-
"aria-hidden": "true"
|
|
21
|
-
}, /*#__PURE__*/React.createElement(Emoji, {
|
|
21
|
+
}), /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Emoji, {
|
|
22
22
|
providers: props.providerFactory,
|
|
23
23
|
id: id,
|
|
24
24
|
shortName: shortName,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-emoji",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Emoji plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"runReact18": false
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@atlaskit/adf-schema": "^35.
|
|
25
|
-
"@atlaskit/editor-common": "^76.
|
|
24
|
+
"@atlaskit/adf-schema": "^35.3.0",
|
|
25
|
+
"@atlaskit/editor-common": "^76.39.0",
|
|
26
26
|
"@atlaskit/editor-plugin-analytics": "^0.4.0",
|
|
27
27
|
"@atlaskit/editor-plugin-type-ahead": "^0.9.0",
|
|
28
28
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
"@atlaskit/ssr": "*",
|
|
43
43
|
"@atlaskit/util-data-test": "^17.8.0",
|
|
44
44
|
"@atlaskit/visual-regression": "*",
|
|
45
|
-
"@atlaskit/webdriver-runner": "*",
|
|
46
45
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
47
46
|
"@testing-library/react": "^12.1.5",
|
|
48
47
|
"react-dom": "^16.8.0",
|