@atlaskit/editor-plugin-toolbar 4.0.1 → 4.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,19 @@
1
1
  # @atlaskit/editor-plugin-toolbar
2
2
 
3
+ ## 4.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`1265c260f9bad`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1265c260f9bad) -
8
+ [ED-29455] clean up experiment platform_editor_toolbar_migrate_loom
9
+ - Updated dependencies
10
+
11
+ ## 4.0.2
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 4.0.1
4
18
 
5
19
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "../../../../tsconfig.entry-points.confluence.json",
2
+ "extends": "../../../../tsconfig.local-consumption.json",
3
3
  "compilerOptions": {
4
4
  "target": "es5",
5
5
  "outDir": "../../../../../confluence/tsDist/@atlaskit__editor-plugin-toolbar",
@@ -246,41 +246,39 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
246
246
  }, children);
247
247
  } : undefined
248
248
  }]);
249
- if ((0, _expValEquals.expValEquals)('platform_editor_toolbar_migrate_loom', 'isEnabled', true)) {
250
- components.push({
249
+ components.push({
250
+ type: _toolbar.OVERFLOW_SECTION_PRIMARY_TOOLBAR.type,
251
+ key: _toolbar.OVERFLOW_SECTION_PRIMARY_TOOLBAR.key,
252
+ parents: [{
253
+ type: 'toolbar',
254
+ key: _toolbar.TOOLBARS.PRIMARY_TOOLBAR,
255
+ rank: _toolbar.TOOLBAR_RANK[_toolbar.OVERFLOW_SECTION_PRIMARY_TOOLBAR.key]
256
+ }],
257
+ component: function component(_ref1) {
258
+ var children = _ref1.children;
259
+ return /*#__PURE__*/_react.default.createElement(_OverflowSection.OverflowSection, null, children);
260
+ }
261
+ }, {
262
+ type: _toolbar.OVERFLOW_GROUP_PRIMARY_TOOLBAR.type,
263
+ key: _toolbar.OVERFLOW_GROUP_PRIMARY_TOOLBAR.key,
264
+ parents: [{
251
265
  type: _toolbar.OVERFLOW_SECTION_PRIMARY_TOOLBAR.type,
252
266
  key: _toolbar.OVERFLOW_SECTION_PRIMARY_TOOLBAR.key,
253
- parents: [{
254
- type: 'toolbar',
255
- key: _toolbar.TOOLBARS.PRIMARY_TOOLBAR,
256
- rank: _toolbar.TOOLBAR_RANK[_toolbar.OVERFLOW_SECTION_PRIMARY_TOOLBAR.key]
257
- }],
258
- component: function component(_ref1) {
259
- var children = _ref1.children;
260
- return /*#__PURE__*/_react.default.createElement(_OverflowSection.OverflowSection, null, children);
261
- }
262
- }, {
267
+ rank: _toolbar.OVERFLOW_SECTION_PRIMARY_TOOLBAR_RANK[_toolbar.OVERFLOW_GROUP_PRIMARY_TOOLBAR.key]
268
+ }]
269
+ }, {
270
+ type: _toolbar.OVERFLOW_MENU_PRIMARY_TOOLBAR.type,
271
+ key: _toolbar.OVERFLOW_MENU_PRIMARY_TOOLBAR.key,
272
+ parents: [{
263
273
  type: _toolbar.OVERFLOW_GROUP_PRIMARY_TOOLBAR.type,
264
274
  key: _toolbar.OVERFLOW_GROUP_PRIMARY_TOOLBAR.key,
265
- parents: [{
266
- type: _toolbar.OVERFLOW_SECTION_PRIMARY_TOOLBAR.type,
267
- key: _toolbar.OVERFLOW_SECTION_PRIMARY_TOOLBAR.key,
268
- rank: _toolbar.OVERFLOW_SECTION_PRIMARY_TOOLBAR_RANK[_toolbar.OVERFLOW_GROUP_PRIMARY_TOOLBAR.key]
269
- }]
270
- }, {
271
- type: _toolbar.OVERFLOW_MENU_PRIMARY_TOOLBAR.type,
272
- key: _toolbar.OVERFLOW_MENU_PRIMARY_TOOLBAR.key,
273
- parents: [{
274
- type: _toolbar.OVERFLOW_GROUP_PRIMARY_TOOLBAR.type,
275
- key: _toolbar.OVERFLOW_GROUP_PRIMARY_TOOLBAR.key,
276
- rank: _toolbar.OVERFLOW_GROUP_PRIMARY_TOOLBAR_RANK[_toolbar.OVERFLOW_MENU_PRIMARY_TOOLBAR.key]
277
- }],
278
- component: function component(_ref10) {
279
- var children = _ref10.children;
280
- return /*#__PURE__*/_react.default.createElement(_OverflowMenu.OverflowMenu, null, children);
281
- }
282
- });
283
- }
275
+ rank: _toolbar.OVERFLOW_GROUP_PRIMARY_TOOLBAR_RANK[_toolbar.OVERFLOW_MENU_PRIMARY_TOOLBAR.key]
276
+ }],
277
+ component: function component(_ref10) {
278
+ var children = _ref10.children;
279
+ return /*#__PURE__*/_react.default.createElement(_OverflowMenu.OverflowMenu, null, children);
280
+ }
281
+ });
284
282
  if ((0, _platformFeatureFlags.fg)('platform_editor_toolbar_aifc_placement_config')) {
285
283
  switch (contextualFormattingEnabled) {
286
284
  case 'always-inline':
@@ -240,43 +240,41 @@ export const getToolbarComponents = (contextualFormattingEnabled, api, disableSe
240
240
  }, children);
241
241
  } : undefined
