@atlaskit/editor-plugin-toolbar-lists-indentation 7.0.7 → 7.0.9

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,19 @@
1
1
  # @atlaskit/editor-plugin-toolbar-lists-indentation
2
2
 
3
+ ## 7.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [`482bcdc75598e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/482bcdc75598e) -
8
+ ED-29462 Clean up platform_editor_toolbar_aifc_responsiveness_update
9
+ - Updated dependencies
10
+
11
+ ## 7.0.8
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 7.0.7
4
18
 
5
19
  ### Patch Changes
@@ -6,165 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.getToolbarComponents = void 0;
8
8
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
- var _react = _interopRequireDefault(require("react"));
10
- var _toolbar = require("@atlaskit/editor-common/toolbar");
11
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
12
9
  var _BulletedListButtonGroup = require("./toolbar-components/BulletedListButtonGroup");
13
- var _BulletedListMenuItem = require("./toolbar-components/BulletedListMenuItem");
14
- var _IndentMenuItem = require("./toolbar-components/IndentMenuItem");
15
10
  var _ListsIndentationGroupForInlineToolbar = require("./toolbar-components/ListsIndentationGroupForInlineToolbar");
16
11
  var _ListsIndentationGroupForPrimaryToolbar = require("./toolbar-components/ListsIndentationGroupForPrimaryToolbar");
17
- var _ListsIndentationHeroButton = require("./toolbar-components/ListsIndentationHeroButton");
18
12
  var _ListsIndentationHeroButtonGroup = require("./toolbar-components/ListsIndentationHeroButtonGroup");
19
- var _ListsIndentationMenu = require("./toolbar-components/ListsIndentationMenu");
20
13
  var _ListsIndentationMenuGroup = require("./toolbar-components/ListsIndentationMenuGroup");
