@atlaskit/editor-plugin-expand 2.9.2 → 2.9.4

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,25 @@
1
1
  # @atlaskit/editor-plugin-expand
2
2
 
3
+ ## 2.9.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#159855](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/159855)
8
+ [`f91ace0ef7fbe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f91ace0ef7fbe) -
9
+ [ux] ED-25534 Fix Long Content Expand auto scroll issue
10
+ - [#159308](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/159308)
11
+ [`14ef6f05d711c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/14ef6f05d711c) -
12
+ [ED-24690] Replace LD FF with Statsig platform-editor-single-player-expand
13
+ - Updated dependencies
14
+
15
+ ## 2.9.3
16
+
17
+ ### Patch Changes
18
+
19
+ - [#159176](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/159176)
20
+ [`8f1d77592a9dc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8f1d77592a9dc) -
21
+ Bump adf-schema to 44.2.0
22
+
3
23
  ## 2.9.2
4
24
 
5
25
  ### Patch Changes
@@ -17,7 +17,7 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
17
17
  api: api
18
18
  });
19
19
  } else {
20
- if ((0, _platformFeatureFlags.fg)('platform.editor.single-player-expand')) {
20
+ if ((0, _platformFeatureFlags.fg)('platform-editor-single-player-expand')) {
21
21
  return (0, _plugin2.expandPlugin)({
22
22
  config: options,
23
23
  api: api
@@ -54,6 +54,9 @@ var createPlugin = exports.createPlugin = function createPlugin(dispatch, getInt
54
54
  return containsClass(event.target, _styles.expandClassNames.titleContainer);
55
55
  },
56
56
  handleScrollToSelection: function handleScrollToSelection() {
57
+ if ((0, _platformFeatureFlags.fg)('platform_editor_expand_auto_scroll')) {
58
+ return true;
59
+ }
57
60
  return containsClass(document.activeElement, _styles.expandClassNames.titleInput);
58
61
  },
59
62
  handleClickOn: (0, _selection.createSelectionClickHandler)(['expand', 'nestedExpand'], function (target) {
@@ -11,7 +11,7 @@ export const expandPlugin = ({
11
11
  api
12
12
  });
13
13
  } else {
14
- if (fg('platform.editor.single-player-expand')) {
14
+ if (fg('platform-editor-single-player-expand')) {
15
15
  return singlePlayerExpandPlugin({
16
16
  config: options,
17
17
  api
@@ -39,6 +39,9 @@ export const createPlugin = (dispatch, getIntl, appearance = 'full-page', useLon
39
39
  return containsClass(event.target, expandClassNames.titleContainer);
40
40
  },
41
41
  handleScrollToSelection() {
42
+ if (fg('platform_editor_expand_auto_scroll')) {
43
+ return true;
44
+ }
42
45
  return containsClass(document.activeElement, expandClassNames.titleInput);
43
46
  },
44
47
  handleClickOn: createSelectionClickHandler(['expand', 'nestedExpand'], target => target.classList.contains(expandClassNames.prefix), {
@@ -11,7 +11,7 @@ export var expandPlugin = function expandPlugin(_ref) {
11
11
  api: api
12
12
  });
13
13
  } else {
14
- if (fg('platform.editor.single-player-expand')) {
14
+ if (fg('platform-editor-single-player-expand')) {
15
15
  return singlePlayerExpandPlugin({
16
16
  config: options,
17
17
  api: api
@@ -44,6 +44,9 @@ export var createPlugin = function createPlugin(dispatch, getIntl) {
44
44
  return containsClass(event.target, expandClassNames.titleContainer);
45
45
  },
46
46
  handleScrollToSelection: function handleScrollToSelection() {
47
+ if (fg('platform_editor_expand_auto_scroll')) {
48
+ return true;
49
+ }
47
50
  return containsClass(document.activeElement, expandClassNames.titleInput);
48
51
  },
49
52
  handleClickOn: createSelectionClickHandler(['expand', 'nestedExpand'], function (target) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "2.9.2",
3
+ "version": "2.9.4",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,21 +31,21 @@
31
31
  ".": "./src/index.ts"
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/adf-schema": "^42.3.1",
35
- "@atlaskit/button": "^20.2.0",
36
- "@atlaskit/editor-common": "^94.0.0",
34
+ "@atlaskit/adf-schema": "^44.2.0",
35
+ "@atlaskit/button": "^20.3.0",
36
+ "@atlaskit/editor-common": "^94.11.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^1.10.0",
38
38
  "@atlaskit/editor-plugin-decorations": "^1.3.0",
39
39
  "@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
40
40
  "@atlaskit/editor-plugin-selection": "^1.5.0",
41
41
  "@atlaskit/editor-plugin-selection-marker": "^1.5.0",
42
42
  "@atlaskit/editor-prosemirror": "6.0.0",
43
- "@atlaskit/editor-shared-styles": "^3.0.0",
43
+ "@atlaskit/editor-shared-styles": "^3.2.0",
44
44
  "@atlaskit/editor-tables": "^2.8.0",
45
- "@atlaskit/icon": "^22.23.0",
45
+ "@atlaskit/icon": "^22.24.0",
46
46
  "@atlaskit/platform-feature-flags": "^0.3.0",
47
- "@atlaskit/tmp-editor-statsig": "^2.7.0",
48
- "@atlaskit/tokens": "^2.0.0",
47
+ "@atlaskit/tmp-editor-statsig": "^2.11.0",
48
+ "@atlaskit/tokens": "^2.1.0",
49
49
  "@atlaskit/tooltip": "^18.8.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1",
@@ -60,8 +60,8 @@
60
60
  "@atlaskit/analytics-next": "^10.1.0",
61
61
  "@atlaskit/editor-plugin-content-insertion": "^1.9.0",
62
62
  "@atlaskit/editor-plugin-guideline": "^1.2.0",
63
- "@atlaskit/editor-plugin-quick-insert": "^1.4.0",
64
- "@atlaskit/editor-plugin-table": "^7.29.0",
63
+ "@atlaskit/editor-plugin-quick-insert": "^1.6.0",
64
+ "@atlaskit/editor-plugin-table": "^7.30.0",
65
65
  "@atlaskit/editor-plugin-type-ahead": "^1.10.0",
66
66
  "@atlaskit/editor-plugin-width": "^1.3.0",
67
67
  "@testing-library/react": "^12.1.5",
@@ -105,7 +105,7 @@
105
105
  "platform.editor.live-pages-expand-divergence": {
106
106
  "type": "boolean"
107
107
  },
108
- "platform.editor.single-player-expand": {
108
+ "platform-editor-single-player-expand": {
109
109
  "type": "boolean"
110
110
  },
111
111
  "platform_editor_nest_nested_expand_in_expand_jira": {
@@ -116,6 +116,9 @@
116
116
  },
117
117
  "platform_editor_nest_nested_expand_drag_fix": {
118
118
  "type": "boolean"
119
+ },
120
+ "platform_editor_expand_auto_scroll": {
121
+ "type": "boolean"
119
122
  }
120
123
  }
121
124
  }