@atlaskit/editor-plugin-alignment 19.0.10 → 19.0.11
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,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-alignment
|
|
2
2
|
|
|
3
|
+
## 19.0.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0920715a6b9fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0920715a6b9fc) -
|
|
8
|
+
Clean up feature gate `platform_editor_use_preferences_plugin`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 19.0.10
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.alignmentPlugin = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _alignment = require("@atlaskit/adf-schema/alignment");
|
|
10
|
-
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
11
10
|
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
12
11
|
var _keymap = require("./pm-plugins/keymap");
|
|
13
12
|
var _main = require("./pm-plugins/main");
|
|
@@ -84,8 +83,8 @@ var alignmentPlugin = exports.alignmentPlugin = function alignmentPlugin(_ref) {
|
|
|
84
83
|
},
|
|
85
84
|
pluginsOptions: {
|
|
86
85
|
selectionToolbar: isToolbarAIFCEnabled ? undefined : function () {
|
|
87
|
-
var _api$userPreferences
|
|
88
|
-
var toolbarDocking =
|
|
86
|
+
var _api$userPreferences;
|
|
87
|
+
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 || (_api$userPreferences = _api$userPreferences.preferences) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.toolbarDockingPosition;
|
|
89
88
|
if (toolbarDocking === 'none' && (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1', {
|
|
90
89
|
exposure: true
|
|
91
90
|
})) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { alignment } from '@atlaskit/adf-schema/alignment';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
3
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
5
4
|
import { keymapPlugin } from './pm-plugins/keymap';
|
|
6
5
|
import { createPlugin, pluginKey } from './pm-plugins/main';
|
|
@@ -76,8 +75,8 @@ export const alignmentPlugin = ({
|
|
|
76
75
|
},
|
|
77
76
|
pluginsOptions: {
|
|
78
77
|
selectionToolbar: isToolbarAIFCEnabled ? undefined : () => {
|
|
79
|
-
var _api$userPreferences, _api$userPreferences$, _api$userPreferences$2
|
|
80
|
-
const toolbarDocking =
|
|
78
|
+
var _api$userPreferences, _api$userPreferences$, _api$userPreferences$2;
|
|
79
|
+
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$2 = _api$userPreferences$.preferences) === null || _api$userPreferences$2 === void 0 ? void 0 : _api$userPreferences$2.toolbarDockingPosition;
|
|
81
80
|
if (toolbarDocking === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
|
|
82
81
|
exposure: true
|
|
83
82
|
})) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { alignment } from '@atlaskit/adf-schema/alignment';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
4
3
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
5
4
|
import { keymapPlugin } from './pm-plugins/keymap';
|
|
6
5
|
import { createPlugin, pluginKey } from './pm-plugins/main';
|
|
@@ -77,8 +76,8 @@ export var alignmentPlugin = function alignmentPlugin(_ref) {
|
|
|
77
76
|
},
|
|
78
77
|
pluginsOptions: {
|
|
79
78
|
selectionToolbar: isToolbarAIFCEnabled ? undefined : function () {
|
|
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 || (_api$userPreferences = _api$userPreferences.preferences) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.toolbarDockingPosition;
|
|
82
81
|
if (toolbarDocking === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
|
|
83
82
|
exposure: true
|
|
84
83
|
})) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-alignment",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.11",
|
|
4
4
|
"description": "Alignment plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -20,11 +20,6 @@
|
|
|
20
20
|
"team": "Editor: AI",
|
|
21
21
|
"singleton": true
|
|
22
22
|
},
|
|
23
|
-
"platform-feature-flags": {
|
|
24
|
-
"platform_editor_use_preferences_plugin": {
|
|
25
|
-
"type": "boolean"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
23
|
"dependencies": {
|
|
29
24
|
"@atlaskit/adf-schema": "^57.5.0",
|
|
30
25
|
"@atlaskit/css": "^1.1.0",
|
|
@@ -38,14 +33,13 @@
|
|
|
38
33
|
"@atlaskit/editor-toolbar": "^2.6.0",
|
|
39
34
|
"@atlaskit/icon": "^37.7.0",
|
|
40
35
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
41
|
-
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
42
36
|
"@atlaskit/tmp-editor-statsig": "^198.0.0",
|
|
43
37
|
"@atlaskit/tokens": "^17.0.0",
|
|
44
38
|
"@babel/runtime": "^7.0.0",
|
|
45
39
|
"@compiled/react": "^1.0.2"
|
|
46
40
|
},
|
|
47
41
|
"peerDependencies": {
|
|
48
|
-
"@atlaskit/editor-common": "^122.
|
|
42
|
+
"@atlaskit/editor-common": "^122.11.0",
|
|
49
43
|
"react": "^18.2.0 || ^19.2.0",
|
|
50
44
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
51
45
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|