@atlaskit/editor-plugin-code-block 10.0.23 → 10.0.24

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,14 @@
1
1
  # @atlaskit/editor-plugin-code-block
2
2
 
3
+ ## 10.0.24
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ce68e4cf353de`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ce68e4cf353de) -
8
+ Clean up feature gate `editor_a11y_remove_unwrap_button` - always show 'Turn on wrap' as the wrap
9
+ button title (final value: true).
10
+ - Updated dependencies
11
+
3
12
  ## 10.0.23
4
13
 
5
14
  ### Patch Changes
@@ -15,7 +15,6 @@ var _utils = require("@atlaskit/editor-prosemirror/utils");
15
15
  var _copy = _interopRequireDefault(require("@atlaskit/icon/core/copy"));
16
16
  var _delete = _interopRequireDefault(require("@atlaskit/icon/core/delete"));
17
17
  var _textWrap = _interopRequireDefault(require("@atlaskit/icon/core/text-wrap"));
18
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
19
18
  var _editorCommands = require("../editor-commands");
20
19
  var _WrapIcon = require("../ui/icons/WrapIcon");
21
20
  var _codeBlockCopySelectionPlugin = require("./codeBlockCopySelectionPlugin");
@@ -161,7 +160,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig() {
161
160
  icon: _textWrap.default,
162
161
  iconFallback: _WrapIcon.WrapIcon,
163
162
  onClick: (0, _editorCommands.toggleWordWrapStateForCodeBlockNode)(editorAnalyticsAPI),
164
- title: (0, _platformFeatureFlags.fg)('editor_a11y_remove_unwrap_button') ? formatMessage(_messages.codeBlockButtonMessages.wrapCode) : isWrapped ? formatMessage(_messages.codeBlockButtonMessages.unwrapCode) : formatMessage(_messages.codeBlockButtonMessages.wrapCode),
163
+ title: formatMessage(_messages.codeBlockButtonMessages.wrapCode),
165
164
  tabIndex: null,
166
165
  selected: isWrapped
167
166
  };
@@ -5,7 +5,6 @@ import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
5
5
  import CopyIcon from '@atlaskit/icon/core/copy';
6
6
  import DeleteIcon from '@atlaskit/icon/core/delete';
7
7
  import TextWrapIcon from '@atlaskit/icon/core/text-wrap';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
8
  import { changeLanguage, copyContentToClipboardWithAnalytics, removeCodeBlockWithAnalytics, resetCopiedState, toggleWordWrapStateForCodeBlockNode } from '../editor-commands';
10
9
  import { WrapIcon } from '../ui/icons/WrapIcon';
11
10
  import { provideVisualFeedbackForCopyButton, removeVisualFeedbackForCopyButton } from './codeBlockCopySelectionPlugin';
@@ -137,7 +136,7 @@ export const getToolbarConfig = (allowCopyToClipboard = false, api, overrideLang
137
136
  icon: TextWrapIcon,
138
137
  iconFallback: WrapIcon,
139
138
  onClick: toggleWordWrapStateForCodeBlockNode(editorAnalyticsAPI),
140
- title: fg('editor_a11y_remove_unwrap_button') ? formatMessage(codeBlockButtonMessages.wrapCode) : isWrapped ? formatMessage(codeBlockButtonMessages.unwrapCode) : formatMessage(codeBlockButtonMessages.wrapCode),
139
+ title: formatMessage(codeBlockButtonMessages.wrapCode),
141
140
  tabIndex: null,
142
141
  selected: isWrapped
143
142
  };
@@ -9,7 +9,6 @@ import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
9
9
  import CopyIcon from '@atlaskit/icon/core/copy';
10
10
  import DeleteIcon from '@atlaskit/icon/core/delete';
11
11
  import TextWrapIcon from '@atlaskit/icon/core/text-wrap';
12
- import { fg } from '@atlaskit/platform-feature-flags';
13
12
  import { changeLanguage, copyContentToClipboardWithAnalytics, removeCodeBlockWithAnalytics, resetCopiedState, toggleWordWrapStateForCodeBlockNode } from '../editor-commands';
14
13
  import { WrapIcon } from '../ui/icons/WrapIcon';
15
14
  import { provideVisualFeedbackForCopyButton, removeVisualFeedbackForCopyButton } from './codeBlockCopySelectionPlugin';
@@ -152,7 +151,7 @@ export var getToolbarConfig = function getToolbarConfig() {
152
151
  icon: TextWrapIcon,
153
152
  iconFallback: WrapIcon,
154
153
  onClick: toggleWordWrapStateForCodeBlockNode(editorAnalyticsAPI),
155
- title: fg('editor_a11y_remove_unwrap_button') ? formatMessage(codeBlockButtonMessages.wrapCode) : isWrapped ? formatMessage(codeBlockButtonMessages.unwrapCode) : formatMessage(codeBlockButtonMessages.wrapCode),
154
+ title: formatMessage(codeBlockButtonMessages.wrapCode),
156
155
  tabIndex: null,
157
156
  selected: isWrapped
158
157
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-code-block",
3
- "version": "10.0.23",
3
+ "version": "10.0.24",
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": "^34.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": "^54.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^54.5.0",
47
47
  "@babel/runtime": "^7.0.0"
48
48
  },
49
49
  "peerDependencies": {
50
- "@atlaskit/editor-common": "^112.16.0",
50
+ "@atlaskit/editor-common": "^112.18.0",
51
51
  "react": "^18.2.0",
52
52
  "react-intl-next": "npm:react-intl@^5.18.1"
53
53
  },
@@ -96,9 +96,6 @@
96
96
  "code_block_auto_insertion_bug_fix": {
97
97
  "type": "boolean"
98
98
  },
99
- "editor_a11y_remove_unwrap_button": {
100
- "type": "boolean"
101
- },
102
99
  "platform_editor_adf_with_localid": {
103
100
  "type": "boolean"
104
101
  },