@atlaskit/editor-plugin-toolbar 3.1.1 → 3.1.2

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-toolbar
2
2
 
3
+ ## 3.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`482bcdc75598e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/482bcdc75598e) -
8
+ ED-29462 Clean up platform_editor_toolbar_aifc_responsiveness_update
9
+ - Updated dependencies
10
+
3
11
  ## 3.1.1
4
12
 
5
13
  ### Patch Changes
@@ -42,18 +42,10 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
42
42
  }, {
43
43
  type: _toolbar.TEXT_SECTION.type,
44
44
  key: _toolbar.TEXT_SECTION.key,
45
- parents: (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_responsiveness_update', 'isEnabled', true) ? [{
46
- type: 'toolbar',
47
- key: _toolbar.TOOLBARS.INLINE_TEXT_TOOLBAR,
48
- rank: _toolbar.TOOLBAR_RANK[_toolbar.TEXT_SECTION.key]
49
- }] : [{
45
+ parents: [{
50
46
  type: 'toolbar',
51
47
  key: _toolbar.TOOLBARS.INLINE_TEXT_TOOLBAR,
52
48
  rank: _toolbar.TOOLBAR_RANK[_toolbar.TEXT_SECTION.key]
53
- }, {
54
- type: 'toolbar',
55
- key: _toolbar.TOOLBARS.PRIMARY_TOOLBAR,
56
- rank: _toolbar.TOOLBAR_RANK[_toolbar.TEXT_SECTION.key]
57
49
  }],
58
50
  component: function component(_ref3) {
59
51
  var children = _ref3.children,
@@ -75,7 +67,7 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
75
67
  testId: "text-section"
76
68
  }, children);
77
69
  }
