@atlaskit/editor-plugin-code-block 0.1.20 → 1.0.1

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
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#73044](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/73044) [`0fff4efc0417`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0fff4efc0417) - [ux] ED-22131 Fixed selection placement when codeblock inserted through quick-insert inside panel
8
+ - Updated dependencies
9
+
10
+ ## 1.0.0
11
+
12
+ ### Major Changes
13
+
14
+ - [#72386](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72386) [`0c52b0be40c1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c52b0be40c1) - This changeset exists to bump all editor plugins that currently don't have a major version. This is to address an issue with Jira plugin consumption.
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 0.1.20
4
21
 
5
22
  ### Patch Changes
@@ -176,7 +176,7 @@ function contentAllowedInCodeBlock(state) {
176
176
  if (!isAllowedChild) {
177
177
  return false;
178
178
  }
179
- return isAllowedChild = node.type === state.schema.nodes.listItem || node.type === state.schema.nodes.bulletList || node.type === state.schema.nodes.orderedList || node.type === state.schema.nodes.paragraph || node.isInline || node.isText;
179
+ return isAllowedChild = node.type === state.schema.nodes.listItem || node.type === state.schema.nodes.bulletList || node.type === state.schema.nodes.orderedList || node.type === state.schema.nodes.paragraph || node.isInline || node.type === state.schema.nodes.panel || node.isText;
180
180
  });
181
181
  return isAllowedChild;
182
182
  }
@@ -186,7 +186,7 @@ function contentAllowedInCodeBlock(state) {
186
186
  if (!isAllowedChild) {
187
187
  return false;
188
188
  }
189
- return isAllowedChild = node.type === state.schema.nodes.listItem || node.type === state.schema.nodes.bulletList || node.type === state.schema.nodes.orderedList || node.type === state.schema.nodes.paragraph || node.isInline || node.isText;
189
+ return isAllowedChild = node.type === state.schema.nodes.listItem || node.type === state.schema.nodes.bulletList || node.type === state.schema.nodes.orderedList || node.type === state.schema.nodes.paragraph || node.isInline || node.type === state.schema.nodes.panel || node.isText;
190
190
  });
191
191
  return isAllowedChild;
192
192
  }
@@ -166,7 +166,7 @@ function contentAllowedInCodeBlock(state) {
166
166
  if (!isAllowedChild) {
167
167
  return false;
168
168
  }
169
- return isAllowedChild = node.type === state.schema.nodes.listItem || node.type === state.schema.nodes.bulletList || node.type === state.schema.nodes.orderedList || node.type === state.schema.nodes.paragraph || node.isInline || node.isText;
169
+ return isAllowedChild = node.type === state.schema.nodes.listItem || node.type === state.schema.nodes.bulletList || node.type === state.schema.nodes.orderedList || node.type === state.schema.nodes.paragraph || node.isInline || node.type === state.schema.nodes.panel || node.isText;
170
170
  });
171
171
  return isAllowedChild;
172
172
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-code-block",
3
- "version": "0.1.20",
3
+ "version": "1.0.1",
4
4
  "description": "Code block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,10 +35,10 @@
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^35.5.1",
37
37
  "@atlaskit/code": "^15.1.0",
38
- "@atlaskit/editor-common": "^77.3.0",
39
- "@atlaskit/editor-plugin-analytics": "^0.4.0",
40
- "@atlaskit/editor-plugin-composition": "^0.1.0",
41
- "@atlaskit/editor-plugin-decorations": "^0.2.0",
38
+ "@atlaskit/editor-common": "^77.5.0",
39
+ "@atlaskit/editor-plugin-analytics": "^1.0.0",
40
+ "@atlaskit/editor-plugin-composition": "^1.0.0",
41
+ "@atlaskit/editor-plugin-decorations": "^1.0.0",
42
42
  "@atlaskit/editor-prosemirror": "3.0.0",
43
43
  "@atlaskit/icon": "^22.0.0",
44
44
  "@atlaskit/prosemirror-input-rules": "^2.4.0",