@atlaskit/editor-plugin-breakout 0.1.1 → 0.1.3
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 +12 -0
- package/dist/cjs/plugin.js +5 -3
- package/dist/es2019/plugin.js +3 -2
- package/dist/esm/plugin.js +5 -3
- package/package.json +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-breakout
|
|
2
2
|
|
|
3
|
+
## 0.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 0.1.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#67238](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67238) [`40533849b2ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/40533849b2ec) - [ED-21835] Change EditorAPI type to always union with undefined
|
|
14
|
+
|
|
3
15
|
## 0.1.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -28,7 +28,9 @@ var BreakoutView = /*#__PURE__*/function () {
|
|
|
28
28
|
* is not problematic.
|
|
29
29
|
*/
|
|
30
30
|
mark, view, pluginInjectionApi) {
|
|
31
|
-
var _this = this
|
|
31
|
+
var _this = this,
|
|
32
|
+
_pluginInjectionApi$w,
|
|
33
|
+
_pluginInjectionApi$w2;
|
|
32
34
|
(0, _classCallCheck2.default)(this, BreakoutView);
|
|
33
35
|
(0, _defineProperty2.default)(this, "updateWidth", function (widthState) {
|
|
34
36
|
// we skip updating the width of breakout nodes if the editorView dom
|
|
@@ -87,11 +89,11 @@ var BreakoutView = /*#__PURE__*/function () {
|
|
|
87
89
|
this.mark = mark;
|
|
88
90
|
this.view = view;
|
|
89
91
|
this.contentDOM = contentDOM;
|
|
90
|
-
this.unsubscribe = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 :
|
|
92
|
+
this.unsubscribe = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$w = pluginInjectionApi.width) === null || _pluginInjectionApi$w === void 0 ? void 0 : _pluginInjectionApi$w.sharedState.onChange(function (_ref) {
|
|
91
93
|
var nextSharedState = _ref.nextSharedState;
|
|
92
94
|
return _this.updateWidth(nextSharedState);
|
|
93
95
|
});
|
|
94
|
-
this.updateWidth(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 :
|
|
96
|
+
this.updateWidth(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$w2 = pluginInjectionApi.width) === null || _pluginInjectionApi$w2 === void 0 ? void 0 : _pluginInjectionApi$w2.sharedState.currentState());
|
|
95
97
|
}
|
|
96
98
|
(0, _createClass2.default)(BreakoutView, [{
|
|
97
99
|
key: "destroy",
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -17,6 +17,7 @@ class BreakoutView {
|
|
|
17
17
|
* is not problematic.
|
|
18
18
|
*/
|
|
19
19
|
mark, view, pluginInjectionApi) {
|
|
20
|
+
var _pluginInjectionApi$w, _pluginInjectionApi$w2;
|
|
20
21
|
_defineProperty(this, "updateWidth", widthState => {
|
|
21
22
|
// we skip updating the width of breakout nodes if the editorView dom
|
|
22
23
|
// element was hidden (to avoid breakout width and button thrashing
|
|
@@ -81,10 +82,10 @@ class BreakoutView {
|
|
|
81
82
|
this.mark = mark;
|
|
82
83
|
this.view = view;
|
|
83
84
|
this.contentDOM = contentDOM;
|
|
84
|
-
this.unsubscribe = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.width.sharedState.onChange(({
|
|
85
|
+
this.unsubscribe = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$w = pluginInjectionApi.width) === null || _pluginInjectionApi$w === void 0 ? void 0 : _pluginInjectionApi$w.sharedState.onChange(({
|
|
85
86
|
nextSharedState
|
|
86
87
|
}) => this.updateWidth(nextSharedState));
|
|
87
|
-
this.updateWidth(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.width.sharedState.currentState());
|
|
88
|
+
this.updateWidth(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$w2 = pluginInjectionApi.width) === null || _pluginInjectionApi$w2 === void 0 ? void 0 : _pluginInjectionApi$w2.sharedState.currentState());
|
|
88
89
|
}
|
|
89
90
|
// NOTE: Lifecycle events doesn't work for mark NodeView. So currently this is a no-op.
|
|
90
91
|
// @see https://github.com/ProseMirror/prosemirror/issues/1082
|
package/dist/esm/plugin.js
CHANGED
|
@@ -21,7 +21,9 @@ var BreakoutView = /*#__PURE__*/function () {
|
|
|
21
21
|
* is not problematic.
|
|
22
22
|
*/
|
|
23
23
|
mark, view, pluginInjectionApi) {
|
|
24
|
-
var _this = this
|
|
24
|
+
var _this = this,
|
|
25
|
+
_pluginInjectionApi$w,
|
|
26
|
+
_pluginInjectionApi$w2;
|
|
25
27
|
_classCallCheck(this, BreakoutView);
|
|
26
28
|
_defineProperty(this, "updateWidth", function (widthState) {
|
|
27
29
|
// we skip updating the width of breakout nodes if the editorView dom
|
|
@@ -80,11 +82,11 @@ var BreakoutView = /*#__PURE__*/function () {
|
|
|
80
82
|
this.mark = mark;
|
|
81
83
|
this.view = view;
|
|
82
84
|
this.contentDOM = contentDOM;
|
|
83
|
-
this.unsubscribe = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 :
|
|
85
|
+
this.unsubscribe = pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$w = pluginInjectionApi.width) === null || _pluginInjectionApi$w === void 0 ? void 0 : _pluginInjectionApi$w.sharedState.onChange(function (_ref) {
|
|
84
86
|
var nextSharedState = _ref.nextSharedState;
|
|
85
87
|
return _this.updateWidth(nextSharedState);
|
|
86
88
|
});
|
|
87
|
-
this.updateWidth(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 :
|
|
89
|
+
this.updateWidth(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$w2 = pluginInjectionApi.width) === null || _pluginInjectionApi$w2 === void 0 ? void 0 : _pluginInjectionApi$w2.sharedState.currentState());
|
|
88
90
|
}
|
|
89
91
|
_createClass(BreakoutView, [{
|
|
90
92
|
key: "destroy",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-breakout",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Breakout plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"singleton": true,
|
|
13
13
|
"releaseModel": "continuous"
|
|
14
14
|
},
|
|
15
|
-
"repository": "https://bitbucket.org/atlassian/atlassian-frontend",
|
|
15
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
16
16
|
"main": "dist/cjs/index.js",
|
|
17
17
|
"module": "dist/esm/index.js",
|
|
18
18
|
"module:es2019": "dist/es2019/index.js",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^35.3.0",
|
|
35
|
-
"@atlaskit/editor-common": "^
|
|
35
|
+
"@atlaskit/editor-common": "^77.0.0",
|
|
36
36
|
"@atlaskit/editor-plugin-width": "^0.2.0",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
38
38
|
"@atlaskit/editor-shared-styles": "^2.9.0",
|
|
39
39
|
"@atlaskit/icon": "^22.0.0",
|
|
40
40
|
"@atlaskit/theme": "^12.6.0",
|
|
41
|
-
"@atlaskit/tokens": "^1.
|
|
41
|
+
"@atlaskit/tokens": "^1.34.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0",
|
|
43
43
|
"@emotion/react": "^11.7.1"
|
|
44
44
|
},
|
|
@@ -54,7 +54,6 @@
|
|
|
54
54
|
"@atlaskit/editor-plugin-decorations": "^0.2.0",
|
|
55
55
|
"@atlaskit/ssr": "*",
|
|
56
56
|
"@atlaskit/visual-regression": "*",
|
|
57
|
-
"@atlaskit/webdriver-runner": "*",
|
|
58
57
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
59
58
|
"@testing-library/react": "^12.1.5",
|
|
60
59
|
"react-dom": "^16.8.0",
|