78
- }].concat((0, _toConsumableArray2.default)((0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_responsiveness_update', 'isEnabled', true) ? [{
70
+ }, {
79
71
  type: _toolbar.TEXT_SECTION_PRIMARY_TOOLBAR.type,
80
72
  key: _toolbar.TEXT_SECTION_PRIMARY_TOOLBAR.key,
81
73
  parents: [{
@@ -103,7 +95,7 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
103
95
  testId: "text-section"
104
96
  }, children);
105
97
  }
106
- }] : []), (0, _toConsumableArray2.default)((0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? [{
98
+ }].concat((0, _toConsumableArray2.default)((0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? [{
107
99
  type: _toolbar.TEXT_SECTION_COLLAPSED.type,
108
100
  key: _toolbar.TEXT_SECTION_COLLAPSED.key,
109
101
  parents: [{
@@ -34,18 +34,10 @@ export const getToolbarComponents = (api, disableSelectionToolbar) => {
34
34
  }, {
35
35
  type: TEXT_SECTION.type,
36
36
  key: TEXT_SECTION.key,
37
- parents: expValEquals('platform_editor_toolbar_aifc_responsiveness_update', 'isEnabled', true) ? [{
38
- type: 'toolbar',
39
- key: TOOLBARS.INLINE_TEXT_TOOLBAR,
40
- rank: TOOLBAR_RANK[TEXT_SECTION.key]
41
- }] : [{
37
+ parents: [{
42
38
  type: 'toolbar',
43
39
  key: TOOLBARS.INLINE_TEXT_TOOLBAR,
44
40
  rank: TOOLBAR_RANK[TEXT_SECTION.key]
45
- }, {
46
- type: 'toolbar',
47
- key: TOOLBARS.PRIMARY_TOOLBAR,
48
- rank: TOOLBAR_RANK[TEXT_SECTION.key]
49
41
  }],
50
42
  component: ({
51
43
  children,
@@ -68,7 +60,7 @@ export const getToolbarComponents = (api, disableSelectionToolbar) => {
68
60
  testId: "text-section"
69
61
  }, children);
70
62
  }
71
- }, ...(expValEquals('platform_editor_toolbar_aifc_responsiveness_update', 'isEnabled', true) ? [{
63
+ }, {
72
64
  type: TEXT_SECTION_PRIMARY_TOOLBAR.type,
73
65
  key: TEXT_SECTION_PRIMARY_TOOLBAR.key,
74
66
  parents: [{
@@ -97,7 +89,7 @@ export const getToolbarComponents = (api, disableSelectionToolbar) => {
97
89
  testId: "text-section"
98
90
  }, children);
99
91
  }
100
- }] : []), ...(expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? [{
92
+ }, ...(expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? [{
101
93
  type: TEXT_SECTION_COLLAPSED.type,
102
94
  key: TEXT_SECTION_COLLAPSED.key,
103
95
  parents: [{
@@ -35,18 +35,10 @@ export var getToolbarComponents = function getToolbarComponents(api, disableSele
35
35
  }, {
36
36
  type: TEXT_SECTION.type,
37
37
  key: TEXT_SECTION.key,
38
- parents: expValEquals('platform_editor_toolbar_aifc_responsiveness_update', 'isEnabled', true) ? [{
39
- type: 'toolbar',
40
- key: TOOLBARS.INLINE_TEXT_TOOLBAR,
41
- rank: TOOLBAR_RANK[TEXT_SECTION.key]
42
- }] : [{
38
+ parents: [{
43
39
  type: 'toolbar',
44
40
  key: TOOLBARS.INLINE_TEXT_TOOLBAR,
45
41
  rank: TOOLBAR_RANK[TEXT_SECTION.key]
46
- }, {
47
- type: 'toolbar',
48
- key: TOOLBARS.PRIMARY_TOOLBAR,
49
- rank: TOOLBAR_RANK[TEXT_SECTION.key]
50
42
  }],
51
43
  component: function component(_ref3) {
52
44
  var children = _ref3.children,
@@ -68,7 +60,7 @@ export var getToolbarComponents = function getToolbarComponents(api, disableSele
68
60
  testId: "text-section"
69
61
  }, children);
70
62
  }
71
- }].concat(_toConsumableArray(expValEquals('platform_editor_toolbar_aifc_responsiveness_update', 'isEnabled', true) ? [{
63
+ }, {
72
64
  type: TEXT_SECTION_PRIMARY_TOOLBAR.type,
73
65
  key: TEXT_SECTION_PRIMARY_TOOLBAR.key,
74
66
  parents: [{
@@ -96,7 +88,7 @@ export var getToolbarComponents = function getToolbarComponents(api, disableSele
96
88
  testId: "text-section"
97
89
  }, children);
98
90
  }
99
- }] : []), _toConsumableArray(expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? [{
91
+ }].concat(_toConsumableArray(expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? [{
100
92
  type: TEXT_SECTION_COLLAPSED.type,
101
93
  key: TEXT_SECTION_COLLAPSED.key,
102
94
  parents: [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-toolbar",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "Toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,20 +32,20 @@
32
32
  "@atlaskit/editor-plugin-analytics": "^6.1.0",
33
33
  "@atlaskit/editor-plugin-connectivity": "^6.0.0",
34
34
  "@atlaskit/editor-plugin-editor-viewmode": "^8.0.0",
35
- "@atlaskit/editor-plugin-selection": "^6.0.0",
35
+ "@atlaskit/editor-plugin-selection": "^6.1.0",
36
36
  "@atlaskit/editor-plugin-user-intent": "^4.0.0",
37
37
  "@atlaskit/editor-plugin-user-preferences": "^4.0.0",
38
38
  "@atlaskit/editor-prosemirror": "7.0.0",
39
39
  "@atlaskit/editor-toolbar": "^0.14.0",
40
40
  "@atlaskit/editor-toolbar-model": "^0.2.0",
41
41
  "@atlaskit/platform-feature-flags-react": "^0.3.0",
42
- "@atlaskit/tmp-editor-statsig": "^13.2.0",
42
+ "@atlaskit/tmp-editor-statsig": "^13.4.0",
43
43
  "@babel/runtime": "^7.0.0",
44
44
  "bind-event-listener": "^3.0.0",
45
45
  "react-intl-next": "npm:react-intl@^5.18.1"
46
46
  },
47
47
  "peerDependencies": {
48
- "@atlaskit/editor-common": "^110.4.0",
48
+ "@atlaskit/editor-common": "^110.7.0",
49
49
  "react": "^18.2.0"
50
50
  },
51
51
  "techstack": {