@atlaskit/reactions 22.5.9 → 22.5.10

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.
Files changed (45) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/analytics/index.js +1 -1
  3. package/dist/cjs/components/Counter/Counter.js +1 -4
  4. package/dist/cjs/types/Actions.js +1 -5
  5. package/dist/cjs/types/Updater.js +1 -5
  6. package/dist/cjs/types/User.js +1 -5
  7. package/dist/es2019/analytics/index.js +1 -1
  8. package/dist/es2019/components/Counter/Counter.js +1 -1
  9. package/dist/es2019/types/Actions.js +0 -1
  10. package/dist/es2019/types/Updater.js +0 -1
  11. package/dist/es2019/types/User.js +0 -1
  12. package/dist/esm/analytics/index.js +1 -1
  13. package/dist/esm/components/Counter/Counter.js +1 -1
  14. package/dist/esm/types/Actions.js +0 -1
  15. package/dist/esm/types/Updater.js +0 -1
  16. package/dist/esm/types/User.js +0 -1
  17. package/dist/types/components/Counter/Counter.d.ts +2 -3
  18. package/dist/types/components/EmojiButton/EmojiButton.d.ts +2 -3
  19. package/dist/types/components/Reaction/Reaction.d.ts +2 -3
  20. package/dist/types/components/ReactionDialog/ReactionView.d.ts +2 -3
  21. package/dist/types/components/ReactionDialog/ReactionsDialog.d.ts +2 -3
  22. package/dist/types/components/ReactionDialog/ReactionsList.d.ts +2 -3
  23. package/dist/types/components/ReactionPicker/ReactionPicker.d.ts +2 -1
  24. package/dist/types/components/ReactionPicker/RepositionOnUpdate.d.ts +4 -4
  25. package/dist/types/components/Reactions/Reactions.d.ts +1 -1
  26. package/dist/types/components/Selector/Selector.d.ts +2 -1
  27. package/dist/types/components/ShowMore/ShowMore.d.ts +2 -2
  28. package/dist/types/components/UfoErrorBoundary/UfoErrorBoundary.d.ts +1 -0
  29. package/dist/types/containers/ConnectedReactionPicker/ConnectedReactionPicker.d.ts +1 -1
  30. package/dist/types/containers/ConnectedReactionsView/ConnectedReactionsView.d.ts +1 -1
  31. package/dist/types-ts4.5/components/Counter/Counter.d.ts +2 -3
  32. package/dist/types-ts4.5/components/EmojiButton/EmojiButton.d.ts +2 -3
  33. package/dist/types-ts4.5/components/Reaction/Reaction.d.ts +2 -3
  34. package/dist/types-ts4.5/components/ReactionDialog/ReactionView.d.ts +2 -3
  35. package/dist/types-ts4.5/components/ReactionDialog/ReactionsDialog.d.ts +2 -3
  36. package/dist/types-ts4.5/components/ReactionDialog/ReactionsList.d.ts +2 -3
  37. package/dist/types-ts4.5/components/ReactionPicker/ReactionPicker.d.ts +2 -1
  38. package/dist/types-ts4.5/components/ReactionPicker/RepositionOnUpdate.d.ts +4 -4
  39. package/dist/types-ts4.5/components/Reactions/Reactions.d.ts +1 -1
  40. package/dist/types-ts4.5/components/Selector/Selector.d.ts +2 -1
  41. package/dist/types-ts4.5/components/ShowMore/ShowMore.d.ts +2 -2
  42. package/dist/types-ts4.5/components/UfoErrorBoundary/UfoErrorBoundary.d.ts +1 -0
  43. package/dist/types-ts4.5/containers/ConnectedReactionPicker/ConnectedReactionPicker.d.ts +1 -1
  44. package/dist/types-ts4.5/containers/ConnectedReactionsView/ConnectedReactionsView.d.ts +1 -1
  45. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/reactions
2
2
 
3
+ ## 22.5.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [#81006](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/81006) [`d91d334a84c0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d91d334a84c0) - React 18 types for @atlaskit/reactions
8
+
3
9
  ## 22.5.9
4
10
 
5
11
  ### Patch Changes
@@ -11,7 +11,7 @@ var _analyticsGasTypes = require("@atlaskit/analytics-gas-types");
11
11
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12
12
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13
13
  var packageName = "@atlaskit/reactions";