242
242
  }];
243
- if (expValEquals('platform_editor_toolbar_migrate_loom', 'isEnabled', true)) {
244
- components.push({
243
+ components.push({
244
+ type: OVERFLOW_SECTION_PRIMARY_TOOLBAR.type,
245
+ key: OVERFLOW_SECTION_PRIMARY_TOOLBAR.key,
246
+ parents: [{
247
+ type: 'toolbar',
248
+ key: TOOLBARS.PRIMARY_TOOLBAR,
249
+ rank: TOOLBAR_RANK[OVERFLOW_SECTION_PRIMARY_TOOLBAR.key]
250
+ }],
251
+ component: ({
252
+ children
253
+ }) => {
254
+ return /*#__PURE__*/React.createElement(OverflowSection, null, children);
255
+ }
256
+ }, {
257
+ type: OVERFLOW_GROUP_PRIMARY_TOOLBAR.type,
258
+ key: OVERFLOW_GROUP_PRIMARY_TOOLBAR.key,
259
+ parents: [{
245
260
  type: OVERFLOW_SECTION_PRIMARY_TOOLBAR.type,
246
261
  key: OVERFLOW_SECTION_PRIMARY_TOOLBAR.key,
247
- parents: [{
248
- type: 'toolbar',
249
- key: TOOLBARS.PRIMARY_TOOLBAR,
250
- rank: TOOLBAR_RANK[OVERFLOW_SECTION_PRIMARY_TOOLBAR.key]
251
- }],
252
- component: ({
253
- children
254
- }) => {
255
- return /*#__PURE__*/React.createElement(OverflowSection, null, children);
256
- }
257
- }, {
262
+ rank: OVERFLOW_SECTION_PRIMARY_TOOLBAR_RANK[OVERFLOW_GROUP_PRIMARY_TOOLBAR.key]
263
+ }]
264
+ }, {
265
+ type: OVERFLOW_MENU_PRIMARY_TOOLBAR.type,
266
+ key: OVERFLOW_MENU_PRIMARY_TOOLBAR.key,
267
+ parents: [{
258
268
  type: OVERFLOW_GROUP_PRIMARY_TOOLBAR.type,
259
269
  key: OVERFLOW_GROUP_PRIMARY_TOOLBAR.key,
260
- parents: [{
261
- type: OVERFLOW_SECTION_PRIMARY_TOOLBAR.type,
262
- key: OVERFLOW_SECTION_PRIMARY_TOOLBAR.key,
263
- rank: OVERFLOW_SECTION_PRIMARY_TOOLBAR_RANK[OVERFLOW_GROUP_PRIMARY_TOOLBAR.key]
264
- }]
265
- }, {
266
- type: OVERFLOW_MENU_PRIMARY_TOOLBAR.type,
267
- key: OVERFLOW_MENU_PRIMARY_TOOLBAR.key,
268
- parents: [{
269
- type: OVERFLOW_GROUP_PRIMARY_TOOLBAR.type,
270
- key: OVERFLOW_GROUP_PRIMARY_TOOLBAR.key,
271
- rank: OVERFLOW_GROUP_PRIMARY_TOOLBAR_RANK[OVERFLOW_MENU_PRIMARY_TOOLBAR.key]
272
- }],
273
- component: ({
274
- children
275
- }) => {
276
- return /*#__PURE__*/React.createElement(OverflowMenu, null, children);
277
- }
278
- });
279
- }
270
+ rank: OVERFLOW_GROUP_PRIMARY_TOOLBAR_RANK[OVERFLOW_MENU_PRIMARY_TOOLBAR.key]
271
+ }],
272
+ component: ({
273
+ children
274
+ }) => {
275
+ return /*#__PURE__*/React.createElement(OverflowMenu, null, children);
276
+ }
277
+ });
280
278
  if (fg('platform_editor_toolbar_aifc_placement_config')) {
281
279
  switch (contextualFormattingEnabled) {
282
280
  case 'always-inline':
@@ -239,41 +239,39 @@ export var getToolbarComponents = function getToolbarComponents(contextualFormat
239
239
  }, children);
240
240
  } : undefined
241
241
  }]);