21
- var _MenuSection = require("./toolbar-components/MenuSection");
22
- var _NumberedListMenuItem = require("./toolbar-components/NumberedListMenuItem");
23
- var _OutdentMenuItem = require("./toolbar-components/OutdentMenuItem");
24
- var _TaskListMenuItem = require("./toolbar-components/TaskListMenuItem");
25
14
  var getToolbarComponents = exports.getToolbarComponents = function getToolbarComponents(_ref) {
26
15
  var api = _ref.api,
27
16
  showIndentationButtons = _ref.showIndentationButtons,
28
17
  allowHeadingAndParagraphIndentation = _ref.allowHeadingAndParagraphIndentation;
29
- return (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_responsiveness_update', 'isEnabled', true) ? getToolbarComponentsResponsivenessUpdate({
30
- api: api,
31
- showIndentationButtons: showIndentationButtons,
32
- allowHeadingAndParagraphIndentation: allowHeadingAndParagraphIndentation
33
- }) : [{
34
- type: _toolbar.LISTS_INDENTATION_GROUP.type,
35
- key: _toolbar.LISTS_INDENTATION_GROUP.key,
36
- parents: [{
37
- type: _toolbar.TEXT_SECTION.type,
38
- key: _toolbar.TEXT_SECTION.key,
39
- rank: _toolbar.TEXT_SECTION_RANK[_toolbar.LISTS_INDENTATION_GROUP.key]
40
- }]
41
- }, {
42
- type: _toolbar.LISTS_INDENTATION_HERO_BUTTON.type,
43
- key: _toolbar.LISTS_INDENTATION_HERO_BUTTON.key,
44
- parents: [{
45
- type: _toolbar.LISTS_INDENTATION_GROUP.type,
46
- key: _toolbar.LISTS_INDENTATION_GROUP.key,
47
- rank: _toolbar.LISTS_INDENTATION_GROUP_RANK[_toolbar.LISTS_INDENTATION_HERO_BUTTON.key]
48
- }],
49
- component: function component(_ref2) {
50
- var parents = _ref2.parents;
51
- return /*#__PURE__*/_react.default.createElement(_ListsIndentationHeroButton.ListsIndentationHeroButton, {
52
- api: api,
53
- parents: parents
54
- });
55
- }
56
- }, {
57
- type: _toolbar.LISTS_INDENTATION_MENU.type,
58
- key: _toolbar.LISTS_INDENTATION_MENU.key,
59
- parents: [{
60
- type: _toolbar.LISTS_INDENTATION_GROUP.type,
61
- key: _toolbar.LISTS_INDENTATION_GROUP.key,
62
- rank: _toolbar.LISTS_INDENTATION_GROUP_RANK[_toolbar.LISTS_INDENTATION_MENU.key]
63
- }],
64
- component: function component(_ref3) {
65
- var children = _ref3.children;
66
- return /*#__PURE__*/_react.default.createElement(_ListsIndentationMenu.ListsIndentationMenu, {
67
- api: api,
68
- allowHeadingAndParagraphIndentation: allowHeadingAndParagraphIndentation
69
- }, children);
70
- }
71
- }, {
72
- type: _toolbar.LISTS_INDENTATION_MENU_SECTION.type,
73
- key: _toolbar.LISTS_INDENTATION_MENU_SECTION.key,
74
- parents: [{
75
- type: _toolbar.LISTS_INDENTATION_MENU.type,
76
- key: _toolbar.LISTS_INDENTATION_MENU.key,
77
- rank: _toolbar.LISTS_INDENTATION_MENU_RANK[_toolbar.LISTS_INDENTATION_MENU_SECTION.key]
78
- }].concat((0, _toConsumableArray2.default)((0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? [{
79
- type: _toolbar.TEXT_COLLAPSED_MENU.type,
80
- key: _toolbar.TEXT_COLLAPSED_MENU.key,
81
- rank: _toolbar.TEXT_COLLAPSED_MENU_RANK[_toolbar.LISTS_INDENTATION_MENU_SECTION.key]
82
- }] : [])),
83
- component: (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? _MenuSection.MenuSection : undefined
84
- }, {
85
- type: _toolbar.BULLETED_LIST_MENU_ITEM.type,
86
- key: _toolbar.BULLETED_LIST_MENU_ITEM.key,
87
- parents: [{
88
- type: _toolbar.LISTS_INDENTATION_MENU_SECTION.type,
89
- key: _toolbar.LISTS_INDENTATION_MENU_SECTION.key,
90
- rank: _toolbar.LISTS_INDENTATION_MENU_SECTION_RANK[_toolbar.BULLETED_LIST_MENU_ITEM.key]
91
- }],
92
- component: function component(_ref4) {
93
- var parents = _ref4.parents;
94
- return /*#__PURE__*/_react.default.createElement(_BulletedListMenuItem.BulletedListMenuItem, {
95
- api: api,
96
- parents: parents
97
- });
98
- }
99
- }, {
100
- type: _toolbar.NUMBERED_LIST_MENU_ITEM.type,
101
- key: _toolbar.NUMBERED_LIST_MENU_ITEM.key,
102
- parents: [{
103
- type: _toolbar.LISTS_INDENTATION_MENU_SECTION.type,
104
- key: _toolbar.LISTS_INDENTATION_MENU_SECTION.key,
105
- rank: _toolbar.LISTS_INDENTATION_MENU_SECTION_RANK[_toolbar.NUMBERED_LIST_MENU_ITEM.key]
106
- }],
107
- component: function component(_ref5) {
108
- var parents = _ref5.parents;
109
- return /*#__PURE__*/_react.default.createElement(_NumberedListMenuItem.NumberedListMenuItem, {
110
- api: api,
111
- parents: parents
112
- });
113
- }
114
- }].concat((0, _toConsumableArray2.default)(!(0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true) ? [{
115
- type: _toolbar.TASK_LIST_MENU_ITEM.type,
116
- key: _toolbar.TASK_LIST_MENU_ITEM.key,
117
- parents: [{
118
- type: _toolbar.LISTS_INDENTATION_MENU_SECTION.type,
119
- key: _toolbar.LISTS_INDENTATION_MENU_SECTION.key,
120
- rank: _toolbar.LISTS_INDENTATION_MENU_SECTION_RANK[_toolbar.TASK_LIST_MENU_ITEM.key]
121
- }],
122
- component: (0, _expValEquals.expValEquals)('platform_editor_toolbar_task_list_menu_item', 'isEnabled', true) ? function (_ref6) {
123
- var parents = _ref6.parents;
124
- return /*#__PURE__*/_react.default.createElement(_TaskListMenuItem.TaskListMenuItem, {
125
- api: api,
126
- parents: parents
127
- });
128
- } : undefined
129
- }] : []), [{
130
- type: _toolbar.OUTDENT_MENU_ITEM.type,
131
- key: _toolbar.OUTDENT_MENU_ITEM.key,
132
- parents: [{
133
- type: _toolbar.LISTS_INDENTATION_MENU_SECTION.type,
134
- key: _toolbar.LISTS_INDENTATION_MENU_SECTION.key,
135
- rank: _toolbar.LISTS_INDENTATION_MENU_SECTION_RANK[_toolbar.OUTDENT_MENU_ITEM.key]
136
- }],
137
- component: function component(_ref7) {
138
- var parents = _ref7.parents;
139
- return /*#__PURE__*/_react.default.createElement(_OutdentMenuItem.OutdentMenuItem, {
140
- api: api,
141
- allowHeadingAndParagraphIndentation: allowHeadingAndParagraphIndentation,
142
- showIndentationButtons: showIndentationButtons,
143
- parents: parents
144
- });
145
- }
146
- }, {
147
- type: _toolbar.INDENT_MENU_ITEM.type,
148
- key: _toolbar.INDENT_MENU_ITEM.key,
149
- parents: [{
150
- type: _toolbar.LISTS_INDENTATION_MENU_SECTION.type,
151
- key: _toolbar.LISTS_INDENTATION_MENU_SECTION.key,
152
- rank: _toolbar.LISTS_INDENTATION_MENU_SECTION_RANK[_toolbar.INDENT_MENU_ITEM.key]
153
- }],
154
- component: function component(_ref8) {
155
- var parents = _ref8.parents;
156
- return /*#__PURE__*/_react.default.createElement(_IndentMenuItem.IndentMenuItem, {
157
- api: api,
158
- allowHeadingAndParagraphIndentation: allowHeadingAndParagraphIndentation,
159
- showIndentationButtons: showIndentationButtons,
160
- parents: parents
161
- });
162
- }
163
- }]);
164
- };
165
- var getToolbarComponentsResponsivenessUpdate = function getToolbarComponentsResponsivenessUpdate(_ref9) {
166
- var api = _ref9.api,
167
- showIndentationButtons = _ref9.showIndentationButtons,
168
- allowHeadingAndParagraphIndentation = _ref9.allowHeadingAndParagraphIndentation;
169
18
  return [].concat((0, _toConsumableArray2.default)((0, _ListsIndentationGroupForPrimaryToolbar.getListsIndentationGroupForPrimaryToolbar)()), (0, _toConsumableArray2.default)((0, _ListsIndentationGroupForInlineToolbar.getListsIndentationGroupForInlineToolbar)()), (0, _toConsumableArray2.default)((0, _ListsIndentationHeroButtonGroup.getListsIndentationHeroButton)(api)), (0, _toConsumableArray2.default)((0, _BulletedListButtonGroup.getBulletedListButtonGroup)(api)), (0, _toConsumableArray2.default)((0, _ListsIndentationMenuGroup.getListsIndentationMenu)(allowHeadingAndParagraphIndentation, showIndentationButtons, api)));
170
19
  };
@@ -1,157 +1,12 @@
1
- import React from 'react';
2
- import { BULLETED_LIST_MENU_ITEM, INDENT_MENU_ITEM, LISTS_INDENTATION_GROUP, LISTS_INDENTATION_HERO_BUTTON, LISTS_INDENTATION_MENU, LISTS_INDENTATION_MENU_SECTION, NUMBERED_LIST_MENU_ITEM, OUTDENT_MENU_ITEM, TASK_LIST_MENU_ITEM, TEXT_SECTION, TEXT_SECTION_RANK, LISTS_INDENTATION_GROUP_RANK, LISTS_INDENTATION_MENU_RANK, LISTS_INDENTATION_MENU_SECTION_RANK, TEXT_COLLAPSED_MENU, TEXT_COLLAPSED_MENU_RANK } from '@atlaskit/editor-common/toolbar';
3
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
4
1
  import { getBulletedListButtonGroup } from './toolbar-components/BulletedListButtonGroup';
5
- import { BulletedListMenuItem } from './toolbar-components/BulletedListMenuItem';
6
- import { IndentMenuItem } from './toolbar-components/IndentMenuItem';
7
2
  import { getListsIndentationGroupForInlineToolbar } from './toolbar-components/ListsIndentationGroupForInlineToolbar';
8
3
  import { getListsIndentationGroupForPrimaryToolbar } from './toolbar-components/ListsIndentationGroupForPrimaryToolbar';
9
- import { ListsIndentationHeroButton } from './toolbar-components/ListsIndentationHeroButton';
10
4
  import { getListsIndentationHeroButton } from './toolbar-components/ListsIndentationHeroButtonGroup';
11
- import { ListsIndentationMenu } from './toolbar-components/ListsIndentationMenu';
12
5
  import { getListsIndentationMenu } from './toolbar-components/ListsIndentationMenuGroup';
13
- import { MenuSection } from './toolbar-components/MenuSection';
14
- import { NumberedListMenuItem } from './toolbar-components/NumberedListMenuItem';
15
- import { OutdentMenuItem } from './toolbar-components/OutdentMenuItem';
16
- import { TaskListMenuItem } from './toolbar-components/TaskListMenuItem';
17
6
  export const getToolbarComponents = ({
18
7
  api,
19
8
  showIndentationButtons,
20
9
  allowHeadingAndParagraphIndentation
21
- }) => {
22
- return expValEquals('platform_editor_toolbar_aifc_responsiveness_update', 'isEnabled', true) ? getToolbarComponentsResponsivenessUpdate({
23
- api,
24
- showIndentationButtons,
25
- allowHeadingAndParagraphIndentation
26
- }) : [{
27
- type: LISTS_INDENTATION_GROUP.type,
28
- key: LISTS_INDENTATION_GROUP.key,
29
- parents: [{
30
- type: TEXT_SECTION.type,
31
- key: TEXT_SECTION.key,
32
- rank: TEXT_SECTION_RANK[LISTS_INDENTATION_GROUP.key]
33
- }]
34
- }, {
35
- type: LISTS_INDENTATION_HERO_BUTTON.type,
36
- key: LISTS_INDENTATION_HERO_BUTTON.key,
37
- parents: [{
38
- type: LISTS_INDENTATION_GROUP.type,
39
- key: LISTS_INDENTATION_GROUP.key,
40
- rank: LISTS_INDENTATION_GROUP_RANK[LISTS_INDENTATION_HERO_BUTTON.key]
41
- }],
42
- component: ({
43
- parents
44
- }) => /*#__PURE__*/React.createElement(ListsIndentationHeroButton, {
45
- api: api,
46
- parents: parents
47
- })
48
- }, {
49
- type: LISTS_INDENTATION_MENU.type,
50
- key: LISTS_INDENTATION_MENU.key,
51
- parents: [{
52
- type: LISTS_INDENTATION_GROUP.type,
53
- key: LISTS_INDENTATION_GROUP.key,
54
- rank: LISTS_INDENTATION_GROUP_RANK[LISTS_INDENTATION_MENU.key]
55
- }],
56
- component: ({
57
- children
58
- }) => /*#__PURE__*/React.createElement(ListsIndentationMenu, {
59
- api: api,
60
- allowHeadingAndParagraphIndentation: allowHeadingAndParagraphIndentation
61
- }, children)
62
- }, {
63
- type: LISTS_INDENTATION_MENU_SECTION.type,
64
- key: LISTS_INDENTATION_MENU_SECTION.key,
65
- parents: [{
66
- type: LISTS_INDENTATION_MENU.type,
67
- key: LISTS_INDENTATION_MENU.key,
68
- rank: LISTS_INDENTATION_MENU_RANK[LISTS_INDENTATION_MENU_SECTION.key]
69
- }, ...(expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? [{
70
- type: TEXT_COLLAPSED_MENU.type,
71
- key: TEXT_COLLAPSED_MENU.key,
72
- rank: TEXT_COLLAPSED_MENU_RANK[LISTS_INDENTATION_MENU_SECTION.key]
73
- }] : [])],
74
- component: expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? MenuSection : undefined
75
- }, {
76
- type: BULLETED_LIST_MENU_ITEM.type,
77
- key: BULLETED_LIST_MENU_ITEM.key,
78
- parents: [{
79
- type: LISTS_INDENTATION_MENU_SECTION.type,
80
- key: LISTS_INDENTATION_MENU_SECTION.key,
81
- rank: LISTS_INDENTATION_MENU_SECTION_RANK[BULLETED_LIST_MENU_ITEM.key]
82
- }],
83
- component: ({
84
- parents
85
- }) => /*#__PURE__*/React.createElement(BulletedListMenuItem, {
86
- api: api,
87
- parents: parents
88
- })
89
- }, {
90
- type: NUMBERED_LIST_MENU_ITEM.type,
91
- key: NUMBERED_LIST_MENU_ITEM.key,
92
- parents: [{
93
- type: LISTS_INDENTATION_MENU_SECTION.type,
94
- key: LISTS_INDENTATION_MENU_SECTION.key,
95
- rank: LISTS_INDENTATION_MENU_SECTION_RANK[NUMBERED_LIST_MENU_ITEM.key]
96
- }],
97
- component: ({
98
- parents
99
- }) => /*#__PURE__*/React.createElement(NumberedListMenuItem, {
100
- api: api,
101
- parents: parents
102
- })
103
- }, ...(!expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true) ? [{
104
- type: TASK_LIST_MENU_ITEM.type,
105
- key: TASK_LIST_MENU_ITEM.key,
106
- parents: [{
107
- type: LISTS_INDENTATION_MENU_SECTION.type,
108
- key: LISTS_INDENTATION_MENU_SECTION.key,
109
- rank: LISTS_INDENTATION_MENU_SECTION_RANK[TASK_LIST_MENU_ITEM.key]
110
- }],
111
- component: expValEquals('platform_editor_toolbar_task_list_menu_item', 'isEnabled', true) ? ({
112
- parents
113
- }) => /*#__PURE__*/React.createElement(TaskListMenuItem, {
114
- api: api,
115
- parents: parents
116
- }) : undefined
117
- }] : []), {
118
- type: OUTDENT_MENU_ITEM.type,
119
- key: OUTDENT_MENU_ITEM.key,
120
- parents: [{
121
- type: LISTS_INDENTATION_MENU_SECTION.type,
122
- key: LISTS_INDENTATION_MENU_SECTION.key,
123
- rank: LISTS_INDENTATION_MENU_SECTION_RANK[OUTDENT_MENU_ITEM.key]
124
- }],
125
- component: ({
126
- parents
127
- }) => /*#__PURE__*/React.createElement(OutdentMenuItem, {
128
- api: api,
129
- allowHeadingAndParagraphIndentation: allowHeadingAndParagraphIndentation,
130
- showIndentationButtons: showIndentationButtons,
131
- parents: parents
132
- })
133
- }, {
134
- type: INDENT_MENU_ITEM.type,
135
- key: INDENT_MENU_ITEM.key,
136
- parents: [{
137
- type: LISTS_INDENTATION_MENU_SECTION.type,
138
- key: LISTS_INDENTATION_MENU_SECTION.key,
139
- rank: LISTS_INDENTATION_MENU_SECTION_RANK[INDENT_MENU_ITEM.key]
140
- }],
141
- component: ({
142
- parents
143
- }) => /*#__PURE__*/React.createElement(IndentMenuItem, {
144
- api: api,
145
- allowHeadingAndParagraphIndentation: allowHeadingAndParagraphIndentation,
146
- showIndentationButtons: showIndentationButtons,
147
- parents: parents
148
- })
149
- }];
150
- };
151
- const getToolbarComponentsResponsivenessUpdate = ({
152
- api,
153
- showIndentationButtons,
154
- allowHeadingAndParagraphIndentation
155
10
  }) => {
156
11
  return [...getListsIndentationGroupForPrimaryToolbar(), ...getListsIndentationGroupForInlineToolbar(), ...getListsIndentationHeroButton(api), ...getBulletedListButtonGroup(api), ...getListsIndentationMenu(allowHeadingAndParagraphIndentation, showIndentationButtons, api)];
157
12
  };