14
- var packageVersion = "22.5.9";
14
+ var packageVersion = "22.5.10";
15
15
  /**
16
16
  * TODO: move to utility package?
17
17
  * A random sampling function
@@ -1,17 +1,14 @@
1
1
  "use strict";
2
2
 
3
- var _typeof = require("@babel/runtime/helpers/typeof");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  exports.RENDER_LABEL_TESTID = exports.RENDER_COUNTER_TESTID = exports.RENDER_COMPONENT_WRAPPER = exports.Counter = void 0;
8
- var _react = _interopRequireWildcard(require("react"));
7
+ var _react = require("react");
9
8
  var _react2 = require("@emotion/react");
10
9
  var _motion = require("@atlaskit/motion");
11
10
  var _utils = require("../../shared/utils");
12
11
  var _styles = require("./styles");
13
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
15
12
  /** @jsx jsx */
16
13
 
17
14
  // eslint-disable-next-line @atlaskit/design-system/no-banned-imports
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
@@ -1,5 +1 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
1
+ "use strict";
@@ -1,7 +1,7 @@
1
1
  import { createAndFireEvent } from '@atlaskit/analytics-next';
2
2
  import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
3
3
  const packageName = "@atlaskit/reactions";
4
- const packageVersion = "22.5.9";
4
+ const packageVersion = "22.5.10";
5
5
  /**
6
6
  * TODO: move to utility package?
7
7
  * A random sampling function
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import React, { useEffect, useMemo, useRef } from 'react';
2
+ import { useEffect, useMemo, useRef } from 'react';
3
3
  import { jsx, css } from '@emotion/react';
4
4
  import { SlideIn, ExitingPersistence, mediumDurationMs } from '@atlaskit/motion';
5
5
  // eslint-disable-next-line @atlaskit/design-system/no-banned-imports
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  import { createAndFireEvent } from '@atlaskit/analytics-next';
5
5
  import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
6
6
  var packageName = "@atlaskit/reactions";
7
- var packageVersion = "22.5.9";
7
+ var packageVersion = "22.5.10";
8
8
  /**
9
9
  * TODO: move to utility package?
10
10
  * A random sampling function
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import React, { useEffect, useMemo, useRef } from 'react';
2
+ import { useEffect, useMemo, useRef } from 'react';
3
3
  import { jsx, css } from '@emotion/react';
4
4
  import { SlideIn, ExitingPersistence, mediumDurationMs } from '@atlaskit/motion';
5
5
  // eslint-disable-next-line @atlaskit/design-system/no-banned-imports
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +1,4 @@
1
- /** @jsx jsx */
2
- import React from 'react';
1
+ import { jsx } from '@emotion/react';
3
2
  /**
4
3
  * Test id for component top level div
5
4
  */
