@atlaskit/reactions 33.2.19 → 33.2.21
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 +14 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/components/Counter.js +1 -1
- package/dist/cjs/components/EmojiButton.js +1 -1
- package/dist/cjs/components/FlashAnimation.js +1 -1
- package/dist/cjs/components/Reaction.js +1 -1
- package/dist/cjs/components/ReactionButton.js +1 -1
- package/dist/cjs/components/ReactionParticleEffect.js +1 -1
- package/dist/cjs/components/ReactionPicker.js +31 -20
- package/dist/cjs/components/ReactionSummaryButton.js +1 -1
- package/dist/cjs/components/ReactionSummaryView.js +1 -1
- package/dist/cjs/components/ReactionTooltip.js +1 -1
- package/dist/cjs/components/ReactionView.js +1 -1
- package/dist/cjs/components/Reactions.js +2 -8
- package/dist/cjs/components/ReactionsDialog.js +1 -1
- package/dist/cjs/components/ReactionsDialogHeader.compiled.css +1 -1
- package/dist/cjs/components/ReactionsDialogHeader.js +2 -5
- package/dist/cjs/components/ReactionsDialogTrigger.js +1 -1
- package/dist/cjs/components/Selector.js +1 -1
- package/dist/cjs/components/StaticReaction.js +1 -1
- package/dist/cjs/components/Trigger.js +1 -1
- package/dist/cjs/containers/ConnectedReactionPicker/ConnectedReactionPicker.js +1 -7
- package/dist/cjs/index.js +6 -8
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/components/Counter.js +1 -1
- package/dist/es2019/components/EmojiButton.js +1 -1
- package/dist/es2019/components/FlashAnimation.js +1 -1
- package/dist/es2019/components/Reaction.js +1 -1
- package/dist/es2019/components/ReactionButton.js +1 -1
- package/dist/es2019/components/ReactionParticleEffect.js +1 -1
- package/dist/es2019/components/ReactionPicker.js +29 -18
- package/dist/es2019/components/ReactionSummaryButton.js +1 -1
- package/dist/es2019/components/ReactionSummaryView.js +1 -1
- package/dist/es2019/components/ReactionTooltip.js +1 -1
- package/dist/es2019/components/ReactionView.js +1 -1
- package/dist/es2019/components/Reactions.js +2 -8
- package/dist/es2019/components/ReactionsDialog.js +1 -1
- package/dist/es2019/components/ReactionsDialogHeader.js +1 -1
- package/dist/es2019/components/ReactionsDialogTrigger.js +1 -1
- package/dist/es2019/components/Selector.js +1 -1
- package/dist/es2019/components/StaticReaction.js +1 -1
- package/dist/es2019/components/Trigger.js +1 -1
- package/dist/es2019/containers/ConnectedReactionPicker/ConnectedReactionPicker.js +1 -7
- package/dist/es2019/index.js +1 -7
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/components/Counter.js +1 -1
- package/dist/esm/components/EmojiButton.js +1 -1
- package/dist/esm/components/FlashAnimation.js +1 -1
- package/dist/esm/components/Reaction.js +1 -1
- package/dist/esm/components/ReactionButton.js +1 -1
- package/dist/esm/components/ReactionParticleEffect.js +1 -1
- package/dist/esm/components/ReactionPicker.js +32 -21
- package/dist/esm/components/ReactionSummaryButton.js +1 -1
- package/dist/esm/components/ReactionSummaryView.js +1 -1
- package/dist/esm/components/ReactionTooltip.js +1 -1
- package/dist/esm/components/ReactionView.js +1 -1
- package/dist/esm/components/Reactions.js +2 -8
- package/dist/esm/components/ReactionsDialog.js +1 -1
- package/dist/esm/components/ReactionsDialogHeader.compiled.css +1 -1
- package/dist/esm/components/ReactionsDialogHeader.js +2 -5
- package/dist/esm/components/ReactionsDialogTrigger.js +1 -1
- package/dist/esm/components/Selector.js +1 -1
- package/dist/esm/components/StaticReaction.js +1 -1
- package/dist/esm/components/Trigger.js +1 -1
- package/dist/esm/containers/ConnectedReactionPicker/ConnectedReactionPicker.js +1 -7
- package/dist/esm/index.js +1 -7
- package/dist/types/components/ReactionPicker.d.ts +7 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types-ts4.5/components/ReactionPicker.d.ts +7 -0
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/package.json +4 -10
- package/dist/cjs/components/ReactionPickerNew.compiled.css +0 -11
- package/dist/cjs/components/ReactionPickerNew.js +0 -421
- package/dist/es2019/components/ReactionPickerNew.compiled.css +0 -11
- package/dist/es2019/components/ReactionPickerNew.js +0 -374
- package/dist/esm/components/ReactionPickerNew.compiled.css +0 -11
- package/dist/esm/components/ReactionPickerNew.js +0 -412
- package/dist/types/components/ReactionPickerNew.d.ts +0 -114
- package/dist/types-ts4.5/components/ReactionPickerNew.d.ts +0 -114
|
@@ -2,13 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { UfoErrorBoundary } from '../../components';
|
|
4
4
|
import { PickerRender } from '../../ufo';
|
|
5
|
-
import { ReactionPicker
|
|
6
|
-
import { ReactionPicker as ReactionPickerNew } from '../../components/ReactionPickerNew';
|
|
7
|
-
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
|
-
const ReactionPicker = componentWithCondition(() => {
|
|
10
|
-
return fg('platform_editor_reactions_picker_fix') || fg('platform_editor_reactions_picker_fix_jira');
|
|
11
|
-
}, ReactionPickerNew, ReactionPickerOld);
|
|
5
|
+
import { ReactionPicker } from '../../components/ReactionPicker';
|
|
12
6
|
/**
|
|
13
7
|
* Reaction Picker component
|
|
14
8
|
*/
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { DefaultReactions, DefaultReactionsByShortName, ExtendedReactions, ExtendedReactionsByShortName, NUMBER_OF_REACTIONS_TO_DISPLAY, SAMPLING_RATE_REACTIONS_RENDERED_EXP, TOOLTIP_USERS_LIMIT } from './shared/constants';
|
|
2
2
|
import { ComponentName, ExperienceName, PickerRender, ReactionsAdd, ReactionDetailsFetch, ReactionDialogOpened, ReactionDialogSelectedReactionChanged, ReactionsRemove, ReactionsRendered, sampledReactionsRendered } from './ufo';
|
|
3
|
-
import { ReactionPicker
|
|
4
|
-
import { ReactionPicker as ReactionPickerNew } from './components/ReactionPickerNew';
|
|
5
|
-
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
-
const ReactionPicker = componentWithCondition(() => {
|
|
8
|
-
return fg('platform_editor_reactions_picker_fix') || fg('platform_editor_reactions_picker_fix_jira');
|
|
9
|
-
}, ReactionPickerNew, ReactionPickerLegacy);
|
|
3
|
+
import { ReactionPicker } from './components/ReactionPicker';
|
|
10
4
|
export { ReactionServiceClient } from './client';
|
|
11
5
|
export { Reaction } from './components/Reaction';
|
|
12
6
|
export { ReactionPicker };
|
|
@@ -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 = "33.2.
|
|
7
|
+
var packageVersion = "33.2.20";
|
|
8
8
|
/**
|
|
9
9
|
* TODO: move to utility package?
|
|
10
10
|
* A random sampling function
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Reaction.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* Reaction.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReactionButton.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionButton.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./ReactionButton.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReactionParticleEffect.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionParticleEffect.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
3
|
import "./ReactionParticleEffect.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReactionPicker.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionPicker.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./ReactionPicker.compiled.css";
|
|
@@ -12,7 +12,7 @@ import { Manager, Popper, Reference } from '@atlaskit/popper';
|
|
|
12
12
|
import { layers } from '@atlaskit/theme/constants';
|
|
13
13
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
|
-
import {
|
|
15
|
+
import { useCloseManagerV2 } from '../hooks/useCloseManager';
|
|
16
16
|
import { useDelayedState } from '../hooks/useDelayedState';
|
|
17
17
|
import { useFocusTrap } from '../hooks/useFocusTrap';
|
|
18
18
|
import { messages } from '../shared/i18n';
|
|
@@ -21,6 +21,7 @@ import { Selector } from './Selector';
|
|
|
21
21
|
import { Trigger } from './Trigger';
|
|
22
22
|
import { RepositionOnUpdate } from './RepositionOnUpdate';
|
|
23
23
|
import { N0, N50A, N60A } from '@atlaskit/theme/colors';
|
|
24
|
+
import Portal from '@atlaskit/portal';
|
|
24
25
|
var pickerStyle = null;
|
|
25
26
|
var popupWrapperStyle = null;
|
|
26
27
|
var popupStyle = null;
|
|
@@ -147,19 +148,6 @@ export var ReactionPicker = /*#__PURE__*/React.memo(function (props) {
|
|
|
147
148
|
settings = _useState10[0],
|
|
148
149
|
setSettings = _useState10[1];
|
|
149
150
|
|
|
150
|
-
/**
|
|
151
|
-
* Custom hook triggers when user clicks outside the reactions picker
|
|
152
|
-
*/
|
|
153
|
-
useCloseManager(wrapperRef, function (callbackType) {
|
|
154
|
-
close();
|
|
155
|
-
onCancel();
|
|
156
|
-
if (triggerRef && callbackType === 'ESCAPE') {
|
|
157
|
-
requestAnimationFrame(function () {
|
|
158
|
-
return triggerRef.focus();
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
}, true, isPopupTrayOpen);
|
|
162
|
-
|
|
163
151
|
/**
|
|
164
152
|
* Event callback when the picker is closed
|
|
165
153
|
* @param _id Optional id if an emoji button was selected or undefineed if was clicked outside the picker
|
|
@@ -278,6 +266,10 @@ export var ReactionPicker = /*#__PURE__*/React.memo(function (props) {
|
|
|
278
266
|
var _updatePopper$current;
|
|
279
267
|
(_updatePopper$current = updatePopper.current) === null || _updatePopper$current === void 0 || _updatePopper$current.call(updatePopper);
|
|
280
268
|
}, [settings]);
|
|
269
|
+
var onClose = function onClose() {
|
|
270
|
+
close();
|
|
271
|
+
onCancel();
|
|
272
|
+
};
|
|
281
273
|
return /*#__PURE__*/React.createElement("div", {
|
|
282
274
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
283
275
|
className: ax(["_s7n4nkob _1pra1o8l", wrapperClassName]),
|
|
@@ -319,9 +311,14 @@ export var ReactionPicker = /*#__PURE__*/React.memo(function (props) {
|
|
|
319
311
|
isListItem: isListItem
|
|
320
312
|
}))
|
|
321
313
|
);
|
|
322
|
-
}), isPopupTrayOpen && /*#__PURE__*/React.createElement(
|
|
314
|
+
}), isPopupTrayOpen && /*#__PURE__*/React.createElement(Portal, {
|
|
315
|
+
zIndex: layers.flag()
|
|
316
|
+
}, /*#__PURE__*/React.createElement(PopperWrapper, {
|
|
323
317
|
settings: settings,
|
|
324
|
-
popperModifiers: popperModifiers
|
|
318
|
+
popperModifiers: popperModifiers,
|
|
319
|
+
isOpen: isPopupTrayOpen,
|
|
320
|
+
onClose: onClose,
|
|
321
|
+
triggerRef: triggerRef
|
|
325
322
|
}, settings.showFullPicker || hoverableReactionPicker && isHoverableReactionPickerEmojiPickerOpen ? /*#__PURE__*/React.createElement(EmojiPicker, {
|
|
326
323
|
emojiProvider: emojiProvider,
|
|
327
324
|
onSelection: onEmojiSelected,
|
|
@@ -337,10 +334,13 @@ export var ReactionPicker = /*#__PURE__*/React.memo(function (props) {
|
|
|
337
334
|
onMoreClick: onSelectMoreClick,
|
|
338
335
|
pickerQuickReactionEmojiIds: pickerQuickReactionEmojiIds,
|
|
339
336
|
hoverableReactionPickerSelector: hoverableReactionPicker
|
|
340
|
-
})))));
|
|
337
|
+
}))))));
|
|
341
338
|
});
|
|
342
339
|
export var PopperWrapper = function PopperWrapper(props) {
|
|
343
|
-
var
|
|
340
|
+
var triggerRef = props.triggerRef,
|
|
341
|
+
settings = props.settings,
|
|
342
|
+
isOpen = props.isOpen,
|
|
343
|
+
onClose = props.onClose,
|
|
344
344
|
children = props.children,
|
|
345
345
|
popperModifiers = props.popperModifiers;
|
|
346
346
|
var _useState11 = useState(null),
|
|
@@ -356,10 +356,21 @@ export var PopperWrapper = function PopperWrapper(props) {
|
|
|
356
356
|
initialFocusRef: null,
|
|
357
357
|
targetRef: popupRef
|
|
358
358
|
});
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Custom hook triggers when user clicks outside the reactions picker
|
|
362
|
+
*/
|
|
363
|
+
useCloseManagerV2(popupRef, triggerRef, function (callbackType) {
|
|
364
|
+
onClose();
|
|
365
|
+
if (popupRef && callbackType === 'ESCAPE') {
|
|
366
|
+
requestAnimationFrame(function () {
|
|
367
|
+
return triggerRef === null || triggerRef === void 0 ? void 0 : triggerRef.focus();
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
}, true, isOpen);
|
|
359
371
|
return /*#__PURE__*/React.createElement(Popper, {
|
|
360
372
|
placement: settings.popperPlacement,
|
|
361
|
-
modifiers: popperModifiers
|
|
362
|
-
strategy: "absolute"
|
|
373
|
+
modifiers: popperModifiers
|
|
363
374
|
}, function (_ref3) {
|
|
364
375
|
var _ref4 = _ref3.ref,
|
|
365
376
|
style = _ref3.style,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReactionSummaryButton.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionSummaryButton.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
3
|
import "./ReactionSummaryButton.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReactionSummaryView.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionSummaryView.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./ReactionSummaryView.compiled.css";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReactionTooltip.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionTooltip.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./ReactionTooltip.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Reactions.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* Reactions.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
import "./Reactions.compiled.css";
|
|
@@ -15,14 +15,8 @@ import { ReactionStatus } from '../types';
|
|
|
15
15
|
import { ReactionDialogOpened, ReactionDialogSelectedReactionChanged } from '../ufo';
|
|
16
16
|
import { Reaction } from './Reaction';
|
|
17
17
|
import { ReactionsDialog } from './ReactionsDialog';
|
|
18
|
-
import { ReactionPicker
|
|
19
|
-
import { ReactionPicker as ReactionPickerNew } from './ReactionPickerNew';
|
|
18
|
+
import { ReactionPicker } from './ReactionPicker';
|
|
20
19
|
import { ReactionSummaryView } from './ReactionSummaryView';
|
|
21
|
-
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
22
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
23
|
-
var ReactionPicker = componentWithCondition(function () {
|
|
24
|
-
return fg('platform_editor_reactions_picker_fix') || fg('platform_editor_reactions_picker_fix_jira');
|
|
25
|
-
}, ReactionPickerNew, ReactionPickerOld);
|
|
26
20
|
var wrapperStyle = null;
|
|
27
21
|
var noFlexWrapStyles = null;
|
|
28
22
|
var noContainerPositionStyles = null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReactionsDialog.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionsDialog.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import "./ReactionsDialog.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
._nhktlyvf.disabled:after{background:linear-gradient(270deg,hsla(0,0%,100%,.95) 40.23%,hsla(0,0%,100%,.55) 58.33%,hsla(0,0%,100%,0) 77.49%)}
|
|
6
6
|
._1rjc1b66{padding-block:var(--ds-space-050,4px)}
|
|
7
7
|
._80wau2gc div[role=tablist]{padding-inline:var(--ds-space-100,8px)}
|
|
8
|
-
.
|
|
8
|
+
._n7zl1l7n{border-bottom:1px solid var(--ds-border,#ebecf0)}._10d67vkz>span{min-height:1pc}
|
|
9
9
|
._141m1j28 div[role=tablist]:before{background-color:transparent}
|
|
10
10
|
._18m91wug{overflow-y:auto}
|
|
11
11
|
._18u01wug{margin-left:auto}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReactionsDialogHeader.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionsDialogHeader.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
@@ -146,10 +146,7 @@ export var ReactionsDialogHeader = function ReactionsDialogHeader(_ref3) {
|
|
|
146
146
|
onClick: handleCloseReactionsDialog
|
|
147
147
|
})), /*#__PURE__*/React.createElement(Inline, null, /*#__PURE__*/React.createElement("div", {
|
|
148
148
|
id: "reactions-dialog-tabs-list",
|
|
149
|
-
className: ax(["_1reo1wug _18m91wug
|
|
150
|
-
style: {
|
|
151
|
-
"--_1wtzbnt": ix("1px solid ".concat("var(--ds-border, #EBECF0)"))
|
|
152
|
-
}
|
|
149
|
+
className: ax(["_1reo1wug _18m91wug _n7zl1l7n _1e0c1txw _1bsb1osq _4cvr1y6m _80wau2gc _s2c4kb7n _141m1j28"])
|
|
153
150
|
}, !isSinglePage && !isOnFirstPage && /*#__PURE__*/React.createElement(LeftNavigationButton, {
|
|
154
151
|
handlePreviousPage: handlePreviousPage
|
|
155
152
|
}), /*#__PURE__*/React.createElement(TabList, null, currentReactions.map(function (reaction, index) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ReactionsDialogTrigger.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* ReactionsDialogTrigger.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import "./ReactionsDialogTrigger.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* StaticReaction.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* StaticReaction.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./StaticReaction.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -4,13 +4,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { UfoErrorBoundary } from '../../components';
|
|
6
6
|
import { PickerRender } from '../../ufo';
|
|
7
|
-
import { ReactionPicker
|
|
8
|
-
import { ReactionPicker as ReactionPickerNew } from '../../components/ReactionPickerNew';
|
|
9
|
-
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
|
-
var ReactionPicker = componentWithCondition(function () {
|
|
12
|
-
return fg('platform_editor_reactions_picker_fix') || fg('platform_editor_reactions_picker_fix_jira');
|
|
13
|
-
}, ReactionPickerNew, ReactionPickerOld);
|
|
7
|
+
import { ReactionPicker } from '../../components/ReactionPicker';
|
|
14
8
|
/**
|
|
15
9
|
* Reaction Picker component
|
|
16
10
|
*/
|
package/dist/esm/index.js
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { DefaultReactions, DefaultReactionsByShortName, ExtendedReactions, ExtendedReactionsByShortName, NUMBER_OF_REACTIONS_TO_DISPLAY, SAMPLING_RATE_REACTIONS_RENDERED_EXP, TOOLTIP_USERS_LIMIT } from './shared/constants';
|
|
2
2
|
import { ComponentName, ExperienceName, PickerRender, ReactionsAdd, ReactionDetailsFetch, ReactionDialogOpened, ReactionDialogSelectedReactionChanged, ReactionsRemove, ReactionsRendered, sampledReactionsRendered } from './ufo';
|
|
3
|
-
import { ReactionPicker
|
|
4
|
-
import { ReactionPicker as ReactionPickerNew } from './components/ReactionPickerNew';
|
|
5
|
-
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
6
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
-
var ReactionPicker = componentWithCondition(function () {
|
|
8
|
-
return fg('platform_editor_reactions_picker_fix') || fg('platform_editor_reactions_picker_fix_jira');
|
|
9
|
-
}, ReactionPickerNew, ReactionPickerLegacy);
|
|
3
|
+
import { ReactionPicker } from './components/ReactionPicker';
|
|
10
4
|
export { ReactionServiceClient } from './client';
|
|
11
5
|
export { Reaction } from './components/Reaction';
|
|
12
6
|
export { ReactionPicker };
|
|
@@ -72,6 +72,10 @@ export interface ReactionPickerProps extends Pick<SelectorProps, 'pickerQuickRea
|
|
|
72
72
|
* Optional prop for controlling the picker location
|
|
73
73
|
*/
|
|
74
74
|
reactionPickerPlacement?: Placement;
|
|
75
|
+
/**
|
|
76
|
+
* Optional prop to set the strategy of the reaction picker popup
|
|
77
|
+
*/
|
|
78
|
+
reactionPickerStrategy?: PopperProps<{}>['strategy'];
|
|
75
79
|
/**
|
|
76
80
|
* Optional prop for controlling icon inside Trigger
|
|
77
81
|
*/
|
|
@@ -98,10 +102,13 @@ export interface ReactionPickerProps extends Pick<SelectorProps, 'pickerQuickRea
|
|
|
98
102
|
*/
|
|
99
103
|
export declare const ReactionPicker: React.MemoExoticComponent<(props: ReactionPickerProps) => JSX.Element>;
|
|
100
104
|
export interface PopperWrapperProps {
|
|
105
|
+
isOpen: boolean;
|
|
106
|
+
onClose: () => void;
|
|
101
107
|
popperModifiers?: PopperProps<{}>['modifiers'];
|
|
102
108
|
settings: {
|
|
103
109
|
popperPlacement: Placement;
|
|
104
110
|
showFullPicker: boolean;
|
|
105
111
|
};
|
|
112
|
+
triggerRef: HTMLDivElement | HTMLButtonElement | null;
|
|
106
113
|
}
|
|
107
114
|
export declare const PopperWrapper: (props: PropsWithChildren<PopperWrapperProps>) => JSX.Element;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentName, ExperienceName } from './ufo';
|
|
2
|
-
|
|
2
|
+
import { ReactionPicker } from './components/ReactionPicker';
|
|
3
3
|
export { ReactionServiceClient } from './client';
|
|
4
4
|
export { Reaction } from './components/Reaction';
|
|
5
5
|
export { ReactionPicker };
|
|
@@ -72,6 +72,10 @@ export interface ReactionPickerProps extends Pick<SelectorProps, 'pickerQuickRea
|
|
|
72
72
|
* Optional prop for controlling the picker location
|
|
73
73
|
*/
|
|
74
74
|
reactionPickerPlacement?: Placement;
|
|
75
|
+
/**
|
|
76
|
+
* Optional prop to set the strategy of the reaction picker popup
|
|
77
|
+
*/
|
|
78
|
+
reactionPickerStrategy?: PopperProps<{}>['strategy'];
|
|
75
79
|
/**
|
|
76
80
|
* Optional prop for controlling icon inside Trigger
|
|
77
81
|
*/
|
|
@@ -98,10 +102,13 @@ export interface ReactionPickerProps extends Pick<SelectorProps, 'pickerQuickRea
|
|
|
98
102
|
*/
|
|
99
103
|
export declare const ReactionPicker: React.MemoExoticComponent<(props: ReactionPickerProps) => JSX.Element>;
|
|
100
104
|
export interface PopperWrapperProps {
|
|
105
|
+
isOpen: boolean;
|
|
106
|
+
onClose: () => void;
|
|
101
107
|
popperModifiers?: PopperProps<{}>['modifiers'];
|
|
102
108
|
settings: {
|
|
103
109
|
popperPlacement: Placement;
|
|
104
110
|
showFullPicker: boolean;
|
|
105
111
|
};
|
|
112
|
+
triggerRef: HTMLDivElement | HTMLButtonElement | null;
|
|
106
113
|
}
|
|
107
114
|
export declare const PopperWrapper: (props: PropsWithChildren<PopperWrapperProps>) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentName, ExperienceName } from './ufo';
|
|
2
|
-
|
|
2
|
+
import { ReactionPicker } from './components/ReactionPicker';
|
|
3
3
|
export { ReactionServiceClient } from './client';
|
|
4
4
|
export { Reaction } from './components/Reaction';
|
|
5
5
|
export { ReactionPicker };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/reactions",
|
|
3
|
-
"version": "33.2.
|
|
3
|
+
"version": "33.2.21",
|
|
4
4
|
"description": "Reactions component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"@atlaskit/popup": "^4.3.0",
|
|
50
50
|
"@atlaskit/portal": "^5.1.0",
|
|
51
51
|
"@atlaskit/primitives": "^14.14.0",
|
|
52
|
-
"@atlaskit/react-ufo": "^4.
|
|
52
|
+
"@atlaskit/react-ufo": "^4.7.0",
|
|
53
53
|
"@atlaskit/spinner": "^19.0.0",
|
|
54
54
|
"@atlaskit/tabs": "^18.1.0",
|
|
55
|
-
"@atlaskit/theme": "^
|
|
55
|
+
"@atlaskit/theme": "^21.0.0",
|
|
56
56
|
"@atlaskit/tokens": "^6.3.0",
|
|
57
57
|
"@atlaskit/tooltip": "^20.4.0",
|
|
58
58
|
"@atlaskit/ufo": "^0.4.0",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@af/visual-regression": "workspace:^",
|
|
71
71
|
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
72
72
|
"@atlaskit/elements-test-helpers": "workspace:^",
|
|
73
|
-
"@atlaskit/util-data-test": "^18.
|
|
73
|
+
"@atlaskit/util-data-test": "^18.2.0",
|
|
74
74
|
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
75
75
|
"@testing-library/dom": "^10.1.0",
|
|
76
76
|
"@testing-library/jest-dom": "^6.4.5",
|
|
@@ -124,12 +124,6 @@
|
|
|
124
124
|
"platform-reactions-offset-based-popper": {
|
|
125
125
|
"type": "boolean"
|
|
126
126
|
},
|
|
127
|
-
"platform_editor_reactions_picker_fix": {
|
|
128
|
-
"type": "boolean"
|
|
129
|
-
},
|
|
130
|
-
"platform_editor_reactions_picker_fix_jira": {
|
|
131
|
-
"type": "boolean"
|
|
132
|
-
},
|
|
133
127
|
"dst-a11y__replace-anchor-with-link__editor-collabo": {
|
|
134
128
|
"type": "boolean"
|
|
135
129
|
},
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
._2rkofajl{border-radius:var(--ds-radius-small,3px)}._16qs1a23{box-shadow:var(--_3t1odq)}
|
|
3
|
-
._1bch1b66>div{margin-top:var(--ds-space-050,4px)}
|
|
4
|
-
._1e0c1txw{display:flex}
|
|
5
|
-
._1pra1o8l.miniMode{display:inline-block}
|
|
6
|
-
._79pa1b66>div{margin-bottom:var(--ds-space-050,4px)}
|
|
7
|
-
._bfhk13b4{background-color:var(--_1f6rtr1)}
|
|
8
|
-
._s7n4nkob{vertical-align:middle}
|
|
9
|
-
._1hvw1o36:focus{outline-width:medium}
|
|
10
|
-
._49pcglyw:focus{outline-style:none}
|
|
11
|
-
._nt751r31:focus{outline-color:currentColor}
|