@atlaskit/editor-plugin-alignment 6.2.1 → 7.0.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,22 @@
1
1
  # @atlaskit/editor-plugin-alignment
2
2
 
3
+ ## 7.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 6.3.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`687c1b8fa7801`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/687c1b8fa7801) -
14
+ EDITOR-1566 bump adf-schema + update validator
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 6.2.1
4
21
 
5
22
  ### Patch Changes
@@ -46,7 +46,15 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
46
46
  return [{
47
47
  type: _toolbar.ALIGNMENT_GROUP.type,
48
48
  key: _toolbar.ALIGNMENT_GROUP.key,
49
- parents: [{
49
+ parents: (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_responsiveness_update', 'isEnabled', true) ? [{
50
+ type: _toolbar.TEXT_SECTION.type,
51
+ key: _toolbar.TEXT_SECTION.key,
52
+ rank: _toolbar.TEXT_SECTION_RANK[_toolbar.ALIGNMENT_GROUP.key]
53
+ }, {
54
+ type: _toolbar.TEXT_SECTION_PRIMARY_TOOLBAR.type,
55
+ key: _toolbar.TEXT_SECTION_PRIMARY_TOOLBAR.key,
56
+ rank: _toolbar.TEXT_SECTION_PRIMARY_TOOLBAR_RANK[_toolbar.ALIGNMENT_GROUP.key]
57
+ }] : [{
50
58
  type: _toolbar.TEXT_SECTION.type,
51
59
  key: _toolbar.TEXT_SECTION.key,
52
60
  rank: _toolbar.TEXT_SECTION_RANK[_toolbar.ALIGNMENT_GROUP.key]
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ALIGNMENT_GROUP, ALIGNMENT_GROUP_RANK, ALIGNMENT_MENU, ALIGNMENT_MENU_SECTION, TEXT_SECTION, TEXT_SECTION_RANK, ALIGNMENT_MENU_RANK, TEXT_COLLAPSED_MENU_RANK, TEXT_COLLAPSED_MENU } from '@atlaskit/editor-common/toolbar';
2
+ import { ALIGNMENT_GROUP, ALIGNMENT_GROUP_RANK, ALIGNMENT_MENU, ALIGNMENT_MENU_SECTION, TEXT_SECTION, TEXT_SECTION_RANK, ALIGNMENT_MENU_RANK, TEXT_COLLAPSED_MENU_RANK, TEXT_COLLAPSED_MENU, TEXT_SECTION_PRIMARY_TOOLBAR, TEXT_SECTION_PRIMARY_TOOLBAR_RANK } from '@atlaskit/editor-common/toolbar';
3
3
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
4
4
  import { AlignmentMenu } from './Toolbar/AlignmentMenu';
5
5
  import { AlignmentMenuItem } from './Toolbar/AlignmentMenuItem';
@@ -37,7 +37,15 @@ export const getToolbarComponents = api => {
37
37
  return [{
38
38
  type: ALIGNMENT_GROUP.type,
39
39
  key: ALIGNMENT_GROUP.key,
40
- parents: [{
40
+ parents: expValEquals('platform_editor_toolbar_aifc_responsiveness_update', 'isEnabled', true) ? [{
41
+ type: TEXT_SECTION.type,
42
+ key: TEXT_SECTION.key,
43
+ rank: TEXT_SECTION_RANK[ALIGNMENT_GROUP.key]
44
+ }, {
45
+ type: TEXT_SECTION_PRIMARY_TOOLBAR.type,
46
+ key: TEXT_SECTION_PRIMARY_TOOLBAR.key,
47
+ rank: TEXT_SECTION_PRIMARY_TOOLBAR_RANK[ALIGNMENT_GROUP.key]
48
+ }] : [{
41
49
  type: TEXT_SECTION.type,
42
50
  key: TEXT_SECTION.key,
43
51
  rank: TEXT_SECTION_RANK[ALIGNMENT_GROUP.key]
@@ -1,7 +1,7 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import React from 'react';
4
- import { ALIGNMENT_GROUP, ALIGNMENT_GROUP_RANK, ALIGNMENT_MENU, ALIGNMENT_MENU_SECTION, TEXT_SECTION, TEXT_SECTION_RANK, ALIGNMENT_MENU_RANK, TEXT_COLLAPSED_MENU_RANK, TEXT_COLLAPSED_MENU } from '@atlaskit/editor-common/toolbar';
4
+ import { ALIGNMENT_GROUP, ALIGNMENT_GROUP_RANK, ALIGNMENT_MENU, ALIGNMENT_MENU_SECTION, TEXT_SECTION, TEXT_SECTION_RANK, ALIGNMENT_MENU_RANK, TEXT_COLLAPSED_MENU_RANK, TEXT_COLLAPSED_MENU, TEXT_SECTION_PRIMARY_TOOLBAR, TEXT_SECTION_PRIMARY_TOOLBAR_RANK } from '@atlaskit/editor-common/toolbar';
5
5
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
6
6
  import { AlignmentMenu } from './Toolbar/AlignmentMenu';
7
7
  import { AlignmentMenuItem } from './Toolbar/AlignmentMenuItem';
@@ -39,7 +39,15 @@ export var getToolbarComponents = function getToolbarComponents(api) {
39
39
  return [{
40
40
  type: ALIGNMENT_GROUP.type,
41
41
  key: ALIGNMENT_GROUP.key,
42
- parents: [{
42
+ parents: expValEquals('platform_editor_toolbar_aifc_responsiveness_update', 'isEnabled', true) ? [{
43
+ type: TEXT_SECTION.type,
44
+ key: TEXT_SECTION.key,
45
+ rank: TEXT_SECTION_RANK[ALIGNMENT_GROUP.key]
46
+ }, {
47
+ type: TEXT_SECTION_PRIMARY_TOOLBAR.type,
48
+ key: TEXT_SECTION_PRIMARY_TOOLBAR.key,
49
+ rank: TEXT_SECTION_PRIMARY_TOOLBAR_RANK[ALIGNMENT_GROUP.key]
50
+ }] : [{
43
51
  type: TEXT_SECTION.type,
44
52
  key: TEXT_SECTION.key,
45
53
  rank: TEXT_SECTION_RANK[ALIGNMENT_GROUP.key]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-alignment",
3
- "version": "6.2.1",
3
+ "version": "7.0.0",
4
4
  "description": "Alignment plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -30,24 +30,24 @@
30
30
  }
31
31
  },
32
32
  "dependencies": {
33
- "@atlaskit/adf-schema": "^51.1.2",
33
+ "@atlaskit/adf-schema": "^51.2.0",
34
34
  "@atlaskit/css": "^0.14.0",
35
- "@atlaskit/editor-plugin-analytics": "^5.2.0",
36
- "@atlaskit/editor-plugin-primary-toolbar": "^6.0.0",
37
- "@atlaskit/editor-plugin-selection-toolbar": "^6.1.0",
38
- "@atlaskit/editor-plugin-toolbar": "^2.1.0",
35
+ "@atlaskit/editor-plugin-analytics": "^6.0.0",
36
+ "@atlaskit/editor-plugin-primary-toolbar": "^7.0.0",
37
+ "@atlaskit/editor-plugin-selection-toolbar": "^7.0.0",
38
+ "@atlaskit/editor-plugin-toolbar": "^3.0.0",
39
39
  "@atlaskit/editor-prosemirror": "7.0.0",
40
40
  "@atlaskit/editor-tables": "^2.9.0",
41
41
  "@atlaskit/editor-toolbar": "^0.9.0",
42
- "@atlaskit/icon": "^28.1.0",
42
+ "@atlaskit/icon": "^28.3.0",
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
- "@atlaskit/tmp-editor-statsig": "^12.21.0",
44
+ "@atlaskit/tmp-editor-statsig": "^12.31.0",
45
45
  "@atlaskit/tokens": "^6.3.0",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "@compiled/react": "^0.18.3"
48
48
  },
49
49
  "peerDependencies": {
50
- "@atlaskit/editor-common": "^109.6.0",
50
+ "@atlaskit/editor-common": "^110.0.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"
@@ -55,7 +55,7 @@
55
55
  "devDependencies": {
56
56
  "@af/integration-testing": "workspace:^",
57
57
  "@af/visual-regression": "workspace:^",
58
- "@atlaskit/editor-plugin-list": "^7.2.0",
58
+ "@atlaskit/editor-plugin-list": "^8.0.0",
59
59
  "@atlaskit/ssr": "workspace:^",
60
60
  "@testing-library/react": "^13.4.0",
61
61
  "@testing-library/user-event": "^14.4.3",