@atlaskit/editor-plugin-mentions 30.0.0 → 30.0.2

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,17 @@
1
1
  # @atlaskit/editor-plugin-mentions
2
2
 
3
+ ## 30.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 30.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 30.0.0
4
16
 
5
17
  ### Patch Changes
@@ -45,7 +45,7 @@ var ACTIONS = exports.ACTIONS = {
45
45
  CLEAR_PENDING_PASTED_AGENT_MENTION: 'CLEAR_PENDING_PASTED_AGENT_MENTION'
46
46
  };
47
47
  var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
48
- var PACKAGE_VERSION = "29.0.6";
48
+ var PACKAGE_VERSION = "30.0.1";
49
49
  var setProvider = function setProvider(provider) {
50
50
  return function (state, dispatch) {
51
51
  if (dispatch) {
@@ -14,7 +14,8 @@ var _runtime = require("@compiled/react/runtime");
14
14
  var _reactIntl = require("react-intl");
15
15
  var _mentions = require("@atlaskit/editor-common/messages/mentions");
16
16
  var _statusError = _interopRequireDefault(require("@atlaskit/icon/core/status-error"));
17
- var _compiled = require("@atlaskit/primitives/compiled");
17
+ var _inline = require("@atlaskit/primitives/compiled/inline");
18
+ var _text = require("@atlaskit/primitives/compiled/text");
18
19
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
19
20
  var styles = {
20
21
  retryRow: "_11c8fhey _189eidpf _1rjcu2gc _18zrutpp _4cvr1h6o _bfhk1j28 _vchhusvi _syazazsu _80omtlke _1e0c1txw _1tke1ylp _y3gn1e5h _1bsb1osq",
@@ -37,13 +38,13 @@ var AgentMentionLoadErrorItem = exports.AgentMentionLoadErrorItem = function Age
37
38
  onClick: handleClick,
38
39
  "data-testid": "agent-mention-load-error-item",
39
40
  className: (0, _runtime.ax)([styles.retryRow])
40
- }, /*#__PURE__*/React.createElement(_compiled.Inline, {
41
+ }, /*#__PURE__*/React.createElement(_inline.Inline, {
41
42
  alignBlock: "center",
42
43
  space: "space.100"
43
44
  }, /*#__PURE__*/React.createElement(_statusError.default, {
44
45
  label: "",
45
46
  color: "var(--ds-icon-danger, #C9372C)"
46
- }), /*#__PURE__*/React.createElement(_compiled.Text, {
47
+ }), /*#__PURE__*/React.createElement(_text.Text, {
47
48
  as: "span",
48
49
  color: "color.text.subtle"
49
50
  }, intl.formatMessage(_mentions.mentionMessages.typeAheadSectionAgentsLoadError)), /*#__PURE__*/React.createElement("span", {
@@ -14,7 +14,7 @@ var _react = _interopRequireWildcard(require("react"));
14
14
  var _mentionItem = _interopRequireDefault(require("@atlaskit/mention/mention-item"));
15
15
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
16
16
  var _fg = require("@atlaskit/platform-feature-flags/fg");
17
- var _compiled = require("@atlaskit/primitives/compiled");
17
+ var _box = require("@atlaskit/primitives/compiled/box");
18
18
  var _ProfileCardComponent = require("../ProfileCardComponent");
19
19
  var _utils = require("./utils");
20
20
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
@@ -153,10 +153,10 @@ function MentionItemWithProfileCard(_ref2) {
153
153
  return [0, CARD_GAP_PX + getScrollbarWidth(referenceElement)];
154
154
  }, [referenceElement]);
155
155
  if (mention.isPlaceholder) {
156
- return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
156
+ return /*#__PURE__*/_react.default.createElement(_box.Box, {
157
157
  testId: "mention-item-with-profile-card",
158
158
  xcss: styles.placeholderContainer
159
- }, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
159
+ }, /*#__PURE__*/_react.default.createElement(_box.Box, {
160
160
  xcss: styles.placeholderContent
161
161
  }, /*#__PURE__*/_react.default.createElement(_mentionItem.default, {
162
162
  mention: mention,
@@ -166,7 +166,7 @@ function MentionItemWithProfileCard(_ref2) {
166
166
  height: height
167
167
  })));
168
168
  }
169
- return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
169
+ return /*#__PURE__*/_react.default.createElement(_box.Box, {
170
170
  testId: "mention-item-with-profile-card",
171
171
  onMouseOver: cancelHide,
172
172
  onMouseOut: scheduleHide,
@@ -16,7 +16,7 @@ var _mentions = require("@atlaskit/editor-common/messages/mentions");
16
16
  var _typeAhead = require("@atlaskit/editor-common/type-ahead");
17
17
  var _model = require("@atlaskit/editor-prosemirror/model");
18
18
  var _utils = require("@atlaskit/editor-prosemirror/utils");
19
- var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge/lozenge"));
19
+ var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge/new/lozenge"));
20
20
  var _isResolvingMentionProvider = require("@atlaskit/mention/is-resolving-mention-provider");
21
21
  var _mentionItem = _interopRequireDefault(require("@atlaskit/mention/mention-item"));
22
22
  var _styles = require("@atlaskit/mention/mention-item/styles");
@@ -34,7 +34,7 @@ export const ACTIONS = {
34
34
  CLEAR_PENDING_PASTED_AGENT_MENTION: 'CLEAR_PENDING_PASTED_AGENT_MENTION'
35
35
  };
36
36
  const PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
37
- const PACKAGE_VERSION = "29.0.6";
37
+ const PACKAGE_VERSION = "30.0.1";
38
38
  const setProvider = provider => (state, dispatch) => {
39
39
  if (dispatch) {
40
40
  dispatch(state.tr.setMeta(mentionPluginKey, {
@@ -6,7 +6,8 @@ import { useCallback } from 'react';
6
6
  import { useIntl } from 'react-intl';
7
7
  import { mentionMessages } from '@atlaskit/editor-common/messages/mentions';
8
8
  import StatusErrorIcon from '@atlaskit/icon/core/status-error';
9
- import { Inline, Text } from '@atlaskit/primitives/compiled';
9
+ import { Inline } from '@atlaskit/primitives/compiled/inline';
10
+ import { Text } from '@atlaskit/primitives/compiled/text';
10
11
  const styles = {
11
12
  retryRow: "_11c8fhey _189eidpf _1rjcu2gc _18zrutpp _4cvr1h6o _bfhk1j28 _vchhusvi _syazazsu _80omtlke _1e0c1txw _1tke1ylp _y3gn1e5h _1bsb1osq",
12
13
  retryText: "_11c8fhey _syaz13af"
@@ -5,7 +5,7 @@ import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'
5
5
  import MentionItem from '@atlaskit/mention/mention-item';
6
6
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
7
7
  import { fg } from '@atlaskit/platform-feature-flags/fg';
8
- import { Box } from '@atlaskit/primitives/compiled';
8
+ import { Box } from '@atlaskit/primitives/compiled/box';
9
9
  import { ProfileCardComponent } from '../ProfileCardComponent';
10
10
  import { isAgentMention } from './utils';
11
11
 
@@ -6,7 +6,7 @@ import { mentionMessages } from '@atlaskit/editor-common/messages/mentions';
6
6
  import { TypeAheadAvailableNodes } from '@atlaskit/editor-common/type-ahead';
7
7
  import { Fragment } from '@atlaskit/editor-prosemirror/model';
8
8
  import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
9
- import Lozenge from '@atlaskit/lozenge/lozenge';
9
+ import Lozenge from '@atlaskit/lozenge/new/lozenge';
10
10
  import { isResolvingMentionProvider } from '@atlaskit/mention/is-resolving-mention-provider';
11
11
  import MentionItem from '@atlaskit/mention/mention-item';
12
12
  import { MENTION_ITEM_HEIGHT, MENTION_ITEM_HEIGHT_REFRESHED } from '@atlaskit/mention/mention-item/styles';
@@ -37,7 +37,7 @@ export var ACTIONS = {
37
37
  CLEAR_PENDING_PASTED_AGENT_MENTION: 'CLEAR_PENDING_PASTED_AGENT_MENTION'
38
38
  };
39
39
  var PACKAGE_NAME = "@atlaskit/editor-plugin-mentions";
40
- var PACKAGE_VERSION = "29.0.6";
40
+ var PACKAGE_VERSION = "30.0.1";
41
41
  var setProvider = function setProvider(provider) {
42
42
  return function (state, dispatch) {
43
43
  if (dispatch) {
@@ -6,7 +6,8 @@ import { useCallback } from 'react';
6
6
  import { useIntl } from 'react-intl';
7
7
  import { mentionMessages } from '@atlaskit/editor-common/messages/mentions';
8
8
  import StatusErrorIcon from '@atlaskit/icon/core/status-error';
9
- import { Inline, Text } from '@atlaskit/primitives/compiled';
9
+ import { Inline } from '@atlaskit/primitives/compiled/inline';
10
+ import { Text } from '@atlaskit/primitives/compiled/text';
10
11
  var styles = {
11
12
  retryRow: "_11c8fhey _189eidpf _1rjcu2gc _18zrutpp _4cvr1h6o _bfhk1j28 _vchhusvi _syazazsu _80omtlke _1e0c1txw _1tke1ylp _y3gn1e5h _1bsb1osq",
12
13
  retryText: "_11c8fhey _syaz13af"
@@ -6,7 +6,7 @@ import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'
6
6
  import MentionItem from '@atlaskit/mention/mention-item';
7
7
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
8
8
  import { fg } from '@atlaskit/platform-feature-flags/fg';
9
- import { Box } from '@atlaskit/primitives/compiled';
9
+ import { Box } from '@atlaskit/primitives/compiled/box';
10
10
  import { ProfileCardComponent } from '../ProfileCardComponent';
11
11
  import { isAgentMention } from './utils';
12
12
 
@@ -13,7 +13,7 @@ import { mentionMessages } from '@atlaskit/editor-common/messages/mentions';
13
13
  import { TypeAheadAvailableNodes } from '@atlaskit/editor-common/type-ahead';
14
14
  import { Fragment } from '@atlaskit/editor-prosemirror/model';
15
15
  import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
16
- import Lozenge from '@atlaskit/lozenge/lozenge';
16
+ import Lozenge from '@atlaskit/lozenge/new/lozenge';
17
17
  import { isResolvingMentionProvider } from '@atlaskit/mention/is-resolving-mention-provider';
18
18
  import MentionItem from '@atlaskit/mention/mention-item';
19
19
  import { MENTION_ITEM_HEIGHT, MENTION_ITEM_HEIGHT_REFRESHED } from '@atlaskit/mention/mention-item/styles';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-mentions",
3
- "version": "30.0.0",
3
+ "version": "30.0.2",
4
4
  "description": "Mentions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -40,14 +40,14 @@
40
40
  "@atlaskit/platform-feature-experiments": "^0.3.0",
41
41
  "@atlaskit/platform-feature-flags": "^2.2.0",
42
42
  "@atlaskit/popper": "^9.4.0",
43
- "@atlaskit/popup": "^9.0.0",
43
+ "@atlaskit/popup": "^10.0.0",
44
44
  "@atlaskit/portal": "^7.0.0",
45
45
  "@atlaskit/primitives": "^22.6.0",
46
- "@atlaskit/profilecard": "^27.1.0",
46
+ "@atlaskit/profilecard": "^27.2.0",
47
47
  "@atlaskit/section-message": "^10.2.0",
48
48
  "@atlaskit/teams-app-config": "^3.1.0",
49
49
  "@atlaskit/theme": "^28.2.0",
50
- "@atlaskit/tmp-editor-statsig": "^240.0.0",
50
+ "@atlaskit/tmp-editor-statsig": "^241.0.0",
51
51
  "@atlaskit/tokens": "^20.6.0",
52
52
  "@atlaskit/tooltip": "^24.4.0",
53
53
  "@atlaskit/user-picker": "^14.2.0",