@atlaskit/editor-plugin-alignment 5.0.5 → 6.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,21 @@
1
1
  # @atlaskit/editor-plugin-alignment
2
2
 
3
+ ## 6.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 5.0.6
10
+
11
+ ### Patch Changes
12
+
13
+ - [`c0113eeccb2df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c0113eeccb2df) -
14
+ [ux] ED-29120 add a new config option for default editor preset
15
+ (`toolbar.enableNewToolbarExperience`) which allows the new toolbar to be disabled. This is needed
16
+ for editors that can't be excluded at the experiment level.
17
+ - Updated dependencies
18
+
3
19
  ## 5.0.5
4
20
 
5
21
  ### Patch Changes
@@ -19,7 +19,7 @@ var defaultConfig = {
19
19
  };
20
20
  var alignmentPlugin = exports.alignmentPlugin = function alignmentPlugin(_ref) {
21
21
  var api = _ref.api;
22
- var isToolbarAIFCEnabled = (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
22
+ var isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
23
23
  exposure: true
24
24
  });
25
25
  var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
@@ -13,7 +13,7 @@ const defaultConfig = {
13
13
  export const alignmentPlugin = ({
14
14
  api
15
15
  }) => {
16
- const isToolbarAIFCEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
16
+ const isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
17
17
  exposure: true
18
18
  });
19
19
  const primaryToolbarComponent = ({
@@ -12,7 +12,7 @@ var defaultConfig = {
12
12
  };
13
13
  export var alignmentPlugin = function alignmentPlugin(_ref) {
14
14
  var api = _ref.api;
15
- var isToolbarAIFCEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
15
+ var isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
16
16
  exposure: true
17
17
  });
18
18
  var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-alignment",
3
- "version": "5.0.5",
3
+ "version": "6.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": "^50.2.3",
33
+ "@atlaskit/adf-schema": "^51.0.0",
34
34
  "@atlaskit/css": "^0.14.0",
35
- "@atlaskit/editor-plugin-analytics": "^4.0.0",
36
- "@atlaskit/editor-plugin-primary-toolbar": "^5.0.0",
37
- "@atlaskit/editor-plugin-selection-toolbar": "^5.0.0",
38
- "@atlaskit/editor-plugin-toolbar": "^1.1.0",
35
+ "@atlaskit/editor-plugin-analytics": "^5.0.0",
36
+ "@atlaskit/editor-plugin-primary-toolbar": "^6.0.0",
37
+ "@atlaskit/editor-plugin-selection-toolbar": "^6.0.0",
38
+ "@atlaskit/editor-plugin-toolbar": "^2.0.0",
39
39
  "@atlaskit/editor-prosemirror": "7.0.0",
40
40
  "@atlaskit/editor-tables": "^2.9.0",
41
41
  "@atlaskit/editor-toolbar": "^0.8.0",
42
42
  "@atlaskit/icon": "^28.1.0",
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
- "@atlaskit/tmp-editor-statsig": "^12.6.0",
44
+ "@atlaskit/tmp-editor-statsig": "^12.9.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": "^108.5.0",
50
+ "@atlaskit/editor-common": "^109.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": "^6.0.0",
58
+ "@atlaskit/editor-plugin-list": "^7.0.0",
59
59
  "@atlaskit/ssr": "workspace:^",
60
60
  "@testing-library/react": "^13.4.0",
61
61
  "@testing-library/user-event": "^14.4.3",