@atlaskit/editor-plugin-code-block 9.0.26 → 9.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,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-code-block
|
|
2
2
|
|
|
3
|
+
## 9.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`f444a0d3e2c0b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f444a0d3e2c0b) -
|
|
8
|
+
[FFCLEANUP-79468] clean up platform_editor_dec_a11y_fixes feature gate
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 9.0.27
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 9.0.26
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -8,7 +8,6 @@ exports.WrapIcon = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _reactIntlNext = require("react-intl-next");
|
|
10
10
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
11
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
11
|
var CustomGlyph = function CustomGlyph() {
|
|
13
12
|
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
14
13
|
width: "24",
|
|
@@ -26,8 +25,7 @@ var CustomGlyph = function CustomGlyph() {
|
|
|
26
25
|
};
|
|
27
26
|
var WrapIcon = exports.WrapIcon = function WrapIcon() {
|
|
28
27
|
var intl = (0, _reactIntlNext.useIntl)();
|
|
29
|
-
var wrapIconLabel = (0, _platformFeatureFlags.fg)('platform_editor_dec_a11y_fixes') ? intl.formatMessage(_messages.blockMenuMessages.wrapIcon) : 'wrapIcon';
|
|
30
28
|
return /*#__PURE__*/_react.default.createElement(CustomGlyph, {
|
|
31
|
-
"aria-label":
|
|
29
|
+
"aria-label": intl.formatMessage(_messages.blockMenuMessages.wrapIcon)
|
|
32
30
|
});
|
|
33
31
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl-next';
|
|
3
3
|
import { blockMenuMessages } from '@atlaskit/editor-common/messages';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
const CustomGlyph = () => /*#__PURE__*/React.createElement("svg", {
|
|
6
5
|
width: "24",
|
|
7
6
|
height: "24",
|
|
@@ -17,8 +16,7 @@ const CustomGlyph = () => /*#__PURE__*/React.createElement("svg", {
|
|
|
17
16
|
})));
|
|
18
17
|
export const WrapIcon = () => {
|
|
19
18
|
const intl = useIntl();
|
|
20
|
-
const wrapIconLabel = fg('platform_editor_dec_a11y_fixes') ? intl.formatMessage(blockMenuMessages.wrapIcon) : 'wrapIcon';
|
|
21
19
|
return /*#__PURE__*/React.createElement(CustomGlyph, {
|
|
22
|
-
"aria-label":
|
|
20
|
+
"aria-label": intl.formatMessage(blockMenuMessages.wrapIcon)
|
|
23
21
|
});
|
|
24
22
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl-next';
|
|
3
3
|
import { blockMenuMessages } from '@atlaskit/editor-common/messages';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
var CustomGlyph = function CustomGlyph() {
|
|
6
5
|
return /*#__PURE__*/React.createElement("svg", {
|
|
7
6
|
width: "24",
|
|
@@ -19,8 +18,7 @@ var CustomGlyph = function CustomGlyph() {
|
|
|
19
18
|
};
|
|
20
19
|
export var WrapIcon = function WrapIcon() {
|
|
21
20
|
var intl = useIntl();
|
|
22
|
-
var wrapIconLabel = fg('platform_editor_dec_a11y_fixes') ? intl.formatMessage(blockMenuMessages.wrapIcon) : 'wrapIcon';
|
|
23
21
|
return /*#__PURE__*/React.createElement(CustomGlyph, {
|
|
24
|
-
"aria-label":
|
|
22
|
+
"aria-label": intl.formatMessage(blockMenuMessages.wrapIcon)
|
|
25
23
|
});
|
|
26
24
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-code-block",
|
|
3
|
-
"version": "9.0
|
|
3
|
+
"version": "9.1.0",
|
|
4
4
|
"description": "Code block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"@atlaskit/icon": "^32.0.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
45
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^34.4.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@atlaskit/editor-common": "^111.
|
|
50
|
+
"@atlaskit/editor-common": "^111.30.0",
|
|
51
51
|
"react": "^18.2.0",
|
|
52
52
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
53
53
|
},
|
|
@@ -104,9 +104,6 @@
|
|
|
104
104
|
},
|
|
105
105
|
"platform_editor_block_menu_v2_patch_3": {
|
|
106
106
|
"type": "boolean"
|
|
107
|
-
},
|
|
108
|
-
"platform_editor_dec_a11y_fixes": {
|
|
109
|
-
"type": "boolean"
|
|
110
107
|
}
|
|
111
108
|
}
|
|
112
109
|
}
|