@atlaskit/editor-plugin-block-type 8.3.0 → 9.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,11 @@
1
1
  # @atlaskit/editor-plugin-block-type
2
2
 
3
+ ## 9.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 8.3.0
4
10
 
5
11
  ### Minor Changes
@@ -17,7 +17,15 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
17
17
  var toolbarComponents = [{
18
18
  type: _toolbar.TEXT_STYLES_GROUP.type,
19
19
  key: _toolbar.TEXT_STYLES_GROUP.key,
20
- parents: [{
20
+ parents: (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_responsiveness_update', 'isEnabled', true) ? [{
21
+ type: _toolbar.TEXT_SECTION.type,
22
+ key: _toolbar.TEXT_SECTION.key,
23
+ rank: _toolbar.TEXT_SECTION_RANK[_toolbar.TEXT_STYLES_GROUP.key]
24
+ }, {
25
+ type: _toolbar.TEXT_SECTION_PRIMARY_TOOLBAR.type,
26
+ key: _toolbar.TEXT_SECTION_PRIMARY_TOOLBAR.key,
27
+ rank: _toolbar.TEXT_SECTION_PRIMARY_TOOLBAR_RANK[_toolbar.TEXT_STYLES_GROUP.key]
28
+ }] : [{
21
29
  type: _toolbar.TEXT_SECTION.type,
22
30
  key: _toolbar.TEXT_SECTION.key,
23
31
  rank: _toolbar.TEXT_SECTION_RANK[_toolbar.TEXT_STYLES_GROUP.key]
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { TEXT_STYLES_GROUP, TEXT_SECTION_RANK, TEXT_SECTION, TEXT_STYLES_MENU, TEXT_STYLES_GROUP_RANK, TEXT_STYLES_MENU_SECTION, TEXT_STYLES_MENU_RANK, TEXT_COLLAPSED_MENU_RANK, TEXT_COLLAPSED_MENU } from '@atlaskit/editor-common/toolbar';
2
+ import { TEXT_STYLES_GROUP, TEXT_SECTION_RANK, TEXT_SECTION, TEXT_STYLES_MENU, TEXT_STYLES_GROUP_RANK, TEXT_STYLES_MENU_SECTION, TEXT_STYLES_MENU_RANK, TEXT_COLLAPSED_MENU_RANK, TEXT_COLLAPSED_MENU, TEXT_SECTION_PRIMARY_TOOLBAR_RANK, TEXT_SECTION_PRIMARY_TOOLBAR } from '@atlaskit/editor-common/toolbar';
3
3
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
4
4
  import { toolbarBlockTypesWithRank } from '../block-types';
5
5
  import { HeadingButton } from './ToolbarBlockType/HeadingButton';
@@ -9,7 +9,15 @@ export const getToolbarComponents = api => {
9
9
  const toolbarComponents = [{
10
10
  type: TEXT_STYLES_GROUP.type,
11
11
  key: TEXT_STYLES_GROUP.key,
12
- parents: [{
12
+ parents: expValEquals('platform_editor_toolbar_aifc_responsiveness_update', 'isEnabled', true) ? [{
13
+ type: TEXT_SECTION.type,
14
+ key: TEXT_SECTION.key,
15
+ rank: TEXT_SECTION_RANK[TEXT_STYLES_GROUP.key]
16
+ }, {
17
+ type: TEXT_SECTION_PRIMARY_TOOLBAR.type,
18
+ key: TEXT_SECTION_PRIMARY_TOOLBAR.key,
19
+ rank: TEXT_SECTION_PRIMARY_TOOLBAR_RANK[TEXT_STYLES_GROUP.key]
20
+ }] : [{
13
21
  type: TEXT_SECTION.type,
14
22
  key: TEXT_SECTION.key,
15
23
  rank: TEXT_SECTION_RANK[TEXT_STYLES_GROUP.key]
@@ -1,6 +1,6 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import React from 'react';
3
- import { TEXT_STYLES_GROUP, TEXT_SECTION_RANK, TEXT_SECTION, TEXT_STYLES_MENU, TEXT_STYLES_GROUP_RANK, TEXT_STYLES_MENU_SECTION, TEXT_STYLES_MENU_RANK, TEXT_COLLAPSED_MENU_RANK, TEXT_COLLAPSED_MENU } from '@atlaskit/editor-common/toolbar';
3
+ import { TEXT_STYLES_GROUP, TEXT_SECTION_RANK, TEXT_SECTION, TEXT_STYLES_MENU, TEXT_STYLES_GROUP_RANK, TEXT_STYLES_MENU_SECTION, TEXT_STYLES_MENU_RANK, TEXT_COLLAPSED_MENU_RANK, TEXT_COLLAPSED_MENU, TEXT_SECTION_PRIMARY_TOOLBAR_RANK, TEXT_SECTION_PRIMARY_TOOLBAR } from '@atlaskit/editor-common/toolbar';
4
4
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
5
  import { toolbarBlockTypesWithRank } from '../block-types';
6
6
  import { HeadingButton } from './ToolbarBlockType/HeadingButton';
@@ -10,7 +10,15 @@ export var getToolbarComponents = function getToolbarComponents(api) {
10
10
  var toolbarComponents = [{
11
11
  type: TEXT_STYLES_GROUP.type,
12
12
  key: TEXT_STYLES_GROUP.key,
13
- parents: [{
13
+ parents: expValEquals('platform_editor_toolbar_aifc_responsiveness_update', 'isEnabled', true) ? [{
14
+ type: TEXT_SECTION.type,
15
+ key: TEXT_SECTION.key,
16
+ rank: TEXT_SECTION_RANK[TEXT_STYLES_GROUP.key]
17
+ }, {
18
+ type: TEXT_SECTION_PRIMARY_TOOLBAR.type,
19
+ key: TEXT_SECTION_PRIMARY_TOOLBAR.key,
20
+ rank: TEXT_SECTION_PRIMARY_TOOLBAR_RANK[TEXT_STYLES_GROUP.key]
21
+ }] : [{
14
22
  type: TEXT_SECTION.type,
15
23
  key: TEXT_SECTION.key,
16
24
  rank: TEXT_SECTION_RANK[TEXT_STYLES_GROUP.key]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "8.3.0",
3
+ "version": "9.0.0",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,13 +31,13 @@
31
31
  "dependencies": {
32
32
  "@atlaskit/adf-schema": "^51.2.0",
33
33
  "@atlaskit/css": "^0.14.0",
34
- "@atlaskit/editor-plugin-analytics": "^5.3.0",
35
- "@atlaskit/editor-plugin-block-menu": "^3.2.0",
36
- "@atlaskit/editor-plugin-list": "^7.3.0",
37
- "@atlaskit/editor-plugin-primary-toolbar": "^6.0.0",
38
- "@atlaskit/editor-plugin-selection": "^5.0.0",
39
- "@atlaskit/editor-plugin-selection-toolbar": "^6.1.0",
40
- "@atlaskit/editor-plugin-toolbar": "^2.1.0",
34
+ "@atlaskit/editor-plugin-analytics": "^6.0.0",
35
+ "@atlaskit/editor-plugin-block-menu": "^4.0.0",
36
+ "@atlaskit/editor-plugin-list": "^8.0.0",
37
+ "@atlaskit/editor-plugin-primary-toolbar": "^7.0.0",
38
+ "@atlaskit/editor-plugin-selection": "^6.0.0",
39
+ "@atlaskit/editor-plugin-selection-toolbar": "^7.0.0",
40
+ "@atlaskit/editor-plugin-toolbar": "^3.0.0",
41
41
  "@atlaskit/editor-prosemirror": "7.0.0",
42
42
  "@atlaskit/editor-shared-styles": "^3.6.0",
43
43
  "@atlaskit/editor-tables": "^2.9.0",
@@ -50,13 +50,13 @@
50
50
  "@atlaskit/primitives": "^14.15.0",
51
51
  "@atlaskit/prosemirror-input-rules": "^3.4.0",
52
52
  "@atlaskit/theme": "^21.0.0",
53
- "@atlaskit/tmp-editor-statsig": "^12.30.0",
53
+ "@atlaskit/tmp-editor-statsig": "^12.31.0",
54
54
  "@atlaskit/tokens": "^6.3.0",
55
55
  "@babel/runtime": "^7.0.0",
56
56
  "@emotion/react": "^11.7.1"
57
57
  },
58
58
  "peerDependencies": {
59
- "@atlaskit/editor-common": "^109.16.0",
59
+ "@atlaskit/editor-common": "^110.0.0",
60
60
  "react": "^18.2.0",
61
61
  "react-dom": "^18.2.0",
62
62
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -64,8 +64,8 @@
64
64
  "devDependencies": {
65
65
  "@af/visual-regression": "workspace:^",
66
66
  "@atlaskit/analytics-next": "^11.1.0",
67
- "@atlaskit/editor-plugin-quick-insert": "^5.0.0",
68
- "@atlaskit/editor-plugin-type-ahead": "^5.3.0",
67
+ "@atlaskit/editor-plugin-quick-insert": "^6.0.0",
68
+ "@atlaskit/editor-plugin-type-ahead": "^6.0.0",
69
69
  "@atlaskit/ssr": "workspace:^",
70
70
  "@testing-library/react": "^13.4.0",
71
71
  "@testing-library/user-event": "^14.4.3",