@atlaskit/editor-plugin-alignment 6.0.0 → 6.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,27 @@
1
1
  # @atlaskit/editor-plugin-alignment
2
2
 
3
+ ## 6.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`b367661ba720e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b367661ba720e) -
8
+ EDITOR-1562 bump adf-schema for afm
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 6.1.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [`64ec65231b4cf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/64ec65231b4cf) -
19
+ EDITOR-1568 bump adf-schema for afm
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies
24
+
3
25
  ## 6.0.0
4
26
 
5
27
  ### Patch Changes
@@ -29,6 +29,9 @@ var alignmentPlugin = exports.alignmentPlugin = function alignmentPlugin(_ref) {
29
29
  popupsScrollableElement = _ref2.popupsScrollableElement,
30
30
  disabled = _ref2.disabled,
31
31
  isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing;
32
+ if (!editorView) {
33
+ return null;
34
+ }
32
35
  return /*#__PURE__*/_react.default.createElement(_PrimaryToolbarComponent.PrimaryToolbarComponent, {
33
36
  api: api,
34
37
  editorView: editorView,
@@ -1,4 +1,4 @@
1
- /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* index.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* index.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -24,6 +24,9 @@ export const alignmentPlugin = ({
24
24
  disabled,
25
25
  isToolbarReducedSpacing
26
26
  }) => {
27
+ if (!editorView) {
28
+ return null;
29
+ }
27
30
  return /*#__PURE__*/React.createElement(PrimaryToolbarComponent, {
28
31
  api: api,
29
32
  editorView: editorView,
@@ -1,4 +1,4 @@
1
- /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* index.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./index.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* index.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -22,6 +22,9 @@ export var alignmentPlugin = function alignmentPlugin(_ref) {
22
22
  popupsScrollableElement = _ref2.popupsScrollableElement,
23
23
  disabled = _ref2.disabled,
24
24
  isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing;
25
+ if (!editorView) {
26
+ return null;
27
+ }
25
28
  return /*#__PURE__*/React.createElement(PrimaryToolbarComponent, {
26
29
  api: api,
27
30
  editorView: editorView,
@@ -1,4 +1,4 @@
1
- /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* index.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./index.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* index.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
3
  import _createClass from "@babel/runtime/helpers/createClass";
4
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-alignment",
3
- "version": "6.0.0",
3
+ "version": "6.2.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": "^51.0.0",
33
+ "@atlaskit/adf-schema": "^51.1.2",
34
34
  "@atlaskit/css": "^0.14.0",
35
- "@atlaskit/editor-plugin-analytics": "^5.0.0",
35
+ "@atlaskit/editor-plugin-analytics": "^5.2.0",
36
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",
37
+ "@atlaskit/editor-plugin-selection-toolbar": "^6.1.0",
38
+ "@atlaskit/editor-plugin-toolbar": "^2.1.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.9.0",
44
+ "@atlaskit/tmp-editor-statsig": "^12.18.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": "^109.0.0",
50
+ "@atlaskit/editor-common": "^109.5.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": "^7.0.0",
58
+ "@atlaskit/editor-plugin-list": "^7.2.0",
59
59
  "@atlaskit/ssr": "workspace:^",
60
60
  "@testing-library/react": "^13.4.0",
61
61
  "@testing-library/user-event": "^14.4.3",