@atlaskit/editor-plugin-mentions 7.0.1 → 7.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-mentions
2
2
 
3
+ ## 7.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
+ ## 7.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
  ## 7.0.1
4
26
 
5
27
  ### Patch Changes
@@ -126,7 +126,11 @@ var mentionsPlugin = exports.mentionsPlugin = function mentionsPlugin(_ref3) {
126
126
  }];
127
127
  },
128
128
  contentComponent: function contentComponent(_ref4) {
129
- var providerFactory = _ref4.providerFactory;
129
+ var editorView = _ref4.editorView,
130
+ providerFactory = _ref4.providerFactory;
131
+ if (!editorView) {
132
+ return null;
133
+ }
130
134
  return /*#__PURE__*/_react.default.createElement(_providerFactory.WithProviders, {
131
135
  providers: ['mentionProvider'],
132
136
  providerFactory: providerFactory,
@@ -142,6 +146,9 @@ var mentionsPlugin = exports.mentionsPlugin = function mentionsPlugin(_ref3) {
142
146
  secondaryToolbarComponent: function secondaryToolbarComponent(_ref6) {
143
147
  var editorView = _ref6.editorView,
144
148
  disabled = _ref6.disabled;
149
+ if (!editorView) {
150
+ return null;
151
+ }
145
152
  return /*#__PURE__*/_react.default.createElement(_SecondaryToolbarComponent.SecondaryToolbarComponent, {
146
153
  editorView: editorView,
147
154
  api: api,
@@ -23,7 +23,7 @@ var ACTIONS = exports.ACTIONS = {
23
23
  SET_PROVIDER: 'SET_PROVIDER'
24
24
  };
25
25
  var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
26
- var PACKAGE_VERSION = "7.0.0";
26
+ var PACKAGE_VERSION = "7.1.0";
27
27
  var setProvider = function setProvider(provider) {
28
28
  return function (state, dispatch) {
29
29
  if (dispatch) {
@@ -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
- /* ProfileCardComponent.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* ProfileCardComponent.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -121,8 +121,12 @@ const mentionsPlugin = ({
121
121
  }];
122
122
  },
123
123
  contentComponent({
124
+ editorView,
124
125
  providerFactory
125
126
  }) {
127
+ if (!editorView) {
128
+ return null;
129
+ }
126
130
  return /*#__PURE__*/React.createElement(WithProviders, {
127
131
  providers: ['mentionProvider'],
128
132
  providerFactory: providerFactory,
@@ -140,6 +144,9 @@ const mentionsPlugin = ({
140
144
  editorView,
141
145
  disabled
142
146
  }) {
147
+ if (!editorView) {
148
+ return null;
149
+ }
143
150
  return /*#__PURE__*/React.createElement(SecondaryToolbarComponent, {
144
151
  editorView: editorView,
145
152
  api: api,
@@ -12,7 +12,7 @@ export const ACTIONS = {
12
12
  SET_PROVIDER: 'SET_PROVIDER'
13
13
  };
14
14
  const PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
15
- const PACKAGE_VERSION = "7.0.0";
15
+ const PACKAGE_VERSION = "7.1.0";
16
16
  const setProvider = provider => (state, dispatch) => {
17
17
  if (dispatch) {
18
18
  dispatch(state.tr.setMeta(mentionPluginKey, {
@@ -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 _extends from "@babel/runtime/helpers/extends";
3
3
  import "./index.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* ProfileCardComponent.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* ProfileCardComponent.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./ProfileCardComponent.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -117,7 +117,11 @@ var mentionsPlugin = function mentionsPlugin(_ref3) {
117
117
  }];
118
118
  },
119
119
  contentComponent: function contentComponent(_ref4) {
120
- var providerFactory = _ref4.providerFactory;
120
+ var editorView = _ref4.editorView,
121
+ providerFactory = _ref4.providerFactory;
122
+ if (!editorView) {
123
+ return null;
124
+ }
121
125
  return /*#__PURE__*/React.createElement(WithProviders, {
122
126
  providers: ['mentionProvider'],
123
127
  providerFactory: providerFactory,
@@ -133,6 +137,9 @@ var mentionsPlugin = function mentionsPlugin(_ref3) {
133
137
  secondaryToolbarComponent: function secondaryToolbarComponent(_ref6) {
134
138
  var editorView = _ref6.editorView,
135
139
  disabled = _ref6.disabled;
140
+ if (!editorView) {
141
+ return null;
142
+ }
136
143
  return /*#__PURE__*/React.createElement(SecondaryToolbarComponent, {
137
144
  editorView: editorView,
138
145
  api: api,
@@ -15,7 +15,7 @@ export var ACTIONS = {
15
15
  SET_PROVIDER: 'SET_PROVIDER'
16
16
  };
17
17
  var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
18
- var PACKAGE_VERSION = "7.0.0";
18
+ var PACKAGE_VERSION = "7.1.0";
19
19
  var setProvider = function setProvider(provider) {
20
20
  return function (state, dispatch) {
21
21
  if (dispatch) {
@@ -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 _extends from "@babel/runtime/helpers/extends";
3
3
  import "./index.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* ProfileCardComponent.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* ProfileCardComponent.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import "./ProfileCardComponent.compiled.css";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-mentions",
3
- "version": "7.0.1",
3
+ "version": "7.2.0",
4
4
  "description": "Mentions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,13 +29,13 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^51.0.0",
32
+ "@atlaskit/adf-schema": "^51.1.2",
33
33
  "@atlaskit/css": "^0.14.0",
34
- "@atlaskit/editor-plugin-analytics": "^5.0.0",
35
- "@atlaskit/editor-plugin-base": "^6.0.0",
34
+ "@atlaskit/editor-plugin-analytics": "^5.2.0",
35
+ "@atlaskit/editor-plugin-base": "^6.2.0",
36
36
  "@atlaskit/editor-plugin-context-identifier": "^5.0.0",
37
37
  "@atlaskit/editor-plugin-selection": "^5.0.0",
38
- "@atlaskit/editor-plugin-type-ahead": "^5.0.0",
38
+ "@atlaskit/editor-plugin-type-ahead": "^5.2.0",
39
39
  "@atlaskit/editor-prosemirror": "7.0.0",
40
40
  "@atlaskit/icon": "^28.1.0",
41
41
  "@atlaskit/link": "^3.2.0",
@@ -43,9 +43,9 @@
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
44
  "@atlaskit/popper": "^7.1.0",
45
45
  "@atlaskit/portal": "^5.1.0",
46
- "@atlaskit/profilecard": "^24.11.0",
46
+ "@atlaskit/profilecard": "^24.13.0",
47
47
  "@atlaskit/theme": "^21.0.0",
48
- "@atlaskit/tmp-editor-statsig": "^12.10.0",
48
+ "@atlaskit/tmp-editor-statsig": "^12.18.0",
49
49
  "@atlaskit/tokens": "^6.3.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@compiled/react": "^0.18.3",
@@ -54,7 +54,7 @@
54
54
  "uuid": "^3.1.0"
55
55
  },
56
56
  "peerDependencies": {
57
- "@atlaskit/editor-common": "^109.1.0",
57
+ "@atlaskit/editor-common": "^109.5.0",
58
58
  "react": "^18.2.0",
59
59
  "react-dom": "^18.2.0",
60
60
  "react-intl-next": "npm:react-intl@^5.18.1"