@atlaskit/emoji 69.0.4 → 69.0.6

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,19 @@
1
1
  # @atlaskit/emoji
2
2
 
3
+ ## 69.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#134347](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/134347)
8
+ [`41b8c673a02ed`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/41b8c673a02ed) -
9
+ Import React in EmojiPicker to avoid broken CJS module
10
+
11
+ ## 69.0.5
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 69.0.4
4
18
 
5
19
  ### Patch Changes
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.preloadEmojiPicker = exports.default = exports.EmojiPickerInternal = void 0;
9
9
  require("./EmojiPicker.compiled.css");
10
- var React = _interopRequireWildcard(require("react"));
11
10
  var _runtime = require("@compiled/react/runtime");
12
11
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
13
12
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
@@ -17,6 +16,7 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
17
16
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
18
17
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
19
18
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
19
+ var _react = _interopRequireDefault(require("react"));
20
20
  var _colors = require("@atlaskit/theme/colors");
21
21
  var _analyticsNext = require("@atlaskit/analytics-next");
22
22
  var _analytics = require("../../../util/analytics");
@@ -78,7 +78,7 @@ var EmojiPickerInternal = exports.EmojiPickerInternal = /*#__PURE__*/function (_
78
78
  }
79
79
  };
80
80
  _analytics.ufoExperiences['emoji-picker-opened'].markFMP();
81
- return /*#__PURE__*/React.createElement("div", {
81
+ return /*#__PURE__*/_react.default.createElement("div", {
82
82
  ref: handlePickerRef,
83
83
  className: (0, _runtime.ax)(["_19itbw7i _2rkosqtm _1e0c1txw _2lx21bp4 _1bah1yb4 _bfhk1bhr _16qsp2xt _4t3iixjv _1bsb1edt _1ul91edt _1tke5x59 _c71l1y6z"]),
84
84
  style: {
@@ -92,11 +92,11 @@ var EmojiPickerInternal = exports.EmojiPickerInternal = /*#__PURE__*/function (_
92
92
  var _this$props = this.props,
93
93
  emojiProvider = _this$props.emojiProvider,
94
94
  otherProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
95
- return /*#__PURE__*/React.createElement(_UfoErrorBoundary.UfoErrorBoundary, {
95
+ return /*#__PURE__*/_react.default.createElement(_UfoErrorBoundary.UfoErrorBoundary, {
96
96
  experiences: [_analytics.ufoExperiences['emoji-picker-opened']]
97
- }, /*#__PURE__*/React.createElement(_EmojiCommonProvider.EmojiCommonProvider, {
97
+ }, /*#__PURE__*/_react.default.createElement(_EmojiCommonProvider.EmojiCommonProvider, {
98
98
  emojiProvider: loadedEmojiProvider
99
- }, /*#__PURE__*/React.createElement(EmojiPickerComponent, otherProps)));
99
+ }, /*#__PURE__*/_react.default.createElement(EmojiPickerComponent, otherProps)));
100
100
  }
101
101
  }]);
102
102
  }(_LoadingEmojiComponent.default);
package/dist/cjs/types.js CHANGED
@@ -29,8 +29,11 @@ exports.UfoExperienceName = exports.UfoEmojiTimingsKeys = exports.UfoEmojiTiming
29
29
  * The expected response from an Emoji service.
30
30
  */
31
31
  var SearchSort = exports.SearchSort = /*#__PURE__*/function (SearchSort) {
32
+ // no sort - just the default ordering of emoji
32
33
  SearchSort[SearchSort["None"] = 0] = "None";
34
+ // a sort taking into account a number of factors including, usage, closeness of match to the query, etc
33
35
  SearchSort[SearchSort["Default"] = 1] = "Default";
36
+ // sort such that the most frequently used emoji come first, and then standard, service defined ordering is preserved.
34
37
  SearchSort[SearchSort["UsageFrequency"] = 2] = "UsageFrequency";
35
38
  return SearchSort;
36
39
  }({});
@@ -20,7 +20,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
20
20
  actionSubjectId: actionSubjectId,
21
21
  attributes: _objectSpread({
22
22
  packageName: "@atlaskit/emoji",
23
- packageVersion: "69.0.4"
23
+ packageVersion: "69.0.6"
24
24
  }, attributes)
25
25
  };
26
26
  };
@@ -1,8 +1,8 @@
1
1
  /* EmojiPicker.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import "./EmojiPicker.compiled.css";
4
- import * as React from 'react';
5
4
  import { ax, ix } from "@compiled/react/runtime";
5
+ import React from 'react';
6
6
  import { N40 } from '@atlaskit/theme/colors';
7
7
  import { withAnalyticsEvents } from '@atlaskit/analytics-next';
8
8
  import { ufoExperiences } from '../../../util/analytics';
@@ -29,8 +29,11 @@
29
29
  */
30
30
 
31
31
  export let SearchSort = /*#__PURE__*/function (SearchSort) {
32
+ // no sort - just the default ordering of emoji
32
33
  SearchSort[SearchSort["None"] = 0] = "None";
34
+ // a sort taking into account a number of factors including, usage, closeness of match to the query, etc
33
35
  SearchSort[SearchSort["Default"] = 1] = "Default";
36
+ // sort such that the most frequently used emoji come first, and then standard, service defined ordering is preserved.
34
37
  SearchSort[SearchSort["UsageFrequency"] = 2] = "UsageFrequency";
35
38
  return SearchSort;
36
39
  }({});
