@atlaskit/editor-plugin-expand 15.1.0 → 15.2.0
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,18 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-expand
|
|
2
2
|
|
|
3
|
+
## 15.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`da5eaf0bc37da`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/da5eaf0bc37da) -
|
|
8
|
+
Clean up the platform_editor_editor_ssr_streaming experiment. The SSR streaming code paths are now
|
|
9
|
+
permanent and the isSSRStreaming() utility has been removed from
|
|
10
|
+
@atlaskit/editor-common/core-utils.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 15.1.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
package/compass.yml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
configVersion: 1
|
|
2
2
|
id: ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/abb2d576-3082-4a86-ade1-4659d5e66889
|
|
3
3
|
name: '@atlaskit/editor-plugin-expand'
|
|
4
|
-
ownerId: ari:cloud:identity::team/
|
|
4
|
+
ownerId: ari:cloud:identity::team/cf6a670b-5252-4c68-a769-9207de366beb # Editor Developers
|
|
5
5
|
labels:
|
|
6
6
|
- platform-code
|
|
7
7
|
- platform-afm
|
|
@@ -16,14 +16,14 @@ links:
|
|
|
16
16
|
url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master
|
|
17
17
|
- name: Slack Channel
|
|
18
18
|
type: CHAT_CHANNEL
|
|
19
|
-
url: https://atlassian.enterprise.slack.com/archives/
|
|
19
|
+
url: https://atlassian.enterprise.slack.com/archives/CFG3PSQ9E # #help-editor
|
|
20
20
|
- name: Editor Plugin Expand
|
|
21
21
|
type: REPOSITORY
|
|
22
22
|
url: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/editor/editor-plugin-expand
|
|
23
23
|
customFields:
|
|
24
24
|
- name: Department
|
|
25
25
|
type: text
|
|
26
|
-
value:
|
|
26
|
+
value: Editor Developers
|
|
27
27
|
- name: Trusted Reviewer Teams
|
|
28
28
|
type: text
|
|
29
29
|
value: ari:cloud:identity::team/cf6a670b-5252-4c68-a769-9207de366beb
|
|
@@ -12,7 +12,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
var _v = _interopRequireDefault(require("uuid/v4"));
|
|
14
14
|
var _w3cKeyname = require("w3c-keyname");
|
|
15
|
-
var _coreUtils = require("@atlaskit/editor-common/core-utils");
|
|
16
15
|
var _expand = require("@atlaskit/editor-common/expand");
|
|
17
16
|
var _selection = require("@atlaskit/editor-common/selection");
|
|
18
17
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
@@ -498,7 +497,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
|
|
|
498
497
|
this.isExpanded.localId = _node.attrs.localId;
|
|
499
498
|
}
|
|
500
499
|
var editorDisabled = api === null || api === void 0 || (_api$editorDisabled = api.editorDisabled) === null || _api$editorDisabled === void 0 || (_api$editorDisabled = _api$editorDisabled.sharedState.currentState()) === null || _api$editorDisabled === void 0 ? void 0 : _api$editorDisabled.editorDisabled;
|
|
501
|
-
var _DOMSerializer$render = _model.DOMSerializer.renderSpec(document, (0, _NodeView.toDOM)(_node, this.__livePage, this.intl, editorDisabled,
|
|
500
|
+
var _DOMSerializer$render = _model.DOMSerializer.renderSpec(document, (0, _NodeView.toDOM)(_node, this.__livePage, this.intl, editorDisabled, !editorDisabled && !(0, _expand.isExpandCollapsed)(_node))),
|
|
502
501
|
_dom = _DOMSerializer$render.dom,
|
|
503
502
|
contentDOM = _DOMSerializer$render.contentDOM;
|
|
504
503
|
// Ignored via go/ees005
|
|
@@ -3,7 +3,6 @@ import React from 'react';
|
|
|
3
3
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
4
4
|
import uuid from 'uuid/v4';
|
|
5
5
|
import { keyName } from 'w3c-keyname';
|
|
6
|
-
import { isSSRStreaming } from '@atlaskit/editor-common/core-utils';
|
|
7
6
|
import { expandedState, isExpandCollapsed } from '@atlaskit/editor-common/expand';
|
|
8
7
|
import { GapCursorSelection, RelativeSelectionPos, Side } from '@atlaskit/editor-common/selection';
|
|
9
8
|
import { expandClassNames } from '@atlaskit/editor-common/styles';
|
|
@@ -504,7 +503,7 @@ export class ExpandNodeView {
|
|
|
504
503
|
const {
|
|
505
504
|
dom: _dom,
|
|
506
505
|
contentDOM
|
|
507
|
-
} = DOMSerializer.renderSpec(document, toDOM(_node, this.__livePage, this.intl, editorDisabled,
|
|
506
|
+
} = DOMSerializer.renderSpec(document, toDOM(_node, this.__livePage, this.intl, editorDisabled, !editorDisabled && !isExpandCollapsed(_node)));
|
|
508
507
|
// Ignored via go/ees005
|
|
509
508
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
510
509
|
this.dom = _dom;
|
|
@@ -5,7 +5,6 @@ import React from 'react';
|
|
|
5
5
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
6
6
|
import uuid from 'uuid/v4';
|
|
7
7
|
import { keyName } from 'w3c-keyname';
|
|
8
|
-
import { isSSRStreaming } from '@atlaskit/editor-common/core-utils';
|
|
9
8
|
import { expandedState, isExpandCollapsed } from '@atlaskit/editor-common/expand';
|
|
10
9
|
import { GapCursorSelection, RelativeSelectionPos, Side } from '@atlaskit/editor-common/selection';
|
|
11
10
|
import { expandClassNames } from '@atlaskit/editor-common/styles';
|
|
@@ -490,7 +489,7 @@ export var ExpandNodeView = /*#__PURE__*/function () {
|
|
|
490
489
|
this.isExpanded.localId = _node.attrs.localId;
|
|
491
490
|
}
|
|
492
491
|
var editorDisabled = api === null || api === void 0 || (_api$editorDisabled = api.editorDisabled) === null || _api$editorDisabled === void 0 || (_api$editorDisabled = _api$editorDisabled.sharedState.currentState()) === null || _api$editorDisabled === void 0 ? void 0 : _api$editorDisabled.editorDisabled;
|
|
493
|
-
var _DOMSerializer$render = DOMSerializer.renderSpec(document, toDOM(_node, this.__livePage, this.intl, editorDisabled,
|
|
492
|
+
var _DOMSerializer$render = DOMSerializer.renderSpec(document, toDOM(_node, this.__livePage, this.intl, editorDisabled, !editorDisabled && !isExpandCollapsed(_node))),
|
|
494
493
|
_dom = _DOMSerializer$render.dom,
|
|
495
494
|
contentDOM = _DOMSerializer$render.contentDOM;
|
|
496
495
|
// Ignored via go/ees005
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-expand",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.2.0",
|
|
4
4
|
"description": "Expand plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
44
44
|
"@atlaskit/prosemirror-history": "^1.1.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^147.
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^147.1.0",
|
|
46
46
|
"@atlaskit/tokens": "^16.7.0",
|
|
47
47
|
"@atlaskit/tooltip": "^24.0.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"w3c-keyname": "^2.1.8"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@atlaskit/editor-common": "^118.
|
|
54
|
+
"@atlaskit/editor-common": "^118.12.0",
|
|
55
55
|
"react": "^18.2.0 || ^19.2.0",
|
|
56
56
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
57
57
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|