@@ -1,163 +1,12 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
- import React from 'react';
3
- import { BULLETED_LIST_MENU_ITEM, INDENT_MENU_ITEM, LISTS_INDENTATION_GROUP, LISTS_INDENTATION_HERO_BUTTON, LISTS_INDENTATION_MENU, LISTS_INDENTATION_MENU_SECTION, NUMBERED_LIST_MENU_ITEM, OUTDENT_MENU_ITEM, TASK_LIST_MENU_ITEM, TEXT_SECTION, TEXT_SECTION_RANK, LISTS_INDENTATION_GROUP_RANK, LISTS_INDENTATION_MENU_RANK, LISTS_INDENTATION_MENU_SECTION_RANK, TEXT_COLLAPSED_MENU, TEXT_COLLAPSED_MENU_RANK } from '@atlaskit/editor-common/toolbar';
4
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
2
  import { getBulletedListButtonGroup } from './toolbar-components/BulletedListButtonGroup';
6
- import { BulletedListMenuItem } from './toolbar-components/BulletedListMenuItem';
7
- import { IndentMenuItem } from './toolbar-components/IndentMenuItem';
8
3
  import { getListsIndentationGroupForInlineToolbar } from './toolbar-components/ListsIndentationGroupForInlineToolbar';
9
4
  import { getListsIndentationGroupForPrimaryToolbar } from './toolbar-components/ListsIndentationGroupForPrimaryToolbar';