@@ -8,7 +8,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
8
8
  actionSubjectId,
9
9
  attributes: {
10
10
  packageName: "@atlaskit/emoji",
11
- packageVersion: "69.0.4",
11
+ packageVersion: "69.0.6",
12
12
  ...attributes
13
13
  }
14
14
  });
@@ -8,10 +8,10 @@ import _inherits from "@babel/runtime/helpers/inherits";
8
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
9
  var _excluded = ["emojiProvider"];
10
10
  import "./EmojiPicker.compiled.css";
11
- import * as React from 'react';
12
11
  import { ax, ix } from "@compiled/react/runtime";
13
12
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
14
13
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
14
+ import React from 'react';
15
15
  import { N40 } from '@atlaskit/theme/colors';
16
16
  import { withAnalyticsEvents } from '@atlaskit/analytics-next';
17
17
  import { ufoExperiences } from '../../../util/analytics';
package/dist/esm/types.js CHANGED
@@ -29,8 +29,11 @@
29
29
  */
30
30
 
31
31
  export var SearchSort = /*#__PURE__*/function (SearchSort) {
32
+ // no sort - just the default ordering of emoji
32
33
  SearchSort[SearchSort["None"] = 0] = "None";
34
+ // a sort taking into account a number of factors including, usage, closeness of match to the query, etc
33
35
  SearchSort[SearchSort["Default"] = 1] = "Default";
36
+ // sort such that the most frequently used emoji come first, and then standard, service defined ordering is preserved.
34
37
  SearchSort[SearchSort["UsageFrequency"] = 2] = "UsageFrequency";
35
38
  return SearchSort;
36
39
  }({});
@@ -13,7 +13,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
13
13
  actionSubjectId: actionSubjectId,
14
14
  attributes: _objectSpread({
15
15
  packageName: "@atlaskit/emoji",
16
- packageVersion: "69.0.4"
16
+ packageVersion: "69.0.6"
17
17
  }, attributes)
18
18
  };
19
19
  };
@@ -2,6 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
+ import React from 'react';
5
6
  import type { ComponentClass } from 'react';
6
7
  import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
7
8
  import type { EmojiProvider } from '../../../api/EmojiResource';
@@ -33,12 +34,12 @@ export declare class EmojiPickerInternal extends LoadingEmojiComponent<Props & W
33
34
  size: string;
34
35
  };
35
36
  state: {
36
- asyncLoadedComponent: import("react").ComponentType<import("react").PropsWithChildren<ComponentProps>> | undefined;
37
+ asyncLoadedComponent: React.ComponentType<React.PropsWithChildren<ComponentProps>> | undefined;
37
38
  };
38
39
  constructor(props: Props);
39
40
  asyncLoadComponent(): void;
40
41
  renderLoading(): JSX.Element | null;
41
42
  renderLoaded(loadedEmojiProvider: EmojiProvider, EmojiPickerComponent: ComponentClass<ComponentProps>): JSX.Element;
42
43
  }
43
- declare const EmojiPicker: import("react").ForwardRefExoticComponent<Omit<Props & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
44
+ declare const EmojiPicker: React.ForwardRefExoticComponent<Omit<Props & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
44
45
  export default EmojiPicker;
@@ -2,6 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
+ import React from 'react';
5
6
  import type { ComponentClass } from 'react';
6
7
  import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
7
8
  import type { EmojiProvider } from '../../../api/EmojiResource';
@@ -33,12 +34,12 @@ export declare class EmojiPickerInternal extends LoadingEmojiComponent<Props & W
33
34
  size: string;
34
35
  };
35
36
  state: {
36
- asyncLoadedComponent: import("react").ComponentType<import("react").PropsWithChildren<ComponentProps>> | undefined;
37
+ asyncLoadedComponent: React.ComponentType<React.PropsWithChildren<ComponentProps>> | undefined;
37
38
  };
38
39
  constructor(props: Props);
39
40
  asyncLoadComponent(): void;
40
41
  renderLoading(): JSX.Element | null;
41
42
  renderLoaded(loadedEmojiProvider: EmojiProvider, EmojiPickerComponent: ComponentClass<ComponentProps>): JSX.Element;
42
43
  }
43
- declare const EmojiPicker: import("react").ForwardRefExoticComponent<Omit<Props & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
44
+ declare const EmojiPicker: React.ForwardRefExoticComponent<Omit<Props & WithAnalyticsEventsProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
44
45
  export default EmojiPicker;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/emoji",
3
- "version": "69.0.4",
3
+ "version": "69.0.6",
4
4
  "description": "Fabric emoji React components",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -36,10 +36,10 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@atlaskit/analytics-next": "^11.0.0",
39
- "@atlaskit/button": "^21.1.0",
39
+ "@atlaskit/button": "^22.0.0",
40
40
  "@atlaskit/css": "^0.10.0",
41
41
  "@atlaskit/heading": "^5.1.0",
42
- "@atlaskit/icon": "^25.2.0",
42
+ "@atlaskit/icon": "^25.3.0",
43
43
  "@atlaskit/media-client": "^32.0.0",
44
44
  "@atlaskit/media-client-react": "^4.0.0",
45
45
  "@atlaskit/platform-feature-flags": "^1.1.0",