@atlaskit/editor-plugin-toolbar-lists-indentation 19.0.10 → 19.0.12
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
|
+
## 19.0.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 19.0.11
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`0920715a6b9fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0920715a6b9fc) -
|
|
14
|
+
Clean up feature gate `platform_editor_use_preferences_plugin`
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 19.0.10
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -13,7 +13,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
13
13
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
14
14
|
var _types = require("@atlaskit/editor-common/types");
|
|
15
15
|
var _usePluginStateEffect = require("@atlaskit/editor-common/use-plugin-state-effect");
|
|
16
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
17
16
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
18
17
|
var _indentationButtons = require("./pm-plugins/indentation-buttons");
|
|
19
18
|
var _types2 = require("./types");
|
|
@@ -77,8 +76,8 @@ var toolbarListsIndentationPlugin = exports.toolbarListsIndentationPlugin = func
|
|
|
77
76
|
name: 'toolbarListsIndentation',
|
|
78
77
|
pluginsOptions: _objectSpread({}, !isToolbarAIFCEnabled && {
|
|
79
78
|
selectionToolbar: function selectionToolbar() {
|
|
80
|
-
var _api$userPreferences
|
|
81
|
-
var toolbarDocking =
|
|
79
|
+
var _api$userPreferences;
|
|
80
|
+
var toolbarDocking = api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.preferences.toolbarDockingPosition;
|
|
82
81
|
if (toolbarDocking === 'none' && (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1', {
|
|
83
82
|
exposure: true
|
|
84
83
|
})) {
|
|
@@ -2,7 +2,6 @@ import React, { useState } from 'react';
|
|
|
2
2
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
3
3
|
import { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
4
4
|
import { usePluginStateEffect } from '@atlaskit/editor-common/use-plugin-state-effect';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
6
5
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
7
6
|
import { getIndentationButtonsState } from './pm-plugins/indentation-buttons';
|
|
8
7
|
import { ToolbarType } from './types';
|
|
@@ -65,8 +64,8 @@ export const toolbarListsIndentationPlugin = ({
|
|
|
65
64
|
pluginsOptions: {
|
|
66
65
|
...(!isToolbarAIFCEnabled && {
|
|
67
66
|
selectionToolbar() {
|
|
68
|
-
var _api$userPreferences, _api$userPreferences
|
|
69
|
-
const toolbarDocking =
|
|
67
|
+
var _api$userPreferences, _api$userPreferences$;
|
|
68
|
+
const toolbarDocking = api === null || api === void 0 ? void 0 : (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 ? void 0 : (_api$userPreferences$ = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences$ === void 0 ? void 0 : _api$userPreferences$.preferences.toolbarDockingPosition;
|
|
70
69
|
if (toolbarDocking === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
|
|
71
70
|
exposure: true
|
|
72
71
|
})) {
|
|
@@ -6,7 +6,6 @@ import React, { useState } from 'react';
|
|
|
6
6
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
7
7
|
import { ToolbarSize } from '@atlaskit/editor-common/types';
|
|
8
8
|
import { usePluginStateEffect } from '@atlaskit/editor-common/use-plugin-state-effect';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
9
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
11
10
|
import { getIndentationButtonsState } from './pm-plugins/indentation-buttons';
|
|
12
11
|
import { ToolbarType } from './types';
|
|
@@ -67,8 +66,8 @@ export var toolbarListsIndentationPlugin = function toolbarListsIndentationPlugi
|
|
|
67
66
|
name: 'toolbarListsIndentation',
|
|
68
67
|
pluginsOptions: _objectSpread({}, !isToolbarAIFCEnabled && {
|
|
69
68
|
selectionToolbar: function selectionToolbar() {
|
|
70
|
-
var _api$userPreferences
|
|
71
|
-
var toolbarDocking =
|
|
69
|
+
var _api$userPreferences;
|
|
70
|
+
var toolbarDocking = api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.preferences.toolbarDockingPosition;
|
|
72
71
|
if (toolbarDocking === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
|
|
73
72
|
exposure: true
|
|
74
73
|
})) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-toolbar-lists-indentation",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.12",
|
|
4
4
|
"description": "Toolbar lists and indentation plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@atlaskit/editor-plugin-block-type": "^22.0.0",
|
|
27
27
|
"@atlaskit/editor-plugin-feature-flags": "^17.0.0",
|
|
28
28
|
"@atlaskit/editor-plugin-indentation": "^18.0.0",
|
|
29
|
-
"@atlaskit/editor-plugin-interaction": "^
|
|
29
|
+
"@atlaskit/editor-plugin-interaction": "^31.0.0",
|
|
30
30
|
"@atlaskit/editor-plugin-list": "^20.0.0",
|
|
31
31
|
"@atlaskit/editor-plugin-primary-toolbar": "^19.0.0",
|
|
32
32
|
"@atlaskit/editor-plugin-selection-toolbar": "^19.0.0",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"@atlaskit/icon": "^37.7.0",
|
|
39
39
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
41
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
42
|
-
"@atlaskit/tokens": "^
|
|
41
|
+
"@atlaskit/tmp-editor-statsig": "^199.0.0",
|
|
42
|
+
"@atlaskit/tokens": "^18.0.0",
|
|
43
43
|
"@babel/runtime": "^7.0.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@atlaskit/editor-common": "^122.
|
|
46
|
+
"@atlaskit/editor-common": "^122.11.0",
|
|
47
47
|
"react": "^18.2.0 || ^19.2.0",
|
|
48
48
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
49
49
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
@@ -59,9 +59,6 @@
|
|
|
59
59
|
"platform-feature-flags": {
|
|
60
60
|
"platform_editor_markdown_compatible_toolbar": {
|
|
61
61
|
"type": "boolean"
|
|
62
|
-
},
|
|
63
|
-
"platform_editor_use_preferences_plugin": {
|
|
64
|
-
"type": "boolean"
|
|
65
62
|
}
|
|
66
63
|
}
|
|
67
64
|
}
|