@atlaskit/editor-plugin-code-block 1.2.7 → 1.3.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,23 @@
1
1
  # @atlaskit/editor-plugin-code-block
2
2
 
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#99579](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99579)
8
+ [`f222af5687e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f222af5687e9) -
9
+ Bump adf-schema to 36.3.0 and adf-schema-json to 1.14.0
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 1.2.8
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 1.2.7
4
22
 
5
23
  ### 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.3.0",
4
4
  "description": "Code block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,15 +33,15 @@
33
33
  ".": "./src/index.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/adf-schema": "^36.1.0",
36
+ "@atlaskit/adf-schema": "^36.3.0",
37
37
  "@atlaskit/code": "^15.2.0",
38
- "@atlaskit/editor-common": "^79.2.0",
39
- "@atlaskit/editor-plugin-analytics": "^1.1.0",
38
+ "@atlaskit/editor-common": "^80.1.0",
39
+ "@atlaskit/editor-plugin-analytics": "^1.2.0",
40
40
  "@atlaskit/editor-plugin-composition": "^1.1.0",
41
41
  "@atlaskit/editor-plugin-decorations": "^1.1.0",
42
42
  "@atlaskit/editor-plugin-editor-disabled": "^1.1.0",
43
43
  "@atlaskit/editor-prosemirror": "4.0.1",
44
- "@atlaskit/icon": "^22.1.0",
44
+ "@atlaskit/icon": "^22.2.0",
45
45
  "@atlaskit/platform-feature-flags": "^0.2.0",
46
46
  "@atlaskit/prosemirror-input-rules": "^3.1.0",
47
47
  "@babel/runtime": "^7.0.0",