@atlaskit/editor-plugin-toolbar 3.1.1 → 3.2.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,24 @@
1
1
  # @atlaskit/editor-plugin-toolbar
2
2
 
3
+ ## 3.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`3e586d8ee0ce4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3e586d8ee0ce4) -
8
+ Remove platform_editor_aifc_selection_toolbar_responsive exp and gate new logic in aiPlugin
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 3.1.2
15
+
16
+ ### Patch Changes
17
+
18
+ - [`482bcdc75598e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/482bcdc75598e) -
19
+ ED-29462 Clean up platform_editor_toolbar_aifc_responsiveness_update
20
+ - Updated dependencies
21
+
3
22
  ## 3.1.1
4
23
 
5
24
  ### 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,14 +95,14 @@ 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: [{
110
102
  type: 'toolbar',
111
103
  key: _toolbar.TOOLBARS.PRIMARY_TOOLBAR,
112
104
  rank: _toolbar.TOOLBAR_RANK[_toolbar.TEXT_SECTION_COLLAPSED.key]
113
- }, (0, _expValEquals.expValEquals)('platform_editor_aifc_selection_toolbar_responsive', 'isEnabled', true) && {
105
+ }, (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) && {
114
106
  type: 'toolbar',
115
107
  key: _toolbar.TOOLBARS.INLINE_TEXT_TOOLBAR,
116
108
  rank: _toolbar.TOOLBAR_RANK[_toolbar.TEXT_SECTION_COLLAPSED.key]
@@ -71,7 +71,7 @@ export const SelectionToolbar = ({
71
71
  currentUserIntent,
72
72
  shouldShowToolbar,
73
73
  editorViewMode,
74
- // @ts-expect-error
74
+ // @ts-ignore
75
75
  selection
76
76
  } = usePluginState(api);
77
77
  const intl = useIntl();
@@ -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,14 +89,14 @@ 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: [{
104
96
  type: 'toolbar',
105
97
  key: TOOLBARS.PRIMARY_TOOLBAR,
106
98
  rank: TOOLBAR_RANK[TEXT_SECTION_COLLAPSED.key]
107
- }, expValEquals('platform_editor_aifc_selection_toolbar_responsive', 'isEnabled', true) && {
99
+ }, expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) && {
108
100
  type: 'toolbar',
109
101
  key: TOOLBARS.INLINE_TEXT_TOOLBAR,
110
102
  rank: TOOLBAR_RANK[TEXT_SECTION_COLLAPSED.key]
@@ -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,14 +88,14 @@ 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: [{
103
95
  type: 'toolbar',
104
96
  key: TOOLBARS.PRIMARY_TOOLBAR,
105
97
  rank: TOOLBAR_RANK[TEXT_SECTION_COLLAPSED.key]
106
- }, expValEquals('platform_editor_aifc_selection_toolbar_responsive', 'isEnabled', true) && {
98
+ }, expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) && {
107
99
  type: 'toolbar',
108
100
  key: TOOLBARS.INLINE_TEXT_TOOLBAR,
109
101
  rank: TOOLBAR_RANK[TEXT_SECTION_COLLAPSED.key]
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.2.0",
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
- "@atlaskit/editor-toolbar": "^0.14.0",
39
+ "@atlaskit/editor-toolbar": "^0.15.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.8.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.10.0",
49
49
  "react": "^18.2.0"
50
50
  },
51
51
  "techstack": {