@atlaskit/editor-plugin-expand 15.1.0 → 16.0.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,24 @@
1
1
  # @atlaskit/editor-plugin-expand
2
2
 
3
+ ## 16.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 15.2.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`da5eaf0bc37da`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/da5eaf0bc37da) -
14
+ Clean up the platform_editor_editor_ssr_streaming experiment. The SSR streaming code paths are now
15
+ permanent and the isSSRStreaming() utility has been removed from
16
+ @atlaskit/editor-common/core-utils.
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
3
22
  ## 15.1.0
4
23
 
5
24
  ### 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/2484e1f6-f62c-4a70-95f1-8e5695c51b6b # Editor Jenga
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/C061GUMN3NY # #team-cc-editor-exp-cloud-native
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: Eng - Editor Autonomy - Jenga
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, (0, _coreUtils.isSSRStreaming)() ? !editorDisabled && !(0, _expand.isExpandCollapsed)(_node) : undefined)),
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, isSSRStreaming() ? !editorDisabled && !isExpandCollapsed(_node) : undefined));
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, isSSRStreaming() ? !editorDisabled && !isExpandCollapsed(_node) : undefined)),
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.1.0",
3
+ "version": "16.0.0",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -23,16 +23,16 @@
23
23
  "dependencies": {
24
24
  "@atlaskit/adf-schema": "^56.7.0",
25
25
  "@atlaskit/button": "^25.0.0",
26
- "@atlaskit/editor-plugin-analytics": "^14.0.0",
27
- "@atlaskit/editor-plugin-block-controls": "^15.0.0",
28
- "@atlaskit/editor-plugin-block-menu": "^13.0.0",
29
- "@atlaskit/editor-plugin-decorations": "^14.0.0",
30
- "@atlaskit/editor-plugin-editor-disabled": "^14.0.0",
31
- "@atlaskit/editor-plugin-editor-viewmode": "^16.0.0",
32
- "@atlaskit/editor-plugin-limited-mode": "^11.0.0",
33
- "@atlaskit/editor-plugin-local-id": "^12.0.0",
34
- "@atlaskit/editor-plugin-selection": "^14.0.0",
35
- "@atlaskit/editor-plugin-selection-marker": "^14.0.0",
26
+ "@atlaskit/editor-plugin-analytics": "^15.0.0",
27
+ "@atlaskit/editor-plugin-block-controls": "^16.0.0",
28
+ "@atlaskit/editor-plugin-block-menu": "^14.0.0",
29
+ "@atlaskit/editor-plugin-decorations": "^15.0.0",
30
+ "@atlaskit/editor-plugin-editor-disabled": "^15.0.0",
31
+ "@atlaskit/editor-plugin-editor-viewmode": "^17.0.0",
32
+ "@atlaskit/editor-plugin-limited-mode": "^12.0.0",
33
+ "@atlaskit/editor-plugin-local-id": "^13.0.0",
34
+ "@atlaskit/editor-plugin-selection": "^15.0.0",
35
+ "@atlaskit/editor-plugin-selection-marker": "^15.0.0",
36
36
  "@atlaskit/editor-prosemirror": "^8.0.0",
37
37
  "@atlaskit/editor-shared-styles": "^4.0.0",
38
38
  "@atlaskit/editor-tables": "^3.0.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.0.0",
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.11.0",
54
+ "@atlaskit/editor-common": "^119.0.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"