@atlaskit/editor-plugin-mentions 0.1.7 → 0.1.8
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,11 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-mentions
|
|
2
2
|
|
|
3
|
+
## 0.1.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#59147](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59147) [`f12e489f23b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f12e489f23b0) - Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
|
|
8
|
+
|
|
3
9
|
## 0.1.7
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.default = exports.INVITE_ITEM_DESCRIPTION = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _react2 = require("@emotion/react");
|
|
11
12
|
var _reactIntlNext = require("react-intl-next");
|
|
12
13
|
var _add = _interopRequireDefault(require("@atlaskit/icon/glyph/add"));
|
|
13
14
|
var _colors = require("@atlaskit/theme/colors");
|
|
@@ -15,6 +16,8 @@ var _messages = require("../../messages");
|
|
|
15
16
|
var _styles = require("./styles");
|
|
16
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); }
|
|
17
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; }
|
|
19
|
+
/** @jsx jsx */
|
|
20
|
+
|
|
18
21
|
var INVITE_ITEM_DESCRIPTION = exports.INVITE_ITEM_DESCRIPTION = {
|
|
19
22
|
id: 'invite-teammate'
|
|
20
23
|
};
|
|
@@ -45,25 +48,25 @@ var InviteItem = function InviteItem(_ref) {
|
|
|
45
48
|
onMount();
|
|
46
49
|
}
|
|
47
50
|
}, [onMount]);
|
|
48
|
-
return
|
|
51
|
+
return (0, _react2.jsx)("div", {
|
|
49
52
|
css: [_styles.mentionItemStyle, selected && _styles.mentionItemSelectedStyle],
|
|
50
53
|
onMouseDown: onSelected,
|
|
51
54
|
onMouseEnter: onItemMouseEnter,
|
|
52
55
|
"data-id": INVITE_ITEM_DESCRIPTION.id
|
|
53
|
-
},
|
|
56
|
+
}, (0, _react2.jsx)("div", {
|
|
54
57
|
css: _styles.rowStyle
|
|
55
|
-
},
|
|
58
|
+
}, (0, _react2.jsx)("span", {
|
|
56
59
|
css: _styles.avatarStyle
|
|
57
|
-
},
|
|
60
|
+
}, (0, _react2.jsx)(_add.default, {
|
|
58
61
|
label: intl.formatMessage(_messages.messages.mentionsAddLabel),
|
|
59
62
|
primaryColor: "var(--ds-icon-subtle, ".concat(_colors.N300, ")")
|
|
60
|
-
})),
|
|
63
|
+
})), (0, _react2.jsx)("div", {
|
|
61
64
|
css: _styles.nameSectionStyle,
|
|
62
65
|
"data-testid": "name-section"
|
|
63
|
-
},
|
|
66
|
+
}, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _messages.messages.inviteItemTitle, {
|
|
64
67
|
values: {
|
|
65
68
|
userRole: userRole || 'basic',
|
|
66
|
-
productName:
|
|
69
|
+
productName: (0, _react2.jsx)("span", {
|
|
67
70
|
css: _styles.capitalizedStyle,
|
|
68
71
|
"data-testid": "capitalized-message"
|
|
69
72
|
}, productName)
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
|
|
2
4
|
import React, { useCallback, useEffect } from 'react';
|
|
5
|
+
import { jsx } from '@emotion/react';
|
|
3
6
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
4
7
|
import AddIcon from '@atlaskit/icon/glyph/add';
|
|
5
8
|
import { N300 } from '@atlaskit/theme/colors';
|
|
@@ -36,25 +39,25 @@ const InviteItem = ({
|
|
|
36
39
|
onMount();
|
|
37
40
|
}
|
|
38
41
|
}, [onMount]);
|
|
39
|
-
return
|
|
42
|
+
return jsx("div", {
|
|
40
43
|
css: [mentionItemStyle, selected && mentionItemSelectedStyle],
|
|
41
44
|
onMouseDown: onSelected,
|
|
42
45
|
onMouseEnter: onItemMouseEnter,
|
|
43
46
|
"data-id": INVITE_ITEM_DESCRIPTION.id
|
|
44
|
-
},
|
|
47
|
+
}, jsx("div", {
|
|
45
48
|
css: rowStyle
|
|
46
|
-
},
|
|
49
|
+
}, jsx("span", {
|
|
47
50
|
css: avatarStyle
|
|
48
|
-
},
|
|
51
|
+
}, jsx(AddIcon, {
|
|
49
52
|
label: intl.formatMessage(messages.mentionsAddLabel),
|
|
50
53
|
primaryColor: `var(--ds-icon-subtle, ${N300})`
|
|
51
|
-
})),
|
|
54
|
+
})), jsx("div", {
|
|
52
55
|
css: nameSectionStyle,
|
|
53
56
|
"data-testid": "name-section"
|
|
54
|
-
},
|
|
57
|
+
}, jsx(FormattedMessage, _extends({}, messages.inviteItemTitle, {
|
|
55
58
|
values: {
|
|
56
59
|
userRole: userRole || 'basic',
|
|
57
|
-
productName:
|
|
60
|
+
productName: jsx("span", {
|
|
58
61
|
css: capitalizedStyle,
|
|
59
62
|
"data-testid": "capitalized-message"
|
|
60
63
|
}, productName)
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
|
|
2
4
|
import React, { useCallback, useEffect } from 'react';
|
|
5
|
+
import { jsx } from '@emotion/react';
|
|
3
6
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
4
7
|
import AddIcon from '@atlaskit/icon/glyph/add';
|
|
5
8
|
import { N300 } from '@atlaskit/theme/colors';
|
|
@@ -35,25 +38,25 @@ var InviteItem = function InviteItem(_ref) {
|
|
|
35
38
|
onMount();
|
|
36
39
|
}
|
|
37
40
|
}, [onMount]);
|
|
38
|
-
return
|
|
41
|
+
return jsx("div", {
|
|
39
42
|
css: [mentionItemStyle, selected && mentionItemSelectedStyle],
|
|
40
43
|
onMouseDown: onSelected,
|
|
41
44
|
onMouseEnter: onItemMouseEnter,
|
|
42
45
|
"data-id": INVITE_ITEM_DESCRIPTION.id
|
|
43
|
-
},
|
|
46
|
+
}, jsx("div", {
|
|
44
47
|
css: rowStyle
|
|
45
|
-
},
|
|
48
|
+
}, jsx("span", {
|
|
46
49
|
css: avatarStyle
|
|
47
|
-
},
|
|
50
|
+
}, jsx(AddIcon, {
|
|
48
51
|
label: intl.formatMessage(messages.mentionsAddLabel),
|
|
49
52
|
primaryColor: "var(--ds-icon-subtle, ".concat(N300, ")")
|
|
50
|
-
})),
|
|
53
|
+
})), jsx("div", {
|
|
51
54
|
css: nameSectionStyle,
|
|
52
55
|
"data-testid": "name-section"
|
|
53
|
-
},
|
|
56
|
+
}, jsx(FormattedMessage, _extends({}, messages.inviteItemTitle, {
|
|
54
57
|
values: {
|
|
55
58
|
userRole: userRole || 'basic',
|
|
56
|
-
productName:
|
|
59
|
+
productName: jsx("span", {
|
|
57
60
|
css: capitalizedStyle,
|
|
58
61
|
"data-testid": "capitalized-message"
|
|
59
62
|
}, productName)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-mentions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Mentions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^35.0.0",
|
|
35
35
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
36
|
-
"@atlaskit/editor-common": "^76.
|
|
36
|
+
"@atlaskit/editor-common": "^76.25.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^0.3.0",
|
|
38
38
|
"@atlaskit/editor-plugin-type-ahead": "^0.7.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "1.1.0",
|