@atlaskit/reactions 33.8.21 → 33.8.22
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 +2 -2
- package/dist/es2019/analytics/index.js +2 -1
- package/dist/es2019/store/MemoryReactionsStore.js +0 -1
- package/dist/esm/analytics/index.js +2 -1
- package/dist/esm/store/MemoryReactionsStore.js +0 -1
- package/dist/types/analytics/index.d.ts +2 -2
- package/dist/types/components/ReactionParticleEffect.d.ts +1 -1
- package/dist/types/components/ReactionSummaryButton.d.ts +6 -1
- package/dist/types/components/Reactions.d.ts +3 -2
- package/dist/types/containers/ConnectedReactionsView/ConnectedReactionsView.d.ts +2 -2
- package/dist/types/index.d.ts +14 -12
- package/dist/types/store/MemoryReactionsStore.d.ts +6 -4
- package/dist/types/ufo/index.d.ts +2 -1
- package/dist/types-ts4.5/analytics/index.d.ts +2 -2
- package/dist/types-ts4.5/components/ReactionParticleEffect.d.ts +1 -1
- package/dist/types-ts4.5/components/ReactionSummaryButton.d.ts +6 -1
- package/dist/types-ts4.5/components/Reactions.d.ts +3 -2
- package/dist/types-ts4.5/containers/ConnectedReactionsView/ConnectedReactionsView.d.ts +2 -2
- package/dist/types-ts4.5/index.d.ts +14 -12
- package/dist/types-ts4.5/store/MemoryReactionsStore.d.ts +6 -4
- package/dist/types-ts4.5/ufo/index.d.ts +2 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -9,9 +9,9 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
10
10
|
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
|
-
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; }
|
|
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; } // eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
13
13
|
var packageName = "@atlaskit/reactions";
|
|
14
|
-
var packageVersion = "
|
|
14
|
+
var packageVersion = "0.0.0-development";
|
|
15
15
|
/**
|
|
16
16
|
* TODO: move to utility package?
|
|
17
17
|
* A random sampling function
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
1
2
|
import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
2
3
|
import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
|
|
3
4
|
const packageName = "@atlaskit/reactions";
|
|
4
|
-
const packageVersion = "
|
|
5
|
+
const packageVersion = "0.0.0-development";
|
|
5
6
|
/**
|
|
6
7
|
* TODO: move to utility package?
|
|
7
8
|
* A random sampling function
|
|
@@ -6,7 +6,6 @@ import { addOne, byEmojiId, flattenAris, getReactionsSortFunction, isRealErrorFr
|
|
|
6
6
|
import { SAMPLING_RATE_REACTIONS_RENDERED_EXP } from '../shared/constants';
|
|
7
7
|
import { ReactionsAdd, ReactionDetailsFetch, ReactionsRemove, sampledReactionsRendered } from '../ufo';
|
|
8
8
|
import { ReactionUpdateType } from '../types/reaction';
|
|
9
|
-
|
|
10
9
|
/**
|
|
11
10
|
* Set of all available UFO experiences relating to reaction element
|
|
12
11
|
*/
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
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; }
|
|
3
3
|
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) { _defineProperty(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; }
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
4
5
|
import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
5
6
|
import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
|
|
6
7
|
var packageName = "@atlaskit/reactions";
|
|
7
|
-
var packageVersion = "
|
|
8
|
+
var packageVersion = "0.0.0-development";
|
|
8
9
|
/**
|
|
9
10
|
* TODO: move to utility package?
|
|
10
11
|
* A random sampling function
|
|
@@ -10,7 +10,6 @@ import { addOne, byEmojiId, flattenAris, getReactionsSortFunction, isRealErrorFr
|
|
|
10
10
|
import { SAMPLING_RATE_REACTIONS_RENDERED_EXP } from '../shared/constants';
|
|
11
11
|
import { ReactionsAdd, ReactionDetailsFetch, ReactionsRemove, sampledReactionsRendered } from '../ufo';
|
|
12
12
|
import { ReactionUpdateType } from '../types/reaction';
|
|
13
|
-
|
|
14
13
|
/**
|
|
15
14
|
* Set of all available UFO experiences relating to reaction element
|
|
16
15
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AnalyticsEventPayload, type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
1
|
+
import { UIAnalyticsEvent, type AnalyticsEventPayload, type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
import { type EventType } from '@atlaskit/analytics-gas-types';
|
|
3
3
|
import { type ReactionSummary, type ReactionSource } from '../types';
|
|
4
4
|
export type PreviousState = 'new' | 'existingNotReacted' | 'existingReacted';
|
|
@@ -11,7 +11,7 @@ export type PreviousState = 'new' | 'existingNotReacted' | 'existingReacted';
|
|
|
11
11
|
* @returns bool, if it passes or not
|
|
12
12
|
*/
|
|
13
13
|
export declare const isSampled: (rate: number) => boolean;
|
|
14
|
-
export declare const createAndFireEventInElementsChannel: (payload: AnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) =>
|
|
14
|
+
export declare const createAndFireEventInElementsChannel: (payload: AnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => UIAnalyticsEvent;
|
|
15
15
|
export declare const createAndFireSafe: <U extends any[], T extends (...args: U) => AnalyticsEventPayload>(createAnalyticsEvent: CreateUIAnalyticsEvent | void, creator: T, ...args: U) => void;
|
|
16
16
|
export declare const createRestSucceededEvent: (actionSubject: string) => {
|
|
17
17
|
action: string;
|
|
@@ -14,5 +14,5 @@ interface ReactionParticleEffectProps {
|
|
|
14
14
|
*/
|
|
15
15
|
emojiProvider: Promise<EmojiProvider>;
|
|
16
16
|
}
|
|
17
|
-
export declare const ReactionParticleEffect: ({ emojiProvider, emojiId }: ReactionParticleEffectProps) => JSX.Element;
|
|
17
|
+
export declare const ReactionParticleEffect: ({ emojiProvider, emojiId, }: ReactionParticleEffectProps) => JSX.Element;
|
|
18
18
|
export {};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
|
|
1
6
|
import { type ReactionsProps } from './Reactions';
|
|
2
7
|
interface ReactionSummaryButtonProps extends Pick<ReactionsProps, 'emojiProvider' | 'reactions' | 'useButtonAlignmentStyling'> {
|
|
3
8
|
/**
|
|
@@ -48,5 +53,5 @@ export declare const RENDER_SUMMARY_BUTTON_TESTID = "reaction-summary-button";
|
|
|
48
53
|
* Test id for emojis displayed inside summary button. All emoji's in the summary button will have this test id
|
|
49
54
|
*/
|
|
50
55
|
export declare const RENDER_SUMMARY_EMOJI_TESTID = "summary-emoji-display";
|
|
51
|
-
export declare const ReactionSummaryButton:
|
|
56
|
+
export declare const ReactionSummaryButton: ForwardRefExoticComponent<ReactionSummaryButtonProps & RefAttributes<HTMLDivElement>>;
|
|
52
57
|
export {};
|
|
@@ -9,6 +9,7 @@ import { type Placement } from '@atlaskit/popper';
|
|
|
9
9
|
import { ReactionStatus, type ReactionClick, type ReactionSummary, type QuickReactionEmojiSummary, type ProfileCardWrapper } from '../types';
|
|
10
10
|
import { type ReactionPickerProps } from './ReactionPicker';
|
|
11
11
|
import { type SelectorProps } from './Selector';
|
|
12
|
+
import type { UFOExperience } from '@atlaskit/ufo';
|
|
12
13
|
/**
|
|
13
14
|
* Set of all available UFO experiences relating to Reactions Dialog
|
|
14
15
|
*/
|
|
@@ -16,11 +17,11 @@ export declare const ufoExperiences: {
|
|
|
16
17
|
/**
|
|
17
18
|
* Experience when a reaction dialog is opened
|
|
18
19
|
*/
|
|
19
|
-
openDialog:
|
|
20
|
+
openDialog: UFOExperience;
|
|
20
21
|
/**
|
|
21
22
|
* Experience when a reaction changed/fetched from inside the modal dialog
|
|
22
23
|
*/
|
|
23
|
-
selectedReactionChangeInsideDialog:
|
|
24
|
+
selectedReactionChangeInsideDialog: UFOExperience;
|
|
24
25
|
};
|
|
25
26
|
/**
|
|
26
27
|
* Test id for wrapper Reactions div
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ReactionsProps, type ReactionPickerProps } from '../../components';
|
|
3
3
|
import { ReactionStatus, type Actions, type State, type StorePropInput } from '../../types';
|
|
4
|
-
import { type ReactionUpdateSuccess } from '../../types/reaction';
|
|
4
|
+
import { type ReactionSummary, type ReactionUpdateSuccess } from '../../types/reaction';
|
|
5
5
|
export interface ConnectedReactionsViewProps extends Pick<ReactionsProps, 'quickReactionEmojis' | 'onDialogOpenCallback' | 'onDialogCloseCallback' | 'onDialogSelectReactionCallback' | 'allowUserDialog' | 'allowAllEmojis' | 'emojiProvider' | 'emojiPickerSize' | 'miniMode' | 'summaryViewEnabled' | 'subtleReactionsSummaryAndPicker' | 'onlyRenderPicker' | 'isViewOnly' | 'allowSelectFromSummaryView' | 'reactionPickerPopperZIndex'>, Pick<ReactionPickerProps, 'pickerQuickReactionEmojiIds'> {
|
|
6
6
|
/**
|
|
7
7
|
* Individual id for a reaction
|
|
@@ -35,7 +35,7 @@ export declare const mapStateToPropsHelper: (containerAri: string, ari: string,
|
|
|
35
35
|
flash?: undefined;
|
|
36
36
|
particleEffectByEmoji?: undefined;
|
|
37
37
|
} | {
|
|
38
|
-
reactions:
|
|
38
|
+
reactions: ReactionSummary[];
|
|
39
39
|
status: ReactionStatus.ready;
|
|
40
40
|
flash: {
|
|
41
41
|
[emojiId: string]: boolean;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ComponentName, ExperienceName } from './ufo';
|
|
2
2
|
import { ReactionPicker } from './components/ReactionPicker';
|
|
3
|
+
import type { EmojiId, WithSamplingUFOExperience } from '@atlaskit/emoji';
|
|
4
|
+
import type { UFOExperience, ConcurrentExperience } from '@atlaskit/ufo';
|
|
3
5
|
export { ReactionServiceClient } from './client';
|
|
4
6
|
export { Reaction } from './components/Reaction';
|
|
5
7
|
export { ReactionPicker };
|
|
@@ -10,10 +12,10 @@ export { MemoryReactionsStore, ReactionConsumer } from './store';
|
|
|
10
12
|
export type { Client as ReactionClient, Request as ReactionRequest, Store as ReactionsStore, Reactions as ReactionsType, StorePropInput, State, } from './types';
|
|
11
13
|
export { ReactionUpdateType, ReactionStatus, type ReactionSummary } from './types';
|
|
12
14
|
export declare const constants: {
|
|
13
|
-
DefaultReactions:
|
|
14
|
-
DefaultReactionsByShortName: Map<string,
|
|
15
|
-
ExtendedReactions:
|
|
16
|
-
ExtendedReactionsByShortName: Map<string,
|
|
15
|
+
DefaultReactions: EmojiId[];
|
|
16
|
+
DefaultReactionsByShortName: Map<string, EmojiId>;
|
|
17
|
+
ExtendedReactions: EmojiId[];
|
|
18
|
+
ExtendedReactionsByShortName: Map<string, EmojiId>;
|
|
17
19
|
NUMBER_OF_REACTIONS_TO_DISPLAY: number;
|
|
18
20
|
SAMPLING_RATE_REACTIONS_RENDERED_EXP: number;
|
|
19
21
|
TOOLTIP_USERS_LIMIT: number;
|
|
@@ -21,12 +23,12 @@ export declare const constants: {
|
|
|
21
23
|
export declare const UFO: {
|
|
22
24
|
ComponentName: typeof ComponentName;
|
|
23
25
|
ExperienceName: typeof ExperienceName;
|
|
24
|
-
PickerRender:
|
|
25
|
-
ReactionsAdd:
|
|
26
|
-
ReactionDetailsFetch:
|
|
27
|
-
ReactionDialogOpened:
|
|
28
|
-
ReactionDialogSelectedReactionChanged:
|
|
29
|
-
ReactionsRemove:
|
|
30
|
-
ReactionsRendered:
|
|
31
|
-
sampledReactionsRendered: (instanceId: string) =>
|
|
26
|
+
PickerRender: UFOExperience;
|
|
27
|
+
ReactionsAdd: ConcurrentExperience;
|
|
28
|
+
ReactionDetailsFetch: ConcurrentExperience;
|
|
29
|
+
ReactionDialogOpened: UFOExperience;
|
|
30
|
+
ReactionDialogSelectedReactionChanged: UFOExperience;
|
|
31
|
+
ReactionsRemove: ConcurrentExperience;
|
|
32
|
+
ReactionsRendered: ConcurrentExperience;
|
|
33
|
+
sampledReactionsRendered: (instanceId: string) => WithSamplingUFOExperience;
|
|
32
34
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
import { type Client, type OnChangeCallback, type State, type Store } from '../types';
|
|
3
3
|
import { type ReactionUpdateSuccess } from '../types/reaction';
|
|
4
|
+
import type { WithSamplingUFOExperience } from '@atlaskit/emoji';
|
|
5
|
+
import type { ConcurrentExperience } from '@atlaskit/ufo';
|
|
4
6
|
/**
|
|
5
7
|
* Set of all available UFO experiences relating to reaction element
|
|
6
8
|
*/
|
|
@@ -8,19 +10,19 @@ export declare const ufoExperiences: {
|
|
|
8
10
|
/**
|
|
9
11
|
* Experience when a reaction emoji gets added
|
|
10
12
|
*/
|
|
11
|
-
add:
|
|
13
|
+
add: ConcurrentExperience;
|
|
12
14
|
/**
|
|
13
15
|
* Experience when a reaction emoji gets removed/decrement
|
|
14
16
|
*/
|
|
15
|
-
remove:
|
|
17
|
+
remove: ConcurrentExperience;
|
|
16
18
|
/**
|
|
17
19
|
* Experience when the list of reactions gets rendered with sampling
|
|
18
20
|
*/
|
|
19
|
-
render: (instanceId: string) =>
|
|
21
|
+
render: (instanceId: string) => WithSamplingUFOExperience;
|
|
20
22
|
/**
|
|
21
23
|
* Experience when a reaction details gets fetched
|
|
22
24
|
*/
|
|
23
|
-
fetchDetails:
|
|
25
|
+
fetchDetails: ConcurrentExperience;
|
|
24
26
|
};
|
|
25
27
|
/**
|
|
26
28
|
* Optional metadata information in the store used in sending the API client requests
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ConcurrentExperience, UFOExperience } from '@atlaskit/ufo';
|
|
2
|
+
import { type WithSamplingUFOExperience } from '@atlaskit/emoji';
|
|
2
3
|
/**
|
|
3
4
|
* Types of experiences
|
|
4
5
|
*/
|
|
@@ -50,4 +51,4 @@ export declare const ReactionDetailsFetch: ConcurrentExperience;
|
|
|
50
51
|
* Experience when a reaction emoji gets removed/decrement
|
|
51
52
|
*/
|
|
52
53
|
export declare const ReactionsRemove: ConcurrentExperience;
|
|
53
|
-
export declare const sampledReactionsRendered: (instanceId: string) =>
|
|
54
|
+
export declare const sampledReactionsRendered: (instanceId: string) => WithSamplingUFOExperience;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AnalyticsEventPayload, type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
1
|
+
import { UIAnalyticsEvent, type AnalyticsEventPayload, type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
import { type EventType } from '@atlaskit/analytics-gas-types';
|
|
3
3
|
import { type ReactionSummary, type ReactionSource } from '../types';
|
|
4
4
|
export type PreviousState = 'new' | 'existingNotReacted' | 'existingReacted';
|
|
@@ -11,7 +11,7 @@ export type PreviousState = 'new' | 'existingNotReacted' | 'existingReacted';
|
|
|
11
11
|
* @returns bool, if it passes or not
|
|
12
12
|
*/
|
|
13
13
|
export declare const isSampled: (rate: number) => boolean;
|
|
14
|
-
export declare const createAndFireEventInElementsChannel: (payload: AnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) =>
|
|
14
|
+
export declare const createAndFireEventInElementsChannel: (payload: AnalyticsEventPayload) => (createAnalyticsEvent: CreateUIAnalyticsEvent) => UIAnalyticsEvent;
|
|
15
15
|
export declare const createAndFireSafe: <U extends any[], T extends (...args: U) => AnalyticsEventPayload>(createAnalyticsEvent: CreateUIAnalyticsEvent | void, creator: T, ...args: U) => void;
|
|
16
16
|
export declare const createRestSucceededEvent: (actionSubject: string) => {
|
|
17
17
|
action: string;
|
|
@@ -14,5 +14,5 @@ interface ReactionParticleEffectProps {
|
|
|
14
14
|
*/
|
|
15
15
|
emojiProvider: Promise<EmojiProvider>;
|
|
16
16
|
}
|
|
17
|
-
export declare const ReactionParticleEffect: ({ emojiProvider, emojiId }: ReactionParticleEffectProps) => JSX.Element;
|
|
17
|
+
export declare const ReactionParticleEffect: ({ emojiProvider, emojiId, }: ReactionParticleEffectProps) => JSX.Element;
|
|
18
18
|
export {};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
|
|
1
6
|
import { type ReactionsProps } from './Reactions';
|
|
2
7
|
interface ReactionSummaryButtonProps extends Pick<ReactionsProps, 'emojiProvider' | 'reactions' | 'useButtonAlignmentStyling'> {
|
|
3
8
|
/**
|
|
@@ -48,5 +53,5 @@ export declare const RENDER_SUMMARY_BUTTON_TESTID = "reaction-summary-button";
|
|
|
48
53
|
* Test id for emojis displayed inside summary button. All emoji's in the summary button will have this test id
|
|
49
54
|
*/
|
|
50
55
|
export declare const RENDER_SUMMARY_EMOJI_TESTID = "summary-emoji-display";
|
|
51
|
-
export declare const ReactionSummaryButton:
|
|
56
|
+
export declare const ReactionSummaryButton: ForwardRefExoticComponent<ReactionSummaryButtonProps & RefAttributes<HTMLDivElement>>;
|
|
52
57
|
export {};
|
|
@@ -9,6 +9,7 @@ import { type Placement } from '@atlaskit/popper';
|
|
|
9
9
|
import { ReactionStatus, type ReactionClick, type ReactionSummary, type QuickReactionEmojiSummary, type ProfileCardWrapper } from '../types';
|
|
10
10
|
import { type ReactionPickerProps } from './ReactionPicker';
|
|
11
11
|
import { type SelectorProps } from './Selector';
|
|
12
|
+
import type { UFOExperience } from '@atlaskit/ufo';
|
|
12
13
|
/**
|
|
13
14
|
* Set of all available UFO experiences relating to Reactions Dialog
|
|
14
15
|
*/
|
|
@@ -16,11 +17,11 @@ export declare const ufoExperiences: {
|
|
|
16
17
|
/**
|
|
17
18
|
* Experience when a reaction dialog is opened
|
|
18
19
|
*/
|
|
19
|
-
openDialog:
|
|
20
|
+
openDialog: UFOExperience;
|
|
20
21
|
/**
|
|
21
22
|
* Experience when a reaction changed/fetched from inside the modal dialog
|
|
22
23
|
*/
|
|
23
|
-
selectedReactionChangeInsideDialog:
|
|
24
|
+
selectedReactionChangeInsideDialog: UFOExperience;
|
|
24
25
|
};
|
|
25
26
|
/**
|
|
26
27
|
* Test id for wrapper Reactions div
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ReactionsProps, type ReactionPickerProps } from '../../components';
|
|
3
3
|
import { ReactionStatus, type Actions, type State, type StorePropInput } from '../../types';
|
|
4
|
-
import { type ReactionUpdateSuccess } from '../../types/reaction';
|
|
4
|
+
import { type ReactionSummary, type ReactionUpdateSuccess } from '../../types/reaction';
|
|
5
5
|
export interface ConnectedReactionsViewProps extends Pick<ReactionsProps, 'quickReactionEmojis' | 'onDialogOpenCallback' | 'onDialogCloseCallback' | 'onDialogSelectReactionCallback' | 'allowUserDialog' | 'allowAllEmojis' | 'emojiProvider' | 'emojiPickerSize' | 'miniMode' | 'summaryViewEnabled' | 'subtleReactionsSummaryAndPicker' | 'onlyRenderPicker' | 'isViewOnly' | 'allowSelectFromSummaryView' | 'reactionPickerPopperZIndex'>, Pick<ReactionPickerProps, 'pickerQuickReactionEmojiIds'> {
|
|
6
6
|
/**
|
|
7
7
|
* Individual id for a reaction
|
|
@@ -35,7 +35,7 @@ export declare const mapStateToPropsHelper: (containerAri: string, ari: string,
|
|
|
35
35
|
flash?: undefined;
|
|
36
36
|
particleEffectByEmoji?: undefined;
|
|
37
37
|
} | {
|
|
38
|
-
reactions:
|
|
38
|
+
reactions: ReactionSummary[];
|
|
39
39
|
status: ReactionStatus.ready;
|
|
40
40
|
flash: {
|
|
41
41
|
[emojiId: string]: boolean;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ComponentName, ExperienceName } from './ufo';
|
|
2
2
|
import { ReactionPicker } from './components/ReactionPicker';
|
|
3
|
+
import type { EmojiId, WithSamplingUFOExperience } from '@atlaskit/emoji';
|
|
4
|
+
import type { UFOExperience, ConcurrentExperience } from '@atlaskit/ufo';
|
|
3
5
|
export { ReactionServiceClient } from './client';
|
|
4
6
|
export { Reaction } from './components/Reaction';
|
|
5
7
|
export { ReactionPicker };
|
|
@@ -10,10 +12,10 @@ export { MemoryReactionsStore, ReactionConsumer } from './store';
|
|
|
10
12
|
export type { Client as ReactionClient, Request as ReactionRequest, Store as ReactionsStore, Reactions as ReactionsType, StorePropInput, State, } from './types';
|
|
11
13
|
export { ReactionUpdateType, ReactionStatus, type ReactionSummary } from './types';
|
|
12
14
|
export declare const constants: {
|
|
13
|
-
DefaultReactions:
|
|
14
|
-
DefaultReactionsByShortName: Map<string,
|
|
15
|
-
ExtendedReactions:
|
|
16
|
-
ExtendedReactionsByShortName: Map<string,
|
|
15
|
+
DefaultReactions: EmojiId[];
|
|
16
|
+
DefaultReactionsByShortName: Map<string, EmojiId>;
|
|
17
|
+
ExtendedReactions: EmojiId[];
|
|
18
|
+
ExtendedReactionsByShortName: Map<string, EmojiId>;
|
|
17
19
|
NUMBER_OF_REACTIONS_TO_DISPLAY: number;
|
|
18
20
|
SAMPLING_RATE_REACTIONS_RENDERED_EXP: number;
|
|
19
21
|
TOOLTIP_USERS_LIMIT: number;
|
|
@@ -21,12 +23,12 @@ export declare const constants: {
|
|
|
21
23
|
export declare const UFO: {
|
|
22
24
|
ComponentName: typeof ComponentName;
|
|
23
25
|
ExperienceName: typeof ExperienceName;
|
|
24
|
-
PickerRender:
|
|
25
|
-
ReactionsAdd:
|
|
26
|
-
ReactionDetailsFetch:
|
|
27
|
-
ReactionDialogOpened:
|
|
28
|
-
ReactionDialogSelectedReactionChanged:
|
|
29
|
-
ReactionsRemove:
|
|
30
|
-
ReactionsRendered:
|
|
31
|
-
sampledReactionsRendered: (instanceId: string) =>
|
|
26
|
+
PickerRender: UFOExperience;
|
|
27
|
+
ReactionsAdd: ConcurrentExperience;
|
|
28
|
+
ReactionDetailsFetch: ConcurrentExperience;
|
|
29
|
+
ReactionDialogOpened: UFOExperience;
|
|
30
|
+
ReactionDialogSelectedReactionChanged: UFOExperience;
|
|
31
|
+
ReactionsRemove: ConcurrentExperience;
|
|
32
|
+
ReactionsRendered: ConcurrentExperience;
|
|
33
|
+
sampledReactionsRendered: (instanceId: string) => WithSamplingUFOExperience;
|
|
32
34
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
import { type Client, type OnChangeCallback, type State, type Store } from '../types';
|
|
3
3
|
import { type ReactionUpdateSuccess } from '../types/reaction';
|
|
4
|
+
import type { WithSamplingUFOExperience } from '@atlaskit/emoji';
|
|
5
|
+
import type { ConcurrentExperience } from '@atlaskit/ufo';
|
|
4
6
|
/**
|
|
5
7
|
* Set of all available UFO experiences relating to reaction element
|
|
6
8
|
*/
|
|
@@ -8,19 +10,19 @@ export declare const ufoExperiences: {
|
|
|
8
10
|
/**
|
|
9
11
|
* Experience when a reaction emoji gets added
|
|
10
12
|
*/
|
|
11
|
-
add:
|
|
13
|
+
add: ConcurrentExperience;
|
|
12
14
|
/**
|
|
13
15
|
* Experience when a reaction emoji gets removed/decrement
|
|
14
16
|
*/
|
|
15
|
-
remove:
|
|
17
|
+
remove: ConcurrentExperience;
|
|
16
18
|
/**
|
|
17
19
|
* Experience when the list of reactions gets rendered with sampling
|
|
18
20
|
*/
|
|
19
|
-
render: (instanceId: string) =>
|
|
21
|
+
render: (instanceId: string) => WithSamplingUFOExperience;
|
|
20
22
|
/**
|
|
21
23
|
* Experience when a reaction details gets fetched
|
|
22
24
|
*/
|
|
23
|
-
fetchDetails:
|
|
25
|
+
fetchDetails: ConcurrentExperience;
|
|
24
26
|
};
|
|
25
27
|
/**
|
|
26
28
|
* Optional metadata information in the store used in sending the API client requests
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ConcurrentExperience, UFOExperience } from '@atlaskit/ufo';
|
|
2
|
+
import { type WithSamplingUFOExperience } from '@atlaskit/emoji';
|
|
2
3
|
/**
|
|
3
4
|
* Types of experiences
|
|
4
5
|
*/
|
|
@@ -50,4 +51,4 @@ export declare const ReactionDetailsFetch: ConcurrentExperience;
|
|
|
50
51
|
* Experience when a reaction emoji gets removed/decrement
|
|
51
52
|
*/
|
|
52
53
|
export declare const ReactionsRemove: ConcurrentExperience;
|
|
53
|
-
export declare const sampledReactionsRendered: (instanceId: string) =>
|
|
54
|
+
export declare const sampledReactionsRendered: (instanceId: string) => WithSamplingUFOExperience;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/reactions",
|
|
3
|
-
"version": "33.8.
|
|
3
|
+
"version": "33.8.22",
|
|
4
4
|
"description": "Reactions component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
36
36
|
"@atlaskit/analytics-namespaced-context": "^7.2.0",
|
|
37
37
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
38
|
-
"@atlaskit/avatar": "^25.
|
|
38
|
+
"@atlaskit/avatar": "^25.9.0",
|
|
39
39
|
"@atlaskit/button": "^23.10.0",
|
|
40
40
|
"@atlaskit/css": "^0.19.0",
|
|
41
41
|
"@atlaskit/emoji": "^69.10.0",
|
|
42
42
|
"@atlaskit/heading": "^5.3.0",
|
|
43
|
-
"@atlaskit/icon": "^
|
|
43
|
+
"@atlaskit/icon": "^33.0.0",
|
|
44
44
|
"@atlaskit/link": "^3.3.0",
|
|
45
45
|
"@atlaskit/modal-dialog": "^14.11.0",
|
|
46
46
|
"@atlaskit/motion": "^5.4.0",
|