@atlaskit/reactions 32.0.1 → 33.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/components/ReactionPicker.js +1 -7
- package/dist/cjs/components/ReactionPickerNew.js +1 -7
- package/dist/cjs/components/ReactionSummaryView.js +3 -1
- package/dist/cjs/components/Reactions.js +7 -0
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/components/ReactionPicker.js +0 -7
- package/dist/es2019/components/ReactionPickerNew.js +0 -7
- package/dist/es2019/components/ReactionSummaryView.js +3 -1
- package/dist/es2019/components/Reactions.js +7 -0
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/components/ReactionPicker.js +1 -7
- package/dist/esm/components/ReactionPickerNew.js +1 -7
- package/dist/esm/components/ReactionSummaryView.js +3 -1
- package/dist/esm/components/Reactions.js +7 -0
- package/dist/types/components/ReactionPicker.d.ts +0 -4
- package/dist/types/components/ReactionPickerNew.d.ts +0 -4
- package/dist/types/components/ReactionSummaryView.d.ts +3 -2
- package/dist/types/components/Reactions.d.ts +1 -1
- package/dist/types-ts4.5/components/ReactionPicker.d.ts +0 -4
- package/dist/types-ts4.5/components/ReactionPickerNew.d.ts +0 -4
- package/dist/types-ts4.5/components/ReactionSummaryView.d.ts +3 -2
- package/dist/types-ts4.5/components/Reactions.d.ts +1 -1
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/reactions
|
|
2
2
|
|
|
3
|
+
## 33.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#168917](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/168917)
|
|
8
|
+
[`06e3a9a376da3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/06e3a9a376da3) -
|
|
9
|
+
[ux] Bug fix for wrong animation being rendered on the byline for page reactions
|
|
10
|
+
|
|
11
|
+
## 33.0.0
|
|
12
|
+
|
|
13
|
+
### Major Changes
|
|
14
|
+
|
|
15
|
+
- [#167562](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/167562)
|
|
16
|
+
[`7716ba2e99acf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7716ba2e99acf) -
|
|
17
|
+
[ux] Removing prevent overflow options from the reactions picker component since it is no longer
|
|
18
|
+
being used
|
|
19
|
+
|
|
3
20
|
## 32.0.1
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -11,7 +11,7 @@ var _analyticsGasTypes = require("@atlaskit/analytics-gas-types");
|
|
|
11
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
12
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
13
|
var packageName = "@atlaskit/reactions";
|
|
14
|
-
var packageVersion = "
|
|
14
|
+
var packageVersion = "33.0.1";
|
|
15
15
|
/**
|
|
16
16
|
* TODO: move to utility package?
|
|
17
17
|
* A random sampling function
|
|
@@ -81,7 +81,6 @@ var ReactionPicker = exports.ReactionPicker = /*#__PURE__*/_react.default.memo(f
|
|
|
81
81
|
reactionPickerTriggerIcon = props.reactionPickerTriggerIcon,
|
|
82
82
|
reactionPickerTriggerText = props.reactionPickerTriggerText,
|
|
83
83
|
reactionPickerPlacement = props.reactionPickerPlacement,
|
|
84
|
-
reactionsPickerPreventOverflowOptions = props.reactionsPickerPreventOverflowOptions,
|
|
85
84
|
_props$isListItem = props.isListItem,
|
|
86
85
|
isListItem = _props$isListItem === void 0 ? false : _props$isListItem,
|
|
87
86
|
_props$hoverableReact = props.hoverableReactionPicker,
|
|
@@ -142,12 +141,7 @@ var ReactionPicker = exports.ReactionPicker = /*#__PURE__*/_react.default.memo(f
|
|
|
142
141
|
flipVariations: true,
|
|
143
142
|
boundariesElement: 'scrollParent'
|
|
144
143
|
}
|
|
145
|
-
}
|
|
146
|
-
name: 'preventOverflow',
|
|
147
|
-
enabled: true
|
|
148
|
-
}, reactionsPickerPreventOverflowOptions && {
|
|
149
|
-
options: reactionsPickerPreventOverflowOptions
|
|
150
|
-
})];
|
|
144
|
+
}];
|
|
151
145
|
var _useState1 = (0, _react.useState)({
|
|
152
146
|
/**
|
|
153
147
|
* Show the full custom emoji list picker or the default list of emojis
|
|
@@ -82,7 +82,6 @@ var ReactionPicker = exports.ReactionPicker = /*#__PURE__*/_react.default.memo(f
|
|
|
82
82
|
reactionPickerTriggerIcon = props.reactionPickerTriggerIcon,
|
|
83
83
|
reactionPickerTriggerText = props.reactionPickerTriggerText,
|
|
84
84
|
reactionPickerPlacement = props.reactionPickerPlacement,
|
|
85
|
-
reactionsPickerPreventOverflowOptions = props.reactionsPickerPreventOverflowOptions,
|
|
86
85
|
_props$isListItem = props.isListItem,
|
|
87
86
|
isListItem = _props$isListItem === void 0 ? false : _props$isListItem,
|
|
88
87
|
_props$hoverableReact = props.hoverableReactionPicker,
|
|
@@ -143,12 +142,7 @@ var ReactionPicker = exports.ReactionPicker = /*#__PURE__*/_react.default.memo(f
|
|
|
143
142
|
flipVariations: true,
|
|
144
143
|
boundariesElement: 'scrollParent'
|
|
145
144
|
}
|
|
146
|
-
}
|
|
147
|
-
name: 'preventOverflow',
|
|
148
|
-
enabled: true
|
|
149
|
-
}, reactionsPickerPreventOverflowOptions && {
|
|
150
|
-
options: reactionsPickerPreventOverflowOptions
|
|
151
|
-
})];
|
|
145
|
+
}];
|
|
152
146
|
var _useState1 = (0, _react.useState)({
|
|
153
147
|
/**
|
|
154
148
|
* Show the full custom emoji list picker or the default list of emojis
|
|
@@ -15,6 +15,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
15
15
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
16
16
|
var _popup = _interopRequireDefault(require("@atlaskit/popup"));
|
|
17
17
|
var _picker = require("@atlaskit/emoji/picker");
|
|
18
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
19
|
var _useDelayedState3 = require("../hooks/useDelayedState");
|
|
19
20
|
var _Reaction = require("./Reaction");
|
|
20
21
|
var _Trigger = require("./Trigger");
|
|
@@ -248,6 +249,7 @@ var ReactionSummaryView = exports.ReactionSummaryView = function ReactionSummary
|
|
|
248
249
|
summaryButtonIconAfter: summaryButtonIconAfter,
|
|
249
250
|
summaryViewParticleEffectEmojiId: summaryViewParticleEffectEmojiId
|
|
250
251
|
}));
|
|
251
|
-
}
|
|
252
|
+
},
|
|
253
|
+
shouldRenderToParent: (0, _platformFeatureFlags.fg)('should-render-to-parent-should-be-true-editor-coll')
|
|
252
254
|
});
|
|
253
255
|
};
|
|
@@ -162,6 +162,13 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
|
|
|
162
162
|
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
163
163
|
summaryViewParticleEffectEmojiId = _useState4[0],
|
|
164
164
|
setSummaryViewParticleEffectEmojiId = _useState4[1];
|
|
165
|
+
|
|
166
|
+
// if the reactions are empty, then set summaryViewParticleEffectEmojiId to null to clear the particle effect state
|
|
167
|
+
(0, _react.useEffect)(function () {
|
|
168
|
+
if (reactions.length === 0) {
|
|
169
|
+
setSummaryViewParticleEffectEmojiId(null);
|
|
170
|
+
}
|
|
171
|
+
}, [reactions]);
|
|
165
172
|
var _useAnalyticsEvents = (0, _analyticsNext.useAnalyticsEvents)(),
|
|
166
173
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
167
174
|
var openTime = (0, _react.useRef)();
|
|
@@ -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 = "33.0.1";
|
|
5
5
|
/**
|
|
6
6
|
* TODO: move to utility package?
|
|
7
7
|
* A random sampling function
|
|
@@ -62,7 +62,6 @@ export const ReactionPicker = /*#__PURE__*/React.memo(props => {
|
|
|
62
62
|
reactionPickerTriggerIcon,
|
|
63
63
|
reactionPickerTriggerText,
|
|
64
64
|
reactionPickerPlacement,
|
|
65
|
-
reactionsPickerPreventOverflowOptions,
|
|
66
65
|
isListItem = false,
|
|
67
66
|
hoverableReactionPicker = false,
|
|
68
67
|
hoverableReactionPickerDelay = 0
|
|
@@ -103,12 +102,6 @@ export const ReactionPicker = /*#__PURE__*/React.memo(props => {
|
|
|
103
102
|
flipVariations: true,
|
|
104
103
|
boundariesElement: 'scrollParent'
|
|
105
104
|
}
|
|
106
|
-
}, {
|
|
107
|
-
name: 'preventOverflow',
|
|
108
|
-
enabled: true,
|
|
109
|
-
...(reactionsPickerPreventOverflowOptions && {
|
|
110
|
-
options: reactionsPickerPreventOverflowOptions
|
|
111
|
-
})
|
|
112
105
|
}];
|
|
113
106
|
const [settings, setSettings] = useState({
|
|
114
107
|
/**
|
|
@@ -63,7 +63,6 @@ export const ReactionPicker = /*#__PURE__*/React.memo(props => {
|
|
|
63
63
|
reactionPickerTriggerIcon,
|
|
64
64
|
reactionPickerTriggerText,
|
|
65
65
|
reactionPickerPlacement,
|
|
66
|
-
reactionsPickerPreventOverflowOptions,
|
|
67
66
|
isListItem = false,
|
|
68
67
|
hoverableReactionPicker = false,
|
|
69
68
|
hoverableReactionPickerDelay = 0
|
|
@@ -104,12 +103,6 @@ export const ReactionPicker = /*#__PURE__*/React.memo(props => {
|
|
|
104
103
|
flipVariations: true,
|
|
105
104
|
boundariesElement: 'scrollParent'
|
|
106
105
|
}
|
|
107
|
-
}, {
|
|
108
|
-
name: 'preventOverflow',
|
|
109
|
-
enabled: true,
|
|
110
|
-
...(reactionsPickerPreventOverflowOptions && {
|
|
111
|
-
options: reactionsPickerPreventOverflowOptions
|
|
112
|
-
})
|
|
113
106
|
}];
|
|
114
107
|
const [settings, setSettings] = useState({
|
|
115
108
|
/**
|
|
@@ -6,6 +6,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
import { useCallback, useState } from 'react';
|
|
7
7
|
import Popup from '@atlaskit/popup';
|
|
8
8
|
import { EmojiPicker } from '@atlaskit/emoji/picker';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
10
|
import { useDelayedState } from '../hooks/useDelayedState';
|
|
10
11
|
import { Reaction } from './Reaction';
|
|
11
12
|
import { Trigger as EmojiPickerTrigger } from './Trigger';
|
|
@@ -210,6 +211,7 @@ export const ReactionSummaryView = ({
|
|
|
210
211
|
summaryGetOptimisticImageURL: summaryGetOptimisticImageURL,
|
|
211
212
|
summaryButtonIconAfter: summaryButtonIconAfter,
|
|
212
213
|
summaryViewParticleEffectEmojiId: summaryViewParticleEffectEmojiId
|
|
213
|
-
}))
|
|
214
|
+
})),
|
|
215
|
+
shouldRenderToParent: fg('should-render-to-parent-should-be-true-editor-coll')
|
|
214
216
|
});
|
|
215
217
|
};
|
|
@@ -119,6 +119,13 @@ export const Reactions = /*#__PURE__*/React.memo(({
|
|
|
119
119
|
}) => {
|
|
120
120
|
const [selectedEmojiId, setSelectedEmojiId] = useState('');
|
|
121
121
|
const [summaryViewParticleEffectEmojiId, setSummaryViewParticleEffectEmojiId] = useState(null);
|
|
122
|
+
|
|
123
|
+
// if the reactions are empty, then set summaryViewParticleEffectEmojiId to null to clear the particle effect state
|
|
124
|
+
useEffect(() => {
|
|
125
|
+
if (reactions.length === 0) {
|
|
126
|
+
setSummaryViewParticleEffectEmojiId(null);
|
|
127
|
+
}
|
|
128
|
+
}, [reactions]);
|
|
122
129
|
const {
|
|
123
130
|
createAnalyticsEvent
|
|
124
131
|
} = useAnalyticsEvents();
|
|
@@ -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 = "33.0.1";
|
|
8
8
|
/**
|
|
9
9
|
* TODO: move to utility package?
|
|
10
10
|
* A random sampling function
|
|
@@ -72,7 +72,6 @@ export var ReactionPicker = /*#__PURE__*/React.memo(function (props) {
|
|
|
72
72
|
reactionPickerTriggerIcon = props.reactionPickerTriggerIcon,
|
|
73
73
|
reactionPickerTriggerText = props.reactionPickerTriggerText,
|
|
74
74
|
reactionPickerPlacement = props.reactionPickerPlacement,
|
|
75
|
-
reactionsPickerPreventOverflowOptions = props.reactionsPickerPreventOverflowOptions,
|
|
76
75
|
_props$isListItem = props.isListItem,
|
|
77
76
|
isListItem = _props$isListItem === void 0 ? false : _props$isListItem,
|
|
78
77
|
_props$hoverableReact = props.hoverableReactionPicker,
|
|
@@ -133,12 +132,7 @@ export var ReactionPicker = /*#__PURE__*/React.memo(function (props) {
|
|
|
133
132
|
flipVariations: true,
|
|
134
133
|
boundariesElement: 'scrollParent'
|
|
135
134
|
}
|
|
136
|
-
}
|
|
137
|
-
name: 'preventOverflow',
|
|
138
|
-
enabled: true
|
|
139
|
-
}, reactionsPickerPreventOverflowOptions && {
|
|
140
|
-
options: reactionsPickerPreventOverflowOptions
|
|
141
|
-
})];
|
|
135
|
+
}];
|
|
142
136
|
var _useState1 = useState({
|
|
143
137
|
/**
|
|
144
138
|
* Show the full custom emoji list picker or the default list of emojis
|
|
@@ -73,7 +73,6 @@ export var ReactionPicker = /*#__PURE__*/React.memo(function (props) {
|
|
|
73
73
|
reactionPickerTriggerIcon = props.reactionPickerTriggerIcon,
|
|
74
74
|
reactionPickerTriggerText = props.reactionPickerTriggerText,
|
|
75
75
|
reactionPickerPlacement = props.reactionPickerPlacement,
|
|
76
|
-
reactionsPickerPreventOverflowOptions = props.reactionsPickerPreventOverflowOptions,
|
|
77
76
|
_props$isListItem = props.isListItem,
|
|
78
77
|
isListItem = _props$isListItem === void 0 ? false : _props$isListItem,
|
|
79
78
|
_props$hoverableReact = props.hoverableReactionPicker,
|
|
@@ -134,12 +133,7 @@ export var ReactionPicker = /*#__PURE__*/React.memo(function (props) {
|
|
|
134
133
|
flipVariations: true,
|
|
135
134
|
boundariesElement: 'scrollParent'
|
|
136
135
|
}
|
|
137
|
-
}
|
|
138
|
-
name: 'preventOverflow',
|
|
139
|
-
enabled: true
|
|
140
|
-
}, reactionsPickerPreventOverflowOptions && {
|
|
141
|
-
options: reactionsPickerPreventOverflowOptions
|
|
142
|
-
})];
|
|
136
|
+
}];
|
|
143
137
|
var _useState1 = useState({
|
|
144
138
|
/**
|
|
145
139
|
* Show the full custom emoji list picker or the default list of emojis
|
|
@@ -7,6 +7,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
7
7
|
import { useCallback, useState } from 'react';
|
|
8
8
|
import Popup from '@atlaskit/popup';
|
|
9
9
|
import { EmojiPicker } from '@atlaskit/emoji/picker';
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
11
|
import { useDelayedState } from '../hooks/useDelayedState';
|
|
11
12
|
import { Reaction } from './Reaction';
|
|
12
13
|
import { Trigger as EmojiPickerTrigger } from './Trigger';
|
|
@@ -239,6 +240,7 @@ export var ReactionSummaryView = function ReactionSummaryView(_ref) {
|
|
|
239
240
|
summaryButtonIconAfter: summaryButtonIconAfter,
|
|
240
241
|
summaryViewParticleEffectEmojiId: summaryViewParticleEffectEmojiId
|
|
241
242
|
}));
|
|
242
|
-
}
|
|
243
|
+
},
|
|
244
|
+
shouldRenderToParent: fg('should-render-to-parent-should-be-true-editor-coll')
|
|
243
245
|
});
|
|
244
246
|
};
|
|
@@ -151,6 +151,13 @@ export var Reactions = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
151
151
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
152
152
|
summaryViewParticleEffectEmojiId = _useState4[0],
|
|
153
153
|
setSummaryViewParticleEffectEmojiId = _useState4[1];
|
|
154
|
+
|
|
155
|
+
// if the reactions are empty, then set summaryViewParticleEffectEmojiId to null to clear the particle effect state
|
|
156
|
+
useEffect(function () {
|
|
157
|
+
if (reactions.length === 0) {
|
|
158
|
+
setSummaryViewParticleEffectEmojiId(null);
|
|
159
|
+
}
|
|
160
|
+
}, [reactions]);
|
|
154
161
|
var _useAnalyticsEvents = useAnalyticsEvents(),
|
|
155
162
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
156
163
|
var openTime = useRef();
|
|
@@ -72,10 +72,6 @@ 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 for controlling the overflow of the reaction picker
|
|
77
|
-
*/
|
|
78
|
-
reactionsPickerPreventOverflowOptions?: Record<string, any>;
|
|
79
75
|
/**
|
|
80
76
|
* Optional prop for controlling icon inside Trigger
|
|
81
77
|
*/
|
|
@@ -72,10 +72,6 @@ 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 for controlling the overflow of the reaction picker
|
|
77
|
-
*/
|
|
78
|
-
reactionsPickerPreventOverflowOptions?: Record<string, any>;
|
|
79
75
|
/**
|
|
80
76
|
* Optional prop for controlling icon inside Trigger
|
|
81
77
|
*/
|
|
@@ -45,9 +45,10 @@ interface ReactionSummaryViewProps extends Pick<ReactionsProps, 'emojiProvider'
|
|
|
45
45
|
/**
|
|
46
46
|
* Optional function when the user wants to open the Reactions Dialog
|
|
47
47
|
*/
|
|
48
|
-
handleOpenReactionsDialog?: (options?: OpenReactionsDialogOptions) => void
|
|
48
|
+
handleOpenReactionsDialog?: (options?: OpenReactionsDialogOptions) => void;
|
|
49
|
+
/**
|
|
49
50
|
* Optional prop for controlling if the reactions component is view only, disabling adding reactions
|
|
50
|
-
|
|
51
|
+
*/
|
|
51
52
|
isViewOnly?: boolean;
|
|
52
53
|
/**
|
|
53
54
|
* Optional event handler when the emoji picker is opened
|
|
@@ -33,7 +33,7 @@ export declare const RENDER_VIEWALL_REACTED_USERS_DIALOG = "viewall-reacted-user
|
|
|
33
33
|
* Test id for summary view of reactions
|
|
34
34
|
*/
|
|
35
35
|
export declare const RENDER_REACTIONS_SUMMARY_TESTID = "reaction-summary-view";
|
|
36
|
-
export interface ReactionsProps extends Pick<ReactionPickerProps, 'allowAllEmojis' | 'emojiProvider' | 'emojiPickerSize' | 'miniMode' | 'reactionPickerTriggerIcon' | 'reactionPickerPlacement'
|
|
36
|
+
export interface ReactionsProps extends Pick<ReactionPickerProps, 'allowAllEmojis' | 'emojiProvider' | 'emojiPickerSize' | 'miniMode' | 'reactionPickerTriggerIcon' | 'reactionPickerPlacement'>, Pick<SelectorProps, 'pickerQuickReactionEmojiIds'> {
|
|
37
37
|
/**
|
|
38
38
|
* event handler to fetching the reactions
|
|
39
39
|
*/
|
|
@@ -72,10 +72,6 @@ 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 for controlling the overflow of the reaction picker
|
|
77
|
-
*/
|
|
78
|
-
reactionsPickerPreventOverflowOptions?: Record<string, any>;
|
|
79
75
|
/**
|
|
80
76
|
* Optional prop for controlling icon inside Trigger
|
|
81
77
|
*/
|
|
@@ -72,10 +72,6 @@ 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 for controlling the overflow of the reaction picker
|
|
77
|
-
*/
|
|
78
|
-
reactionsPickerPreventOverflowOptions?: Record<string, any>;
|
|
79
75
|
/**
|
|
80
76
|
* Optional prop for controlling icon inside Trigger
|
|
81
77
|
*/
|
|
@@ -45,9 +45,10 @@ interface ReactionSummaryViewProps extends Pick<ReactionsProps, 'emojiProvider'
|
|
|
45
45
|
/**
|
|
46
46
|
* Optional function when the user wants to open the Reactions Dialog
|
|
47
47
|
*/
|
|
48
|
-
handleOpenReactionsDialog?: (options?: OpenReactionsDialogOptions) => void
|
|
48
|
+
handleOpenReactionsDialog?: (options?: OpenReactionsDialogOptions) => void;
|
|
49
|
+
/**
|
|
49
50
|
* Optional prop for controlling if the reactions component is view only, disabling adding reactions
|
|
50
|
-
|
|
51
|
+
*/
|
|
51
52
|
isViewOnly?: boolean;
|
|
52
53
|
/**
|
|
53
54
|
* Optional event handler when the emoji picker is opened
|
|
@@ -33,7 +33,7 @@ export declare const RENDER_VIEWALL_REACTED_USERS_DIALOG = "viewall-reacted-user
|
|
|
33
33
|
* Test id for summary view of reactions
|
|
34
34
|
*/
|
|
35
35
|
export declare const RENDER_REACTIONS_SUMMARY_TESTID = "reaction-summary-view";
|
|
36
|
-
export interface ReactionsProps extends Pick<ReactionPickerProps, 'allowAllEmojis' | 'emojiProvider' | 'emojiPickerSize' | 'miniMode' | 'reactionPickerTriggerIcon' | 'reactionPickerPlacement'
|
|
36
|
+
export interface ReactionsProps extends Pick<ReactionPickerProps, 'allowAllEmojis' | 'emojiProvider' | 'emojiPickerSize' | 'miniMode' | 'reactionPickerTriggerIcon' | 'reactionPickerPlacement'>, Pick<SelectorProps, 'pickerQuickReactionEmojiIds'> {
|
|
37
37
|
/**
|
|
38
38
|
* event handler to fetching the reactions
|
|
39
39
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/reactions",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "33.0.1",
|
|
4
4
|
"description": "Reactions component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -134,6 +134,9 @@
|
|
|
134
134
|
},
|
|
135
135
|
"dst-a11y__replace-anchor-with-link__editor-collabo": {
|
|
136
136
|
"type": "boolean"
|
|
137
|
+
},
|
|
138
|
+
"should-render-to-parent-should-be-true-editor-coll": {
|
|
139
|
+
"type": "boolean"
|
|
137
140
|
}
|
|
138
141
|
},
|
|
139
142
|
"sideEffects": [
|