242
- if (expValEquals('platform_editor_toolbar_migrate_loom', 'isEnabled', true)) {
243
- components.push({
242
+ components.push({
243
+ type: OVERFLOW_SECTION_PRIMARY_TOOLBAR.type,
244
+ key: OVERFLOW_SECTION_PRIMARY_TOOLBAR.key,
245
+ parents: [{
246
+ type: 'toolbar',
247
+ key: TOOLBARS.PRIMARY_TOOLBAR,
248
+ rank: TOOLBAR_RANK[OVERFLOW_SECTION_PRIMARY_TOOLBAR.key]
249
+ }],
250
+ component: function component(_ref1) {
251
+ var children = _ref1.children;
252
+ return /*#__PURE__*/React.createElement(OverflowSection, null, children);
253
+ }
254
+ }, {
255
+ type: OVERFLOW_GROUP_PRIMARY_TOOLBAR.type,
256
+ key: OVERFLOW_GROUP_PRIMARY_TOOLBAR.key,
257
+ parents: [{
244
258
  type: OVERFLOW_SECTION_PRIMARY_TOOLBAR.type,
245
259
  key: OVERFLOW_SECTION_PRIMARY_TOOLBAR.key,
246
- parents: [{
247
- type: 'toolbar',
248
- key: TOOLBARS.PRIMARY_TOOLBAR,
249
- rank: TOOLBAR_RANK[OVERFLOW_SECTION_PRIMARY_TOOLBAR.key]
250
- }],
251
- component: function component(_ref1) {
252
- var children = _ref1.children;
253
- return /*#__PURE__*/React.createElement(OverflowSection, null, children);
254
- }
255
- }, {
260
+ rank: OVERFLOW_SECTION_PRIMARY_TOOLBAR_RANK[OVERFLOW_GROUP_PRIMARY_TOOLBAR.key]
261
+ }]
262
+ }, {
263
+ type: OVERFLOW_MENU_PRIMARY_TOOLBAR.type,
264
+ key: OVERFLOW_MENU_PRIMARY_TOOLBAR.key,
265
+ parents: [{
256
266
  type: OVERFLOW_GROUP_PRIMARY_TOOLBAR.type,
257
267
  key: OVERFLOW_GROUP_PRIMARY_TOOLBAR.key,
258
- parents: [{
259
- type: OVERFLOW_SECTION_PRIMARY_TOOLBAR.type,
260
- key: OVERFLOW_SECTION_PRIMARY_TOOLBAR.key,
261
- rank: OVERFLOW_SECTION_PRIMARY_TOOLBAR_RANK[OVERFLOW_GROUP_PRIMARY_TOOLBAR.key]
262
- }]
263
- }, {
264
- type: OVERFLOW_MENU_PRIMARY_TOOLBAR.type,
265
- key: OVERFLOW_MENU_PRIMARY_TOOLBAR.key,
266
- parents: [{
267
- type: OVERFLOW_GROUP_PRIMARY_TOOLBAR.type,
268
- key: OVERFLOW_GROUP_PRIMARY_TOOLBAR.key,
269
- rank: OVERFLOW_GROUP_PRIMARY_TOOLBAR_RANK[OVERFLOW_MENU_PRIMARY_TOOLBAR.key]
270
- }],
271
- component: function component(_ref10) {
272
- var children = _ref10.children;
273
- return /*#__PURE__*/React.createElement(OverflowMenu, null, children);
274
- }
275
- });
276
- }
268
+ rank: OVERFLOW_GROUP_PRIMARY_TOOLBAR_RANK[OVERFLOW_MENU_PRIMARY_TOOLBAR.key]
269
+ }],
270
+ component: function component(_ref10) {
271
+ var children = _ref10.children;
272
+ return /*#__PURE__*/React.createElement(OverflowMenu, null, children);
273
+ }
274
+ });
277
275
  if (fg('platform_editor_toolbar_aifc_placement_config')) {
278
276
  switch (contextualFormattingEnabled) {
279
277
  case 'always-inline':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-toolbar",
3
- "version": "4.0.1",
3
+ "version": "4.0.3",
4
4
  "description": "Toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,17 +36,17 @@
36
36
  "@atlaskit/editor-plugin-user-intent": "^5.0.0",
37
37
  "@atlaskit/editor-plugin-user-preferences": "^5.0.0",
38
38
  "@atlaskit/editor-prosemirror": "^7.2.0",
39
- "@atlaskit/editor-toolbar": "^0.18.0",
39
+ "@atlaskit/editor-toolbar": "^0.19.0",
40
40
  "@atlaskit/editor-toolbar-model": "^0.2.0",
41
41
  "@atlaskit/platform-feature-flags": "^1.1.0",
42
42
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
43
- "@atlaskit/tmp-editor-statsig": "^16.3.0",
43
+ "@atlaskit/tmp-editor-statsig": "^16.13.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "bind-event-listener": "^3.0.0",
46
46
  "react-intl-next": "npm:react-intl@^5.18.1"
47
47
  },
48
48
  "peerDependencies": {
49
- "@atlaskit/editor-common": "^111.0.0",
49
+ "@atlaskit/editor-common": "^111.7.0",
50
50
  "react": "^18.2.0"
51
51
  },
52
52
  "platform-feature-flags": {