@atlaskit/editor-plugin-code-block 1.2.7 → 1.2.8

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,11 @@
1
1
  # @atlaskit/editor-plugin-code-block
2
2
 
3
+ ## 1.2.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 1.2.7
4
10
 
5
11
  ### Patch Changes
@@ -69,6 +69,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig() {
69
69
  var copyToClipboardItems = !allowCopyToClipboard ? [] : [{
70
70
  id: 'editor.codeBlock.copy',
71
71
  type: 'button',
72
+ supportsViewMode: true,
72
73
  appearance: 'subtle',
73
74
  icon: _copy.default,
74
75
  // note: copyContentToClipboard contains logic that also removes the
@@ -50,6 +50,7 @@ export const getToolbarConfig = (allowCopyToClipboard = false, api) => (state, {
50
50
  const copyToClipboardItems = !allowCopyToClipboard ? [] : [{
51
51
  id: 'editor.codeBlock.copy',
52
52
  type: 'button',
53
+ supportsViewMode: true,
53
54
  appearance: 'subtle',
54
55
  icon: CopyIcon,
55
56
  // note: copyContentToClipboard contains logic that also removes the
@@ -59,6 +59,7 @@ export var getToolbarConfig = function getToolbarConfig() {
59
59
  var copyToClipboardItems = !allowCopyToClipboard ? [] : [{
60
60
  id: 'editor.codeBlock.copy',
61
61
  type: 'button',
62
+ supportsViewMode: true,
62
63
  appearance: 'subtle',
63
64
  icon: CopyIcon,
64
65
  // note: copyContentToClipboard contains logic that also removes the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-code-block",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "Code block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^36.1.0",
37
37
  "@atlaskit/code": "^15.2.0",
38
- "@atlaskit/editor-common": "^79.2.0",
38
+ "@atlaskit/editor-common": "^80.0.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^1.1.0",
40
40
  "@atlaskit/editor-plugin-composition": "^1.1.0",
41
41
  "@atlaskit/editor-plugin-decorations": "^1.1.0",