@atlaskit/editor-core 187.30.5 → 187.30.6

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,13 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 187.30.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c77b39ff19f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c77b39ff19f) - [ux] [ED-19130] Fix up gap cursor positioning for breakout nodes
8
+ - [`33cb07de05f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/33cb07de05f) - change adf-schema to fixed versioning
9
+ - Updated dependencies
10
+
3
11
  ## 187.30.5
4
12
 
5
13
  ### Patch Changes
@@ -15,7 +15,10 @@ var _selection = require("../selection");
15
15
  */
16
16
  var nestedCases = {
17
17
  'tableView-content-wrap': 'table',
18
- 'mediaSingleView-content-wrap': '.rich-media-item'
18
+ 'mediaSingleView-content-wrap': '.rich-media-item',
19
+ 'bodiedExtensionView-content-wrap': '.extension-container',
20
+ 'embedCardView-content-wrap': '.rich-media-item',
21
+ 'datasourceView-content-wrap': '.datasourceView-content-inner-wrap'
19
22
  };
20
23
  var computeNestedStyle = function computeNestedStyle(dom) {
21
24
  var foundKey = Object.keys(nestedCases).find(function (className) {
@@ -80,12 +83,12 @@ var toDOM = function toDOM(view, getPos) {
80
83
  var style = computeNestedStyle(dom) || window.getComputedStyle(dom);
81
84
  var gapCursor = element.firstChild;
82
85
  gapCursor.style.height = "".concat(measureHeight(style), "px");
86
+ var layoutMode = node && (0, _utils.getLayoutModeFromTargetNode)(node);
83
87
 
84
88
  // TODO remove this table specific piece. need to figure out margin collapsing logic
85
- if (nodeStart !== 0 || node && node.type.name === 'table') {
89
+ if (nodeStart !== 0 || layoutMode || (node === null || node === void 0 ? void 0 : node.type.name) === 'table') {
86
90
  gapCursor.style.marginTop = style.getPropertyValue('margin-top');
87
91
  }
88
- var layoutMode = node && (0, _utils.getLayoutModeFromTargetNode)(node);
89
92
  if (layoutMode) {
90
93
  gapCursor.setAttribute('layout', layoutMode);
91
94
  gapCursor.style.width = "".concat(measureWidth(style), "px");
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.nextMajorVersion = exports.name = void 0;
7
7
  var name = "@atlaskit/editor-core";
8
8
  exports.name = name;
9
- var version = "187.30.5";
9
+ var version = "187.30.6";
10
10
  exports.version = version;
11
11
  var nextMajorVersion = function nextMajorVersion() {
12
12
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
@@ -8,7 +8,10 @@ import { Side } from '../selection';
8
8
  */
9
9
  const nestedCases = {
10
10
  'tableView-content-wrap': 'table',
11
- 'mediaSingleView-content-wrap': '.rich-media-item'
11
+ 'mediaSingleView-content-wrap': '.rich-media-item',
12
+ 'bodiedExtensionView-content-wrap': '.extension-container',
13
+ 'embedCardView-content-wrap': '.rich-media-item',
14
+ 'datasourceView-content-wrap': '.datasourceView-content-inner-wrap'
12
15
  };
13
16
  const computeNestedStyle = dom => {
14
17
  const foundKey = Object.keys(nestedCases).find(className => dom.classList.contains(className));
@@ -71,12 +74,12 @@ export const toDOM = (view, getPos) => {
71
74
  const style = computeNestedStyle(dom) || window.getComputedStyle(dom);
72
75
  const gapCursor = element.firstChild;
73
76
  gapCursor.style.height = `${measureHeight(style)}px`;
77
+ const layoutMode = node && getLayoutModeFromTargetNode(node);
74
78
 
75
79
  // TODO remove this table specific piece. need to figure out margin collapsing logic
76
- if (nodeStart !== 0 || node && node.type.name === 'table') {
80
+ if (nodeStart !== 0 || layoutMode || (node === null || node === void 0 ? void 0 : node.type.name) === 'table') {
77
81
  gapCursor.style.marginTop = style.getPropertyValue('margin-top');
78
82
  }
79
- const layoutMode = node && getLayoutModeFromTargetNode(node);
80
83
  if (layoutMode) {
81
84
  gapCursor.setAttribute('layout', layoutMode);
82
85
  gapCursor.style.width = `${measureWidth(style)}px`;
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "187.30.5";
2
+ export const version = "187.30.6";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -9,7 +9,10 @@ import { Side } from '../selection';
9
9
  */
10
10
  var nestedCases = {
11
11
  'tableView-content-wrap': 'table',
12
- 'mediaSingleView-content-wrap': '.rich-media-item'
12
+ 'mediaSingleView-content-wrap': '.rich-media-item',
13
+ 'bodiedExtensionView-content-wrap': '.extension-container',
14
+ 'embedCardView-content-wrap': '.rich-media-item',
15
+ 'datasourceView-content-wrap': '.datasourceView-content-inner-wrap'
13
16
  };
14
17
  var computeNestedStyle = function computeNestedStyle(dom) {
15
18
  var foundKey = Object.keys(nestedCases).find(function (className) {
@@ -74,12 +77,12 @@ export var toDOM = function toDOM(view, getPos) {
74
77
  var style = computeNestedStyle(dom) || window.getComputedStyle(dom);
75
78
  var gapCursor = element.firstChild;
76
79
  gapCursor.style.height = "".concat(measureHeight(style), "px");
80
+ var layoutMode = node && getLayoutModeFromTargetNode(node);
77
81
 
78
82
  // TODO remove this table specific piece. need to figure out margin collapsing logic
79
- if (nodeStart !== 0 || node && node.type.name === 'table') {
83
+ if (nodeStart !== 0 || layoutMode || (node === null || node === void 0 ? void 0 : node.type.name) === 'table') {
80
84
  gapCursor.style.marginTop = style.getPropertyValue('margin-top');
81
85
  }
82
- var layoutMode = node && getLayoutModeFromTargetNode(node);
83
86
  if (layoutMode) {
84
87
  gapCursor.setAttribute('layout', layoutMode);
85
88
  gapCursor.style.width = "".concat(measureWidth(style), "px");
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "187.30.5";
2
+ export var version = "187.30.6";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "187.30.5",
3
+ "version": "187.30.6",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@atlaskit/activity-provider": "^2.4.0",
43
- "@atlaskit/adf-schema": "^28.1.0",
43
+ "@atlaskit/adf-schema": "28.1.2",
44
44
  "@atlaskit/adf-utils": "^19.0.0",
45
45
  "@atlaskit/analytics-gas-types": "^5.1.0",
46
46
  "@atlaskit/analytics-listeners": "^8.7.0",
@@ -62,7 +62,7 @@
62
62
  "@atlaskit/editor-plugin-analytics": "^0.1.0",
63
63
  "@atlaskit/editor-plugin-card": "^0.4.0",
64
64
  "@atlaskit/editor-plugin-composition": "^0.0.1",
65
- "@atlaskit/editor-plugin-content-insertion": "^0.0.8",
65
+ "@atlaskit/editor-plugin-content-insertion": "^0.0.9",
66
66
  "@atlaskit/editor-plugin-context-panel": "^0.1.0",
67
67
  "@atlaskit/editor-plugin-decorations": "^0.1.0",
68
68
  "@atlaskit/editor-plugin-editor-disabled": "^0.1.0",
@@ -147,7 +147,7 @@
147
147
  "@af/editor-libra": "*",
148
148
  "@af/integration-testing": "*",
149
149
  "@atlaskit/code": "^14.6.0",
150
- "@atlaskit/collab-provider": "9.11.0",
150
+ "@atlaskit/collab-provider": "9.11.1",
151
151
  "@atlaskit/dropdown-menu": "^11.11.0",
152
152
  "@atlaskit/editor-extension-dropbox": "^0.4.0",
153
153
  "@atlaskit/editor-plugin-table": "^2.10.0",