@atlaskit/reactions 32.0.0 → 33.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 +17 -0
- package/afm-cc/tsconfig.json +1 -1
- 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/es2019/analytics/index.js +1 -1
- package/dist/es2019/components/ReactionPicker.js +0 -7
- package/dist/es2019/components/ReactionPickerNew.js +0 -7
- 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/types/components/ReactionPicker.d.ts +0 -4
- package/dist/types/components/ReactionPickerNew.d.ts +0 -4
- 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/Reactions.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/reactions
|
|
2
2
|
|
|
3
|
+
## 33.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#167562](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/167562)
|
|
8
|
+
[`7716ba2e99acf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7716ba2e99acf) -
|
|
9
|
+
[ux] Removing prevent overflow options from the reactions picker component since it is no longer
|
|
10
|
+
being used
|
|
11
|
+
|
|
12
|
+
## 32.0.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#166885](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/166885)
|
|
17
|
+
[`51bd4b21a4845`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/51bd4b21a4845) -
|
|
18
|
+
Adding vr tests for the summary view icon after prop
|
|
19
|
+
|
|
3
20
|
## 32.0.0
|
|
4
21
|
|
|
5
22
|
### Major Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -11,7 +11,7 @@ var _analyticsGasTypes = require("@atlaskit/analytics-gas-types");
|
|
|
11
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
12
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
13
|
var packageName = "@atlaskit/reactions";
|
|
14
|
-
var packageVersion = "
|
|
14
|
+
var packageVersion = "33.0.0";
|
|
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
|
|
@@ -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.0";
|
|
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
|
/**
|
|
@@ -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.0";
|
|
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
|
|
@@ -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
|
*/
|
|
@@ -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
|
*/
|
|
@@ -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.0",
|
|
4
4
|
"description": "Reactions component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@atlaskit/spinner": "^18.0.0",
|
|
55
55
|
"@atlaskit/tabs": "^18.1.0",
|
|
56
56
|
"@atlaskit/theme": "^18.0.0",
|
|
57
|
-
"@atlaskit/tokens": "^5.
|
|
57
|
+
"@atlaskit/tokens": "^5.1.0",
|
|
58
58
|
"@atlaskit/tooltip": "^20.3.0",
|
|
59
59
|
"@atlaskit/ufo": "^0.4.0",
|
|
60
60
|
"@atlaskit/util-service-support": "^6.3.0",
|