@atlaskit/editor-plugin-highlight 5.1.0 → 5.3.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-highlight
2
2
 
3
+ ## 5.3.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
+ ## 5.2.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
  ## 5.1.0
4
26
 
5
27
  ### 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.1.0",
3
+ "version": "5.3.0",
4
4
  "description": "Highlight plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,14 +32,14 @@
32
32
  ],
33
33
  "atlaskit:src": "src/index.ts",
34
34
  "dependencies": {
35
- "@atlaskit/adf-schema": "^51.0.0",
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.0.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.0.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",
@@ -50,13 +50,13 @@
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.13.0",
53
+ "@atlaskit/tmp-editor-statsig": "^12.18.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.2.0",
59
+ "@atlaskit/editor-common": "^109.5.0",
60
60
  "react": "^18.2.0",
61
61
  "react-intl-next": "npm:react-intl@^5.18.1"
62
62
  },