@atlaskit/reactions 29.1.0 → 30.0.0
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/ReactionPicker/ReactionPicker.js +8 -24
- package/dist/cjs/components/Reactions/Reactions.js +0 -2
- package/dist/cjs/components/Trigger/Trigger.js +1 -4
- package/dist/cjs/components/compiled/Reactions.js +0 -2
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/components/ReactionPicker/ReactionPicker.js +1 -13
- package/dist/es2019/components/Reactions/Reactions.js +0 -2
- package/dist/es2019/components/Trigger/Trigger.js +1 -4
- package/dist/es2019/components/compiled/Reactions.js +0 -2
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/components/ReactionPicker/ReactionPicker.js +9 -25
- package/dist/esm/components/Reactions/Reactions.js +0 -2
- package/dist/esm/components/Trigger/Trigger.js +1 -4
- package/dist/esm/components/compiled/Reactions.js +0 -2
- package/dist/types/components/ReactionPicker/ReactionPicker.d.ts +0 -5
- package/dist/types/components/Reactions/Reactions.d.ts +1 -6
- package/dist/types/components/Trigger/Trigger.d.ts +0 -5
- package/dist/types/components/compiled/Reactions.d.ts +1 -6
- package/dist/types-ts4.5/components/ReactionPicker/ReactionPicker.d.ts +0 -5
- package/dist/types-ts4.5/components/Reactions/Reactions.d.ts +1 -6
- package/dist/types-ts4.5/components/Trigger/Trigger.d.ts +0 -5
- package/dist/types-ts4.5/components/compiled/Reactions.d.ts +1 -6
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/reactions
|
|
2
2
|
|
|
3
|
+
## 30.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#131299](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/131299)
|
|
8
|
+
[`0875459adf75f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0875459adf75f) -
|
|
9
|
+
[ux] removing reactionPickerAdditionalStyle
|
|
10
|
+
|
|
11
|
+
## 29.1.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 29.1.0
|
|
4
18
|
|
|
5
19
|
### Minor 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 = "
|
|
14
|
+
var packageVersion = "30.0.0";
|
|
15
15
|
/**
|
|
16
16
|
* TODO: move to utility package?
|
|
17
17
|
* A random sampling function
|
|
@@ -69,8 +69,6 @@ var ReactionPicker = exports.ReactionPicker = /*#__PURE__*/_react.default.memo(f
|
|
|
69
69
|
subtleReactionsSummaryAndPicker = _props$subtleReaction === void 0 ? false : _props$subtleReaction,
|
|
70
70
|
_props$showAddReactio = props.showAddReactionText,
|
|
71
71
|
showAddReactionText = _props$showAddReactio === void 0 ? false : _props$showAddReactio,
|
|
72
|
-
_props$reactionPicker = props.reactionPickerAdditionalStyle,
|
|
73
|
-
reactionPickerAdditionalStyle = _props$reactionPicker === void 0 ? undefined : _props$reactionPicker,
|
|
74
72
|
reactionPickerTriggerIcon = props.reactionPickerTriggerIcon,
|
|
75
73
|
reactionPickerPlacement = props.reactionPickerPlacement,
|
|
76
74
|
reactionsPickerPreventOverflowOptions = props.reactionsPickerPreventOverflowOptions;
|
|
@@ -83,10 +81,6 @@ var ReactionPicker = exports.ReactionPicker = /*#__PURE__*/_react.default.memo(f
|
|
|
83
81
|
* Container <div /> reference (used by custom hook to detect click outside)
|
|
84
82
|
*/
|
|
85
83
|
var wrapperRef = (0, _react.useRef)(null);
|
|
86
|
-
var _useState3 = (0, _react.useState)(undefined),
|
|
87
|
-
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
88
|
-
selectionStyle = _useState4[0],
|
|
89
|
-
setSelectionStyle = _useState4[1];
|
|
90
84
|
var updatePopper = (0, _react.useRef)();
|
|
91
85
|
var popperPlacement = reactionPickerPlacement || 'bottom-start';
|
|
92
86
|
var popperModifiers = [
|
|
@@ -118,7 +112,7 @@ var ReactionPicker = exports.ReactionPicker = /*#__PURE__*/_react.default.memo(f
|
|
|
118
112
|
}, reactionsPickerPreventOverflowOptions && {
|
|
119
113
|
options: reactionsPickerPreventOverflowOptions
|
|
120
114
|
})];
|
|
121
|
-
var
|
|
115
|
+
var _useState3 = (0, _react.useState)({
|
|
122
116
|
/**
|
|
123
117
|
* Show the picker floating panel
|
|
124
118
|
*/
|
|
@@ -132,9 +126,9 @@ var ReactionPicker = exports.ReactionPicker = /*#__PURE__*/_react.default.memo(f
|
|
|
132
126
|
*/
|
|
133
127
|
popperPlacement: popperPlacement
|
|
134
128
|
}),
|
|
135
|
-
|
|
136
|
-
settings =
|
|
137
|
-
setSettings =
|
|
129
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
130
|
+
settings = _useState4[0],
|
|
131
|
+
setSettings = _useState4[1];
|
|
138
132
|
|
|
139
133
|
/**
|
|
140
134
|
* Custom hook triggers when user clicks outside the reactions picker
|
|
@@ -209,15 +203,6 @@ var ReactionPicker = exports.ReactionPicker = /*#__PURE__*/_react.default.memo(f
|
|
|
209
203
|
// ufo reactions picker opened success
|
|
210
204
|
_ufo.PickerRender.success();
|
|
211
205
|
};
|
|
212
|
-
(0, _react.useEffect)(function () {
|
|
213
|
-
if (settings.isOpen) {
|
|
214
|
-
setSelectionStyle(reactionPickerAdditionalStyle);
|
|
215
|
-
}
|
|
216
|
-
return function () {
|
|
217
|
-
setSelectionStyle(undefined);
|
|
218
|
-
};
|
|
219
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
220
|
-
}, [settings.isOpen]);
|
|
221
206
|
var wrapperClassName = " ".concat(settings.isOpen ? 'isOpen' : '', " ").concat(miniMode ? 'miniMode' : '', " ").concat(className);
|
|
222
207
|
(0, _react.useLayoutEffect)(function () {
|
|
223
208
|
var _updatePopper$current;
|
|
@@ -250,7 +235,6 @@ var ReactionPicker = exports.ReactionPicker = /*#__PURE__*/_react.default.memo(f
|
|
|
250
235
|
setTriggerRef(node);
|
|
251
236
|
}
|
|
252
237
|
},
|
|
253
|
-
selectionStyle: selectionStyle,
|
|
254
238
|
onClick: onTriggerClick,
|
|
255
239
|
miniMode: miniMode,
|
|
256
240
|
disabled: disabled,
|
|
@@ -284,10 +268,10 @@ var PopperWrapper = exports.PopperWrapper = function PopperWrapper(props) {
|
|
|
284
268
|
var settings = props.settings,
|
|
285
269
|
children = props.children,
|
|
286
270
|
popperModifiers = props.popperModifiers;
|
|
287
|
-
var
|
|
288
|
-
|
|
289
|
-
popupRef =
|
|
290
|
-
setPopupRef =
|
|
271
|
+
var _useState5 = (0, _react.useState)(null),
|
|
272
|
+
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
273
|
+
popupRef = _useState6[0],
|
|
274
|
+
setPopupRef = _useState6[1];
|
|
291
275
|
/**
|
|
292
276
|
* add focus lock to popup
|
|
293
277
|
*/
|
|
@@ -154,7 +154,6 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
|
|
|
154
154
|
reactionsPickerPreventOverflowOptions = _ref.reactionsPickerPreventOverflowOptions,
|
|
155
155
|
_ref$isViewOnly = _ref.isViewOnly,
|
|
156
156
|
isViewOnly = _ref$isViewOnly === void 0 ? false : _ref$isViewOnly,
|
|
157
|
-
reactionPickerAdditionalStyle = _ref.reactionPickerAdditionalStyle,
|
|
158
157
|
_ref$noWrap = _ref.noWrap,
|
|
159
158
|
noWrap = _ref$noWrap === void 0 ? false : _ref$noWrap,
|
|
160
159
|
_ref$noRelativeContai = _ref.noRelativeContainer,
|
|
@@ -382,7 +381,6 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
|
|
|
382
381
|
showAddReactionText: showAddReactionText,
|
|
383
382
|
subtleReactionsSummaryAndPicker: subtleReactionsSummaryAndPicker,
|
|
384
383
|
reactionPickerTriggerIcon: reactionPickerTriggerIcon,
|
|
385
|
-
reactionPickerAdditionalStyle: reactionPickerAdditionalStyle,
|
|
386
384
|
reactionPickerPlacement: reactionPickerPlacement,
|
|
387
385
|
reactionsPickerPreventOverflowOptions: reactionsPickerPreventOverflowOptions
|
|
388
386
|
}), (0, _react2.jsx)(_modalDialog.ModalTransition, null, !!selectedEmojiId && (0, _react2.jsx)(_segment.default, {
|
|
@@ -110,7 +110,6 @@ var Trigger = exports.Trigger = /*#__PURE__*/_react.default.forwardRef(function
|
|
|
110
110
|
showAddReactionText = _props$showAddReactio === void 0 ? false : _props$showAddReactio,
|
|
111
111
|
_props$subtleReaction = props.subtleReactionsSummaryAndPicker,
|
|
112
112
|
subtleReactionsSummaryAndPicker = _props$subtleReaction === void 0 ? false : _props$subtleReaction,
|
|
113
|
-
selectionStyle = props.selectionStyle,
|
|
114
113
|
reactionPickerTriggerIcon = props.reactionPickerTriggerIcon;
|
|
115
114
|
var handleMouseDown = function handleMouseDown(e, analyticsEvent) {
|
|
116
115
|
if (onClick && !disabled) {
|
|
@@ -122,9 +121,7 @@ var Trigger = exports.Trigger = /*#__PURE__*/_react.default.forwardRef(function
|
|
|
122
121
|
content: tooltipContent
|
|
123
122
|
}, (0, _react2.jsx)(_primitives.Pressable, (0, _extends2.default)({
|
|
124
123
|
testId: RENDER_TRIGGER_BUTTON_TESTID,
|
|
125
|
-
xcss: [triggerStyles, subtleReactionsSummaryAndPicker && subtleTriggerStyles, showAddReactionText && expandedTriggerStyles, disabled ? disabledTriggerStyles : showOpaqueBackground ? opaqueEnabledTriggerStyles : transparentEnabledTriggerStyles, miniMode && miniModeStyles, (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') && triggerStylesRefresh,
|
|
126
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
127
|
-
selectionStyle],
|
|
124
|
+
xcss: [triggerStyles, subtleReactionsSummaryAndPicker && subtleTriggerStyles, showAddReactionText && expandedTriggerStyles, disabled ? disabledTriggerStyles : showOpaqueBackground ? opaqueEnabledTriggerStyles : transparentEnabledTriggerStyles, miniMode && miniModeStyles, (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') && triggerStylesRefresh],
|
|
128
125
|
onClick: handleMouseDown,
|
|
129
126
|
isDisabled: disabled,
|
|
130
127
|
ref: ref
|
|
@@ -132,7 +132,6 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
|
|
|
132
132
|
onlyRenderPicker = _ref$onlyRenderPicker === void 0 ? false : _ref$onlyRenderPicker,
|
|
133
133
|
_ref$isViewOnly = _ref.isViewOnly,
|
|
134
134
|
isViewOnly = _ref$isViewOnly === void 0 ? false : _ref$isViewOnly,
|
|
135
|
-
reactionPickerAdditionalStyle = _ref.reactionPickerAdditionalStyle,
|
|
136
135
|
_ref$noWrap = _ref.noWrap,
|
|
137
136
|
noWrap = _ref$noWrap === void 0 ? false : _ref$noWrap,
|
|
138
137
|
_ref$noRelativeContai = _ref.noRelativeContainer,
|
|
@@ -357,7 +356,6 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
|
|
|
357
356
|
showAddReactionText: showAddReactionText,
|
|
358
357
|
subtleReactionsSummaryAndPicker: subtleReactionsSummaryAndPicker,
|
|
359
358
|
reactionPickerTriggerIcon: reactionPickerTriggerIcon,
|
|
360
|
-
reactionPickerAdditionalStyle: reactionPickerAdditionalStyle,
|
|
361
359
|
className: (0, _runtime.ax)(["_1e0c1o8l _19pk1b66"])
|
|
362
360
|
}), /*#__PURE__*/_react.default.createElement(_modalDialog.ModalTransition, null, !!selectedEmojiId && /*#__PURE__*/_react.default.createElement(_segment.default, {
|
|
363
361
|
name: "reactions-dialog"
|
|
@@ -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 = "
|
|
4
|
+
const packageVersion = "30.0.0";
|
|
5
5
|
/**
|
|
6
6
|
* TODO: move to utility package?
|
|
7
7
|
* A random sampling function
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import React, { useCallback, useLayoutEffect, useRef, useState
|
|
5
|
+
import React, { useCallback, useLayoutEffect, useRef, useState } from 'react';
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { jsx } from '@emotion/react';
|
|
8
8
|
import { FormattedMessage } from 'react-intl-next';
|
|
@@ -52,7 +52,6 @@ export const ReactionPicker = /*#__PURE__*/React.memo(props => {
|
|
|
52
52
|
showOpaqueBackground = false,
|
|
53
53
|
subtleReactionsSummaryAndPicker = false,
|
|
54
54
|
showAddReactionText = false,
|
|
55
|
-
reactionPickerAdditionalStyle = undefined,
|
|
56
55
|
reactionPickerTriggerIcon,
|
|
57
56
|
reactionPickerPlacement,
|
|
58
57
|
reactionsPickerPreventOverflowOptions
|
|
@@ -63,7 +62,6 @@ export const ReactionPicker = /*#__PURE__*/React.memo(props => {
|
|
|
63
62
|
* Container <div /> reference (used by custom hook to detect click outside)
|
|
64
63
|
*/
|
|
65
64
|
const wrapperRef = useRef(null);
|
|
66
|
-
const [selectionStyle, setSelectionStyle] = useState(undefined);
|
|
67
65
|
const updatePopper = useRef();
|
|
68
66
|
const popperPlacement = reactionPickerPlacement || 'bottom-start';
|
|
69
67
|
const popperModifiers = [
|
|
@@ -183,15 +181,6 @@ export const ReactionPicker = /*#__PURE__*/React.memo(props => {
|
|
|
183
181
|
// ufo reactions picker opened success
|
|
184
182
|
PickerRender.success();
|
|
185
183
|
};
|
|
186
|
-
useEffect(() => {
|
|
187
|
-
if (settings.isOpen) {
|
|
188
|
-
setSelectionStyle(reactionPickerAdditionalStyle);
|
|
189
|
-
}
|
|
190
|
-
return () => {
|
|
191
|
-
setSelectionStyle(undefined);
|
|
192
|
-
};
|
|
193
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
194
|
-
}, [settings.isOpen]);
|
|
195
184
|
const wrapperClassName = ` ${settings.isOpen ? 'isOpen' : ''} ${miniMode ? 'miniMode' : ''} ${className}`;
|
|
196
185
|
useLayoutEffect(() => {
|
|
197
186
|
var _updatePopper$current;
|
|
@@ -224,7 +213,6 @@ export const ReactionPicker = /*#__PURE__*/React.memo(props => {
|
|
|
224
213
|
setTriggerRef(node);
|
|
225
214
|
}
|
|
226
215
|
},
|
|
227
|
-
selectionStyle: selectionStyle,
|
|
228
216
|
onClick: onTriggerClick,
|
|
229
217
|
miniMode: miniMode,
|
|
230
218
|
disabled: disabled,
|
|
@@ -120,7 +120,6 @@ export const Reactions = /*#__PURE__*/React.memo(({
|
|
|
120
120
|
reactionPickerPlacement,
|
|
121
121
|
reactionsPickerPreventOverflowOptions,
|
|
122
122
|
isViewOnly = false,
|
|
123
|
-
reactionPickerAdditionalStyle,
|
|
124
123
|
noWrap = false,
|
|
125
124
|
noRelativeContainer = false,
|
|
126
125
|
showSubtleDefaultReactions,
|
|
@@ -329,7 +328,6 @@ export const Reactions = /*#__PURE__*/React.memo(({
|
|
|
329
328
|
showAddReactionText: showAddReactionText,
|
|
330
329
|
subtleReactionsSummaryAndPicker: subtleReactionsSummaryAndPicker,
|
|
331
330
|
reactionPickerTriggerIcon: reactionPickerTriggerIcon,
|
|
332
|
-
reactionPickerAdditionalStyle: reactionPickerAdditionalStyle,
|
|
333
331
|
reactionPickerPlacement: reactionPickerPlacement,
|
|
334
332
|
reactionsPickerPreventOverflowOptions: reactionsPickerPreventOverflowOptions
|
|
335
333
|
}), jsx(ModalTransition, null, !!selectedEmojiId && jsx(UFOSegment, {
|
|
@@ -99,7 +99,6 @@ export const Trigger = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
99
99
|
showOpaqueBackground = false,
|
|
100
100
|
showAddReactionText = false,
|
|
101
101
|
subtleReactionsSummaryAndPicker = false,
|
|
102
|
-
selectionStyle,
|
|
103
102
|
reactionPickerTriggerIcon
|
|
104
103
|
} = props;
|
|
105
104
|
const handleMouseDown = (e, analyticsEvent) => {
|
|
@@ -112,9 +111,7 @@ export const Trigger = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
112
111
|
content: tooltipContent
|
|
113
112
|
}, jsx(Pressable, _extends({
|
|
114
113
|
testId: RENDER_TRIGGER_BUTTON_TESTID,
|
|
115
|
-
xcss: [triggerStyles, subtleReactionsSummaryAndPicker && subtleTriggerStyles, showAddReactionText && expandedTriggerStyles, disabled ? disabledTriggerStyles : showOpaqueBackground ? opaqueEnabledTriggerStyles : transparentEnabledTriggerStyles, miniMode && miniModeStyles, fg('platform-component-visual-refresh') && triggerStylesRefresh,
|
|
116
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
117
|
-
selectionStyle],
|
|
114
|
+
xcss: [triggerStyles, subtleReactionsSummaryAndPicker && subtleTriggerStyles, showAddReactionText && expandedTriggerStyles, disabled ? disabledTriggerStyles : showOpaqueBackground ? opaqueEnabledTriggerStyles : transparentEnabledTriggerStyles, miniMode && miniModeStyles, fg('platform-component-visual-refresh') && triggerStylesRefresh],
|
|
118
115
|
onClick: handleMouseDown,
|
|
119
116
|
isDisabled: disabled,
|
|
120
117
|
ref: ref
|
|
@@ -100,7 +100,6 @@ export const Reactions = /*#__PURE__*/React.memo(({
|
|
|
100
100
|
ProfileCardWrapper,
|
|
101
101
|
onlyRenderPicker = false,
|
|
102
102
|
isViewOnly = false,
|
|
103
|
-
reactionPickerAdditionalStyle,
|
|
104
103
|
noWrap = false,
|
|
105
104
|
noRelativeContainer = false,
|
|
106
105
|
showSubtleDefaultReactions,
|
|
@@ -306,7 +305,6 @@ export const Reactions = /*#__PURE__*/React.memo(({
|
|
|
306
305
|
showAddReactionText: showAddReactionText,
|
|
307
306
|
subtleReactionsSummaryAndPicker: subtleReactionsSummaryAndPicker,
|
|
308
307
|
reactionPickerTriggerIcon: reactionPickerTriggerIcon,
|
|
309
|
-
reactionPickerAdditionalStyle: reactionPickerAdditionalStyle,
|
|
310
308
|
className: ax(["_1e0c1o8l _19pk1b66"])
|
|
311
309
|
}), /*#__PURE__*/React.createElement(ModalTransition, null, !!selectedEmojiId && /*#__PURE__*/React.createElement(UFOSegment, {
|
|
312
310
|
name: "reactions-dialog"
|
|
@@ -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 = "
|
|
7
|
+
var packageVersion = "30.0.0";
|
|
8
8
|
/**
|
|
9
9
|
* TODO: move to utility package?
|
|
10
10
|
* A random sampling function
|
|
@@ -6,7 +6,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
6
6
|
* @jsxRuntime classic
|
|
7
7
|
* @jsx jsx
|
|
8
8
|
*/
|
|
9
|
-
import React, { useCallback, useLayoutEffect, useRef, useState
|
|
9
|
+
import React, { useCallback, useLayoutEffect, useRef, useState } from 'react';
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
11
|
import { jsx } from '@emotion/react';
|
|
12
12
|
import { FormattedMessage } from 'react-intl-next';
|
|
@@ -62,8 +62,6 @@ export var ReactionPicker = /*#__PURE__*/React.memo(function (props) {
|
|
|
62
62
|
subtleReactionsSummaryAndPicker = _props$subtleReaction === void 0 ? false : _props$subtleReaction,
|
|
63
63
|
_props$showAddReactio = props.showAddReactionText,
|
|
64
64
|
showAddReactionText = _props$showAddReactio === void 0 ? false : _props$showAddReactio,
|
|
65
|
-
_props$reactionPicker = props.reactionPickerAdditionalStyle,
|
|
66
|
-
reactionPickerAdditionalStyle = _props$reactionPicker === void 0 ? undefined : _props$reactionPicker,
|
|
67
65
|
reactionPickerTriggerIcon = props.reactionPickerTriggerIcon,
|
|
68
66
|
reactionPickerPlacement = props.reactionPickerPlacement,
|
|
69
67
|
reactionsPickerPreventOverflowOptions = props.reactionsPickerPreventOverflowOptions;
|
|
@@ -76,10 +74,6 @@ export var ReactionPicker = /*#__PURE__*/React.memo(function (props) {
|
|
|
76
74
|
* Container <div /> reference (used by custom hook to detect click outside)
|
|
77
75
|
*/
|
|
78
76
|
var wrapperRef = useRef(null);
|
|
79
|
-
var _useState3 = useState(undefined),
|
|
80
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
81
|
-
selectionStyle = _useState4[0],
|
|
82
|
-
setSelectionStyle = _useState4[1];
|
|
83
77
|
var updatePopper = useRef();
|
|
84
78
|
var popperPlacement = reactionPickerPlacement || 'bottom-start';
|
|
85
79
|
var popperModifiers = [
|
|
@@ -111,7 +105,7 @@ export var ReactionPicker = /*#__PURE__*/React.memo(function (props) {
|
|
|
111
105
|
}, reactionsPickerPreventOverflowOptions && {
|
|
112
106
|
options: reactionsPickerPreventOverflowOptions
|
|
113
107
|
})];
|
|
114
|
-
var
|
|
108
|
+
var _useState3 = useState({
|
|
115
109
|
/**
|
|
116
110
|
* Show the picker floating panel
|
|
117
111
|
*/
|
|
@@ -125,9 +119,9 @@ export var ReactionPicker = /*#__PURE__*/React.memo(function (props) {
|
|
|
125
119
|
*/
|
|
126
120
|
popperPlacement: popperPlacement
|
|
127
121
|
}),
|
|
128
|
-
|
|
129
|
-
settings =
|
|
130
|
-
setSettings =
|
|
122
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
123
|
+
settings = _useState4[0],
|
|
124
|
+
setSettings = _useState4[1];
|
|
131
125
|
|
|
132
126
|
/**
|
|
133
127
|
* Custom hook triggers when user clicks outside the reactions picker
|
|
@@ -202,15 +196,6 @@ export var ReactionPicker = /*#__PURE__*/React.memo(function (props) {
|
|
|
202
196
|
// ufo reactions picker opened success
|
|
203
197
|
PickerRender.success();
|
|
204
198
|
};
|
|
205
|
-
useEffect(function () {
|
|
206
|
-
if (settings.isOpen) {
|
|
207
|
-
setSelectionStyle(reactionPickerAdditionalStyle);
|
|
208
|
-
}
|
|
209
|
-
return function () {
|
|
210
|
-
setSelectionStyle(undefined);
|
|
211
|
-
};
|
|
212
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
213
|
-
}, [settings.isOpen]);
|
|
214
199
|
var wrapperClassName = " ".concat(settings.isOpen ? 'isOpen' : '', " ").concat(miniMode ? 'miniMode' : '', " ").concat(className);
|
|
215
200
|
useLayoutEffect(function () {
|
|
216
201
|
var _updatePopper$current;
|
|
@@ -243,7 +228,6 @@ export var ReactionPicker = /*#__PURE__*/React.memo(function (props) {
|
|
|
243
228
|
setTriggerRef(node);
|
|
244
229
|
}
|
|
245
230
|
},
|
|
246
|
-
selectionStyle: selectionStyle,
|
|
247
231
|
onClick: onTriggerClick,
|
|
248
232
|
miniMode: miniMode,
|
|
249
233
|
disabled: disabled,
|
|
@@ -277,10 +261,10 @@ export var PopperWrapper = function PopperWrapper(props) {
|
|
|
277
261
|
var settings = props.settings,
|
|
278
262
|
children = props.children,
|
|
279
263
|
popperModifiers = props.popperModifiers;
|
|
280
|
-
var
|
|
281
|
-
|
|
282
|
-
popupRef =
|
|
283
|
-
setPopupRef =
|
|
264
|
+
var _useState5 = useState(null),
|
|
265
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
266
|
+
popupRef = _useState6[0],
|
|
267
|
+
setPopupRef = _useState6[1];
|
|
284
268
|
/**
|
|
285
269
|
* add focus lock to popup
|
|
286
270
|
*/
|
|
@@ -140,7 +140,6 @@ export var Reactions = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
140
140
|
reactionsPickerPreventOverflowOptions = _ref.reactionsPickerPreventOverflowOptions,
|
|
141
141
|
_ref$isViewOnly = _ref.isViewOnly,
|
|
142
142
|
isViewOnly = _ref$isViewOnly === void 0 ? false : _ref$isViewOnly,
|
|
143
|
-
reactionPickerAdditionalStyle = _ref.reactionPickerAdditionalStyle,
|
|
144
143
|
_ref$noWrap = _ref.noWrap,
|
|
145
144
|
noWrap = _ref$noWrap === void 0 ? false : _ref$noWrap,
|
|
146
145
|
_ref$noRelativeContai = _ref.noRelativeContainer,
|
|
@@ -368,7 +367,6 @@ export var Reactions = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
368
367
|
showAddReactionText: showAddReactionText,
|
|
369
368
|
subtleReactionsSummaryAndPicker: subtleReactionsSummaryAndPicker,
|
|
370
369
|
reactionPickerTriggerIcon: reactionPickerTriggerIcon,
|
|
371
|
-
reactionPickerAdditionalStyle: reactionPickerAdditionalStyle,
|
|
372
370
|
reactionPickerPlacement: reactionPickerPlacement,
|
|
373
371
|
reactionsPickerPreventOverflowOptions: reactionsPickerPreventOverflowOptions
|
|
374
372
|
}), jsx(ModalTransition, null, !!selectedEmojiId && jsx(UFOSegment, {
|
|
@@ -102,7 +102,6 @@ export var Trigger = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
102
102
|
showAddReactionText = _props$showAddReactio === void 0 ? false : _props$showAddReactio,
|
|
103
103
|
_props$subtleReaction = props.subtleReactionsSummaryAndPicker,
|
|
104
104
|
subtleReactionsSummaryAndPicker = _props$subtleReaction === void 0 ? false : _props$subtleReaction,
|
|
105
|
-
selectionStyle = props.selectionStyle,
|
|
106
105
|
reactionPickerTriggerIcon = props.reactionPickerTriggerIcon;
|
|
107
106
|
var handleMouseDown = function handleMouseDown(e, analyticsEvent) {
|
|
108
107
|
if (onClick && !disabled) {
|
|
@@ -114,9 +113,7 @@ export var Trigger = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
114
113
|
content: tooltipContent
|
|
115
114
|
}, jsx(Pressable, _extends({
|
|
116
115
|
testId: RENDER_TRIGGER_BUTTON_TESTID,
|
|
117
|
-
xcss: [triggerStyles, subtleReactionsSummaryAndPicker && subtleTriggerStyles, showAddReactionText && expandedTriggerStyles, disabled ? disabledTriggerStyles : showOpaqueBackground ? opaqueEnabledTriggerStyles : transparentEnabledTriggerStyles, miniMode && miniModeStyles, fg('platform-component-visual-refresh') && triggerStylesRefresh,
|
|
118
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
119
|
-
selectionStyle],
|
|
116
|
+
xcss: [triggerStyles, subtleReactionsSummaryAndPicker && subtleTriggerStyles, showAddReactionText && expandedTriggerStyles, disabled ? disabledTriggerStyles : showOpaqueBackground ? opaqueEnabledTriggerStyles : transparentEnabledTriggerStyles, miniMode && miniModeStyles, fg('platform-component-visual-refresh') && triggerStylesRefresh],
|
|
120
117
|
onClick: handleMouseDown,
|
|
121
118
|
isDisabled: disabled,
|
|
122
119
|
ref: ref
|
|
@@ -120,7 +120,6 @@ export var Reactions = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
120
120
|
onlyRenderPicker = _ref$onlyRenderPicker === void 0 ? false : _ref$onlyRenderPicker,
|
|
121
121
|
_ref$isViewOnly = _ref.isViewOnly,
|
|
122
122
|
isViewOnly = _ref$isViewOnly === void 0 ? false : _ref$isViewOnly,
|
|
123
|
-
reactionPickerAdditionalStyle = _ref.reactionPickerAdditionalStyle,
|
|
124
123
|
_ref$noWrap = _ref.noWrap,
|
|
125
124
|
noWrap = _ref$noWrap === void 0 ? false : _ref$noWrap,
|
|
126
125
|
_ref$noRelativeContai = _ref.noRelativeContainer,
|
|
@@ -345,7 +344,6 @@ export var Reactions = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
345
344
|
showAddReactionText: showAddReactionText,
|
|
346
345
|
subtleReactionsSummaryAndPicker: subtleReactionsSummaryAndPicker,
|
|
347
346
|
reactionPickerTriggerIcon: reactionPickerTriggerIcon,
|
|
348
|
-
reactionPickerAdditionalStyle: reactionPickerAdditionalStyle,
|
|
349
347
|
className: ax(["_1e0c1o8l _19pk1b66"])
|
|
350
348
|
}), /*#__PURE__*/React.createElement(ModalTransition, null, !!selectedEmojiId && /*#__PURE__*/React.createElement(UFOSegment, {
|
|
351
349
|
name: "reactions-dialog"
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import React, { type PropsWithChildren } from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import { type PickerSize } from '@atlaskit/emoji/types';
|
|
8
|
-
import { type XCSS } from '@atlaskit/primitives';
|
|
9
8
|
import { type EmojiProvider } from '@atlaskit/emoji/resource';
|
|
10
9
|
import { type PopperProps, type Placement } from '@atlaskit/popper';
|
|
11
10
|
import { type ReactionSource } from '../../types';
|
|
@@ -78,10 +77,6 @@ export interface ReactionPickerProps extends Pick<SelectorProps, 'pickerQuickRea
|
|
|
78
77
|
* Optional prop for controlling the overflow of the reaction picker
|
|
79
78
|
*/
|
|
80
79
|
reactionsPickerPreventOverflowOptions?: Record<string, any>;
|
|
81
|
-
/**
|
|
82
|
-
* Option prop for controlling the reaction picker selection style
|
|
83
|
-
*/
|
|
84
|
-
reactionPickerAdditionalStyle?: XCSS;
|
|
85
80
|
/**
|
|
86
81
|
* Optional prop for controlling icon inside Trigger
|
|
87
82
|
*/
|
|
@@ -6,7 +6,6 @@ import React from 'react';
|
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import { type OnCloseHandler } from '@atlaskit/modal-dialog';
|
|
8
8
|
import { type Placement } from '@atlaskit/popper';
|
|
9
|
-
import { type XCSS } from '@atlaskit/primitives';
|
|
10
9
|
import { ReactionStatus, type ReactionClick, type ReactionSummary, type QuickReactionEmojiSummary, type ProfileCardWrapper } from '../../types';
|
|
11
10
|
import { type ReactionPickerProps } from '../ReactionPicker';
|
|
12
11
|
import { type SelectorProps } from '../Selector';
|
|
@@ -150,10 +149,6 @@ export interface ReactionsProps extends Pick<ReactionPickerProps, 'allowAllEmoji
|
|
|
150
149
|
* Optional prop for controlling if the reactions component is view only, disabling adding reactions
|
|
151
150
|
*/
|
|
152
151
|
isViewOnly?: boolean;
|
|
153
|
-
/**
|
|
154
|
-
* Option prop for controlling the reaction picker selection style
|
|
155
|
-
*/
|
|
156
|
-
reactionPickerAdditionalStyle?: XCSS;
|
|
157
152
|
noWrap?: boolean;
|
|
158
153
|
/**
|
|
159
154
|
* Optional prop for using your own container for relative positioning for emoji picker popup
|
|
@@ -183,4 +178,4 @@ export declare function getTooltip(status: ReactionStatus, errorMessage?: string
|
|
|
183
178
|
/**
|
|
184
179
|
* Renders list of reactions
|
|
185
180
|
*/
|
|
186
|
-
export declare const Reactions: React.MemoExoticComponent<({ flash, particleEffectByEmoji, status, errorMessage, loadReaction, quickReactionEmojis, pickerQuickReactionEmojiIds, getReactionDetails, onSelection, reactions, emojiProvider, allowAllEmojis, onReactionClick, allowUserDialog, onDialogOpenCallback, onDialogCloseCallback, onDialogSelectReactionCallback, onDialogPageChangeCallback, emojiPickerSize, miniMode, summaryViewEnabled, summaryViewThreshold, summaryViewPlacement, showOpaqueBackground, subtleReactionsSummaryAndPicker, showAddReactionText, hideDefaultReactions, ProfileCardWrapper, onlyRenderPicker, reactionPickerPlacement, reactionsPickerPreventOverflowOptions, isViewOnly,
|
|
181
|
+
export declare const Reactions: React.MemoExoticComponent<({ flash, particleEffectByEmoji, status, errorMessage, loadReaction, quickReactionEmojis, pickerQuickReactionEmojiIds, getReactionDetails, onSelection, reactions, emojiProvider, allowAllEmojis, onReactionClick, allowUserDialog, onDialogOpenCallback, onDialogCloseCallback, onDialogSelectReactionCallback, onDialogPageChangeCallback, emojiPickerSize, miniMode, summaryViewEnabled, summaryViewThreshold, summaryViewPlacement, showOpaqueBackground, subtleReactionsSummaryAndPicker, showAddReactionText, hideDefaultReactions, ProfileCardWrapper, onlyRenderPicker, reactionPickerPlacement, reactionsPickerPreventOverflowOptions, isViewOnly, noWrap, noRelativeContainer, showSubtleDefaultReactions, reactionPickerTriggerToolipContent, reactionPickerTriggerIcon, allowSelectFromSummaryView, useButtonAlignmentStyling, }: ReactionsProps) => jsx.JSX.Element>;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React, { type AriaAttributes } from 'react';
|
|
6
6
|
import { type AnalyticsEvent } from '@atlaskit/analytics-next';
|
|
7
|
-
import { type XCSS } from '@atlaskit/primitives';
|
|
8
7
|
/**
|
|
9
8
|
* Test id for the tooltip
|
|
10
9
|
*/
|
|
@@ -45,10 +44,6 @@ export interface TriggerProps {
|
|
|
45
44
|
* Optional prop for applying subtle styling to reaction picker
|
|
46
45
|
*/
|
|
47
46
|
subtleReactionsSummaryAndPicker?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Option prop for controlling the reaction picker selection style
|
|
50
|
-
*/
|
|
51
|
-
selectionStyle?: XCSS;
|
|
52
47
|
/**
|
|
53
48
|
* Optional prop for controlling icon inside Trigger
|
|
54
49
|
*/
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { type OnCloseHandler } from '@atlaskit/modal-dialog';
|
|
7
7
|
import { type Placement } from '@atlaskit/popper';
|
|
8
|
-
import { type XCSS } from '@atlaskit/primitives';
|
|
9
8
|
import { ReactionStatus, type ReactionClick, type ReactionSummary, type QuickReactionEmojiSummary, type ProfileCardWrapper } from '../../types';
|
|
10
9
|
import { type ReactionPickerProps } from '../ReactionPicker';
|
|
11
10
|
import { type SelectorProps } from '../Selector';
|
|
@@ -141,10 +140,6 @@ export interface ReactionsProps extends Pick<ReactionPickerProps, 'allowAllEmoji
|
|
|
141
140
|
* Optional prop for controlling if the reactions component is view only, disabling adding reactions
|
|
142
141
|
*/
|
|
143
142
|
isViewOnly?: boolean;
|
|
144
|
-
/**
|
|
145
|
-
* Option prop for controlling the reaction picker selection style
|
|
146
|
-
*/
|
|
147
|
-
reactionPickerAdditionalStyle?: XCSS;
|
|
148
143
|
noWrap?: boolean;
|
|
149
144
|
/**
|
|
150
145
|
* Optional prop for using your own container for relative positioning for emoji picker popup
|
|
@@ -174,4 +169,4 @@ export declare function getTooltip(status: ReactionStatus, errorMessage?: string
|
|
|
174
169
|
/**
|
|
175
170
|
* Renders list of reactions
|
|
176
171
|
*/
|
|
177
|
-
export declare const Reactions: React.MemoExoticComponent<({ flash, particleEffectByEmoji, status, errorMessage, loadReaction, quickReactionEmojis, pickerQuickReactionEmojiIds, getReactionDetails, onSelection, reactions, emojiProvider, allowAllEmojis, onReactionClick, allowUserDialog, onDialogOpenCallback, onDialogCloseCallback, onDialogSelectReactionCallback, onDialogPageChangeCallback, emojiPickerSize, miniMode, summaryViewEnabled, summaryViewThreshold, summaryViewPlacement, showOpaqueBackground, subtleReactionsSummaryAndPicker, showAddReactionText, hideDefaultReactions, ProfileCardWrapper, onlyRenderPicker, isViewOnly,
|
|
172
|
+
export declare const Reactions: React.MemoExoticComponent<({ flash, particleEffectByEmoji, status, errorMessage, loadReaction, quickReactionEmojis, pickerQuickReactionEmojiIds, getReactionDetails, onSelection, reactions, emojiProvider, allowAllEmojis, onReactionClick, allowUserDialog, onDialogOpenCallback, onDialogCloseCallback, onDialogSelectReactionCallback, onDialogPageChangeCallback, emojiPickerSize, miniMode, summaryViewEnabled, summaryViewThreshold, summaryViewPlacement, showOpaqueBackground, subtleReactionsSummaryAndPicker, showAddReactionText, hideDefaultReactions, ProfileCardWrapper, onlyRenderPicker, isViewOnly, noWrap, noRelativeContainer, showSubtleDefaultReactions, reactionPickerTriggerToolipContent, reactionPickerTriggerIcon, allowSelectFromSummaryView, useButtonAlignmentStyling, }: ReactionsProps) => JSX.Element>;
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import React, { type PropsWithChildren } from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import { type PickerSize } from '@atlaskit/emoji/types';
|
|
8
|
-
import { type XCSS } from '@atlaskit/primitives';
|
|
9
8
|
import { type EmojiProvider } from '@atlaskit/emoji/resource';
|
|
10
9
|
import { type PopperProps, type Placement } from '@atlaskit/popper';
|
|
11
10
|
import { type ReactionSource } from '../../types';
|
|
@@ -78,10 +77,6 @@ export interface ReactionPickerProps extends Pick<SelectorProps, 'pickerQuickRea
|
|
|
78
77
|
* Optional prop for controlling the overflow of the reaction picker
|
|
79
78
|
*/
|
|
80
79
|
reactionsPickerPreventOverflowOptions?: Record<string, any>;
|
|
81
|
-
/**
|
|
82
|
-
* Option prop for controlling the reaction picker selection style
|
|
83
|
-
*/
|
|
84
|
-
reactionPickerAdditionalStyle?: XCSS;
|
|
85
80
|
/**
|
|
86
81
|
* Optional prop for controlling icon inside Trigger
|
|
87
82
|
*/
|
|
@@ -6,7 +6,6 @@ import React from 'react';
|
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import { type OnCloseHandler } from '@atlaskit/modal-dialog';
|
|
8
8
|
import { type Placement } from '@atlaskit/popper';
|
|
9
|
-
import { type XCSS } from '@atlaskit/primitives';
|
|
10
9
|
import { ReactionStatus, type ReactionClick, type ReactionSummary, type QuickReactionEmojiSummary, type ProfileCardWrapper } from '../../types';
|
|
11
10
|
import { type ReactionPickerProps } from '../ReactionPicker';
|
|
12
11
|
import { type SelectorProps } from '../Selector';
|
|
@@ -150,10 +149,6 @@ export interface ReactionsProps extends Pick<ReactionPickerProps, 'allowAllEmoji
|
|
|
150
149
|
* Optional prop for controlling if the reactions component is view only, disabling adding reactions
|
|
151
150
|
*/
|
|
152
151
|
isViewOnly?: boolean;
|
|
153
|
-
/**
|
|
154
|
-
* Option prop for controlling the reaction picker selection style
|
|
155
|
-
*/
|
|
156
|
-
reactionPickerAdditionalStyle?: XCSS;
|
|
157
152
|
noWrap?: boolean;
|
|
158
153
|
/**
|
|
159
154
|
* Optional prop for using your own container for relative positioning for emoji picker popup
|
|
@@ -183,4 +178,4 @@ export declare function getTooltip(status: ReactionStatus, errorMessage?: string
|
|
|
183
178
|
/**
|
|
184
179
|
* Renders list of reactions
|
|
185
180
|
*/
|
|
186
|
-
export declare const Reactions: React.MemoExoticComponent<({ flash, particleEffectByEmoji, status, errorMessage, loadReaction, quickReactionEmojis, pickerQuickReactionEmojiIds, getReactionDetails, onSelection, reactions, emojiProvider, allowAllEmojis, onReactionClick, allowUserDialog, onDialogOpenCallback, onDialogCloseCallback, onDialogSelectReactionCallback, onDialogPageChangeCallback, emojiPickerSize, miniMode, summaryViewEnabled, summaryViewThreshold, summaryViewPlacement, showOpaqueBackground, subtleReactionsSummaryAndPicker, showAddReactionText, hideDefaultReactions, ProfileCardWrapper, onlyRenderPicker, reactionPickerPlacement, reactionsPickerPreventOverflowOptions, isViewOnly,
|
|
181
|
+
export declare const Reactions: React.MemoExoticComponent<({ flash, particleEffectByEmoji, status, errorMessage, loadReaction, quickReactionEmojis, pickerQuickReactionEmojiIds, getReactionDetails, onSelection, reactions, emojiProvider, allowAllEmojis, onReactionClick, allowUserDialog, onDialogOpenCallback, onDialogCloseCallback, onDialogSelectReactionCallback, onDialogPageChangeCallback, emojiPickerSize, miniMode, summaryViewEnabled, summaryViewThreshold, summaryViewPlacement, showOpaqueBackground, subtleReactionsSummaryAndPicker, showAddReactionText, hideDefaultReactions, ProfileCardWrapper, onlyRenderPicker, reactionPickerPlacement, reactionsPickerPreventOverflowOptions, isViewOnly, noWrap, noRelativeContainer, showSubtleDefaultReactions, reactionPickerTriggerToolipContent, reactionPickerTriggerIcon, allowSelectFromSummaryView, useButtonAlignmentStyling, }: ReactionsProps) => jsx.JSX.Element>;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React, { type AriaAttributes } from 'react';
|
|
6
6
|
import { type AnalyticsEvent } from '@atlaskit/analytics-next';
|
|
7
|
-
import { type XCSS } from '@atlaskit/primitives';
|
|
8
7
|
/**
|
|
9
8
|
* Test id for the tooltip
|
|
10
9
|
*/
|
|
@@ -45,10 +44,6 @@ export interface TriggerProps {
|
|
|
45
44
|
* Optional prop for applying subtle styling to reaction picker
|
|
46
45
|
*/
|
|
47
46
|
subtleReactionsSummaryAndPicker?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Option prop for controlling the reaction picker selection style
|
|
50
|
-
*/
|
|
51
|
-
selectionStyle?: XCSS;
|
|
52
47
|
/**
|
|
53
48
|
* Optional prop for controlling icon inside Trigger
|
|
54
49
|
*/
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { type OnCloseHandler } from '@atlaskit/modal-dialog';
|
|
7
7
|
import { type Placement } from '@atlaskit/popper';
|
|
8
|
-
import { type XCSS } from '@atlaskit/primitives';
|
|
9
8
|
import { ReactionStatus, type ReactionClick, type ReactionSummary, type QuickReactionEmojiSummary, type ProfileCardWrapper } from '../../types';
|
|
10
9
|
import { type ReactionPickerProps } from '../ReactionPicker';
|
|
11
10
|
import { type SelectorProps } from '../Selector';
|
|
@@ -141,10 +140,6 @@ export interface ReactionsProps extends Pick<ReactionPickerProps, 'allowAllEmoji
|
|
|
141
140
|
* Optional prop for controlling if the reactions component is view only, disabling adding reactions
|
|
142
141
|
*/
|
|
143
142
|
isViewOnly?: boolean;
|
|
144
|
-
/**
|
|
145
|
-
* Option prop for controlling the reaction picker selection style
|
|
146
|
-
*/
|
|
147
|
-
reactionPickerAdditionalStyle?: XCSS;
|
|
148
143
|
noWrap?: boolean;
|
|
149
144
|
/**
|
|
150
145
|
* Optional prop for using your own container for relative positioning for emoji picker popup
|
|
@@ -174,4 +169,4 @@ export declare function getTooltip(status: ReactionStatus, errorMessage?: string
|
|
|
174
169
|
/**
|
|
175
170
|
* Renders list of reactions
|
|
176
171
|
*/
|
|
177
|
-
export declare const Reactions: React.MemoExoticComponent<({ flash, particleEffectByEmoji, status, errorMessage, loadReaction, quickReactionEmojis, pickerQuickReactionEmojiIds, getReactionDetails, onSelection, reactions, emojiProvider, allowAllEmojis, onReactionClick, allowUserDialog, onDialogOpenCallback, onDialogCloseCallback, onDialogSelectReactionCallback, onDialogPageChangeCallback, emojiPickerSize, miniMode, summaryViewEnabled, summaryViewThreshold, summaryViewPlacement, showOpaqueBackground, subtleReactionsSummaryAndPicker, showAddReactionText, hideDefaultReactions, ProfileCardWrapper, onlyRenderPicker, isViewOnly,
|
|
172
|
+
export declare const Reactions: React.MemoExoticComponent<({ flash, particleEffectByEmoji, status, errorMessage, loadReaction, quickReactionEmojis, pickerQuickReactionEmojiIds, getReactionDetails, onSelection, reactions, emojiProvider, allowAllEmojis, onReactionClick, allowUserDialog, onDialogOpenCallback, onDialogCloseCallback, onDialogSelectReactionCallback, onDialogPageChangeCallback, emojiPickerSize, miniMode, summaryViewEnabled, summaryViewThreshold, summaryViewPlacement, showOpaqueBackground, subtleReactionsSummaryAndPicker, showAddReactionText, hideDefaultReactions, ProfileCardWrapper, onlyRenderPicker, isViewOnly, noWrap, noRelativeContainer, showSubtleDefaultReactions, reactionPickerTriggerToolipContent, reactionPickerTriggerIcon, allowSelectFromSummaryView, useButtonAlignmentStyling, }: ReactionsProps) => JSX.Element>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/reactions",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "30.0.0",
|
|
4
4
|
"description": "Reactions component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@atlaskit/emoji": "^69.0.0",
|
|
41
41
|
"@atlaskit/heading": "^5.1.0",
|
|
42
42
|
"@atlaskit/icon": "^25.0.0",
|
|
43
|
-
"@atlaskit/modal-dialog": "^
|
|
43
|
+
"@atlaskit/modal-dialog": "^14.0.0",
|
|
44
44
|
"@atlaskit/motion": "^5.1.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags-react": "^0.1.0",
|