@atlaskit/editor-plugin-toolbar-lists-indentation 16.0.9 → 16.1.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,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-toolbar-lists-indentation
|
|
2
2
|
|
|
3
|
+
## 16.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`d96f86ff344b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d96f86ff344b8) -
|
|
8
|
+
Use @atlaskit/platform-feature-experiments directly for
|
|
9
|
+
platform_editor_vc90_transition_expand_icon, platform_editor_add_image_editing,
|
|
10
|
+
platform_editor_ai_multi_format_streaming, platform_editor_default_toolbar_state,
|
|
11
|
+
platform_editor_early_exit_return_draft, platform_editor_fix_focus_MediaInsertPicker,
|
|
12
|
+
platform_editor_fix_table_move_shortcut, platform_editor_menu_radius_update,
|
|
13
|
+
platform_editor_react19_migration, and show_mentions_in_suggest_reply.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 16.0.9
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -13,7 +13,7 @@ var _messages = require("@atlaskit/editor-common/messages");
|
|
|
13
13
|
var _toolbar = require("@atlaskit/editor-common/toolbar");
|
|
14
14
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
15
15
|
var _task = _interopRequireDefault(require("@atlaskit/icon/core/task"));
|
|
16
|
-
var
|
|
16
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
17
17
|
var _markdownCompatibleToolbar = require("../utils/markdown-compatible-toolbar");
|
|
18
18
|
function useListsIndentationHeroButtonInfo(_ref) {
|
|
19
19
|
var api = _ref.api,
|
|
@@ -24,7 +24,7 @@ function useListsIndentationHeroButtonInfo(_ref) {
|
|
|
24
24
|
var isMarkdownToolbarEnabled = (0, _markdownCompatibleToolbar.isMarkdownCompatibleToolbarEnabled)();
|
|
25
25
|
var _useSharedPluginState = (0, _hooks.useSharedPluginStateWithSelector)(api, ['list', 'taskDecision', 'interaction', 'markdownMode'], function (states) {
|
|
26
26
|
var _states$interactionSt, _states$listState, _states$listState2, _states$listState3, _states$taskDecisionS, _states$markdownModeS, _states$markdownModeS2, _states$markdownModeS3;
|
|
27
|
-
var useDefaultToolbarState = ((_states$interactionSt = states.interactionState) === null || _states$interactionSt === void 0 ? void 0 : _states$interactionSt.interactionState) === 'hasNotHadInteraction' && (0,
|
|
27
|
+
var useDefaultToolbarState = ((_states$interactionSt = states.interactionState) === null || _states$interactionSt === void 0 ? void 0 : _states$interactionSt.interactionState) === 'hasNotHadInteraction' && (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_default_toolbar_state');
|
|
28
28
|
return {
|
|
29
29
|
pmBulletListActive: useDefaultToolbarState ? false : (_states$listState = states.listState) === null || _states$listState === void 0 ? void 0 : _states$listState.bulletListActive,
|
|
30
30
|
pmBulletListDisabled: (_states$listState2 = states.listState) === null || _states$listState2 === void 0 ? void 0 : _states$listState2.bulletListDisabled,
|
|
@@ -6,7 +6,7 @@ import { listMessages, tasksAndDecisionsMessages } from '@atlaskit/editor-common
|
|
|
6
6
|
import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
|
|
7
7
|
import { ListBulletedIcon, ListNumberedIcon, ToolbarButton, ToolbarTooltip } from '@atlaskit/editor-toolbar';
|
|
8
8
|
import TaskIcon from '@atlaskit/icon/core/task';
|
|
9
|
-
import {
|
|
9
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
10
10
|
import { isMarkdownCompatibleToolbarEnabled } from '../utils/markdown-compatible-toolbar';
|
|
11
11
|
function useListsIndentationHeroButtonInfo({
|
|
12
12
|
api,
|
|
@@ -27,7 +27,7 @@ function useListsIndentationHeroButtonInfo({
|
|
|
27
27
|
markdownView
|
|
28
28
|
} = useSharedPluginStateWithSelector(api, ['list', 'taskDecision', 'interaction', 'markdownMode'], states => {
|
|
29
29
|
var _states$interactionSt, _states$listState, _states$listState2, _states$listState3, _states$taskDecisionS, _states$markdownModeS, _states$markdownModeS2, _states$markdownModeS3;
|
|
30
|
-
const useDefaultToolbarState = ((_states$interactionSt = states.interactionState) === null || _states$interactionSt === void 0 ? void 0 : _states$interactionSt.interactionState) === 'hasNotHadInteraction' &&
|
|
30
|
+
const useDefaultToolbarState = ((_states$interactionSt = states.interactionState) === null || _states$interactionSt === void 0 ? void 0 : _states$interactionSt.interactionState) === 'hasNotHadInteraction' && isExperimentEnabled('platform_editor_default_toolbar_state');
|
|
31
31
|
return {
|
|
32
32
|
pmBulletListActive: useDefaultToolbarState ? false : (_states$listState = states.listState) === null || _states$listState === void 0 ? void 0 : _states$listState.bulletListActive,
|
|
33
33
|
pmBulletListDisabled: (_states$listState2 = states.listState) === null || _states$listState2 === void 0 ? void 0 : _states$listState2.bulletListDisabled,
|
|
@@ -6,7 +6,7 @@ import { listMessages, tasksAndDecisionsMessages } from '@atlaskit/editor-common
|
|
|
6
6
|
import { getInputMethodFromParentKeys } from '@atlaskit/editor-common/toolbar';
|
|
7
7
|
import { ListBulletedIcon, ListNumberedIcon, ToolbarButton, ToolbarTooltip } from '@atlaskit/editor-toolbar';
|
|
8
8
|
import TaskIcon from '@atlaskit/icon/core/task';
|
|
9
|
-
import {
|
|
9
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
10
10
|
import { isMarkdownCompatibleToolbarEnabled } from '../utils/markdown-compatible-toolbar';
|
|
11
11
|
function useListsIndentationHeroButtonInfo(_ref) {
|
|
12
12
|
var api = _ref.api,
|
|
@@ -17,7 +17,7 @@ function useListsIndentationHeroButtonInfo(_ref) {
|
|
|
17
17
|
var isMarkdownToolbarEnabled = isMarkdownCompatibleToolbarEnabled();
|
|
18
18
|
var _useSharedPluginState = useSharedPluginStateWithSelector(api, ['list', 'taskDecision', 'interaction', 'markdownMode'], function (states) {
|
|
19
19
|
var _states$interactionSt, _states$listState, _states$listState2, _states$listState3, _states$taskDecisionS, _states$markdownModeS, _states$markdownModeS2, _states$markdownModeS3;
|
|
20
|
-
var useDefaultToolbarState = ((_states$interactionSt = states.interactionState) === null || _states$interactionSt === void 0 ? void 0 : _states$interactionSt.interactionState) === 'hasNotHadInteraction' &&
|
|
20
|
+
var useDefaultToolbarState = ((_states$interactionSt = states.interactionState) === null || _states$interactionSt === void 0 ? void 0 : _states$interactionSt.interactionState) === 'hasNotHadInteraction' && isExperimentEnabled('platform_editor_default_toolbar_state');
|
|
21
21
|
return {
|
|
22
22
|
pmBulletListActive: useDefaultToolbarState ? false : (_states$listState = states.listState) === null || _states$listState === void 0 ? void 0 : _states$listState.bulletListActive,
|
|
23
23
|
pmBulletListDisabled: (_states$listState2 = states.listState) === null || _states$listState2 === void 0 ? void 0 : _states$listState2.bulletListDisabled,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-toolbar-lists-indentation",
|
|
3
|
-
"version": "16.0
|
|
3
|
+
"version": "16.1.0",
|
|
4
4
|
"description": "Toolbar lists and indentation plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@atlaskit/css": "^1.0.0",
|
|
25
25
|
"@atlaskit/editor-plugin-analytics": "^15.0.0",
|
|
26
|
-
"@atlaskit/editor-plugin-block-type": "^19.
|
|
26
|
+
"@atlaskit/editor-plugin-block-type": "^19.1.0",
|
|
27
27
|
"@atlaskit/editor-plugin-feature-flags": "^14.0.0",
|
|
28
28
|
"@atlaskit/editor-plugin-indentation": "^15.0.0",
|
|
29
29
|
"@atlaskit/editor-plugin-interaction": "^26.0.0",
|
|
@@ -33,16 +33,17 @@
|
|
|
33
33
|
"@atlaskit/editor-plugin-tasks-and-decisions": "^18.0.0",
|
|
34
34
|
"@atlaskit/editor-plugin-toolbar": "^12.0.0",
|
|
35
35
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
36
|
-
"@atlaskit/editor-toolbar": "^2.
|
|
36
|
+
"@atlaskit/editor-toolbar": "^2.6.0",
|
|
37
37
|
"@atlaskit/editor-toolbar-model": "^1.2.0",
|
|
38
|
-
"@atlaskit/icon": "^37.
|
|
38
|
+
"@atlaskit/icon": "^37.5.0",
|
|
39
|
+
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
39
40
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
40
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
41
|
-
"@atlaskit/tokens": "^16.
|
|
41
|
+
"@atlaskit/tmp-editor-statsig": "^157.0.0",
|
|
42
|
+
"@atlaskit/tokens": "^16.8.0",
|
|
42
43
|
"@babel/runtime": "^7.0.0"
|
|
43
44
|
},
|
|
44
45
|
"peerDependencies": {
|
|
45
|
-
"@atlaskit/editor-common": "^119.
|
|
46
|
+
"@atlaskit/editor-common": "^119.13.0",
|
|
46
47
|
"react": "^18.2.0 || ^19.2.0",
|
|
47
48
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
48
49
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|