@atlaskit/editor-plugin-code-block 32.0.2 → 32.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,21 @@
1
1
  # @atlaskit/editor-plugin-code-block
2
2
 
3
+ ## 32.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 32.0.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [`b8ac7a24c7645`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b8ac7a24c7645) -
14
+ Clean up experiment `platform_editor_a11y_codeblock_copy_name`
15
+ - [`7efec208f3bb4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7efec208f3bb4) -
16
+ Remove unused runtime dependencies
17
+ - Updated dependencies
18
+
3
19
  ## 32.0.2
4
20
 
5
21
  ### Patch Changes
@@ -18,7 +18,6 @@ var _copy = _interopRequireDefault(require("@atlaskit/icon/core/copy"));
18
18
  var _delete = _interopRequireDefault(require("@atlaskit/icon/core/delete"));
19
19
  var _listNumbered = _interopRequireDefault(require("@atlaskit/icon/core/list-numbered"));
20
20
  var _textWrap = _interopRequireDefault(require("@atlaskit/icon/core/text-wrap"));
21
- var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
22
21
  var _fg = require("@atlaskit/platform-feature-flags/fg");
23
22
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
24
23
  var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
@@ -189,7 +188,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig() {
189
188
  // note: copyContentToClipboardWithAnalytics contains logic that also removes the
190
189
  // visual feedback for the copy button
191
190
  onClick: (0, _editorCommands.copyContentToClipboardWithAnalytics)(editorAnalyticsAPI),
192
- title: formatMessage(codeBlockState.contentCopied ? _codeBlockButton.codeBlockButtonMessages.copiedCodeToClipboard : (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_a11y_codeblock_copy_name') ? _codeBlockButton.codeBlockButtonMessages.copyCodeSnippetToClipboard : _codeBlockButton.codeBlockButtonMessages.copyCodeToClipboard),
191
+ title: formatMessage(codeBlockState.contentCopied ? _codeBlockButton.codeBlockButtonMessages.copiedCodeToClipboard : _codeBlockButton.codeBlockButtonMessages.copyCodeSnippetToClipboard),
193
192
  onMouseEnter: _codeBlockCopySelectionPlugin.provideVisualFeedbackForCopyButton,
194
193
  // note: resetCopiedState contains logic that also removes the
195
194
  // visual feedback for the copy button
@@ -216,7 +215,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig() {
216
215
  }];
217
216
  if (allowCopyToClipboard) {
218
217
  overflowMenuOptions.unshift({
219
- title: formatMessage((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_a11y_codeblock_copy_name') ? _codeBlockButton.codeBlockButtonMessages.copyCodeSnippetToClipboard : _messages.default.copyToClipboard),
218
+ title: formatMessage(_codeBlockButton.codeBlockButtonMessages.copyCodeSnippetToClipboard),
220
219
  onClick: (0, _editorCommands.copyContentToClipboardWithAnalytics)(editorAnalyticsAPI),
221
220
  icon: (0, _copy.default)({
222
221
  label: ''
@@ -9,7 +9,6 @@ import CopyIcon from '@atlaskit/icon/core/copy';
9
9
  import DeleteIcon from '@atlaskit/icon/core/delete';
10
10
  import ListNumberedIcon from '@atlaskit/icon/core/list-numbered';
11
11
  import TextWrapIcon from '@atlaskit/icon/core/text-wrap';
12
- import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
13
12
  import { fg } from '@atlaskit/platform-feature-flags/fg';
14
13
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
15
14
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
@@ -161,7 +160,7 @@ export const getToolbarConfig = (allowCopyToClipboard = false, api, overrideLang
161
160
  // note: copyContentToClipboardWithAnalytics contains logic that also removes the
162
161
  // visual feedback for the copy button
163
162
  onClick: copyContentToClipboardWithAnalytics(editorAnalyticsAPI),
164
- title: formatMessage(codeBlockState.contentCopied ? codeBlockButtonMessages.copiedCodeToClipboard : isExperimentEnabled('platform_editor_a11y_codeblock_copy_name') ? codeBlockButtonMessages.copyCodeSnippetToClipboard : codeBlockButtonMessages.copyCodeToClipboard),
163
+ title: formatMessage(codeBlockState.contentCopied ? codeBlockButtonMessages.copiedCodeToClipboard : codeBlockButtonMessages.copyCodeSnippetToClipboard),
165
164
  onMouseEnter: provideVisualFeedbackForCopyButton,
166
165
  // note: resetCopiedState contains logic that also removes the
167
166
  // visual feedback for the copy button
@@ -188,7 +187,7 @@ export const getToolbarConfig = (allowCopyToClipboard = false, api, overrideLang
188
187
  }];
189
188
  if (allowCopyToClipboard) {
190
189
  overflowMenuOptions.unshift({
191
- title: formatMessage(isExperimentEnabled('platform_editor_a11y_codeblock_copy_name') ? codeBlockButtonMessages.copyCodeSnippetToClipboard : commonMessages.copyToClipboard),
190
+ title: formatMessage(codeBlockButtonMessages.copyCodeSnippetToClipboard),
192
191
  onClick: copyContentToClipboardWithAnalytics(editorAnalyticsAPI),
193
192
  icon: CopyIcon({
194
193
  label: ''
@@ -13,7 +13,6 @@ import CopyIcon from '@atlaskit/icon/core/copy';
13
13
  import DeleteIcon from '@atlaskit/icon/core/delete';
14
14
  import ListNumberedIcon from '@atlaskit/icon/core/list-numbered';
15
15
  import TextWrapIcon from '@atlaskit/icon/core/text-wrap';
16
- import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
17
16
  import { fg } from '@atlaskit/platform-feature-flags/fg';
18
17
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
19
18
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
@@ -182,7 +181,7 @@ export var getToolbarConfig = function getToolbarConfig() {
182
181
  // note: copyContentToClipboardWithAnalytics contains logic that also removes the
183
182
  // visual feedback for the copy button
184
183
  onClick: copyContentToClipboardWithAnalytics(editorAnalyticsAPI),
185
- title: formatMessage(codeBlockState.contentCopied ? codeBlockButtonMessages.copiedCodeToClipboard : isExperimentEnabled('platform_editor_a11y_codeblock_copy_name') ? codeBlockButtonMessages.copyCodeSnippetToClipboard : codeBlockButtonMessages.copyCodeToClipboard),
184
+ title: formatMessage(codeBlockState.contentCopied ? codeBlockButtonMessages.copiedCodeToClipboard : codeBlockButtonMessages.copyCodeSnippetToClipboard),
186
185
  onMouseEnter: provideVisualFeedbackForCopyButton,
187
186
  // note: resetCopiedState contains logic that also removes the
188
187
  // visual feedback for the copy button
@@ -209,7 +208,7 @@ export var getToolbarConfig = function getToolbarConfig() {
209
208
  }];
210
209
  if (allowCopyToClipboard) {
211
210
  overflowMenuOptions.unshift({
212
- title: formatMessage(isExperimentEnabled('platform_editor_a11y_codeblock_copy_name') ? codeBlockButtonMessages.copyCodeSnippetToClipboard : commonMessages.copyToClipboard),
211
+ title: formatMessage(codeBlockButtonMessages.copyCodeSnippetToClipboard),
213
212
  onClick: copyContentToClipboardWithAnalytics(editorAnalyticsAPI),
214
213
  icon: CopyIcon({
215
214
  label: ''
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-code-block",
3
- "version": "32.0.2",
3
+ "version": "32.0.4",
4
4
  "description": "Code block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -22,7 +22,6 @@
22
22
  "@atlaskit/adf-schema": "^57.7.0",
23
23
  "@atlaskit/button": "^25.6.0",
24
24
  "@atlaskit/code": "^20.0.0",
25
- "@atlaskit/css": "^1.1.0",
26
25
  "@atlaskit/editor-plugin-analytics": "^30.0.0",
27
26
  "@atlaskit/editor-plugin-block-menu": "^29.0.0",
28
27
  "@atlaskit/editor-plugin-composition": "^29.0.0",
@@ -45,13 +44,13 @@
45
44
  "@atlaskit/prosemirror-input-rules": "^4.1.0",
46
45
  "@atlaskit/react-select": "^4.12.0",
47
46
  "@atlaskit/select": "^23.1.0",
48
- "@atlaskit/tmp-editor-statsig": "^248.0.0",
47
+ "@atlaskit/tmp-editor-statsig": "^249.0.0",
49
48
  "@atlaskit/tokens": "^20.8.0",
50
49
  "@babel/runtime": "^7.0.0",
51
50
  "@compiled/react": "^1.0.2"
52
51
  },
53
52
  "peerDependencies": {
54
- "@atlaskit/editor-common": "^134.1.0",
53
+ "@atlaskit/editor-common": "^134.2.0",
55
54
  "react": "^18.2.0 || ^19.2.0",
56
55
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
57
56
  },