@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/mention
2
2
 
3
+ ## 19.9.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6344bc53c4e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6344bc53c4e) - Remove bulk imports in mentions
8
+
3
9
  ## 19.9.4
4
10
 
5
11
  ### Patch Changes
@@ -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 colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
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: colors.B400,
33
- dark: colors.B200
26
+ light: _colors.B400,
27
+ dark: _colors.B200
34
28
  }),
35
29
  border: 'transparent',
36
30
  text: (0, _components.themed)({
37
- light: colors.N20,
38
- dark: colors.DN30
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: colors.N500,
44
- dark: colors.DN80
37
+ light: _colors.N500,
38
+ dark: _colors.DN80
45
39
  }),
46
40
  text: (0, _components.themed)({
47
- light: colors.N500,
48
- dark: colors.DN100
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: colors.N30A,
53
- dark: colors.DN80
46
+ light: _colors.N30A,
47
+ dark: _colors.DN80
54
48
  }),
55
49
  border: 'transparent',
56
50
  text: (0, _components.themed)({
57
- light: colors.N500,
58
- dark: colors.DN800
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 UtilAnalytics = _interopRequireWildcard(require("../../util/analytics"));
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
- UtilAnalytics.fireAnalyticsMentionTypeaheadEvent(_this.props)('rendered', stats && stats.duration, mentions.map(function (mention) {
113
+ (0, _analytics.fireAnalyticsMentionTypeaheadEvent)(_this.props)('rendered', stats && stats.duration, mentions.map(function (mention) {
120
114
  return mention.id;
121
115
  }), query);
122
116
  });
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/mention",
3
- "version": "19.9.4",
3
+ "version": "19.9.5",
4
4
  "sideEffects": false
5
5
  }
@@ -1,39 +1,39 @@
1
1
  import { themed } from '@atlaskit/theme/components';
2
- import * as colors from '@atlaskit/theme/colors';
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: colors.B400,
9
- dark: colors.B200
8
+ light: B400,
9
+ dark: B200
10
10
  }),
11
11
  border: 'transparent',
12
12
  text: themed({
13
- light: colors.N20,
14
- dark: colors.DN30
13
+ light: N20,
14
+ dark: DN30
15
15
  })
16
16
  },
17
17
  [MentionType.RESTRICTED]: {
18
18
  background: 'transparent',
19
19
  border: themed({
20
- light: colors.N500,
21
- dark: colors.DN80
20
+ light: N500,
21
+ dark: DN80
22
22
  }),
23
23
  text: themed({
24
- light: colors.N500,
25
- dark: colors.DN100
24
+ light: N500,
25
+ dark: DN100
26
26
  })
27
27
  },
28
28
  [MentionType.DEFAULT]: {
29
29
  background: themed({
30
- light: colors.N30A,
31
- dark: colors.DN80
30
+ light: N30A,
31
+ dark: DN80
32
32
  }),
33
33
  border: 'transparent',
34
34
  text: themed({
35
- light: colors.N500,
36
- dark: colors.DN800
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 * as UtilAnalytics from '../../util/analytics';
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
- UtilAnalytics.fireAnalyticsMentionTypeaheadEvent(this.props)('rendered', stats && stats.duration, mentions.map(mention => mention.id), query);
78
+ fireAnalyticsMentionTypeaheadEvent(this.props)('rendered', stats && stats.duration, mentions.map(mention => mention.id), query);
79
79
  });
80
80
 
81
81
  _defineProperty(this, "filterError", error => {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/mention",
3
- "version": "19.9.4",
3
+ "version": "19.9.5",
4
4
  "sideEffects": false
5
5
  }
@@ -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 * as colors from '@atlaskit/theme/colors';
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: colors.B400,
13
- dark: colors.B200
12
+ light: B400,
13
+ dark: B200
14
14
  }),
15
15
  border: 'transparent',
16
16
  text: themed({
17
- light: colors.N20,
18
- dark: colors.DN30
17
+ light: N20,
18
+ dark: DN30
19
19
  })
20
20
  }), _defineProperty(_mentionStyle, MentionType.RESTRICTED, {
21
21
  background: 'transparent',
22
22
  border: themed({
23
- light: colors.N500,
24
- dark: colors.DN80
23
+ light: N500,
24
+ dark: DN80
25
25
  }),
26
26
  text: themed({
27
- light: colors.N500,
28
- dark: colors.DN100
27
+ light: N500,
28
+ dark: DN100
29
29
  })
30
30
  }), _defineProperty(_mentionStyle, MentionType.DEFAULT, {
31
31
  background: themed({
32
- light: colors.N30A,
33
- dark: colors.DN80
32
+ light: N30A,
33
+ dark: DN80
34
34
  }),
35
35
  border: 'transparent',
36
36
  text: themed({
37
- light: colors.N500,
38
- dark: colors.DN800
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 * as UtilAnalytics from '../../util/analytics';
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
- UtilAnalytics.fireAnalyticsMentionTypeaheadEvent(_this.props)('rendered', stats && stats.duration, mentions.map(function (mention) {
100
+ fireAnalyticsMentionTypeaheadEvent(_this.props)('rendered', stats && stats.duration, mentions.map(function (mention) {
101
101
  return mention.id;
102
102
  }), query);
103
103
  });
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/mention",
3
- "version": "19.9.4",
3
+ "version": "19.9.5",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/mention",
3
- "version": "19.9.4",
3
+ "version": "19.9.5",
4
4
  "description": "A React component used to display user profiles in a list for 'Mention' functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"