@atlaskit/editor-plugin-alignment 5.0.2 → 5.0.3
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
|
+
## 5.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`db97eb262cc5a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/db97eb262cc5a) -
|
|
8
|
+
replace platform_editor_toolbar_aifc with separate experiements for jira and confluence
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 5.0.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -8,7 +8,6 @@ exports.alignmentPlugin = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
10
10
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
12
11
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
13
12
|
var _keymap = require("./pm-plugins/keymap");
|
|
14
13
|
var _main = require("./pm-plugins/main");
|
|
@@ -20,7 +19,9 @@ var defaultConfig = {
|
|
|
20
19
|
};
|
|
21
20
|
var alignmentPlugin = exports.alignmentPlugin = function alignmentPlugin(_ref) {
|
|
22
21
|
var api = _ref.api;
|
|
23
|
-
var isToolbarAIFCEnabled = (0,
|
|
22
|
+
var isToolbarAIFCEnabled = (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
|
|
23
|
+
exposure: true
|
|
24
|
+
});
|
|
24
25
|
var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
|
|
25
26
|
var editorView = _ref2.editorView,
|
|
26
27
|
popupsMountPoint = _ref2.popupsMountPoint,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { alignment } from '@atlaskit/adf-schema';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
4
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
6
5
|
import { keymapPlugin } from './pm-plugins/keymap';
|
|
7
6
|
import { createPlugin, pluginKey } from './pm-plugins/main';
|
|
@@ -14,7 +13,9 @@ const defaultConfig = {
|
|
|
14
13
|
export const alignmentPlugin = ({
|
|
15
14
|
api
|
|
16
15
|
}) => {
|
|
17
|
-
const isToolbarAIFCEnabled =
|
|
16
|
+
const isToolbarAIFCEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
|
|
17
|
+
exposure: true
|
|
18
|
+
});
|
|
18
19
|
const primaryToolbarComponent = ({
|
|
19
20
|
editorView,
|
|
20
21
|
popupsMountPoint,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { alignment } from '@atlaskit/adf-schema';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
4
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
6
5
|
import { keymapPlugin } from './pm-plugins/keymap';
|
|
7
6
|
import { createPlugin, pluginKey } from './pm-plugins/main';
|
|
@@ -13,7 +12,9 @@ var defaultConfig = {
|
|
|
13
12
|
};
|
|
14
13
|
export var alignmentPlugin = function alignmentPlugin(_ref) {
|
|
15
14
|
var api = _ref.api;
|
|
16
|
-
var isToolbarAIFCEnabled =
|
|
15
|
+
var isToolbarAIFCEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
|
|
16
|
+
exposure: true
|
|
17
|
+
});
|
|
17
18
|
var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
|
|
18
19
|
var editorView = _ref2.editorView,
|
|
19
20
|
popupsMountPoint = _ref2.popupsMountPoint,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-alignment",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.3",
|
|
4
4
|
"description": "Alignment plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"@atlaskit/editor-toolbar": "^0.8.0",
|
|
42
42
|
"@atlaskit/icon": "^28.1.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
44
|
+
"@atlaskit/tmp-editor-statsig": "^12.5.0",
|
|
45
45
|
"@atlaskit/tokens": "^6.2.0",
|
|
46
46
|
"@babel/runtime": "^7.0.0",
|
|
47
47
|
"@compiled/react": "^0.18.3"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@atlaskit/editor-common": "^108.
|
|
50
|
+
"@atlaskit/editor-common": "^108.3.0",
|
|
51
51
|
"react": "^18.2.0",
|
|
52
52
|
"react-dom": "^18.2.0",
|
|
53
53
|
"react-intl-next": "npm:react-intl@^5.18.1"
|