@atlaskit/editor-core 172.1.1 → 172.1.2
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 +6 -0
- package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +10 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +10 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/plugins/media/nodeviews/mediaSingle.js +10 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 172.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`764bb2b1267`](https://bitbucket.org/atlassian/atlassian-frontend/commits/764bb2b1267) - Fixed a bug where toolbar would disappear / break when mediaSingle is resized
|
|
8
|
+
|
|
3
9
|
## 172.1.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -286,6 +286,16 @@ var MediaSingleNode = /*#__PURE__*/function (_Component) {
|
|
|
286
286
|
width: width
|
|
287
287
|
}));
|
|
288
288
|
tr.setMeta('scrollIntoView', false);
|
|
289
|
+
/**
|
|
290
|
+
* Any changes to attributes of a node count the node as "recreated" in Prosemirror[1]
|
|
291
|
+
* This makes it so Prosemirror resets the selection to the child i.e. "media" instead of "media-single"
|
|
292
|
+
* The recommended fix is to reset the selection.[2]
|
|
293
|
+
*
|
|
294
|
+
* [1] https://discuss.prosemirror.net/t/setnodemarkup-loses-current-nodeselection/976
|
|
295
|
+
* [2] https://discuss.prosemirror.net/t/setnodemarkup-and-deselect/3673
|
|
296
|
+
*/
|
|
297
|
+
|
|
298
|
+
tr.setSelection(_prosemirrorState.NodeSelection.create(tr.doc, pos));
|
|
289
299
|
return dispatch(tr);
|
|
290
300
|
});
|
|
291
301
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "clickPlaceholder", function () {
|
|
@@ -46,7 +46,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
46
46
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
47
47
|
|
|
48
48
|
var packageName = "@atlaskit/editor-core";
|
|
49
|
-
var packageVersion = "172.1.
|
|
49
|
+
var packageVersion = "172.1.2";
|
|
50
50
|
var halfFocusRing = 1;
|
|
51
51
|
var dropOffset = "0, ".concat((0, _constants.gridSize)(), "px");
|
|
52
52
|
|
|
@@ -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 = "172.1.
|
|
9
|
+
var version = "172.1.2";
|
|
10
10
|
exports.version = version;
|
|
11
11
|
|
|
12
12
|
var nextMajorVersion = function nextMajorVersion() {
|
package/dist/cjs/version.json
CHANGED
|
@@ -148,6 +148,16 @@ export default class MediaSingleNode extends Component {
|
|
|
148
148
|
width
|
|
149
149
|
});
|
|
150
150
|
tr.setMeta('scrollIntoView', false);
|
|
151
|
+
/**
|
|
152
|
+
* Any changes to attributes of a node count the node as "recreated" in Prosemirror[1]
|
|
153
|
+
* This makes it so Prosemirror resets the selection to the child i.e. "media" instead of "media-single"
|
|
154
|
+
* The recommended fix is to reset the selection.[2]
|
|
155
|
+
*
|
|
156
|
+
* [1] https://discuss.prosemirror.net/t/setnodemarkup-loses-current-nodeselection/976
|
|
157
|
+
* [2] https://discuss.prosemirror.net/t/setnodemarkup-and-deselect/3673
|
|
158
|
+
*/
|
|
159
|
+
|
|
160
|
+
tr.setSelection(NodeSelection.create(tr.doc, pos));
|
|
151
161
|
return dispatch(tr);
|
|
152
162
|
});
|
|
153
163
|
|
|
@@ -10,7 +10,7 @@ import { N0, DN50, DN600, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
|
10
10
|
import { themed } from '@atlaskit/theme/components';
|
|
11
11
|
import { token } from '@atlaskit/tokens';
|
|
12
12
|
const packageName = "@atlaskit/editor-core";
|
|
13
|
-
const packageVersion = "172.1.
|
|
13
|
+
const packageVersion = "172.1.2";
|
|
14
14
|
const halfFocusRing = 1;
|
|
15
15
|
const dropOffset = `0, ${gridSize()}px`;
|
|
16
16
|
|
package/dist/es2019/version.json
CHANGED
|
@@ -251,6 +251,16 @@ var MediaSingleNode = /*#__PURE__*/function (_Component) {
|
|
|
251
251
|
width: width
|
|
252
252
|
}));
|
|
253
253
|
tr.setMeta('scrollIntoView', false);
|
|
254
|
+
/**
|
|
255
|
+
* Any changes to attributes of a node count the node as "recreated" in Prosemirror[1]
|
|
256
|
+
* This makes it so Prosemirror resets the selection to the child i.e. "media" instead of "media-single"
|
|
257
|
+
* The recommended fix is to reset the selection.[2]
|
|
258
|
+
*
|
|
259
|
+
* [1] https://discuss.prosemirror.net/t/setnodemarkup-loses-current-nodeselection/976
|
|
260
|
+
* [2] https://discuss.prosemirror.net/t/setnodemarkup-and-deselect/3673
|
|
261
|
+
*/
|
|
262
|
+
|
|
263
|
+
tr.setSelection(NodeSelection.create(tr.doc, pos));
|
|
254
264
|
return dispatch(tr);
|
|
255
265
|
});
|
|
256
266
|
|
|
@@ -23,7 +23,7 @@ import { N0, DN50, DN600, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
|
23
23
|
import { themed } from '@atlaskit/theme/components';
|
|
24
24
|
import { token } from '@atlaskit/tokens';
|
|
25
25
|
var packageName = "@atlaskit/editor-core";
|
|
26
|
-
var packageVersion = "172.1.
|
|
26
|
+
var packageVersion = "172.1.2";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = "0, ".concat(gridSize(), "px");
|
|
29
29
|
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "172.1.
|
|
3
|
+
"version": "172.1.2",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@atlaskit/form": "^8.5.0",
|
|
52
52
|
"@atlaskit/icon": "^21.10.0",
|
|
53
53
|
"@atlaskit/icon-object": "^6.2.0",
|
|
54
|
-
"@atlaskit/link-picker": "^1.
|
|
54
|
+
"@atlaskit/link-picker": "^1.9.0",
|
|
55
55
|
"@atlaskit/locale": "^2.3.0",
|
|
56
56
|
"@atlaskit/logo": "^13.9.0",
|
|
57
57
|
"@atlaskit/media-card": "^74.1.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@atlaskit/radio": "^5.4.0",
|
|
69
69
|
"@atlaskit/section-message": "^6.2.0",
|
|
70
70
|
"@atlaskit/select": "^15.7.0",
|
|
71
|
-
"@atlaskit/smart-card": "^22.
|
|
71
|
+
"@atlaskit/smart-card": "^22.2.0",
|
|
72
72
|
"@atlaskit/smart-user-picker": "^6.0.0",
|
|
73
73
|
"@atlaskit/spinner": "^15.1.0",
|
|
74
74
|
"@atlaskit/status": "^1.1.0",
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
"@atlaskit/visual-regression": "*",
|
|
172
172
|
"@atlaskit/webdriver-runner": "*",
|
|
173
173
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
174
|
-
"@atlassian/link-picker-atlassian-plugin": "^
|
|
174
|
+
"@atlassian/link-picker-atlassian-plugin": "^19.0.0",
|
|
175
175
|
"@atlassian/search-provider": "2.3.3",
|
|
176
176
|
"@atlassian/ufo": "^0.1.0",
|
|
177
177
|
"@emotion/jest": "^11.8.0",
|