@atlaskit/editor-core 234.2.0 → 234.3.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,27 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 234.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`458d73f9ce64a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/458d73f9ce64a) -
8
+ Behind `platform_editor_slash_command`: the universal preset's
9
+ `initialPluginConfiguration.quickInsertPlugin` now also accepts `maxRecommendedItems`, so
10
+ consumers such as Jira can limit the size of the Recommended section of the `/` menu per editor
11
+ surface.
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
17
+ ## 234.2.1
18
+
19
+ ### Patch Changes
20
+
21
+ - [`9474d3d4a1282`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9474d3d4a1282) -
22
+ Disable Editor scroll restoration behind `platform_editor_reduce_forced_layout`.
23
+ - Updated dependencies
24
+
3
25
  ## 234.2.0
4
26
 
5
27
  ### Minor Changes
@@ -800,7 +800,7 @@ function ReactEditorView(props) {
800
800
 
801
801
  // Preconditioned on the affected population - full page, non nested editors - so that experiment
802
802
  // exposure is not diluted by editors which never run the scroll restoration code below.
803
- var scrollRestorePerfEnabled = !isNestedEditor.current && (0, _isFullPage.isFullPage)(props.editorProps.appearance) && (0, _isExperimentEnabled.isExperimentEnabled)('cc_editor_scroll_restore_perf_improvements');
803
+ var scrollRestorePerfEnabled = !isNestedEditor.current && (0, _isFullPage.isFullPage)(props.editorProps.appearance) || (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_reduce_forced_layout');
804
804
  var originalScrollToRestore = _react.default.useRef(
805
805
  // Reading scrollTop forces a synchronous layout, and this expression is re-evaluated on every
806
806
  // render. Products restore scroll themselves after the document has rendered.
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
8
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
9
- var version = exports.version = "234.1.0";
9
+ var version = exports.version = "234.2.1";
@@ -748,7 +748,7 @@ export function ReactEditorView(props) {
748
748
 
749
749
  // Preconditioned on the affected population - full page, non nested editors - so that experiment
750
750
  // exposure is not diluted by editors which never run the scroll restoration code below.
751
- const scrollRestorePerfEnabled = !isNestedEditor.current && isFullPage(props.editorProps.appearance) && isExperimentEnabled('cc_editor_scroll_restore_perf_improvements');
751
+ const scrollRestorePerfEnabled = !isNestedEditor.current && isFullPage(props.editorProps.appearance) || isExperimentEnabled('platform_editor_reduce_forced_layout');
752
752
  const originalScrollToRestore = React.useRef(
753
753
  // Reading scrollTop forces a synchronous layout, and this expression is re-evaluated on every
754
754
  // render. Products restore scroll themselves after the document has rendered.
@@ -1,3 +1,3 @@
1
1
  export const name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export const version = "234.1.0";
3
+ export const version = "234.2.1";
@@ -791,7 +791,7 @@ export function ReactEditorView(props) {
791
791
 
792
792
  // Preconditioned on the affected population - full page, non nested editors - so that experiment
793
793
  // exposure is not diluted by editors which never run the scroll restoration code below.
794
- var scrollRestorePerfEnabled = !isNestedEditor.current && isFullPage(props.editorProps.appearance) && isExperimentEnabled('cc_editor_scroll_restore_perf_improvements');
794
+ var scrollRestorePerfEnabled = !isNestedEditor.current && isFullPage(props.editorProps.appearance) || isExperimentEnabled('platform_editor_reduce_forced_layout');
795
795
  var originalScrollToRestore = React.useRef(
796
796
  // Reading scrollTop forces a synchronous layout, and this expression is re-evaluated on every
797
797
  // render. Products restore scroll themselves after the document has rendered.
@@ -1,3 +1,3 @@
1
1
  export var name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export var version = "234.1.0";
3
+ export var version = "234.2.1";
@@ -48,7 +48,7 @@ export type InitialPluginConfiguration = {
48
48
  type: 'added' | 'deleted';
49
49
  }[]) => void;
50
50
  };
51
- quickInsertPlugin?: Pick<QuickInsertPluginOptions, 'blockControlButtonEnabled' | 'isRecommendedItem'>;
51
+ quickInsertPlugin?: Pick<QuickInsertPluginOptions, 'blockControlButtonEnabled' | 'isRecommendedItem' | 'maxRecommendedItems'>;
52
52
  tasksAndDecisionsPlugin?: {
53
53
  allowBlockTaskItem?: boolean;
54
54
  hasEditPermission?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "234.2.0",
3
+ "version": "234.3.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -77,8 +77,8 @@
77
77
  "@atlaskit/react-compiler-gating": "^0.2.0",
78
78
  "@atlaskit/react-ufo": "^8.0.0",
79
79
  "@atlaskit/task-decision": "^21.12.0",
80
- "@atlaskit/tmp-editor-statsig": "^221.0.0",
81
- "@atlaskit/tokens": "^20.2.0",
80
+ "@atlaskit/tmp-editor-statsig": "^223.0.0",
81
+ "@atlaskit/tokens": "^20.3.0",
82
82
  "@atlaskit/tooltip": "^24.4.0",
83
83
  "@atlaskit/width-detector": "^7.2.0",
84
84
  "@babel/runtime": "^7.0.0",
@@ -96,7 +96,7 @@
96
96
  "uuid": "^11.1.1"
97
97
  },
98
98
  "peerDependencies": {
99
- "@atlaskit/editor-common": "^128.2.0",
99
+ "@atlaskit/editor-common": "^128.3.0",
100
100
  "@atlaskit/link-provider": "^6.0.0",
101
101
  "@atlaskit/media-core": "^39.0.0",
102
102
  "react": "^18.2.0 || ^19.2.0",
@@ -117,7 +117,7 @@
117
117
  "@atlaskit/drawer": "^14.3.0",
118
118
  "@atlaskit/editor-plugin-alignment": "^25.0.0",
119
119
  "@atlaskit/editor-plugin-annotation": "^24.0.0",
120
- "@atlaskit/editor-plugin-base": "^25.0.0",
120
+ "@atlaskit/editor-plugin-base": "^25.1.0",
121
121
  "@atlaskit/editor-plugin-card": "^30.0.0",
122
122
  "@atlaskit/editor-plugin-code-block-advanced": "^24.0.0",
123
123
  "@atlaskit/editor-plugin-collab-edit": "^25.0.0",
@@ -128,7 +128,7 @@
128
128
  "@atlaskit/editor-plugin-guideline": "^24.0.0",
129
129
  "@atlaskit/editor-plugin-highlight": "^24.0.0",
130
130
  "@atlaskit/editor-plugin-insert-block": "^25.0.0",
131
- "@atlaskit/editor-plugin-layout": "^25.0.0",
131
+ "@atlaskit/editor-plugin-layout": "^25.1.0",
132
132
  "@atlaskit/editor-plugin-limited-mode": "^21.0.0",
133
133
  "@atlaskit/editor-plugin-list": "^26.0.0",
134
134
  "@atlaskit/editor-plugin-media": "^26.0.0",
@@ -152,7 +152,7 @@
152
152
  "@atlaskit/media-integration-test-helpers": "workspace:^",
153
153
  "@atlaskit/media-picker": "^73.0.0",
154
154
  "@atlaskit/media-test-helpers": "^43.0.0",
155
- "@atlaskit/media-ui": "^31.2.0",
155
+ "@atlaskit/media-ui": "^31.3.0",
156
156
  "@atlaskit/modal-dialog": "^17.0.0",
157
157
  "@atlaskit/navigation-system": "^11.1.0",
158
158
  "@atlaskit/popper": "^9.4.0",