10
- import { ListsIndentationHeroButton } from './toolbar-components/ListsIndentationHeroButton';
11
5
  import { getListsIndentationHeroButton } from './toolbar-components/ListsIndentationHeroButtonGroup';
12
- import { ListsIndentationMenu } from './toolbar-components/ListsIndentationMenu';
13
6
  import { getListsIndentationMenu } from './toolbar-components/ListsIndentationMenuGroup';
14
- import { MenuSection } from './toolbar-components/MenuSection';
15
- import { NumberedListMenuItem } from './toolbar-components/NumberedListMenuItem';
16
- import { OutdentMenuItem } from './toolbar-components/OutdentMenuItem';
17
- import { TaskListMenuItem } from './toolbar-components/TaskListMenuItem';
18
7
  export var getToolbarComponents = function getToolbarComponents(_ref) {
19
8
  var api = _ref.api,
20
9
  showIndentationButtons = _ref.showIndentationButtons,
21
10
  allowHeadingAndParagraphIndentation = _ref.allowHeadingAndParagraphIndentation;
22
- return expValEquals('platform_editor_toolbar_aifc_responsiveness_update', 'isEnabled', true) ? getToolbarComponentsResponsivenessUpdate({
23
- api: api,
24
- showIndentationButtons: showIndentationButtons,
25
- allowHeadingAndParagraphIndentation: allowHeadingAndParagraphIndentation
26
- }) : [{
27
- type: LISTS_INDENTATION_GROUP.type,
28
- key: LISTS_INDENTATION_GROUP.key,
29
- parents: [{
30
- type: TEXT_SECTION.type,
31
- key: TEXT_SECTION.key,
32
- rank: TEXT_SECTION_RANK[LISTS_INDENTATION_GROUP.key]
33
- }]
34
- }, {
35
- type: LISTS_INDENTATION_HERO_BUTTON.type,
36
- key: LISTS_INDENTATION_HERO_BUTTON.key,
37
- parents: [{
38
- type: LISTS_INDENTATION_GROUP.type,
39
- key: LISTS_INDENTATION_GROUP.key,
40
- rank: LISTS_INDENTATION_GROUP_RANK[LISTS_INDENTATION_HERO_BUTTON.key]
41
- }],
42
- component: function component(_ref2) {
43
- var parents = _ref2.parents;
44
- return /*#__PURE__*/React.createElement(ListsIndentationHeroButton, {
45
- api: api,
46
- parents: parents
47
- });
48
- }
49
- }, {
50
- type: LISTS_INDENTATION_MENU.type,
51
- key: LISTS_INDENTATION_MENU.key,
52
- parents: [{
53
- type: LISTS_INDENTATION_GROUP.type,
54
- key: LISTS_INDENTATION_GROUP.key,
55
- rank: LISTS_INDENTATION_GROUP_RANK[LISTS_INDENTATION_MENU.key]
56
- }],
57
- component: function component(_ref3) {
58
- var children = _ref3.children;
59
- return /*#__PURE__*/React.createElement(ListsIndentationMenu, {
60
- api: api,
61
- allowHeadingAndParagraphIndentation: allowHeadingAndParagraphIndentation
62
- }, children);
63
- }
64
- }, {
65
- type: LISTS_INDENTATION_MENU_SECTION.type,
66
- key: LISTS_INDENTATION_MENU_SECTION.key,
67
- parents: [{
68
- type: LISTS_INDENTATION_MENU.type,
69
- key: LISTS_INDENTATION_MENU.key,
70
- rank: LISTS_INDENTATION_MENU_RANK[LISTS_INDENTATION_MENU_SECTION.key]
71
- }].concat(_toConsumableArray(expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? [{
72
- type: TEXT_COLLAPSED_MENU.type,
73
- key: TEXT_COLLAPSED_MENU.key,
74
- rank: TEXT_COLLAPSED_MENU_RANK[LISTS_INDENTATION_MENU_SECTION.key]
75
- }] : [])),
76
- component: expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? MenuSection : undefined
77
- }, {
78
- type: BULLETED_LIST_MENU_ITEM.type,
79
- key: BULLETED_LIST_MENU_ITEM.key,
80
- parents: [{
81
- type: LISTS_INDENTATION_MENU_SECTION.type,
82
- key: LISTS_INDENTATION_MENU_SECTION.key,
83
- rank: LISTS_INDENTATION_MENU_SECTION_RANK[BULLETED_LIST_MENU_ITEM.key]
84
- }],
85
- component: function component(_ref4) {
86
- var parents = _ref4.parents;
87
- return /*#__PURE__*/React.createElement(BulletedListMenuItem, {
88
- api: api,
89
- parents: parents
90
- });
91
- }
92
- }, {
93
- type: NUMBERED_LIST_MENU_ITEM.type,
94
- key: NUMBERED_LIST_MENU_ITEM.key,
95
- parents: [{
96
- type: LISTS_INDENTATION_MENU_SECTION.type,
97
- key: LISTS_INDENTATION_MENU_SECTION.key,
98
- rank: LISTS_INDENTATION_MENU_SECTION_RANK[NUMBERED_LIST_MENU_ITEM.key]
99
- }],
100
- component: function component(_ref5) {
101
- var parents = _ref5.parents;
102
- return /*#__PURE__*/React.createElement(NumberedListMenuItem, {
103
- api: api,
104
- parents: parents
105
- });
106
- }
107
- }].concat(_toConsumableArray(!expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true) ? [{
108
- type: TASK_LIST_MENU_ITEM.type,
109
- key: TASK_LIST_MENU_ITEM.key,
110
- parents: [{
111
- type: LISTS_INDENTATION_MENU_SECTION.type,
112
- key: LISTS_INDENTATION_MENU_SECTION.key,
113
- rank: LISTS_INDENTATION_MENU_SECTION_RANK[TASK_LIST_MENU_ITEM.key]
114
- }],
115
- component: expValEquals('platform_editor_toolbar_task_list_menu_item', 'isEnabled', true) ? function (_ref6) {
116
- var parents = _ref6.parents;
117
- return /*#__PURE__*/React.createElement(TaskListMenuItem, {
118
- api: api,
119
- parents: parents
120
- });
121
- } : undefined
122
- }] : []), [{
123
- type: OUTDENT_MENU_ITEM.type,
124
- key: OUTDENT_MENU_ITEM.key,
125
- parents: [{
126
- type: LISTS_INDENTATION_MENU_SECTION.type,
127
- key: LISTS_INDENTATION_MENU_SECTION.key,
128
- rank: LISTS_INDENTATION_MENU_SECTION_RANK[OUTDENT_MENU_ITEM.key]
129
- }],
130
- component: function component(_ref7) {
131
- var parents = _ref7.parents;
132
- return /*#__PURE__*/React.createElement(OutdentMenuItem, {
133
- api: api,
134
- allowHeadingAndParagraphIndentation: allowHeadingAndParagraphIndentation,
135
- showIndentationButtons: showIndentationButtons,
136
- parents: parents
137
- });
138
- }
139
- }, {
140
- type: INDENT_MENU_ITEM.type,
141
- key: INDENT_MENU_ITEM.key,
142
- parents: [{
143
- type: LISTS_INDENTATION_MENU_SECTION.type,
144
- key: LISTS_INDENTATION_MENU_SECTION.key,
145
- rank: LISTS_INDENTATION_MENU_SECTION_RANK[INDENT_MENU_ITEM.key]
146
- }],
147
- component: function component(_ref8) {
148
- var parents = _ref8.parents;
149
- return /*#__PURE__*/React.createElement(IndentMenuItem, {
150
- api: api,
151
- allowHeadingAndParagraphIndentation: allowHeadingAndParagraphIndentation,
152
- showIndentationButtons: showIndentationButtons,
153
- parents: parents
154
- });
155
- }
156
- }]);
157
- };
158
- var getToolbarComponentsResponsivenessUpdate = function getToolbarComponentsResponsivenessUpdate(_ref9) {
159
- var api = _ref9.api,
160
- showIndentationButtons = _ref9.showIndentationButtons,
161
- allowHeadingAndParagraphIndentation = _ref9.allowHeadingAndParagraphIndentation;
162
11
  return [].concat(_toConsumableArray(getListsIndentationGroupForPrimaryToolbar()), _toConsumableArray(getListsIndentationGroupForInlineToolbar()), _toConsumableArray(getListsIndentationHeroButton(api)), _toConsumableArray(getBulletedListButtonGroup(api)), _toConsumableArray(getListsIndentationMenu(allowHeadingAndParagraphIndentation, showIndentationButtons, api)));
163
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-toolbar-lists-indentation",
3
- "version": "7.0.7",
3
+ "version": "7.0.9",
4
4
  "description": "Toolbar lists and indentation plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -41,16 +41,16 @@
41
41
  "@atlaskit/editor-plugin-toolbar": "^3.1.0",
42
42
  "@atlaskit/editor-prosemirror": "7.0.0",
43
43
  "@atlaskit/editor-shared-styles": "^3.6.0",
44
- "@atlaskit/editor-toolbar": "^0.13.0",
44
+ "@atlaskit/editor-toolbar": "^0.14.0",
45
45
  "@atlaskit/editor-toolbar-model": "^0.2.0",
46
46
  "@atlaskit/icon": "^28.4.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
- "@atlaskit/tmp-editor-statsig": "^13.2.0",
48
+ "@atlaskit/tmp-editor-statsig": "^13.4.0",
49
49
  "@atlaskit/tokens": "^6.4.0",
50
50
  "@babel/runtime": "^7.0.0"
51
51
  },
52
52
  "peerDependencies": {
53
- "@atlaskit/editor-common": "^110.4.0",
53
+ "@atlaskit/editor-common": "^110.7.0",
54
54
  "react": "^18.2.0",
55
55
  "react-dom": "^18.2.0",
56
56
  "react-intl-next": "npm:react-intl@^5.18.1"