@atlaskit/reactions 22.7.0 → 22.7.1
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/analytics/index.js +1 -1
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/esm/analytics/index.js +1 -1
- package/dist/types/MockReactionsClient.d.ts +1 -1
- package/dist/types/analytics/index.d.ts +3 -3
- package/dist/types/client/ReactionServiceClient.d.ts +1 -1
- package/dist/types/components/EmojiButton/EmojiButton.d.ts +1 -1
- package/dist/types/components/FlashAnimation/FlashAnimation.d.ts +1 -1
- package/dist/types/components/ReactionDialog/ReactionView.d.ts +2 -2
- package/dist/types/components/ReactionDialog/ReactionsDialog.d.ts +3 -3
- package/dist/types/components/ReactionDialog/ReactionsList.d.ts +2 -2
- package/dist/types/components/ReactionDialog/styles.d.ts +1 -1
- package/dist/types/components/ReactionPicker/ReactionPicker.d.ts +5 -5
- package/dist/types/components/ReactionPicker/RepositionOnUpdate.d.ts +1 -1
- package/dist/types/components/ReactionTooltip/ReactionTooltip.d.ts +2 -2
- package/dist/types/components/Selector/Selector.d.ts +2 -2
- package/dist/types/components/ShowMore/ShowMore.d.ts +1 -1
- package/dist/types/components/Trigger/Trigger.d.ts +2 -2
- package/dist/types/components/UfoErrorBoundary/UfoErrorBoundary.d.ts +3 -3
- package/dist/types/containers/ConnectedReactionPicker/ConnectedReactionPicker.d.ts +2 -2
- package/dist/types/containers/ConnectedReactionsView/ConnectedReactionsView.d.ts +2 -2
- package/dist/types/hooks/useCloseManager.d.ts +1 -1
- package/dist/types/shared/constants.d.ts +1 -1
- package/dist/types/shared/utils.d.ts +1 -1
- package/dist/types/store/MemoryReactionsStore.d.ts +1 -1
- package/dist/types/store/ReactionConsumer.d.ts +1 -1
- package/dist/types/store/utils.d.ts +1 -1
- package/dist/types/types/client.d.ts +1 -1
- package/dist/types/types/reaction.d.ts +2 -2
- package/dist/types/types/store.d.ts +3 -3
- package/dist/types-ts4.5/MockReactionsClient.d.ts +1 -1
- package/dist/types-ts4.5/analytics/index.d.ts +3 -3
- package/dist/types-ts4.5/client/ReactionServiceClient.d.ts +1 -1
- package/dist/types-ts4.5/components/EmojiButton/EmojiButton.d.ts +1 -1
- package/dist/types-ts4.5/components/FlashAnimation/FlashAnimation.d.ts +1 -1
- package/dist/types-ts4.5/components/ReactionDialog/ReactionView.d.ts +2 -2
- package/dist/types-ts4.5/components/ReactionDialog/ReactionsDialog.d.ts +3 -3
- package/dist/types-ts4.5/components/ReactionDialog/ReactionsList.d.ts +2 -2
- package/dist/types-ts4.5/components/ReactionDialog/styles.d.ts +1 -1
- package/dist/types-ts4.5/components/ReactionPicker/ReactionPicker.d.ts +5 -5
- package/dist/types-ts4.5/components/ReactionPicker/RepositionOnUpdate.d.ts +1 -1
- package/dist/types-ts4.5/components/ReactionTooltip/ReactionTooltip.d.ts +2 -2
- package/dist/types-ts4.5/components/Selector/Selector.d.ts +2 -2
- package/dist/types-ts4.5/components/ShowMore/ShowMore.d.ts +1 -1
- package/dist/types-ts4.5/components/Trigger/Trigger.d.ts +2 -2
- package/dist/types-ts4.5/components/UfoErrorBoundary/UfoErrorBoundary.d.ts +3 -3
- package/dist/types-ts4.5/containers/ConnectedReactionPicker/ConnectedReactionPicker.d.ts +2 -2
- package/dist/types-ts4.5/containers/ConnectedReactionsView/ConnectedReactionsView.d.ts +2 -2
- package/dist/types-ts4.5/hooks/useCloseManager.d.ts +1 -1
- package/dist/types-ts4.5/shared/constants.d.ts +1 -1
- package/dist/types-ts4.5/shared/utils.d.ts +1 -1
- package/dist/types-ts4.5/store/MemoryReactionsStore.d.ts +1 -1
- package/dist/types-ts4.5/store/ReactionConsumer.d.ts +1 -1
- package/dist/types-ts4.5/store/utils.d.ts +1 -1
- package/dist/types-ts4.5/types/client.d.ts +1 -1
- package/dist/types-ts4.5/types/reaction.d.ts +2 -2
- package/dist/types-ts4.5/types/store.d.ts +3 -3
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -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.7.
|
|
14
|
+
var packageVersion = "22.7.1";
|
|
15
15
|
/**
|
|
16
16
|
* TODO: move to utility package?
|
|
17
17
|
* A random sampling function
|
|
@@ -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.7.
|
|
4
|
+
const packageVersion = "22.7.1";
|
|
5
5
|
/**
|
|
6
6
|
* TODO: move to utility package?
|
|
7
7
|
* A random sampling function
|
|
@@ -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.7.
|
|
7
|
+
var packageVersion = "22.7.1";
|
|
8
8
|
/**
|
|
9
9
|
* TODO: move to utility package?
|
|
10
10
|
* A random sampling function
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Reactions, Client, ReactionSummary } from './types';
|
|
1
|
+
import { type Reactions, type Client, type ReactionSummary } from './types';
|
|
2
2
|
export declare const containerAri = "ari:cloud:owner:demo-cloud-id:container/1";
|
|
3
3
|
export declare const ari = "ari:cloud:owner:demo-cloud-id:item/1";
|
|
4
4
|
export declare const getReactionSummary: (shortName: string, count: number, reacted: boolean, extendedReactions?: boolean) => ReactionSummary;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AnalyticsEventPayload, CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
-
import { EventType } from '@atlaskit/analytics-gas-types';
|
|
3
|
-
import { ReactionSummary, ReactionSource } from '../types';
|
|
1
|
+
import { type AnalyticsEventPayload, type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import { type EventType } from '@atlaskit/analytics-gas-types';
|
|
3
|
+
import { type ReactionSummary, type ReactionSource } from '../types';
|
|
4
4
|
export type PreviousState = 'new' | 'existingNotReacted' | 'existingReacted';
|
|
5
5
|
/**
|
|
6
6
|
* TODO: move to utility package?
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { EmojiId, OnEmojiEvent, EmojiProvider } from '@atlaskit/emoji';
|
|
2
|
+
import { type EmojiId, type OnEmojiEvent, type EmojiProvider } from '@atlaskit/emoji';
|
|
3
3
|
export declare const RENDER_BUTTON_TESTID = "button-emoji-id";
|
|
4
4
|
export interface EmojiButtonProps {
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { EmojiProvider } from '@atlaskit/emoji/resource';
|
|
3
|
-
import { ReactionSummary } from '../../types';
|
|
2
|
+
import { type EmojiProvider } from '@atlaskit/emoji/resource';
|
|
3
|
+
import { type ReactionSummary } from '../../types';
|
|
4
4
|
export interface ReactionViewProps {
|
|
5
5
|
/**
|
|
6
6
|
* Selected reaction to get user data from
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { EmojiProvider } from '@atlaskit/emoji/resource';
|
|
3
|
-
import { OnCloseHandler } from '@atlaskit/modal-dialog';
|
|
4
|
-
import { onDialogSelectReactionChange, ReactionSummary } from '../../types';
|
|
2
|
+
import { type EmojiProvider } from '@atlaskit/emoji/resource';
|
|
3
|
+
import { type OnCloseHandler } from '@atlaskit/modal-dialog';
|
|
4
|
+
import { type onDialogSelectReactionChange, type ReactionSummary } from '../../types';
|
|
5
5
|
/**
|
|
6
6
|
* Test id for the Reactions modal dialog
|
|
7
7
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { EmojiProvider } from '@atlaskit/emoji/resource';
|
|
3
|
-
import { onDialogSelectReactionChange, ReactionSummary } from '../../types';
|
|
2
|
+
import { type EmojiProvider } from '@atlaskit/emoji/resource';
|
|
3
|
+
import { type onDialogSelectReactionChange, type ReactionSummary } from '../../types';
|
|
4
4
|
export interface ReactionsListProps {
|
|
5
5
|
/**
|
|
6
6
|
* Sorted list of reactions to render in list
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ThemeColorModes } from '@atlaskit/tokens';
|
|
1
|
+
import { type ThemeColorModes } from '@atlaskit/tokens';
|
|
2
2
|
export declare const containerStyle: (reactionsBorderWidth: number) => import("@emotion/react").SerializedStyles;
|
|
3
3
|
export declare const titleStyle: import("@emotion/react").SerializedStyles;
|
|
4
4
|
export declare const counterStyle: (isSelected: boolean) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { PickerSize } from '@atlaskit/emoji/types';
|
|
5
|
-
import { EmojiProvider } from '@atlaskit/emoji/resource';
|
|
6
|
-
import { ReactionSource } from '../../types';
|
|
7
|
-
import { SelectorProps } from '../Selector';
|
|
8
|
-
import { TriggerProps } from '../Trigger';
|
|
4
|
+
import { type PickerSize } from '@atlaskit/emoji/types';
|
|
5
|
+
import { type EmojiProvider } from '@atlaskit/emoji/resource';
|
|
6
|
+
import { type ReactionSource } from '../../types';
|
|
7
|
+
import { type SelectorProps } from '../Selector';
|
|
8
|
+
import { type TriggerProps } from '../Trigger';
|
|
9
9
|
/**
|
|
10
10
|
* Test id for wrapper ReactionPicker div
|
|
11
11
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copied from ADS popup component with some tweeks for our use
|
|
3
3
|
*/
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { PopperChildrenProps } from '@atlaskit/popper';
|
|
5
|
+
import { type PopperChildrenProps } from '@atlaskit/popper';
|
|
6
6
|
export type RepositionOnUpdateProps = {
|
|
7
7
|
update: PopperChildrenProps['update'];
|
|
8
8
|
settings: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { type PropsWithChildren } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { ReactionSummary } from '../../types';
|
|
4
|
+
import { type ReactionSummary } from '../../types';
|
|
5
5
|
/**
|
|
6
6
|
* Test id for wrapper ReactionTooltip div
|
|
7
7
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { EmojiId, OnEmojiEvent } from '@atlaskit/emoji/types';
|
|
5
|
-
import { EmojiProvider } from '@atlaskit/emoji/resource';
|
|
4
|
+
import { type EmojiId, type OnEmojiEvent } from '@atlaskit/emoji/types';
|
|
5
|
+
import { type EmojiProvider } from '@atlaskit/emoji/resource';
|
|
6
6
|
/**
|
|
7
7
|
* Test id for wrapper Selector div
|
|
8
8
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import React, { AriaAttributes } from 'react';
|
|
3
|
-
import { AnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import React, { type AriaAttributes } from 'react';
|
|
3
|
+
import { type AnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
4
|
/**
|
|
5
5
|
* Test id for the tooltip
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { ErrorInfo } from 'react';
|
|
2
|
-
import { UFOExperience } from '@atlaskit/ufo';
|
|
3
|
-
import { WithSamplingUFOExperience } from '@atlaskit/emoji';
|
|
1
|
+
import React, { type ErrorInfo } from 'react';
|
|
2
|
+
import { type UFOExperience } from '@atlaskit/ufo';
|
|
3
|
+
import { type WithSamplingUFOExperience } from '@atlaskit/emoji';
|
|
4
4
|
export interface UfoErrorBoundaryProps {
|
|
5
5
|
/**
|
|
6
6
|
* UFO Experiences to notify failure when the children components fail on rendering
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ReactionPickerProps } from '../../components';
|
|
3
|
-
import { StorePropInput } from '../../types';
|
|
2
|
+
import { type ReactionPickerProps } from '../../components';
|
|
3
|
+
import { type StorePropInput } from '../../types';
|
|
4
4
|
export interface ConnectedReactionPickerProps extends Omit<ReactionPickerProps, 'onSelection'> {
|
|
5
5
|
/**
|
|
6
6
|
* Wrapper id for reactions list
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ReactionsProps, ReactionPickerProps } from '../../components';
|
|
3
|
-
import { ReactionStatus, Actions, State, StorePropInput } from '../../types';
|
|
2
|
+
import { type ReactionsProps, type ReactionPickerProps } from '../../components';
|
|
3
|
+
import { ReactionStatus, type Actions, type State, type StorePropInput } from '../../types';
|
|
4
4
|
export interface ConnectedReactionsViewProps extends Pick<ReactionsProps, 'quickReactionEmojis' | 'onDialogOpenCallback' | 'onDialogCloseCallback' | 'onDialogSelectReactionCallback' | 'allowUserDialog' | 'allowAllEmojis' | 'emojiProvider' | 'emojiPickerSize' | 'miniMode'>, Pick<ReactionPickerProps, 'pickerQuickReactionEmojiIds'> {
|
|
5
5
|
/**
|
|
6
6
|
* Wrapper id for reactions list
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
1
|
+
import { type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
import { type Client, type OnChangeCallback, type State, type Store } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* Set of all available UFO experiences relating to reaction element
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Updater, ReactionsReadyState, ReactionSummary } from '../types';
|
|
1
|
+
import { type Updater, type ReactionsReadyState, type ReactionSummary } from '../types';
|
|
2
2
|
type ReactionSummarySortFunction = (a: ReactionSummary, b: ReactionSummary) => number;
|
|
3
3
|
export declare const readyState: (reactions: ReactionSummary[]) => ReactionsReadyState;
|
|
4
4
|
export declare const byEmojiId: (emojiId: string) => (reaction: ReactionSummary) => boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
-
import { User } from './User';
|
|
2
|
+
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import { type User } from './User';
|
|
4
4
|
/**
|
|
5
5
|
* Collection of reactions as object (key is unique id from containerAri and ari combined)
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
-
import { Actions } from './Actions';
|
|
3
|
-
import { ReactionsState } from './reaction';
|
|
1
|
+
import { type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import { type Actions } from './Actions';
|
|
3
|
+
import { type ReactionsState } from './reaction';
|
|
4
4
|
/**
|
|
5
5
|
* Callback event when changes apply to the main store
|
|
6
6
|
* @param state latest store state
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Reactions, Client, ReactionSummary } from './types';
|
|
1
|
+
import { type Reactions, type Client, type ReactionSummary } from './types';
|
|
2
2
|
export declare const containerAri = "ari:cloud:owner:demo-cloud-id:container/1";
|
|
3
3
|
export declare const ari = "ari:cloud:owner:demo-cloud-id:item/1";
|
|
4
4
|
export declare const getReactionSummary: (shortName: string, count: number, reacted: boolean, extendedReactions?: boolean) => ReactionSummary;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AnalyticsEventPayload, CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
-
import { EventType } from '@atlaskit/analytics-gas-types';
|
|
3
|
-
import { ReactionSummary, ReactionSource } from '../types';
|
|
1
|
+
import { type AnalyticsEventPayload, type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import { type EventType } from '@atlaskit/analytics-gas-types';
|
|
3
|
+
import { type ReactionSummary, type ReactionSource } from '../types';
|
|
4
4
|
export type PreviousState = 'new' | 'existingNotReacted' | 'existingReacted';
|
|
5
5
|
/**
|
|
6
6
|
* TODO: move to utility package?
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { EmojiId, OnEmojiEvent, EmojiProvider } from '@atlaskit/emoji';
|
|
2
|
+
import { type EmojiId, type OnEmojiEvent, type EmojiProvider } from '@atlaskit/emoji';
|
|
3
3
|
export declare const RENDER_BUTTON_TESTID = "button-emoji-id";
|
|
4
4
|
export interface EmojiButtonProps {
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { EmojiProvider } from '@atlaskit/emoji/resource';
|
|
3
|
-
import { ReactionSummary } from '../../types';
|
|
2
|
+
import { type EmojiProvider } from '@atlaskit/emoji/resource';
|
|
3
|
+
import { type ReactionSummary } from '../../types';
|
|
4
4
|
export interface ReactionViewProps {
|
|
5
5
|
/**
|
|
6
6
|
* Selected reaction to get user data from
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { EmojiProvider } from '@atlaskit/emoji/resource';
|
|
3
|
-
import { OnCloseHandler } from '@atlaskit/modal-dialog';
|
|
4
|
-
import { onDialogSelectReactionChange, ReactionSummary } from '../../types';
|
|
2
|
+
import { type EmojiProvider } from '@atlaskit/emoji/resource';
|
|
3
|
+
import { type OnCloseHandler } from '@atlaskit/modal-dialog';
|
|
4
|
+
import { type onDialogSelectReactionChange, type ReactionSummary } from '../../types';
|
|
5
5
|
/**
|
|
6
6
|
* Test id for the Reactions modal dialog
|
|
7
7
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { EmojiProvider } from '@atlaskit/emoji/resource';
|
|
3
|
-
import { onDialogSelectReactionChange, ReactionSummary } from '../../types';
|
|
2
|
+
import { type EmojiProvider } from '@atlaskit/emoji/resource';
|
|
3
|
+
import { type onDialogSelectReactionChange, type ReactionSummary } from '../../types';
|
|
4
4
|
export interface ReactionsListProps {
|
|
5
5
|
/**
|
|
6
6
|
* Sorted list of reactions to render in list
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ThemeColorModes } from '@atlaskit/tokens';
|
|
1
|
+
import { type ThemeColorModes } from '@atlaskit/tokens';
|
|
2
2
|
export declare const containerStyle: (reactionsBorderWidth: number) => import("@emotion/react").SerializedStyles;
|
|
3
3
|
export declare const titleStyle: import("@emotion/react").SerializedStyles;
|
|
4
4
|
export declare const counterStyle: (isSelected: boolean) => import("@emotion/react").SerializedStyles;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { PickerSize } from '@atlaskit/emoji/types';
|
|
5
|
-
import { EmojiProvider } from '@atlaskit/emoji/resource';
|
|
6
|
-
import { ReactionSource } from '../../types';
|
|
7
|
-
import { SelectorProps } from '../Selector';
|
|
8
|
-
import { TriggerProps } from '../Trigger';
|
|
4
|
+
import { type PickerSize } from '@atlaskit/emoji/types';
|
|
5
|
+
import { type EmojiProvider } from '@atlaskit/emoji/resource';
|
|
6
|
+
import { type ReactionSource } from '../../types';
|
|
7
|
+
import { type SelectorProps } from '../Selector';
|
|
8
|
+
import { type TriggerProps } from '../Trigger';
|
|
9
9
|
/**
|
|
10
10
|
* Test id for wrapper ReactionPicker div
|
|
11
11
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copied from ADS popup component with some tweeks for our use
|
|
3
3
|
*/
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { PopperChildrenProps } from '@atlaskit/popper';
|
|
5
|
+
import { type PopperChildrenProps } from '@atlaskit/popper';
|
|
6
6
|
export type RepositionOnUpdateProps = {
|
|
7
7
|
update: PopperChildrenProps['update'];
|
|
8
8
|
settings: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { type PropsWithChildren } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { ReactionSummary } from '../../types';
|
|
4
|
+
import { type ReactionSummary } from '../../types';
|
|
5
5
|
/**
|
|
6
6
|
* Test id for wrapper ReactionTooltip div
|
|
7
7
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { EmojiId, OnEmojiEvent } from '@atlaskit/emoji/types';
|
|
5
|
-
import { EmojiProvider } from '@atlaskit/emoji/resource';
|
|
4
|
+
import { type EmojiId, type OnEmojiEvent } from '@atlaskit/emoji/types';
|
|
5
|
+
import { type EmojiProvider } from '@atlaskit/emoji/resource';
|
|
6
6
|
/**
|
|
7
7
|
* Test id for wrapper Selector div
|
|
8
8
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import React, { AriaAttributes } from 'react';
|
|
3
|
-
import { AnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import React, { type AriaAttributes } from 'react';
|
|
3
|
+
import { type AnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
4
|
/**
|
|
5
5
|
* Test id for the tooltip
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { ErrorInfo } from 'react';
|
|
2
|
-
import { UFOExperience } from '@atlaskit/ufo';
|
|
3
|
-
import { WithSamplingUFOExperience } from '@atlaskit/emoji';
|
|
1
|
+
import React, { type ErrorInfo } from 'react';
|
|
2
|
+
import { type UFOExperience } from '@atlaskit/ufo';
|
|
3
|
+
import { type WithSamplingUFOExperience } from '@atlaskit/emoji';
|
|
4
4
|
export interface UfoErrorBoundaryProps {
|
|
5
5
|
/**
|
|
6
6
|
* UFO Experiences to notify failure when the children components fail on rendering
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ReactionPickerProps } from '../../components';
|
|
3
|
-
import { StorePropInput } from '../../types';
|
|
2
|
+
import { type ReactionPickerProps } from '../../components';
|
|
3
|
+
import { type StorePropInput } from '../../types';
|
|
4
4
|
export interface ConnectedReactionPickerProps extends Omit<ReactionPickerProps, 'onSelection'> {
|
|
5
5
|
/**
|
|
6
6
|
* Wrapper id for reactions list
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ReactionsProps, ReactionPickerProps } from '../../components';
|
|
3
|
-
import { ReactionStatus, Actions, State, StorePropInput } from '../../types';
|
|
2
|
+
import { type ReactionsProps, type ReactionPickerProps } from '../../components';
|
|
3
|
+
import { ReactionStatus, type Actions, type State, type StorePropInput } from '../../types';
|
|
4
4
|
export interface ConnectedReactionsViewProps extends Pick<ReactionsProps, 'quickReactionEmojis' | 'onDialogOpenCallback' | 'onDialogCloseCallback' | 'onDialogSelectReactionCallback' | 'allowUserDialog' | 'allowAllEmojis' | 'emojiProvider' | 'emojiPickerSize' | 'miniMode'>, Pick<ReactionPickerProps, 'pickerQuickReactionEmojiIds'> {
|
|
5
5
|
/**
|
|
6
6
|
* Wrapper id for reactions list
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
1
|
+
import { type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
import { type Client, type OnChangeCallback, type State, type Store } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* Set of all available UFO experiences relating to reaction element
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Updater, ReactionsReadyState, ReactionSummary } from '../types';
|
|
1
|
+
import { type Updater, type ReactionsReadyState, type ReactionSummary } from '../types';
|
|
2
2
|
type ReactionSummarySortFunction = (a: ReactionSummary, b: ReactionSummary) => number;
|
|
3
3
|
export declare const readyState: (reactions: ReactionSummary[]) => ReactionsReadyState;
|
|
4
4
|
export declare const byEmojiId: (emojiId: string) => (reaction: ReactionSummary) => boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
-
import { User } from './User';
|
|
2
|
+
import { type UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import { type User } from './User';
|
|
4
4
|
/**
|
|
5
5
|
* Collection of reactions as object (key is unique id from containerAri and ari combined)
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
-
import { Actions } from './Actions';
|
|
3
|
-
import { ReactionsState } from './reaction';
|
|
1
|
+
import { type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import { type Actions } from './Actions';
|
|
3
|
+
import { type ReactionsState } from './reaction';
|
|
4
4
|
/**
|
|
5
5
|
* Callback event when changes apply to the main store
|
|
6
6
|
* @param state latest store state
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/reactions",
|
|
3
|
-
"version": "22.7.
|
|
3
|
+
"version": "22.7.1",
|
|
4
4
|
"description": "Reactions component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,18 +36,18 @@
|
|
|
36
36
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
37
37
|
"@atlaskit/analytics-namespaced-context": "^6.9.0",
|
|
38
38
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
39
|
-
"@atlaskit/avatar": "^21.
|
|
40
|
-
"@atlaskit/button": "^17.
|
|
39
|
+
"@atlaskit/avatar": "^21.9.0",
|
|
40
|
+
"@atlaskit/button": "^17.16.0",
|
|
41
41
|
"@atlaskit/emoji": "^67.6.0",
|
|
42
|
-
"@atlaskit/icon": "^22.
|
|
42
|
+
"@atlaskit/icon": "^22.3.0",
|
|
43
43
|
"@atlaskit/modal-dialog": "^12.13.0",
|
|
44
|
-
"@atlaskit/motion": "^1.
|
|
45
|
-
"@atlaskit/popper": "^
|
|
44
|
+
"@atlaskit/motion": "^1.6.0",
|
|
45
|
+
"@atlaskit/popper": "^6.0.0",
|
|
46
46
|
"@atlaskit/spinner": "^16.1.0",
|
|
47
47
|
"@atlaskit/tabs": "^16.1.0",
|
|
48
|
-
"@atlaskit/theme": "^12.
|
|
49
|
-
"@atlaskit/tokens": "^1.
|
|
50
|
-
"@atlaskit/tooltip": "^18.
|
|
48
|
+
"@atlaskit/theme": "^12.8.0",
|
|
49
|
+
"@atlaskit/tokens": "^1.49.0",
|
|
50
|
+
"@atlaskit/tooltip": "^18.4.0",
|
|
51
51
|
"@atlaskit/ufo": "^0.2.0",
|
|
52
52
|
"@atlaskit/util-service-support": "^6.2.0",
|
|
53
53
|
"@babel/runtime": "^7.0.0",
|