@atlaskit/editor-plugin-tasks-and-decisions 10.1.21 → 10.1.23
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 +14 -0
- package/dist/cjs/ui/DecisionListBlockMenuItem/DecisionListBlockMenuItem.js +8 -1
- package/dist/cjs/ui/TaskListBlockMenuItem/TaskListBlockMenuItem.js +8 -1
- package/dist/es2019/ui/DecisionListBlockMenuItem/DecisionListBlockMenuItem.js +8 -1
- package/dist/es2019/ui/TaskListBlockMenuItem/TaskListBlockMenuItem.js +8 -1
- package/dist/esm/ui/DecisionListBlockMenuItem/DecisionListBlockMenuItem.js +8 -1
- package/dist/esm/ui/TaskListBlockMenuItem/TaskListBlockMenuItem.js +8 -1
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-tasks-and-decisions
|
|
2
2
|
|
|
3
|
+
## 10.1.23
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 10.1.22
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`7ea2e225c0abb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7ea2e225c0abb) -
|
|
14
|
+
[ux] Minor styling, wording changes for block menu and sync blocks
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 10.1.21
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -11,6 +11,7 @@ var _analytics = require("@atlaskit/editor-common/analytics");
|
|
|
11
11
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
12
12
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
13
13
|
var _decision = _interopRequireDefault(require("@atlaskit/icon/core/decision"));
|
|
14
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
15
|
var NODE_NAME = 'decisionList';
|
|
15
16
|
var DecisionListBlockMenuItem = exports.DecisionListBlockMenuItem = function DecisionListBlockMenuItem(_ref) {
|
|
16
17
|
var api = _ref.api;
|
|
@@ -32,10 +33,16 @@ var DecisionListBlockMenuItem = exports.DecisionListBlockMenuItem = function Dec
|
|
|
32
33
|
}) : null;
|
|
33
34
|
});
|
|
34
35
|
};
|
|
36
|
+
|
|
37
|
+
// [FEATURE FLAG: platform_editor_block_menu_v2_patch_3]
|
|
38
|
+
// Adds size="small" to icons for better visual consistency in block menu.
|
|
39
|
+
// To clean up: remove conditional, keep only size="small" version.
|
|
40
|
+
var iconSize = (0, _platformFeatureFlags.fg)('platform_editor_block_menu_v2_patch_3') ? 'small' : undefined;
|
|
35
41
|
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItem, {
|
|
36
42
|
onClick: onClick,
|
|
37
43
|
elemBefore: /*#__PURE__*/_react.default.createElement(_decision.default, {
|
|
38
|
-
label: ""
|
|
44
|
+
label: "",
|
|
45
|
+
size: iconSize
|
|
39
46
|
})
|
|
40
47
|
}, formatMessage(_messages.blockMenuMessages.decisionList));
|
|
41
48
|
};
|
|
@@ -11,6 +11,7 @@ var _analytics = require("@atlaskit/editor-common/analytics");
|
|
|
11
11
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
12
12
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
13
13
|
var _task = _interopRequireDefault(require("@atlaskit/icon/core/task"));
|
|
14
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
15
|
var NODE_NAME = 'taskList';
|
|
15
16
|
var TaskListBlockMenuItem = exports.TaskListBlockMenuItem = function TaskListBlockMenuItem(_ref) {
|
|
16
17
|
var api = _ref.api;
|
|
@@ -32,10 +33,16 @@ var TaskListBlockMenuItem = exports.TaskListBlockMenuItem = function TaskListBlo
|
|
|
32
33
|
}) : null;
|
|
33
34
|
});
|
|
34
35
|
};
|
|
36
|
+
|
|
37
|
+
// [FEATURE FLAG: platform_editor_block_menu_v2_patch_3]
|
|
38
|
+
// Adds size="small" to icons for better visual consistency in block menu.
|
|
39
|
+
// To clean up: remove conditional, keep only size="small" version.
|
|
40
|
+
var iconSize = (0, _platformFeatureFlags.fg)('platform_editor_block_menu_v2_patch_3') ? 'small' : undefined;
|
|
35
41
|
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItem, {
|
|
36
42
|
onClick: onClick,
|
|
37
43
|
elemBefore: /*#__PURE__*/_react.default.createElement(_task.default, {
|
|
38
|
-
label: ""
|
|
44
|
+
label: "",
|
|
45
|
+
size: iconSize
|
|
39
46
|
})
|
|
40
47
|
}, formatMessage(_messages.tasksAndDecisionsMessages.taskList));
|
|
41
48
|
};
|
|
@@ -4,6 +4,7 @@ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
|
4
4
|
import { blockMenuMessages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
|
|
6
6
|
import DecisionIcon from '@atlaskit/icon/core/decision';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
8
|
const NODE_NAME = 'decisionList';
|
|
8
9
|
export const DecisionListBlockMenuItem = ({
|
|
9
10
|
api
|
|
@@ -28,10 +29,16 @@ export const DecisionListBlockMenuItem = ({
|
|
|
28
29
|
}) : null;
|
|
29
30
|
});
|
|
30
31
|
};
|
|
32
|
+
|
|
33
|
+
// [FEATURE FLAG: platform_editor_block_menu_v2_patch_3]
|
|
34
|
+
// Adds size="small" to icons for better visual consistency in block menu.
|
|
35
|
+
// To clean up: remove conditional, keep only size="small" version.
|
|
36
|
+
const iconSize = fg('platform_editor_block_menu_v2_patch_3') ? 'small' : undefined;
|
|
31
37
|
return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
|
|
32
38
|
onClick: onClick,
|
|
33
39
|
elemBefore: /*#__PURE__*/React.createElement(DecisionIcon, {
|
|
34
|
-
label: ""
|
|
40
|
+
label: "",
|
|
41
|
+
size: iconSize
|
|
35
42
|
})
|
|
36
43
|
}, formatMessage(blockMenuMessages.decisionList));
|
|
37
44
|
};
|
|
@@ -4,6 +4,7 @@ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
|
4
4
|
import { tasksAndDecisionsMessages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
|
|
6
6
|
import TaskIcon from '@atlaskit/icon/core/task';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
8
|
const NODE_NAME = 'taskList';
|
|
8
9
|
export const TaskListBlockMenuItem = ({
|
|
9
10
|
api
|
|
@@ -28,10 +29,16 @@ export const TaskListBlockMenuItem = ({
|
|
|
28
29
|
}) : null;
|
|
29
30
|
});
|
|
30
31
|
};
|
|
32
|
+
|
|
33
|
+
// [FEATURE FLAG: platform_editor_block_menu_v2_patch_3]
|
|
34
|
+
// Adds size="small" to icons for better visual consistency in block menu.
|
|
35
|
+
// To clean up: remove conditional, keep only size="small" version.
|
|
36
|
+
const iconSize = fg('platform_editor_block_menu_v2_patch_3') ? 'small' : undefined;
|
|
31
37
|
return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
|
|
32
38
|
onClick: onClick,
|
|
33
39
|
elemBefore: /*#__PURE__*/React.createElement(TaskIcon, {
|
|
34
|
-
label: ""
|
|
40
|
+
label: "",
|
|
41
|
+
size: iconSize
|
|
35
42
|
})
|
|
36
43
|
}, formatMessage(tasksAndDecisionsMessages.taskList));
|
|
37
44
|
};
|
|
@@ -4,6 +4,7 @@ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
|
4
4
|
import { blockMenuMessages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
|
|
6
6
|
import DecisionIcon from '@atlaskit/icon/core/decision';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
8
|
var NODE_NAME = 'decisionList';
|
|
8
9
|
export var DecisionListBlockMenuItem = function DecisionListBlockMenuItem(_ref) {
|
|
9
10
|
var api = _ref.api;
|
|
@@ -25,10 +26,16 @@ export var DecisionListBlockMenuItem = function DecisionListBlockMenuItem(_ref)
|
|
|
25
26
|
}) : null;
|
|
26
27
|
});
|
|
27
28
|
};
|
|
29
|
+
|
|
30
|
+
// [FEATURE FLAG: platform_editor_block_menu_v2_patch_3]
|
|
31
|
+
// Adds size="small" to icons for better visual consistency in block menu.
|
|
32
|
+
// To clean up: remove conditional, keep only size="small" version.
|
|
33
|
+
var iconSize = fg('platform_editor_block_menu_v2_patch_3') ? 'small' : undefined;
|
|
28
34
|
return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
|
|
29
35
|
onClick: onClick,
|
|
30
36
|
elemBefore: /*#__PURE__*/React.createElement(DecisionIcon, {
|
|
31
|
-
label: ""
|
|
37
|
+
label: "",
|
|
38
|
+
size: iconSize
|
|
32
39
|
})
|
|
33
40
|
}, formatMessage(blockMenuMessages.decisionList));
|
|
34
41
|
};
|
|
@@ -4,6 +4,7 @@ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
|
4
4
|
import { tasksAndDecisionsMessages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
|
|
6
6
|
import TaskIcon from '@atlaskit/icon/core/task';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
8
|
var NODE_NAME = 'taskList';
|
|
8
9
|
export var TaskListBlockMenuItem = function TaskListBlockMenuItem(_ref) {
|
|
9
10
|
var api = _ref.api;
|
|
@@ -25,10 +26,16 @@ export var TaskListBlockMenuItem = function TaskListBlockMenuItem(_ref) {
|
|
|
25
26
|
}) : null;
|
|
26
27
|
});
|
|
27
28
|
};
|
|
29
|
+
|
|
30
|
+
// [FEATURE FLAG: platform_editor_block_menu_v2_patch_3]
|
|
31
|
+
// Adds size="small" to icons for better visual consistency in block menu.
|
|
32
|
+
// To clean up: remove conditional, keep only size="small" version.
|
|
33
|
+
var iconSize = fg('platform_editor_block_menu_v2_patch_3') ? 'small' : undefined;
|
|
28
34
|
return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
|
|
29
35
|
onClick: onClick,
|
|
30
36
|
elemBefore: /*#__PURE__*/React.createElement(TaskIcon, {
|
|
31
|
-
label: ""
|
|
37
|
+
label: "",
|
|
38
|
+
size: iconSize
|
|
32
39
|
})
|
|
33
40
|
}, formatMessage(tasksAndDecisionsMessages.taskList));
|
|
34
41
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-tasks-and-decisions",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.23",
|
|
4
4
|
"description": "Tasks and decisions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -44,19 +44,19 @@
|
|
|
44
44
|
"@atlaskit/editor-toolbar": "^0.19.0",
|
|
45
45
|
"@atlaskit/editor-toolbar-model": "^0.4.0",
|
|
46
46
|
"@atlaskit/heading": "^5.3.0",
|
|
47
|
-
"@atlaskit/icon": "^
|
|
47
|
+
"@atlaskit/icon": "^32.0.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
49
49
|
"@atlaskit/primitives": "^18.0.0",
|
|
50
50
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
51
51
|
"@atlaskit/task-decision": "^19.2.0",
|
|
52
|
-
"@atlaskit/tmp-editor-statsig": "^29.
|
|
52
|
+
"@atlaskit/tmp-editor-statsig": "^29.6.0",
|
|
53
53
|
"@atlaskit/tokens": "^11.0.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
55
55
|
"@compiled/react": "^0.18.6",
|
|
56
56
|
"bind-event-listener": "^3.0.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@atlaskit/editor-common": "^111.
|
|
59
|
+
"@atlaskit/editor-common": "^111.20.0",
|
|
60
60
|
"react": "^18.2.0",
|
|
61
61
|
"react-dom": "^18.2.0",
|
|
62
62
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -107,6 +107,9 @@
|
|
|
107
107
|
"platform_editor_blocktaskitem_patch_3": {
|
|
108
108
|
"type": "boolean"
|
|
109
109
|
},
|
|
110
|
+
"platform_editor_block_menu_v2_patch_3": {
|
|
111
|
+
"type": "boolean"
|
|
112
|
+
},
|
|
110
113
|
"platform_editor_toolbar_task_list_analytics": {
|
|
111
114
|
"type": "boolean"
|
|
112
115
|
}
|