@@ -41,4 +40,4 @@ export interface CounterProps {
41
40
  /**
42
41
  * Display reaction count next to the emoji button
43
42
  */
44
- export declare const Counter: React.FC<CounterProps>;
43
+ export declare const Counter: ({ highlight, limit, overLimitLabel, className, value, animationDuration, }: CounterProps) => jsx.JSX.Element;
@@ -1,5 +1,4 @@
1
- /** @jsx jsx */
2
- import React from 'react';
1
+ import { jsx } from '@emotion/react';
3
2
  import { EmojiId, OnEmojiEvent, EmojiProvider } from '@atlaskit/emoji';
4
3
  export declare const RENDER_BUTTON_TESTID = "button-emoji-id";
5
4
  export interface EmojiButtonProps {
@@ -19,4 +18,4 @@ export interface EmojiButtonProps {
19
18
  /**
20
19
  * custom button to render the custom emoji selector inside the reaction picker
21
20
  */
22
- export declare const EmojiButton: React.FC<EmojiButtonProps>;
21
+ export declare const EmojiButton: ({ emojiId, onClick, emojiProvider, }: EmojiButtonProps) => jsx.JSX.Element;
@@ -1,5 +1,4 @@
1
- /** @jsx jsx */
2
- import React from 'react';
1
+ import { jsx } from '@emotion/react';
3
2
  import { EmojiProvider } from '@atlaskit/emoji';
4
3
  import { ReactionSummary, ReactionClick, ReactionMouseEnter } from '../../types';
5
4
  import { ReactionTooltipProps } from '../ReactionTooltip';
@@ -45,4 +44,4 @@ export interface ReactionProps extends Pick<ReactionTooltipProps, 'allowUserDial
45
44
  /**
46
45
  * Render an emoji reaction button
47
46
  */
48
- export declare const Reaction: React.FC<ReactionProps>;
47
+ export declare const Reaction: ({ emojiProvider, onClick, reaction, onMouseEnter, onFocused, className, flash, handleUserListClick, allowUserDialog, }: ReactionProps) => jsx.JSX.Element;
@@ -1,5 +1,4 @@
1
- /** @jsx jsx */
2
- import { FC } from 'react';
1
+ import { jsx } from '@emotion/react';
3
2
  import { EmojiProvider } from '@atlaskit/emoji/resource';
4
3
  import { ReactionSummary } from '../../types';
5
4
  export interface ReactionViewProps {
@@ -16,4 +15,4 @@ export interface ReactionViewProps {
16
15
  */
17
16
  emojiProvider: Promise<EmojiProvider>;
18
17
  }
19
- export declare const ReactionView: FC<ReactionViewProps>;
18
+ export declare const ReactionView: ({ selectedEmojiId, emojiProvider, reaction, }: ReactionViewProps) => jsx.JSX.Element;
@@ -1,5 +1,4 @@
1
- /** @jsx jsx */
2
- import { FC } from 'react';
1
+ import { jsx } from '@emotion/react';
3
2
  import { EmojiProvider } from '@atlaskit/emoji/resource';
4
3
  import { OnCloseHandler } from '@atlaskit/modal-dialog';
5
4
  import { onDialogSelectReactionChange, ReactionSummary } from '../../types';
@@ -29,4 +28,4 @@ export interface ReactionsDialogProps {
29
28
  */
30
29
  handleSelectReaction?: onDialogSelectReactionChange;
31
30
  }
32
- export declare const ReactionsDialog: FC<ReactionsDialogProps>;
31
+ export declare const ReactionsDialog: ({ reactions, handleCloseReactionsDialog, emojiProvider, selectedEmojiId, handleSelectReaction, }: ReactionsDialogProps) => jsx.JSX.Element;
@@ -1,5 +1,4 @@
1
- /** @jsx jsx */
2
- import { FC } from 'react';
1
+ import { jsx } from '@emotion/react';
3
2
  import { EmojiProvider } from '@atlaskit/emoji/resource';
4
3
  import { onDialogSelectReactionChange, ReactionSummary } from '../../types';
5
4
  export interface ReactionsListProps {
@@ -20,4 +19,4 @@ export interface ReactionsListProps {
20
19
  */
21
20
  onReactionChanged: onDialogSelectReactionChange;
22
21
  }
23
- export declare const ReactionsList: FC<ReactionsListProps>;
22
+ export declare const ReactionsList: ({ reactions, initialEmojiId, emojiProvider, onReactionChanged, }: ReactionsListProps) => jsx.JSX.Element;
@@ -1,5 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
+ import { jsx } from '@emotion/react';
3
4
  import { PickerSize } from '@atlaskit/emoji/types';
4
5
  import { EmojiProvider } from '@atlaskit/emoji/resource';
5
6
  import { ReactionSource } from '../../types';
@@ -56,4 +57,4 @@ export interface ReactionPickerProps extends Pick<SelectorProps, 'pickerQuickRea
56
57
  /**
57
58
  * Picker component for adding reactions
58
59
  */
59
- export declare const ReactionPicker: React.FC<ReactionPickerProps>;
60
+ export declare const ReactionPicker: React.MemoExoticComponent<(props: ReactionPickerProps) => jsx.JSX.Element>;
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * Copied from ADS popup component with some tweeks for our use
3
3
  */
4
- import { PropsWithChildren } from 'react';
4
+ import React from 'react';
5
5
  import { PopperChildrenProps } from '@atlaskit/popper';
6
- export type RepositionOnUpdateProps = PropsWithChildren<{
6
+ export type RepositionOnUpdateProps = {
7
7
  update: PopperChildrenProps['update'];
8
8
  settings: {
9
9
  isOpen: boolean;
10
10
  showFullPicker: boolean;
11
11
  };
12
- }>;
13
- export declare const RepositionOnUpdate: ({ children, update, settings, }: RepositionOnUpdateProps) => JSX.Element;
12
+ };
13
+ export declare const RepositionOnUpdate: ({ children, update, settings, }: React.PropsWithChildren<RepositionOnUpdateProps>) => JSX.Element;
@@ -93,4 +93,4 @@ export declare function getTooltip(status: ReactionStatus, errorMessage?: string
93
93
  /**
94
94
  * Renders list of reactions
95
95
  */
96
- export declare const Reactions: React.FC<ReactionsProps>;
96
+ export declare const Reactions: React.MemoExoticComponent<({ flash, status, errorMessage, loadReaction, quickReactionEmojis, pickerQuickReactionEmojiIds, getReactionDetails, onReactionHover, onSelection, reactions, emojiProvider, allowAllEmojis, onReactionClick, allowUserDialog, onDialogOpenCallback, onDialogCloseCallback, onDialogSelectReactionCallback, emojiPickerSize, miniMode, }: ReactionsProps) => jsx.JSX.Element>;
@@ -1,5 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
+ import { jsx } from '@emotion/react';
3
4
  import { EmojiId, OnEmojiEvent } from '@atlaskit/emoji/types';
4
5
  import { EmojiProvider } from '@atlaskit/emoji/resource';
5
6
  /**
@@ -31,4 +32,4 @@ export interface SelectorProps {
31
32
  /**
32
33
  * Reactions picker panel part of the <ReactionPicker /> component
33
34
  */
34
- export declare const Selector: React.FC<SelectorProps>;
35
+ export declare const Selector: ({ emojiProvider, onMoreClick, onSelection, showMore, pickerQuickReactionEmojiIds, }: SelectorProps) => jsx.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { SerializedStyles } from '@emotion/react';
3
+ import { jsx, SerializedStyles } from '@emotion/react';
4
4
  /**
5
5
  * Test id for wrapper button
6
6
  */
@@ -31,5 +31,5 @@ export interface ShowMoreProps {
31
31
  /**
32
32
  * Show more custom emojis button
33
33
  */
34
- export declare const ShowMore: React.FC<ShowMoreProps>;
34
+ export declare const ShowMore: ({ onClick, style, className, buttonStyle, }: ShowMoreProps) => jsx.JSX.Element;
35
35
  export {};
@@ -6,6 +6,7 @@ export interface UfoErrorBoundaryProps {
6
6
  * UFO Experiences to notify failure when the children components fail on rendering
7
7
  */
8
8
  experiences: UFOExperience[] | WithSamplingUFOExperience[];
9
+ children?: React.ReactNode;
9
10
  }
10
11
  /**
11
12
  * Error boundary wrapper to notify "failure" for UFO events of components when there was a re-rendering exception caught inside the `componentDidCatch` event handler
@@ -20,4 +20,4 @@ export interface ConnectedReactionPickerProps extends Omit<ReactionPickerProps,
20
20
  /**
21
21
  * Reaction Picker component
22
22
  */
23
- export declare const ConnectedReactionPicker: React.FC<ConnectedReactionPickerProps>;
23
+ export declare const ConnectedReactionPicker: (props: React.PropsWithChildren<ConnectedReactionPickerProps>) => JSX.Element;
@@ -40,4 +40,4 @@ export declare const mapDispatchToPropsHelper: (actions: Actions, containerAri:
40
40
  getReactionDetails: (emojiId: string) => void;
41
41
  onSelection: (emojiId: string) => void;
42
42
  };
43
- export declare const ConnectedReactionsView: React.FC<ConnectedReactionsViewProps>;
43
+ export declare const ConnectedReactionsView: (props: React.PropsWithChildren<ConnectedReactionsViewProps>) => JSX.Element;
@@ -1,5 +1,4 @@
1
- /** @jsx jsx */
2
- import React from 'react';
1
+ import { jsx } from '@emotion/react';
3
2
  /**
4
3
  * Test id for component top level div
5
4
  */
@@ -41,4 +40,4 @@ export interface CounterProps {
41
40
  /**
42
41
  * Display reaction count next to the emoji button
43
42
  */
44
- export declare const Counter: React.FC<CounterProps>;
43
+ export declare const Counter: ({ highlight, limit, overLimitLabel, className, value, animationDuration, }: CounterProps) => jsx.JSX.Element;
@@ -1,5 +1,4 @@
1
- /** @jsx jsx */
2
- import React from 'react';
1
+ import { jsx } from '@emotion/react';
3
2
  import { EmojiId, OnEmojiEvent, EmojiProvider } from '@atlaskit/emoji';
4
3
  export declare const RENDER_BUTTON_TESTID = "button-emoji-id";
5
4
  export interface EmojiButtonProps {
@@ -19,4 +18,4 @@ export interface EmojiButtonProps {
19
18
  /**
20
19
  * custom button to render the custom emoji selector inside the reaction picker
21
20
  */
22
- export declare const EmojiButton: React.FC<EmojiButtonProps>;
21
+ export declare const EmojiButton: ({ emojiId, onClick, emojiProvider, }: EmojiButtonProps) => jsx.JSX.Element;
@@ -1,5 +1,4 @@
1
- /** @jsx jsx */
2
- import React from 'react';
1
+ import { jsx } from '@emotion/react';
3
2
  import { EmojiProvider } from '@atlaskit/emoji';
4
3
  import { ReactionSummary, ReactionClick, ReactionMouseEnter } from '../../types';
5
4
  import { ReactionTooltipProps } from '../ReactionTooltip';
@@ -45,4 +44,4 @@ export interface ReactionProps extends Pick<ReactionTooltipProps, 'allowUserDial
45
44
  /**
46
45
  * Render an emoji reaction button
47
46
  */
48
- export declare const Reaction: React.FC<ReactionProps>;
47
+ export declare const Reaction: ({ emojiProvider, onClick, reaction, onMouseEnter, onFocused, className, flash, handleUserListClick, allowUserDialog, }: ReactionProps) => jsx.JSX.Element;
@@ -1,5 +1,4 @@
1
- /** @jsx jsx */
2
- import { FC } from 'react';
1
+ import { jsx } from '@emotion/react';
3
2
  import { EmojiProvider } from '@atlaskit/emoji/resource';
4
3
  import { ReactionSummary } from '../../types';
5
4
  export interface ReactionViewProps {
@@ -16,4 +15,4 @@ export interface ReactionViewProps {
16
15
  */
17
16
  emojiProvider: Promise<EmojiProvider>;
18
17
  }
19
- export declare const ReactionView: FC<ReactionViewProps>;
18
+ export declare const ReactionView: ({ selectedEmojiId, emojiProvider, reaction, }: ReactionViewProps) => jsx.JSX.Element;
@@ -1,5 +1,4 @@
1
- /** @jsx jsx */
2
- import { FC } from 'react';
1
+ import { jsx } from '@emotion/react';
3
2
  import { EmojiProvider } from '@atlaskit/emoji/resource';
4
3
  import { OnCloseHandler } from '@atlaskit/modal-dialog';
5
4
  import { onDialogSelectReactionChange, ReactionSummary } from '../../types';
@@ -29,4 +28,4 @@ export interface ReactionsDialogProps {
29
28
  */
30
29
  handleSelectReaction?: onDialogSelectReactionChange;
31
30
  }
32
- export declare const ReactionsDialog: FC<ReactionsDialogProps>;
31
+ export declare const ReactionsDialog: ({ reactions, handleCloseReactionsDialog, emojiProvider, selectedEmojiId, handleSelectReaction, }: ReactionsDialogProps) => jsx.JSX.Element;
@@ -1,5 +1,4 @@
1
- /** @jsx jsx */
2
- import { FC } from 'react';
1
+ import { jsx } from '@emotion/react';
3
2
  import { EmojiProvider } from '@atlaskit/emoji/resource';
4
3
  import { onDialogSelectReactionChange, ReactionSummary } from '../../types';
5
4
  export interface ReactionsListProps {
@@ -20,4 +19,4 @@ export interface ReactionsListProps {
20
19
  */
21
20
  onReactionChanged: onDialogSelectReactionChange;
22
21
  }
23
- export declare const ReactionsList: FC<ReactionsListProps>;
22
+ export declare const ReactionsList: ({ reactions, initialEmojiId, emojiProvider, onReactionChanged, }: ReactionsListProps) => jsx.JSX.Element;
@@ -1,5 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
+ import { jsx } from '@emotion/react';
3
4
  import { PickerSize } from '@atlaskit/emoji/types';
4
5
  import { EmojiProvider } from '@atlaskit/emoji/resource';
5
6
  import { ReactionSource } from '../../types';
@@ -56,4 +57,4 @@ export interface ReactionPickerProps extends Pick<SelectorProps, 'pickerQuickRea
56
57
  /**
57
58
  * Picker component for adding reactions
58
59
  */
59
- export declare const ReactionPicker: React.FC<ReactionPickerProps>;
60
+ export declare const ReactionPicker: React.MemoExoticComponent<(props: ReactionPickerProps) => jsx.JSX.Element>;
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * Copied from ADS popup component with some tweeks for our use
3
3
  */
4
- import { PropsWithChildren } from 'react';
4
+ import React from 'react';
5
5
  import { PopperChildrenProps } from '@atlaskit/popper';
6
- export type RepositionOnUpdateProps = PropsWithChildren<{
6
+ export type RepositionOnUpdateProps = {
7
7
  update: PopperChildrenProps['update'];
8
8
  settings: {
9
9
  isOpen: boolean;
10
10
  showFullPicker: boolean;
11
11
  };
12
- }>;
13
- export declare const RepositionOnUpdate: ({ children, update, settings, }: RepositionOnUpdateProps) => JSX.Element;
12
+ };
13
+ export declare const RepositionOnUpdate: ({ children, update, settings, }: React.PropsWithChildren<RepositionOnUpdateProps>) => JSX.Element;
@@ -93,4 +93,4 @@ export declare function getTooltip(status: ReactionStatus, errorMessage?: string
93
93
  /**
94
94
  * Renders list of reactions
95
95
  */
96
- export declare const Reactions: React.FC<ReactionsProps>;
96
+ export declare const Reactions: React.MemoExoticComponent<({ flash, status, errorMessage, loadReaction, quickReactionEmojis, pickerQuickReactionEmojiIds, getReactionDetails, onReactionHover, onSelection, reactions, emojiProvider, allowAllEmojis, onReactionClick, allowUserDialog, onDialogOpenCallback, onDialogCloseCallback, onDialogSelectReactionCallback, emojiPickerSize, miniMode, }: ReactionsProps) => jsx.JSX.Element>;
@@ -1,5 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
+ import { jsx } from '@emotion/react';
3
4
  import { EmojiId, OnEmojiEvent } from '@atlaskit/emoji/types';
4
5
  import { EmojiProvider } from '@atlaskit/emoji/resource';
5
6
  /**
@@ -31,4 +32,4 @@ export interface SelectorProps {
31
32
  /**
32
33
  * Reactions picker panel part of the <ReactionPicker /> component
33
34
  */
34
- export declare const Selector: React.FC<SelectorProps>;
35
+ export declare const Selector: ({ emojiProvider, onMoreClick, onSelection, showMore, pickerQuickReactionEmojiIds, }: SelectorProps) => jsx.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { SerializedStyles } from '@emotion/react';
3
+ import { jsx, SerializedStyles } from '@emotion/react';
4
4
  /**
5
5
  * Test id for wrapper button
6
6
  */
@@ -31,5 +31,5 @@ export interface ShowMoreProps {
31
31
  /**
32
32
  * Show more custom emojis button
33
33
  */
34
- export declare const ShowMore: React.FC<ShowMoreProps>;
34
+ export declare const ShowMore: ({ onClick, style, className, buttonStyle, }: ShowMoreProps) => jsx.JSX.Element;
35
35
  export {};
@@ -6,6 +6,7 @@ export interface UfoErrorBoundaryProps {
6
6
  * UFO Experiences to notify failure when the children components fail on rendering
7
7
  */
8
8
  experiences: UFOExperience[] | WithSamplingUFOExperience[];
9
+ children?: React.ReactNode;
9
10
  }
10
11
  /**
11
12
  * Error boundary wrapper to notify "failure" for UFO events of components when there was a re-rendering exception caught inside the `componentDidCatch` event handler
@@ -20,4 +20,4 @@ export interface ConnectedReactionPickerProps extends Omit<ReactionPickerProps,
20
20
  /**
21
21
  * Reaction Picker component
22
22
  */
23
- export declare const ConnectedReactionPicker: React.FC<ConnectedReactionPickerProps>;
23
+ export declare const ConnectedReactionPicker: (props: React.PropsWithChildren<ConnectedReactionPickerProps>) => JSX.Element;
@@ -40,4 +40,4 @@ export declare const mapDispatchToPropsHelper: (actions: Actions, containerAri:
40
40
  getReactionDetails: (emojiId: string) => void;
41
41
  onSelection: (emojiId: string) => void;
42
42
  };
43
- export declare const ConnectedReactionsView: React.FC<ConnectedReactionsViewProps>;
43
+ export declare const ConnectedReactionsView: (props: React.PropsWithChildren<ConnectedReactionsViewProps>) => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/reactions",
3
- "version": "22.5.9",
3
+ "version": "22.5.10",
4
4
  "description": "Reactions component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -27,7 +27,7 @@
27
27
  "website": {
28
28
  "name": "Reactions"
29
29
  },
30
- "runReact18": false
30
+ "runReact18": true
31
31
  },
32
32
  "config": {
33
33
  "access": "public"