@atlaskit/mention 19.9.4 → 19.9.5
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 +6 -0
- package/dist/cjs/components/Mention/styles.js +13 -19
- package/dist/cjs/components/MentionPicker/index.js +2 -8
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/Mention/styles.js +13 -13
- package/dist/es2019/components/MentionPicker/index.js +2 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/Mention/styles.js +13 -13
- package/dist/esm/components/MentionPicker/index.js +2 -2
- package/dist/esm/version.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
@@ -15,7 +13,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
15
13
|
|
|
16
14
|
var _components = require("@atlaskit/theme/components");
|
|
17
15
|
|
|
18
|
-
var
|
|
16
|
+
var _colors = require("@atlaskit/theme/colors");
|
|
19
17
|
|
|
20
18
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
21
19
|
|
|
@@ -23,39 +21,35 @@ var _types = require("../../types");
|
|
|
23
21
|
|
|
24
22
|
var _mentionStyle, _templateObject;
|
|
25
23
|
|
|
26
|
-
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); }
|
|
27
|
-
|
|
28
|
-
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; }
|
|
29
|
-
|
|
30
24
|
var mentionStyle = (_mentionStyle = {}, (0, _defineProperty2.default)(_mentionStyle, _types.MentionType.SELF, {
|
|
31
25
|
background: (0, _components.themed)({
|
|
32
|
-
light:
|
|
33
|
-
dark:
|
|
26
|
+
light: _colors.B400,
|
|
27
|
+
dark: _colors.B200
|
|
34
28
|
}),
|
|
35
29
|
border: 'transparent',
|
|
36
30
|
text: (0, _components.themed)({
|
|
37
|
-
light:
|
|
38
|
-
dark:
|
|
31
|
+
light: _colors.N20,
|
|
32
|
+
dark: _colors.DN30
|
|
39
33
|
})
|
|
40
34
|
}), (0, _defineProperty2.default)(_mentionStyle, _types.MentionType.RESTRICTED, {
|
|
41
35
|
background: 'transparent',
|
|
42
36
|
border: (0, _components.themed)({
|
|
43
|
-
light:
|
|
44
|
-
dark:
|
|
37
|
+
light: _colors.N500,
|
|
38
|
+
dark: _colors.DN80
|
|
45
39
|
}),
|
|
46
40
|
text: (0, _components.themed)({
|
|
47
|
-
light:
|
|
48
|
-
dark:
|
|
41
|
+
light: _colors.N500,
|
|
42
|
+
dark: _colors.DN100
|
|
49
43
|
})
|
|
50
44
|
}), (0, _defineProperty2.default)(_mentionStyle, _types.MentionType.DEFAULT, {
|
|
51
45
|
background: (0, _components.themed)({
|
|
52
|
-
light:
|
|
53
|
-
dark:
|
|
46
|
+
light: _colors.N30A,
|
|
47
|
+
dark: _colors.DN80
|
|
54
48
|
}),
|
|
55
49
|
border: 'transparent',
|
|
56
50
|
text: (0, _components.themed)({
|
|
57
|
-
light:
|
|
58
|
-
dark:
|
|
51
|
+
light: _colors.N500,
|
|
52
|
+
dark: _colors.DN800
|
|
59
53
|
})
|
|
60
54
|
}), _mentionStyle);
|
|
61
55
|
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
@@ -27,7 +25,7 @@ var _analyticsNext = require("@atlaskit/analytics-next");
|
|
|
27
25
|
|
|
28
26
|
var _react = _interopRequireDefault(require("react"));
|
|
29
27
|
|
|
30
|
-
var
|
|
28
|
+
var _analytics = require("../../util/analytics");
|
|
31
29
|
|
|
32
30
|
var _id = _interopRequireDefault(require("../../util/id"));
|
|
33
31
|
|
|
@@ -39,10 +37,6 @@ var _ResourcedMentionList = _interopRequireDefault(require("../ResourcedMentionL
|
|
|
39
37
|
|
|
40
38
|
var _styles = require("./styles");
|
|
41
39
|
|
|
42
|
-
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); }
|
|
43
|
-
|
|
44
|
-
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; }
|
|
45
|
-
|
|
46
40
|
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); }; }
|
|
47
41
|
|
|
48
42
|
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; } }
|
|
@@ -116,7 +110,7 @@ var MentionPicker = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
116
110
|
|
|
117
111
|
_this.onFilterVisibilityChange(wasVisible, visible);
|
|
118
112
|
|
|
119
|
-
|
|
113
|
+
(0, _analytics.fireAnalyticsMentionTypeaheadEvent)(_this.props)('rendered', stats && stats.duration, mentions.map(function (mention) {
|
|
120
114
|
return mention.id;
|
|
121
115
|
}), query);
|
|
122
116
|
});
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { themed } from '@atlaskit/theme/components';
|
|
2
|
-
import
|
|
2
|
+
import { B200, B400, DN100, DN30, DN80, DN800, N20, N30A, N500 } from '@atlaskit/theme/colors';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { MentionType } from '../../types';
|
|
5
5
|
const mentionStyle = {
|
|
6
6
|
[MentionType.SELF]: {
|
|
7
7
|
background: themed({
|
|
8
|
-
light:
|
|
9
|
-
dark:
|
|
8
|
+
light: B400,
|
|
9
|
+
dark: B200
|
|
10
10
|
}),
|
|
11
11
|
border: 'transparent',
|
|
12
12
|
text: themed({
|
|
13
|
-
light:
|
|
14
|
-
dark:
|
|
13
|
+
light: N20,
|
|
14
|
+
dark: DN30
|
|
15
15
|
})
|
|
16
16
|
},
|
|
17
17
|
[MentionType.RESTRICTED]: {
|
|
18
18
|
background: 'transparent',
|
|
19
19
|
border: themed({
|
|
20
|
-
light:
|
|
21
|
-
dark:
|
|
20
|
+
light: N500,
|
|
21
|
+
dark: DN80
|
|
22
22
|
}),
|
|
23
23
|
text: themed({
|
|
24
|
-
light:
|
|
25
|
-
dark:
|
|
24
|
+
light: N500,
|
|
25
|
+
dark: DN100
|
|
26
26
|
})
|
|
27
27
|
},
|
|
28
28
|
[MentionType.DEFAULT]: {
|
|
29
29
|
background: themed({
|
|
30
|
-
light:
|
|
31
|
-
dark:
|
|
30
|
+
light: N30A,
|
|
31
|
+
dark: DN80
|
|
32
32
|
}),
|
|
33
33
|
border: 'transparent',
|
|
34
34
|
text: themed({
|
|
35
|
-
light:
|
|
36
|
-
dark:
|
|
35
|
+
light: N500,
|
|
36
|
+
dark: DN800
|
|
37
37
|
})
|
|
38
38
|
}
|
|
39
39
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import
|
|
4
|
+
import { fireAnalyticsMentionTypeaheadEvent } from '../../util/analytics';
|
|
5
5
|
import uniqueId from '../../util/id';
|
|
6
6
|
import debug from '../../util/logger';
|
|
7
7
|
import Popup from '../Popup';
|
|
@@ -75,7 +75,7 @@ export class MentionPicker extends React.PureComponent {
|
|
|
75
75
|
visible
|
|
76
76
|
});
|
|
77
77
|
this.onFilterVisibilityChange(wasVisible, visible);
|
|
78
|
-
|
|
78
|
+
fireAnalyticsMentionTypeaheadEvent(this.props)('rendered', stats && stats.duration, mentions.map(mention => mention.id), query);
|
|
79
79
|
});
|
|
80
80
|
|
|
81
81
|
_defineProperty(this, "filterError", error => {
|
package/dist/es2019/version.json
CHANGED
|
@@ -4,38 +4,38 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
4
4
|
var _mentionStyle, _templateObject;
|
|
5
5
|
|
|
6
6
|
import { themed } from '@atlaskit/theme/components';
|
|
7
|
-
import
|
|
7
|
+
import { B200, B400, DN100, DN30, DN80, DN800, N20, N30A, N500 } from '@atlaskit/theme/colors';
|
|
8
8
|
import styled from 'styled-components';
|
|
9
9
|
import { MentionType } from '../../types';
|
|
10
10
|
var mentionStyle = (_mentionStyle = {}, _defineProperty(_mentionStyle, MentionType.SELF, {
|
|
11
11
|
background: themed({
|
|
12
|
-
light:
|
|
13
|
-
dark:
|
|
12
|
+
light: B400,
|
|
13
|
+
dark: B200
|
|
14
14
|
}),
|
|
15
15
|
border: 'transparent',
|
|
16
16
|
text: themed({
|
|
17
|
-
light:
|
|
18
|
-
dark:
|
|
17
|
+
light: N20,
|
|
18
|
+
dark: DN30
|
|
19
19
|
})
|
|
20
20
|
}), _defineProperty(_mentionStyle, MentionType.RESTRICTED, {
|
|
21
21
|
background: 'transparent',
|
|
22
22
|
border: themed({
|
|
23
|
-
light:
|
|
24
|
-
dark:
|
|
23
|
+
light: N500,
|
|
24
|
+
dark: DN80
|
|
25
25
|
}),
|
|
26
26
|
text: themed({
|
|
27
|
-
light:
|
|
28
|
-
dark:
|
|
27
|
+
light: N500,
|
|
28
|
+
dark: DN100
|
|
29
29
|
})
|
|
30
30
|
}), _defineProperty(_mentionStyle, MentionType.DEFAULT, {
|
|
31
31
|
background: themed({
|
|
32
|
-
light:
|
|
33
|
-
dark:
|
|
32
|
+
light: N30A,
|
|
33
|
+
dark: DN80
|
|
34
34
|
}),
|
|
35
35
|
border: 'transparent',
|
|
36
36
|
text: themed({
|
|
37
|
-
light:
|
|
38
|
-
dark:
|
|
37
|
+
light: N500,
|
|
38
|
+
dark: DN800
|
|
39
39
|
})
|
|
40
40
|
}), _mentionStyle);
|
|
41
41
|
|
|
@@ -12,7 +12,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
12
12
|
|
|
13
13
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
14
14
|
import React from 'react';
|
|
15
|
-
import
|
|
15
|
+
import { fireAnalyticsMentionTypeaheadEvent } from '../../util/analytics';
|
|
16
16
|
import uniqueId from '../../util/id';
|
|
17
17
|
import debug from '../../util/logger';
|
|
18
18
|
import Popup from '../Popup';
|
|
@@ -97,7 +97,7 @@ export var MentionPicker = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
97
97
|
|
|
98
98
|
_this.onFilterVisibilityChange(wasVisible, visible);
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
fireAnalyticsMentionTypeaheadEvent(_this.props)('rendered', stats && stats.duration, mentions.map(function (mention) {
|
|
101
101
|
return mention.id;
|
|
102
102
|
}), query);
|
|
103
103
|
});
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED