@atlaskit/editor-plugin-block-controls 1.4.4 → 1.4.5

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-plugin-block-controls
2
2
 
3
+ ## 1.4.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#103935](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103935)
8
+ [`e9aa08ecec9b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e9aa08ecec9b) -
9
+ Add block control plugin libra models and tests
10
+
3
11
  ## 1.4.4
4
12
 
5
13
  ### Patch Changes
@@ -78,6 +78,7 @@ var dragHandleDecoration = exports.dragHandleDecoration = function dragHandleDec
78
78
  } else {
79
79
  element.style.top = "".concat(meta.dom.offsetTop, "px");
80
80
  }
81
+ element.setAttribute('data-testid', 'block-ctrl-decorator-widget');
81
82
  return element;
82
83
  }, {
83
84
  side: -1
@@ -122,7 +122,8 @@ var DragHandle = exports.DragHandle = function DragHandle(_ref) {
122
122
  type: "button",
123
123
  css: [dragHandleButtonStyles, dragHandleSelected && selectedStyles],
124
124
  ref: buttonRef,
125
- onClick: handleClick
125
+ onClick: handleClick,
126
+ "data-testid": "block-ctrl-drag-handle"
126
127
  }, (0, _react2.jsx)(_dragHandler.default, {
127
128
  label: "",
128
129
  size: "medium"
@@ -71,6 +71,7 @@ export const dragHandleDecoration = (oldState, meta, api) => {
71
71
  } else {
72
72
  element.style.top = `${meta.dom.offsetTop}px`;
73
73
  }
74
+ element.setAttribute('data-testid', 'block-ctrl-decorator-widget');
74
75
  return element;
75
76
  }, {
76
77
  side: -1
@@ -114,7 +114,8 @@ export const DragHandle = ({
114
114
  type: "button",
115
115
  css: [dragHandleButtonStyles, dragHandleSelected && selectedStyles],
116
116
  ref: buttonRef,
117
- onClick: handleClick
117
+ onClick: handleClick,
118
+ "data-testid": "block-ctrl-drag-handle"
118
119
  }, jsx(DragHandlerIcon, {
119
120
  label: "",
120
121
  size: "medium"
@@ -71,6 +71,7 @@ export var dragHandleDecoration = function dragHandleDecoration(oldState, meta,
71
71
  } else {
72
72
  element.style.top = "".concat(meta.dom.offsetTop, "px");
73
73
  }
74
+ element.setAttribute('data-testid', 'block-ctrl-decorator-widget');
74
75
  return element;
75
76
  }, {
76
77
  side: -1
@@ -114,7 +114,8 @@ export var DragHandle = function DragHandle(_ref) {
114
114
  type: "button",
115
115
  css: [dragHandleButtonStyles, dragHandleSelected && selectedStyles],
116
116
  ref: buttonRef,
117
- onClick: handleClick
117
+ onClick: handleClick,
118
+ "data-testid": "block-ctrl-drag-handle"
118
119
  }, jsx(DragHandlerIcon, {
119
120
  label: "",
120
121
  size: "medium"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-controls",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "description": "Block controls plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",