@atlaskit/editor-plugin-mentions 0.2.1 → 0.2.3

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
+ ## 0.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572) [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) - Upgrading @atlaskit/editor-prosemirror dependency
8
+
9
+ ## 0.2.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#70152](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70152) [`53ed3673df28`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/53ed3673df28) - Updating adf-schema version to 35.5.1
14
+
3
15
  ## 0.2.1
4
16
 
5
17
  ### Patch Changes
@@ -10,9 +10,9 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
  var _react2 = require("@emotion/react");
12
12
  var _reactIntlNext = require("react-intl-next");
13
+ var _messages = require("@atlaskit/editor-common/messages");
13
14
  var _add = _interopRequireDefault(require("@atlaskit/icon/glyph/add"));
14
15
  var _colors = require("@atlaskit/theme/colors");
15
- var _messages = require("../../messages");
16
16
  var _styles = require("./styles");
17
17
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
18
18
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -58,12 +58,12 @@ var InviteItem = function InviteItem(_ref) {
58
58
  }, (0, _react2.jsx)("span", {
59
59
  css: _styles.avatarStyle
60
60
  }, (0, _react2.jsx)(_add.default, {
61
- label: intl.formatMessage(_messages.messages.mentionsAddLabel),
61
+ label: intl.formatMessage(_messages.mentionMessages.mentionsAddLabel),
62
62
  primaryColor: "var(--ds-icon-subtle, ".concat(_colors.N300, ")")
63
63
  })), (0, _react2.jsx)("div", {
64
64
  css: _styles.nameSectionStyle,
65
65
  "data-testid": "name-section"
66
- }, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _messages.messages.inviteItemTitle, {
66
+ }, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _messages.mentionMessages.inviteItemTitle, {
67
67
  values: {
68
68
  userRole: userRole || 'basic',
69
69
  productName: (0, _react2.jsx)("span", {
@@ -15,9 +15,9 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
15
15
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
16
16
  var _react = _interopRequireWildcard(require("react"));
17
17
  var _reactIntlNext = require("react-intl-next");
18
+ var _messages = require("@atlaskit/editor-common/messages");
18
19
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
19
20
  var _mention = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/mention"));
20
- var _messages = require("../../messages");
21
21
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
22
22
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
23
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
@@ -44,7 +44,7 @@ var ToolbarMention = /*#__PURE__*/function (_PureComponent) {
44
44
  (0, _createClass2.default)(ToolbarMention, [{
45
45
  key: "render",
46
46
  value: function render() {
47
- var mentionStringTranslated = this.props.intl.formatMessage(_messages.messages.mentionsIconLabel);
47
+ var mentionStringTranslated = this.props.intl.formatMessage(_messages.mentionMessages.mentionsIconLabel);
48
48
  return /*#__PURE__*/_react.default.createElement(_uiMenu.ToolbarButton, {
49
49
  testId: this.props.testId,
50
50
  buttonId: _uiMenu.TOOLBAR_BUTTON.MENTION,
@@ -4,9 +4,9 @@ import _extends from "@babel/runtime/helpers/extends";
4
4
  import React, { useCallback, useEffect } from 'react';
5
5
  import { jsx } from '@emotion/react';
6
6
  import { FormattedMessage, injectIntl } from 'react-intl-next';
7
+ import { mentionMessages as messages } from '@atlaskit/editor-common/messages';
7
8
  import AddIcon from '@atlaskit/icon/glyph/add';
8
9
  import { N300 } from '@atlaskit/theme/colors';
9
- import { messages } from '../../messages';
10
10
  import { avatarStyle, capitalizedStyle, mentionItemSelectedStyle, mentionItemStyle, nameSectionStyle, rowStyle } from './styles';
11
11
  export const INVITE_ITEM_DESCRIPTION = {
12
12
  id: 'invite-teammate'
@@ -1,9 +1,9 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import React, { PureComponent } from 'react';
3
3
  import { injectIntl } from 'react-intl-next';
4
+ import { mentionMessages as messages } from '@atlaskit/editor-common/messages';
4
5
  import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
5
6
  import MentionIcon from '@atlaskit/icon/glyph/editor/mention';
6
- import { messages } from '../../messages';
7
7
  class ToolbarMention extends PureComponent {
8
8
  constructor(...args) {
9
9
  super(...args);
@@ -4,9 +4,9 @@ import _extends from "@babel/runtime/helpers/extends";
4
4
  import React, { useCallback, useEffect } from 'react';
5
5
  import { jsx } from '@emotion/react';
6
6
  import { FormattedMessage, injectIntl } from 'react-intl-next';
7
+ import { mentionMessages as messages } from '@atlaskit/editor-common/messages';
7
8
  import AddIcon from '@atlaskit/icon/glyph/add';
8
9
  import { N300 } from '@atlaskit/theme/colors';
9
- import { messages } from '../../messages';
10
10
  import { avatarStyle, capitalizedStyle, mentionItemSelectedStyle, mentionItemStyle, nameSectionStyle, rowStyle } from './styles';
11
11
  export var INVITE_ITEM_DESCRIPTION = {
12
12
  id: 'invite-teammate'
@@ -9,9 +9,9 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
9
9
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10
10
  import React, { PureComponent } from 'react';
11
11
  import { injectIntl } from 'react-intl-next';
12
+ import { mentionMessages as messages } from '@atlaskit/editor-common/messages';
12
13
  import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
13
14
  import MentionIcon from '@atlaskit/icon/glyph/editor/mention';
14
- import { messages } from '../../messages';
15
15
  var ToolbarMention = /*#__PURE__*/function (_PureComponent) {
16
16
  _inherits(ToolbarMention, _PureComponent);
17
17
  var _super = _createSuper(ToolbarMention);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-mentions",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Mentions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,13 +33,13 @@
33
33
  ".": "./src/index.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/adf-schema": "^35.3.0",
36
+ "@atlaskit/adf-schema": "^35.5.1",
37
37
  "@atlaskit/analytics-gas-types": "^5.1.0",
38
- "@atlaskit/editor-common": "^77.1.0",
38
+ "@atlaskit/editor-common": "^77.3.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^0.4.0",
40
40
  "@atlaskit/editor-plugin-context-identifier": "^0.1.0",
41
41
  "@atlaskit/editor-plugin-type-ahead": "^0.9.0",
42
- "@atlaskit/editor-prosemirror": "1.1.0",
42
+ "@atlaskit/editor-prosemirror": "3.0.0",
43
43
  "@atlaskit/icon": "^22.0.0",
44
44
  "@atlaskit/mention": "^22.1.0",
45
45
  "@atlaskit/theme": "^12.6.0",
@@ -1,29 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.messages = void 0;
7
- var _reactIntlNext = require("react-intl-next");
8
- var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
9
- inviteItemTitle: {
10
- id: 'fabric.editor.inviteItem.title',
11
- defaultMessage: '{userRole, select, admin {Invite} trusted {Invite} other {Add}} teammate to {productName}',
12
- description: 'Title of the invite teammate item in typeahead plugin'
13
- },
14
- mentionsAddLabel: {
15
- id: 'fabric.editor.mentionsAddLabel',
16
- defaultMessage: 'add-icon',
17
- description: 'icon label to describe adding a new mention'
18
- },
19
- mentionsIconLabel: {
20
- id: 'fabric.editor.mentionsIconLabel',
21
- defaultMessage: 'Mention',
22
- description: 'icon label to describe the mention icon'
23
- },
24
- mentionsNodeLabel: {
25
- id: 'fabric.editor.mentionNode.label',
26
- defaultMessage: 'Tagged user',
27
- description: 'Label to indicate mention node to Screen reader users, that preceeds with user name ex: "Tagged user @XXX'
28
- }
29
- });
@@ -1,23 +0,0 @@
1
- import { defineMessages } from 'react-intl-next';
2
- export const messages = defineMessages({
3
- inviteItemTitle: {
4
- id: 'fabric.editor.inviteItem.title',
5
- defaultMessage: '{userRole, select, admin {Invite} trusted {Invite} other {Add}} teammate to {productName}',
6
- description: 'Title of the invite teammate item in typeahead plugin'
7
- },
8
- mentionsAddLabel: {
9
- id: 'fabric.editor.mentionsAddLabel',
10
- defaultMessage: 'add-icon',
11
- description: 'icon label to describe adding a new mention'
12
- },
13
- mentionsIconLabel: {
14
- id: 'fabric.editor.mentionsIconLabel',
15
- defaultMessage: 'Mention',
16
- description: 'icon label to describe the mention icon'
17
- },
18
- mentionsNodeLabel: {
19
- id: 'fabric.editor.mentionNode.label',
20
- defaultMessage: 'Tagged user',
21
- description: 'Label to indicate mention node to Screen reader users, that preceeds with user name ex: "Tagged user @XXX'
22
- }
23
- });
@@ -1,23 +0,0 @@
1
- import { defineMessages } from 'react-intl-next';
2
- export var messages = defineMessages({
3
- inviteItemTitle: {
4
- id: 'fabric.editor.inviteItem.title',
5
- defaultMessage: '{userRole, select, admin {Invite} trusted {Invite} other {Add}} teammate to {productName}',
6
- description: 'Title of the invite teammate item in typeahead plugin'
7
- },
8
- mentionsAddLabel: {
9
- id: 'fabric.editor.mentionsAddLabel',
10
- defaultMessage: 'add-icon',
11
- description: 'icon label to describe adding a new mention'
12
- },
13
- mentionsIconLabel: {
14
- id: 'fabric.editor.mentionsIconLabel',
15
- defaultMessage: 'Mention',
16
- description: 'icon label to describe the mention icon'
17
- },
18
- mentionsNodeLabel: {
19
- id: 'fabric.editor.mentionNode.label',
20
- defaultMessage: 'Tagged user',
21
- description: 'Label to indicate mention node to Screen reader users, that preceeds with user name ex: "Tagged user @XXX'
22
- }
23
- });
@@ -1,22 +0,0 @@
1
- export declare const messages: {
2
- inviteItemTitle: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- mentionsAddLabel: {
8
- id: string;
9
- defaultMessage: string;
10
- description: string;
11
- };
12
- mentionsIconLabel: {
13
- id: string;
14
- defaultMessage: string;
15
- description: string;
16
- };
17
- mentionsNodeLabel: {
18
- id: string;
19
- defaultMessage: string;
20
- description: string;
21
- };
22
- };
@@ -1,22 +0,0 @@
1
- export declare const messages: {
2
- inviteItemTitle: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- mentionsAddLabel: {
8
- id: string;
9
- defaultMessage: string;
10
- description: string;
11
- };
12
- mentionsIconLabel: {
13
- id: string;
14
- defaultMessage: string;
15
- description: string;
16
- };
17
- mentionsNodeLabel: {
18
- id: string;
19
- defaultMessage: string;
20
- description: string;
21
- };
22
- };