@atlaskit/editor-plugin-highlight 5.2.0 → 5.3.1

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,22 @@
1
1
  # @atlaskit/editor-plugin-highlight
2
2
 
3
+ ## 5.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 5.3.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`b367661ba720e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b367661ba720e) -
14
+ EDITOR-1562 bump adf-schema for afm
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 5.2.0
4
21
 
5
22
  ### Minor Changes
@@ -30,6 +30,9 @@ var highlightPlugin = exports.highlightPlugin = function highlightPlugin(_ref) {
30
30
  disabled = _ref2.disabled,
31
31
  isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing,
32
32
  editorView = _ref2.editorView;
33
+ if (!editorView) {
34
+ return null;
35
+ }
33
36
  return /*#__PURE__*/_react.default.createElement(_PrimaryToolbarHighlightColor.PrimaryToolbarHighlightColorWithIntl, {
34
37
  popupsMountPoint: popupsMountPoint,
35
38
  popupsBoundariesElement: popupsBoundariesElement,
@@ -1,4 +1,4 @@
1
- /* HighlightColorMenuItem.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* HighlightColorMenuItem.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -25,6 +25,9 @@ export const highlightPlugin = ({
25
25
  isToolbarReducedSpacing,
26
26
  editorView
27
27
  }) => {
28
+ if (!editorView) {
29
+ return null;
30
+ }
28
31
  return /*#__PURE__*/React.createElement(PrimaryToolbarHighlightColor, {
29
32
  popupsMountPoint: popupsMountPoint,
30
33
  popupsBoundariesElement: popupsBoundariesElement,
@@ -1,4 +1,4 @@
1
- /* HighlightColorMenuItem.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* HighlightColorMenuItem.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./HighlightColorMenuItem.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -23,6 +23,9 @@ export var highlightPlugin = function highlightPlugin(_ref) {
23
23
  disabled = _ref2.disabled,
24
24
  isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing,
25
25
  editorView = _ref2.editorView;
26
+ if (!editorView) {
27
+ return null;
28
+ }
26
29
  return /*#__PURE__*/React.createElement(PrimaryToolbarHighlightColor, {
27
30
  popupsMountPoint: popupsMountPoint,
28
31
  popupsBoundariesElement: popupsBoundariesElement,
@@ -1,4 +1,4 @@
1
- /* HighlightColorMenuItem.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* HighlightColorMenuItem.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import "./HighlightColorMenuItem.compiled.css";
4
4
  import * as React from 'react';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-highlight",
3
- "version": "5.2.0",
3
+ "version": "5.3.1",
4
4
  "description": "Highlight plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,31 +32,31 @@
32
32
  ],
33
33
  "atlaskit:src": "src/index.ts",
34
34
  "dependencies": {
35
- "@atlaskit/adf-schema": "^51.1.1",
35
+ "@atlaskit/adf-schema": "^51.1.2",
36
36
  "@atlaskit/button": "^23.4.0",
37
37
  "@atlaskit/css": "^0.14.0",
38
38
  "@atlaskit/editor-palette": "^2.1.0",
39
- "@atlaskit/editor-plugin-analytics": "^5.1.0",
39
+ "@atlaskit/editor-plugin-analytics": "^5.2.0",
40
40
  "@atlaskit/editor-plugin-primary-toolbar": "^6.0.0",
41
41
  "@atlaskit/editor-plugin-selection-toolbar": "^6.1.0",
42
- "@atlaskit/editor-plugin-text-formatting": "^5.1.0",
42
+ "@atlaskit/editor-plugin-text-formatting": "^5.2.0",
43
43
  "@atlaskit/editor-plugin-toolbar": "^2.1.0",
44
44
  "@atlaskit/editor-prosemirror": "7.0.0",
45
45
  "@atlaskit/editor-shared-styles": "^3.6.0",
46
46
  "@atlaskit/editor-tables": "^2.9.0",
47
- "@atlaskit/editor-toolbar": "^0.8.0",
47
+ "@atlaskit/editor-toolbar": "^0.9.0",
48
48
  "@atlaskit/editor-toolbar-model": "^0.2.0",
49
49
  "@atlaskit/heading": "^5.2.0",
50
50
  "@atlaskit/icon": "^28.1.0",
51
51
  "@atlaskit/platform-feature-flags": "^1.1.0",
52
52
  "@atlaskit/primitives": "^14.14.0",
53
- "@atlaskit/tmp-editor-statsig": "^12.14.0",
53
+ "@atlaskit/tmp-editor-statsig": "^12.21.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.3.0",
59
+ "@atlaskit/editor-common": "^109.6.0",
60
60
  "react": "^18.2.0",
61
61
  "react-intl-next": "npm:react-intl@^5.18.1"
62
62
  },