@atlaskit/editor-plugin-expand 0.4.6 → 0.4.8

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,17 @@
1
1
  # @atlaskit/editor-plugin-expand
2
2
 
3
+ ## 0.4.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572) [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) - Upgrading @atlaskit/editor-prosemirror dependency
8
+
9
+ ## 0.4.7
10
+
11
+ ### Patch Changes
12
+
13
+ - [#71186](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71186) [`d76c62a2d98a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d76c62a2d98a) - [ux] ED-22029 Use extendedNestedExpand node when 'platform.editor.allow-extended-nested-panel' FF is enabled
14
+
3
15
  ## 0.4.6
4
16
 
5
17
  ### Patch Changes
@@ -17,6 +17,7 @@ var _analytics = require("@atlaskit/editor-common/analytics");
17
17
  var _messages = require("@atlaskit/editor-common/messages");
18
18
  var _quickInsert = require("@atlaskit/editor-common/quick-insert");
19
19
  var _utils = require("@atlaskit/editor-common/utils");
20
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
20
21
  var _commands = require("./commands");
21
22
  var _keymap = require("./pm-plugins/keymap");
22
23
  var _main = require("./pm-plugins/main");
@@ -30,12 +31,13 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
30
31
  return {
31
32
  name: 'expand',
32
33
  nodes: function nodes() {
34
+ var nestedExpandNode = (0, _platformFeatureFlags.getBooleanFF)('platform.editor.allow-extended-nested-expand') ? _adfSchema.extendedNestedExpand : _adfSchema.nestedExpand;
33
35
  return [{
34
36
  name: 'expand',
35
37
  node: _adfSchema.expand
36
38
  }, {
37
39
  name: 'nestedExpand',
38
- node: _adfSchema.nestedExpand
40
+ node: nestedExpandNode
39
41
  }];
40
42
  },
41
43
  actions: {
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
- import { expand, nestedExpand } from '@atlaskit/adf-schema';
2
+ import { expand, extendedNestedExpand, nestedExpand } from '@atlaskit/adf-schema';
3
3
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
5
5
  import { IconExpand } from '@atlaskit/editor-common/quick-insert';
6
6
  import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
7
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
7
8
  import { createExpandNode, insertExpand } from './commands';
8
9
  import { expandKeymap } from './pm-plugins/keymap';
9
10
  import { createPlugin } from './pm-plugins/main';
@@ -16,12 +17,13 @@ export const expandPlugin = ({
16
17
  return {
17
18
  name: 'expand',
18
19
  nodes() {
20
+ const nestedExpandNode = getBooleanFF('platform.editor.allow-extended-nested-expand') ? extendedNestedExpand : nestedExpand;
19
21
  return [{
20
22
  name: 'expand',
21
23
  node: expand
22
24
  }, {
23
25
  name: 'nestedExpand',
24
- node: nestedExpand
26
+ node: nestedExpandNode
25
27
  }];
26
28
  },
27
29
  actions: {
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
- import { expand, nestedExpand } from '@atlaskit/adf-schema';
2
+ import { expand, extendedNestedExpand, nestedExpand } from '@atlaskit/adf-schema';
3
3
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
5
5
  import { IconExpand } from '@atlaskit/editor-common/quick-insert';
6
6
  import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
7
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
7
8
  import { createExpandNode, insertExpand } from './commands';
8
9
  import { expandKeymap } from './pm-plugins/keymap';
9
10
  import { createPlugin } from './pm-plugins/main';
@@ -16,12 +17,13 @@ export var expandPlugin = function expandPlugin(_ref) {
16
17
  return {
17
18
  name: 'expand',
18
19
  nodes: function nodes() {
20
+ var nestedExpandNode = getBooleanFF('platform.editor.allow-extended-nested-expand') ? extendedNestedExpand : nestedExpand;
19
21
  return [{
20
22
  name: 'expand',
21
23
  node: expand
22
24
  }, {
23
25
  name: 'nestedExpand',
24
- node: nestedExpand
26
+ node: nestedExpandNode
25
27
  }];
26
28
  },
27
29
  actions: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "0.4.6",
3
+ "version": "0.4.8",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,14 +35,15 @@
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^35.5.1",
37
37
  "@atlaskit/button": "^17.3.0",
38
- "@atlaskit/editor-common": "^77.2.0",
38
+ "@atlaskit/editor-common": "^77.3.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^0.4.0",
40
40
  "@atlaskit/editor-plugin-decorations": "^0.2.0",
41
41
  "@atlaskit/editor-plugin-selection": "^0.2.0",
42
- "@atlaskit/editor-prosemirror": "1.1.0",
42
+ "@atlaskit/editor-prosemirror": "3.0.0",
43
43
  "@atlaskit/editor-shared-styles": "^2.9.0",
44
44
  "@atlaskit/editor-tables": "^2.5.0",
45
45
  "@atlaskit/icon": "^22.0.0",
46
+ "@atlaskit/platform-feature-flags": "^0.2.0",
46
47
  "@atlaskit/tooltip": "^18.1.0",
47
48
  "@babel/runtime": "^7.0.0",
48
49
  "@emotion/react": "^11.7.1",
@@ -54,7 +55,7 @@
54
55
  "react-intl-next": "npm:react-intl@^5.18.1"
55
56
  },
56
57
  "devDependencies": {
57
- "@atlaskit/analytics-next": "^9.1.0",
58
+ "@atlaskit/analytics-next": "^9.2.0",
58
59
  "@atlaskit/editor-plugin-content-insertion": "^0.1.0",
59
60
  "@atlaskit/editor-plugin-guideline": "^0.5.0",
60
61
  "@atlaskit/editor-plugin-quick-insert": "^0.2.0",
@@ -101,5 +102,10 @@
101
102
  ]
102
103
  }
103
104
  },
104
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
105
+ "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
106
+ "platform-feature-flags": {
107
+ "platform.editor.allow-extended-nested-expand": {
108
+ "type": "boolean"
109
+ }
110
+ }
105
111
  }