@atlaskit/reactions 36.7.9 → 36.7.11
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 +12 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/client/ReactionServiceClient.js +2 -2
- package/dist/cjs/components/Reaction.js +6 -5
- package/dist/cjs/components/ReactionButton.js +2 -2
- package/dist/cjs/components/ReactionParticleEffect.js +2 -2
- package/dist/cjs/components/ReactionSummaryButton.js +12 -9
- package/dist/cjs/components/ReactionSummaryView.js +8 -6
- package/dist/cjs/components/ReactionView.js +6 -5
- package/dist/cjs/components/ReactionsDialog.js +2 -2
- package/dist/cjs/components/ReactionsDialogHeader.js +14 -11
- package/dist/cjs/components/ReactionsDialogTrigger.js +2 -2
- package/dist/cjs/components/ReactionsList.js +2 -2
- package/dist/cjs/components/StaticReaction.js +2 -2
- package/dist/cjs/components/Trigger.js +5 -4
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/client/ReactionServiceClient.js +1 -1
- package/dist/es2019/components/Reaction.js +3 -2
- package/dist/es2019/components/ReactionButton.js +1 -1
- package/dist/es2019/components/ReactionParticleEffect.js +1 -1
- package/dist/es2019/components/ReactionSummaryButton.js +5 -2
- package/dist/es2019/components/ReactionSummaryView.js +4 -2
- package/dist/es2019/components/ReactionView.js +2 -1
- package/dist/es2019/components/ReactionsDialog.js +1 -1
- package/dist/es2019/components/ReactionsDialogHeader.js +5 -2
- package/dist/es2019/components/ReactionsDialogTrigger.js +1 -1
- package/dist/es2019/components/ReactionsList.js +1 -1
- package/dist/es2019/components/StaticReaction.js +1 -1
- package/dist/es2019/components/Trigger.js +2 -1
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/client/ReactionServiceClient.js +1 -1
- package/dist/esm/components/Reaction.js +3 -2
- package/dist/esm/components/ReactionButton.js +1 -1
- package/dist/esm/components/ReactionParticleEffect.js +1 -1
- package/dist/esm/components/ReactionSummaryButton.js +5 -2
- package/dist/esm/components/ReactionSummaryView.js +4 -2
- package/dist/esm/components/ReactionView.js +2 -1
- package/dist/esm/components/ReactionsDialog.js +1 -1
- package/dist/esm/components/ReactionsDialogHeader.js +5 -2
- package/dist/esm/components/ReactionsDialogTrigger.js +1 -1
- package/dist/esm/components/ReactionsList.js +1 -1
- package/dist/esm/components/StaticReaction.js +1 -1
- package/dist/esm/components/Trigger.js +2 -1
- package/dist/types/components/Reaction.d.ts +1 -1
- package/dist/types/components/ReactionParticleEffect.d.ts +1 -1
- package/dist/types/components/ReactionSummaryButton.d.ts +4 -4
- package/dist/types/components/ReactionsDialog.d.ts +1 -1
- package/dist/types/components/ReactionsDialogHeader.d.ts +1 -1
- package/dist/types/components/UfoErrorBoundary.d.ts +1 -1
- package/dist/types/constants.d.ts +2 -1
- package/dist/types/store/MemoryReactionsStore.d.ts +1 -1
- package/dist/types/ufo/index.d.ts +1 -1
- package/docs/0-intro.tsx +1 -1
- package/docs/1-connected-reaction-picker.tsx +1 -1
- package/docs/2-connected-reactions-view.tsx +1 -1
- package/docs/3-reactions-store.tsx +1 -1
- package/docs/5-graphql-support.tsx +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -11,7 +11,7 @@ var _createAndFireEvents = _interopRequireDefault(require("@atlaskit/analytics-n
|
|
|
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; } // eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
13
13
|
var packageName = "@atlaskit/reactions";
|
|
14
|
-
var packageVersion = "36.7.
|
|
14
|
+
var packageVersion = "36.7.10";
|
|
15
15
|
/**
|
|
16
16
|
* TODO: move to utility package?
|
|
17
17
|
* A random sampling function
|
|
@@ -8,7 +8,7 @@ exports.ReactionServiceClient = void 0;
|
|
|
8
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
-
var
|
|
11
|
+
var _constants = require("@atlaskit/util-service-support/constants");
|
|
12
12
|
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; }
|
|
13
13
|
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; }
|
|
14
14
|
/**
|
|
@@ -37,7 +37,7 @@ var ReactionServiceClient = exports.ReactionServiceClient = /*#__PURE__*/functio
|
|
|
37
37
|
* @param options Optional custom params
|
|
38
38
|
*/
|
|
39
39
|
(0, _defineProperty2.default)(this, "requestService", function (path, options) {
|
|
40
|
-
return
|
|
40
|
+
return _constants.utils.requestService(_this.serviceConfig, _objectSpread(_objectSpread({}, options), {}, {
|
|
41
41
|
path: path
|
|
42
42
|
}));
|
|
43
43
|
});
|
|
@@ -17,9 +17,10 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
17
17
|
var _reactIntl = require("react-intl");
|
|
18
18
|
var _useAnalyticsEvents2 = require("@atlaskit/analytics-next/useAnalyticsEvents");
|
|
19
19
|
var _css = require("@atlaskit/css");
|
|
20
|
-
var
|
|
20
|
+
var _resourcedEmoji = _interopRequireDefault(require("@atlaskit/emoji/resourced-emoji"));
|
|
21
21
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
22
|
-
var
|
|
22
|
+
var _box = require("@atlaskit/primitives/compiled/box");
|
|
23
|
+
var _inline = require("@atlaskit/primitives/compiled/inline");
|
|
23
24
|
var _analytics = require("../analytics");
|
|
24
25
|
var _constants = require("../shared/constants");
|
|
25
26
|
var _i18n = require("../shared/i18n");
|
|
@@ -142,9 +143,9 @@ var Reaction = exports.Reaction = function Reaction(_ref) {
|
|
|
142
143
|
var dismissTooltip = function dismissTooltip() {
|
|
143
144
|
setIsTooltipEnabled(false);
|
|
144
145
|
};
|
|
145
|
-
var emojiAndCount = /*#__PURE__*/React.createElement(
|
|
146
|
+
var emojiAndCount = /*#__PURE__*/React.createElement(_inline.Inline, null, /*#__PURE__*/React.createElement("div", {
|
|
146
147
|
className: (0, _runtime.ax)(["_1rjc1b66 _8hrz1nam _vwz41crf _bozgu2gc _y4ti1b66", reaction.count === 0 && "_1rjc1b66 _bozg19bv _y4tiv77o"])
|
|
147
|
-
}, /*#__PURE__*/React.createElement(
|
|
148
|
+
}, /*#__PURE__*/React.createElement(_resourcedEmoji.default, {
|
|
148
149
|
emojiProvider: emojiProvider,
|
|
149
150
|
emojiId: emojiId,
|
|
150
151
|
fitToHeight: _constants.RESOURCED_EMOJI_COMPACT_HEIGHT,
|
|
@@ -162,7 +163,7 @@ var Reaction = exports.Reaction = function Reaction(_ref) {
|
|
|
162
163
|
count: reaction.count
|
|
163
164
|
});
|
|
164
165
|
}
|
|
165
|
-
return /*#__PURE__*/React.createElement(
|
|
166
|
+
return /*#__PURE__*/React.createElement(_box.Box, {
|
|
166
167
|
xcss: (0, _css.cx)(styles.container, rootElement === 'li' ? styles.listItem : undefined, rootElement === 'li' && (0, _fg.fg)('platform_a11y_fixes_reading_order') ? styles.listItemNoMarker : undefined),
|
|
167
168
|
as: rootElement
|
|
168
169
|
}, showParticleEffect && /*#__PURE__*/React.createElement(_ReactionParticleEffect.ReactionParticleEffect, {
|
|
@@ -14,7 +14,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
14
14
|
var _react2 = require("@compiled/react");
|
|
15
15
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
16
16
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
17
|
-
var
|
|
17
|
+
var _pressable = require("@atlaskit/primitives/compiled/pressable");
|
|
18
18
|
var _FlashAnimation = require("./FlashAnimation");
|
|
19
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
20
20
|
var styles = {
|
|
@@ -52,7 +52,7 @@ var ReactionButton = exports.ReactionButton = function ReactionButton(_ref) {
|
|
|
52
52
|
_ref$dataAttributes = _ref.dataAttributes,
|
|
53
53
|
dataAttributes = _ref$dataAttributes === void 0 ? {} : _ref$dataAttributes,
|
|
54
54
|
testId = _ref.testId;
|
|
55
|
-
return /*#__PURE__*/React.createElement(
|
|
55
|
+
return /*#__PURE__*/React.createElement(_pressable.Pressable, (0, _extends2.default)({
|
|
56
56
|
onClick: onClick,
|
|
57
57
|
onMouseEnter: onMouseEnter,
|
|
58
58
|
onMouseLeave: onMouseLeave,
|
|
@@ -11,7 +11,7 @@ require("./ReactionParticleEffect.compiled.css");
|
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
13
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
14
|
-
var
|
|
14
|
+
var _resourcedEmoji = _interopRequireDefault(require("@atlaskit/emoji/resourced-emoji"));
|
|
15
15
|
var _constants = require("@atlaskit/theme/constants");
|
|
16
16
|
var _constants2 = require("../shared/constants");
|
|
17
17
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -30,7 +30,7 @@ var ReactionParticleEffect = exports.ReactionParticleEffect = function ReactionP
|
|
|
30
30
|
return /*#__PURE__*/React.createElement("div", {
|
|
31
31
|
key: index,
|
|
32
32
|
className: (0, _runtime.ax)(["_y44v7u0o _kqswstnw _154iidpf _1ltvidpf _lcxvglyw _tzy4idpf _5sagpwmj _1qen1lpd _xg4k6ebc _91vyftgi _1lac188d _jsy51n1a _7vm81dfm"])
|
|
33
|
-
}, /*#__PURE__*/React.createElement(
|
|
33
|
+
}, /*#__PURE__*/React.createElement(_resourcedEmoji.default, {
|
|
34
34
|
emojiProvider: emojiProvider,
|
|
35
35
|
emojiId: emojiId,
|
|
36
36
|
fitToHeight: _constants2.RESOURCED_EMOJI_COMPACT_HEIGHT,
|
|
@@ -14,8 +14,11 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
14
14
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
15
15
|
var _react2 = require("@compiled/react");
|
|
16
16
|
var _reactIntl = require("react-intl");
|
|
17
|
-
var
|
|
18
|
-
var
|
|
17
|
+
var _resourcedEmoji = _interopRequireDefault(require("@atlaskit/emoji/resourced-emoji"));
|
|
18
|
+
var _box = require("@atlaskit/primitives/compiled/box");
|
|
19
|
+
var _flex = require("@atlaskit/primitives/compiled/flex");
|
|
20
|
+
var _inline = require("@atlaskit/primitives/compiled/inline");
|
|
21
|
+
var _stack = require("@atlaskit/primitives/compiled/stack");
|
|
19
22
|
var _constants = require("../shared/constants");
|
|
20
23
|
var _i18n = require("../shared/i18n");
|
|
21
24
|
var _Counter = require("./Counter");
|
|
@@ -76,14 +79,14 @@ var ReactionSummaryButton = exports.ReactionSummaryButton = /*#__PURE__*/(0, _re
|
|
|
76
79
|
var topReactions = (0, _react.useMemo)(function () {
|
|
77
80
|
return getTopReactions(reactions, emojisToShow);
|
|
78
81
|
}, [emojisToShow, reactions]);
|
|
79
|
-
return /*#__PURE__*/React.createElement(
|
|
82
|
+
return /*#__PURE__*/React.createElement(_flex.Flex, {
|
|
80
83
|
xcss: styles.container,
|
|
81
84
|
ref: ref,
|
|
82
85
|
alignItems: "center",
|
|
83
86
|
justifyContent: "center"
|
|
84
|
-
}, /*#__PURE__*/React.createElement(
|
|
87
|
+
}, /*#__PURE__*/React.createElement(_stack.Stack, {
|
|
85
88
|
alignInline: "center"
|
|
86
|
-
}, summaryViewParticleEffectEmojiId && /*#__PURE__*/React.createElement(
|
|
89
|
+
}, summaryViewParticleEffectEmojiId && /*#__PURE__*/React.createElement(_box.Box, {
|
|
87
90
|
xcss: styles.particleEffectContainer
|
|
88
91
|
}, /*#__PURE__*/React.createElement(_ReactionParticleEffect.ReactionParticleEffect, {
|
|
89
92
|
key: summaryViewParticleEffectEmojiId.id,
|
|
@@ -100,19 +103,19 @@ var ReactionSummaryButton = exports.ReactionSummaryButton = /*#__PURE__*/(0, _re
|
|
|
100
103
|
ariaExpanded: isOpen,
|
|
101
104
|
showSubtleStyle: subtleReactionsSummaryAndPicker,
|
|
102
105
|
showOpaqueBackground: showOpaqueBackground
|
|
103
|
-
}, /*#__PURE__*/React.createElement(
|
|
106
|
+
}, /*#__PURE__*/React.createElement(_inline.Inline, {
|
|
104
107
|
space: "space.050",
|
|
105
108
|
xcss: (0, _react2.cx)(styles.button),
|
|
106
109
|
testId: "reaction-summary-wrapper"
|
|
107
110
|
}, topReactions.map(function (reaction) {
|
|
108
|
-
return /*#__PURE__*/React.createElement(
|
|
111
|
+
return /*#__PURE__*/React.createElement(_box.Box, {
|
|
109
112
|
xcss: styles.emoji,
|
|
110
113
|
testId: RENDER_SUMMARY_EMOJI_TESTID,
|
|
111
114
|
style: {
|
|
112
115
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlaskit/design-system/use-tokens-typography
|
|
113
116
|
lineHeight: '12px'
|
|
114
117
|
}
|
|
115
|
-
}, /*#__PURE__*/React.createElement(
|
|
118
|
+
}, /*#__PURE__*/React.createElement(_resourcedEmoji.default, {
|
|
116
119
|
key: reaction.emojiId,
|
|
117
120
|
emojiProvider: emojiProvider,
|
|
118
121
|
emojiId: {
|
|
@@ -127,7 +130,7 @@ var ReactionSummaryButton = exports.ReactionSummaryButton = /*#__PURE__*/(0, _re
|
|
|
127
130
|
value: totalReactionsCount,
|
|
128
131
|
useDarkerFont: useButtonAlignmentStyling,
|
|
129
132
|
useUpdatedStyles: useButtonAlignmentStyling
|
|
130
|
-
}), summaryButtonIconAfter && /*#__PURE__*/React.createElement(
|
|
133
|
+
}), summaryButtonIconAfter && /*#__PURE__*/React.createElement(_box.Box, {
|
|
131
134
|
xcss: styles.summaryButtonIconAfter
|
|
132
135
|
}, summaryButtonIconAfter))));
|
|
133
136
|
});
|
|
@@ -13,10 +13,12 @@ var React = _react;
|
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
15
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
16
|
-
var
|
|
16
|
+
var _emojiPicker = _interopRequireDefault(require("@atlaskit/emoji/emoji-picker"));
|
|
17
17
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
18
18
|
var _popup = require("@atlaskit/popup/popup");
|
|
19
|
-
var
|
|
19
|
+
var _box = require("@atlaskit/primitives/compiled/box");
|
|
20
|
+
var _flex = require("@atlaskit/primitives/compiled/flex");
|
|
21
|
+
var _inline = require("@atlaskit/primitives/compiled/inline");
|
|
20
22
|
var _useDelayedState3 = require("../hooks/useDelayedState");
|
|
21
23
|
var _ufo = require("../ufo");
|
|
22
24
|
var _Reaction = require("./Reaction");
|
|
@@ -192,16 +194,16 @@ var ReactionSummaryView = exports.ReactionSummaryView = function ReactionSummary
|
|
|
192
194
|
placement: placement,
|
|
193
195
|
content: function content(_ref2) {
|
|
194
196
|
var recalculatePopupPosition = _ref2.update;
|
|
195
|
-
return isEmojiPickerOpen ? /*#__PURE__*/React.createElement(
|
|
197
|
+
return isEmojiPickerOpen ? /*#__PURE__*/React.createElement(_emojiPicker.default, {
|
|
196
198
|
contentId: contentId,
|
|
197
199
|
emojiProvider: emojiProvider,
|
|
198
200
|
onSelection: onEmojiSelected,
|
|
199
201
|
size: emojiPickerSize
|
|
200
|
-
}) : /*#__PURE__*/React.createElement(
|
|
202
|
+
}) : /*#__PURE__*/React.createElement(_box.Box, {
|
|
201
203
|
testId: RENDER_SUMMARY_VIEW_POPUP_TESTID,
|
|
202
204
|
onMouseEnter: handleSummaryViewTrayMouseEnter,
|
|
203
205
|
onMouseLeave: handleSummaryViewTrayMouseLeave
|
|
204
|
-
}, allowSelectFromSummaryView && /*#__PURE__*/React.createElement(
|
|
206
|
+
}, allowSelectFromSummaryView && /*#__PURE__*/React.createElement(_flex.Flex, {
|
|
205
207
|
justifyContent: "center",
|
|
206
208
|
testId: "reaction-summary-view-emoji-picker-container"
|
|
207
209
|
}, /*#__PURE__*/React.createElement(_Trigger.Trigger, {
|
|
@@ -215,7 +217,7 @@ var ReactionSummaryView = exports.ReactionSummaryView = function ReactionSummary
|
|
|
215
217
|
showAddReactionText: true,
|
|
216
218
|
reactionPickerTriggerText: reactionPickerTriggerText,
|
|
217
219
|
fullWidthSummaryViewReactionPickerTrigger: true
|
|
218
|
-
})), /*#__PURE__*/React.createElement(
|
|
220
|
+
})), /*#__PURE__*/React.createElement(_inline.Inline, {
|
|
219
221
|
as: "ul",
|
|
220
222
|
xcss: styles.summaryList,
|
|
221
223
|
space: "space.025",
|
|
@@ -14,7 +14,8 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
14
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
15
|
var _reactIntl = require("react-intl");
|
|
16
16
|
var _Avatar = _interopRequireDefault(require("@atlaskit/avatar/Avatar"));
|
|
17
|
-
var
|
|
17
|
+
var _box = require("@atlaskit/primitives/compiled/box");
|
|
18
|
+
var _flex = require("@atlaskit/primitives/compiled/flex");
|
|
18
19
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner/spinner"));
|
|
19
20
|
var _tabPanel = _interopRequireDefault(require("@atlaskit/tabs/tab-panel"));
|
|
20
21
|
var _i18n = require("../shared/i18n");
|
|
@@ -39,10 +40,10 @@ var ReactionView = exports.ReactionView = function ReactionView(_ref) {
|
|
|
39
40
|
return ((_a$agent$name = (_a$agent = a.agent) === null || _a$agent === void 0 ? void 0 : _a$agent.name) !== null && _a$agent$name !== void 0 ? _a$agent$name : a.displayName).localeCompare((_b$agent$name = (_b$agent = b.agent) === null || _b$agent === void 0 ? void 0 : _b$agent.name) !== null && _b$agent$name !== void 0 ? _b$agent$name : b.displayName);
|
|
40
41
|
})) || [];
|
|
41
42
|
}, [reaction]);
|
|
42
|
-
return /*#__PURE__*/React.createElement(_tabPanel.default, null, /*#__PURE__*/React.createElement(
|
|
43
|
+
return /*#__PURE__*/React.createElement(_tabPanel.default, null, /*#__PURE__*/React.createElement(_flex.Flex, {
|
|
43
44
|
direction: "column",
|
|
44
45
|
xcss: styles.reactionViewStyle
|
|
45
|
-
}, alphabeticalNames.length === 0 ? /*#__PURE__*/React.createElement(
|
|
46
|
+
}, alphabeticalNames.length === 0 ? /*#__PURE__*/React.createElement(_box.Box, {
|
|
46
47
|
xcss: styles.centerSpinnerStyle
|
|
47
48
|
}, /*#__PURE__*/React.createElement(_spinner.default, {
|
|
48
49
|
size: "large",
|
|
@@ -59,7 +60,7 @@ var ReactionView = exports.ReactionView = function ReactionView(_ref) {
|
|
|
59
60
|
user: user,
|
|
60
61
|
agent: user.agent,
|
|
61
62
|
ProfileCardWrapper: ProfileCardWrapper
|
|
62
|
-
}) : ProfileCardWrapper && user.accountId ? /*#__PURE__*/React.createElement(
|
|
63
|
+
}) : ProfileCardWrapper && user.accountId ? /*#__PURE__*/React.createElement(_box.Box, {
|
|
63
64
|
xcss: styles.profileWrapperStyle
|
|
64
65
|
}, /*#__PURE__*/React.createElement(ProfileCardWrapper, {
|
|
65
66
|
userId: user.accountId,
|
|
@@ -74,7 +75,7 @@ var ReactionView = exports.ReactionView = function ReactionView(_ref) {
|
|
|
74
75
|
size: "medium",
|
|
75
76
|
src: profile,
|
|
76
77
|
testId: "profile"
|
|
77
|
-
}), /*#__PURE__*/React.createElement(
|
|
78
|
+
}), /*#__PURE__*/React.createElement(_flex.Flex, {
|
|
78
79
|
xcss: styles.userDescriptionStyle
|
|
79
80
|
}, /*#__PURE__*/React.createElement("div", null, user.agent ? /*#__PURE__*/React.createElement(_reactIntl.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.agentWithPerson, {
|
|
80
81
|
values: {
|
|
@@ -14,7 +14,7 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
14
14
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
15
15
|
var _modalBody = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-body"));
|
|
16
16
|
var _modalDialog = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-dialog"));
|
|
17
|
-
var
|
|
17
|
+
var _box = require("@atlaskit/primitives/compiled/box");
|
|
18
18
|
var _tabs = _interopRequireDefault(require("@atlaskit/tabs/tabs"));
|
|
19
19
|
var _constants = require("../shared/constants");
|
|
20
20
|
var _ReactionsDialogHeader = require("./ReactionsDialogHeader");
|
|
@@ -110,7 +110,7 @@ var ReactionsDialog = exports.ReactionsDialog = function ReactionsDialog(_ref) {
|
|
|
110
110
|
emojiProvider: emojiProvider,
|
|
111
111
|
currentReactions: currentReactions,
|
|
112
112
|
handleCloseReactionsDialog: handleCloseReactionsDialog
|
|
113
|
-
}), /*#__PURE__*/React.createElement(_modalBody.default, null, /*#__PURE__*/React.createElement(
|
|
113
|
+
}), /*#__PURE__*/React.createElement(_modalBody.default, null, /*#__PURE__*/React.createElement(_box.Box, {
|
|
114
114
|
xcss: styles.modalBodyStyle
|
|
115
115
|
}, /*#__PURE__*/React.createElement("div", {
|
|
116
116
|
className: (0, _runtime.ax)(["_1reo15vq _18m915vq _4t3i1osq _1e0c1txw _1bahv2br _kqswh2mm _1dm8q5uf _aetrb3bt _1bqqidpf _1ywu1ule _1yd81osq _1x88idpf _18postnw"])
|
|
@@ -18,7 +18,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
18
18
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
19
19
|
var _reactIntl = require("react-intl");
|
|
20
20
|
var _button = _interopRequireDefault(require("@atlaskit/button/icon/button"));
|
|
21
|
-
var
|
|
21
|
+
var _resourcedEmoji = _interopRequireDefault(require("@atlaskit/emoji/resourced-emoji"));
|
|
22
22
|
var _heading = _interopRequireDefault(require("@atlaskit/heading/heading"));
|
|
23
23
|
var _chevronLeft = _interopRequireDefault(require("@atlaskit/icon/core/chevron-left"));
|
|
24
24
|
var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/core/chevron-right"));
|
|
@@ -27,7 +27,10 @@ var _hooks = require("@atlaskit/modal-dialog/hooks");
|
|
|
27
27
|
var _modalHeader = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-header"));
|
|
28
28
|
var _modalTitle = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-title"));
|
|
29
29
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
30
|
-
var
|
|
30
|
+
var _box = require("@atlaskit/primitives/compiled/box");
|
|
31
|
+
var _flex = require("@atlaskit/primitives/compiled/flex");
|
|
32
|
+
var _inline = require("@atlaskit/primitives/compiled/inline");
|
|
33
|
+
var _stack = require("@atlaskit/primitives/compiled/stack");
|
|
31
34
|
var _tab = _interopRequireDefault(require("@atlaskit/tabs/tab"));
|
|
32
35
|
var _tabList = _interopRequireDefault(require("@atlaskit/tabs/tab-list"));
|
|
33
36
|
var _useThemeObserver2 = require("@atlaskit/tokens/use-theme-observer");
|
|
@@ -56,7 +59,7 @@ var firstElement = null;
|
|
|
56
59
|
var LeftNavigationButton = function LeftNavigationButton(_ref) {
|
|
57
60
|
var handlePreviousPage = _ref.handlePreviousPage;
|
|
58
61
|
var intl = (0, _reactIntl.useIntl)();
|
|
59
|
-
return /*#__PURE__*/React.createElement(
|
|
62
|
+
return /*#__PURE__*/React.createElement(_flex.Flex, {
|
|
60
63
|
xcss: styles.leftNavigationStyle
|
|
61
64
|
}, /*#__PURE__*/React.createElement(_button.default, {
|
|
62
65
|
spacing: "compact",
|
|
@@ -73,7 +76,7 @@ var LeftNavigationButton = function LeftNavigationButton(_ref) {
|
|
|
73
76
|
var RightNavigationButton = function RightNavigationButton(_ref2) {
|
|
74
77
|
var handleNextPage = _ref2.handleNextPage;
|
|
75
78
|
var intl = (0, _reactIntl.useIntl)();
|
|
76
|
-
return /*#__PURE__*/React.createElement(
|
|
79
|
+
return /*#__PURE__*/React.createElement(_flex.Flex, {
|
|
77
80
|
xcss: styles.rightNavigationStyle
|
|
78
81
|
}, /*#__PURE__*/React.createElement(_button.default, {
|
|
79
82
|
spacing: "compact",
|
|
@@ -145,11 +148,11 @@ var ReactionsDialogHeader = exports.ReactionsDialogHeader = function ReactionsDi
|
|
|
145
148
|
}, _callee);
|
|
146
149
|
}))();
|
|
147
150
|
};
|
|
148
|
-
return /*#__PURE__*/React.createElement(
|
|
151
|
+
return /*#__PURE__*/React.createElement(_stack.Stack, null, (0, _fg.fg)('platform_dst_modal-dialog-use-modal-title') ? /*#__PURE__*/React.createElement(_modalHeader.default, {
|
|
149
152
|
hasCloseButton: true
|
|
150
153
|
}, /*#__PURE__*/React.createElement(_modalTitle.default, null, intl.formatMessage(_i18n.messages.reactionsCount, {
|
|
151
154
|
count: totalReactionsCount
|
|
152
|
-
}))) : /*#__PURE__*/React.createElement(
|
|
155
|
+
}))) : /*#__PURE__*/React.createElement(_flex.Flex, {
|
|
153
156
|
direction: "row",
|
|
154
157
|
justifyContent: "space-between",
|
|
155
158
|
alignItems: "center",
|
|
@@ -161,7 +164,7 @@ var ReactionsDialogHeader = exports.ReactionsDialogHeader = function ReactionsDi
|
|
|
161
164
|
count: totalReactionsCount
|
|
162
165
|
})), /*#__PURE__*/React.createElement(_closeButton.CloseButton, {
|
|
163
166
|
onClick: handleCloseReactionsDialog
|
|
164
|
-
})), /*#__PURE__*/React.createElement(
|
|
167
|
+
})), /*#__PURE__*/React.createElement(_inline.Inline, null, /*#__PURE__*/React.createElement("div", {
|
|
165
168
|
id: "reactions-dialog-tabs-list",
|
|
166
169
|
className: (0, _runtime.ax)(["_1reo1wug _18m91wug _n7zlia51 _1e0c1txw _1bsb1osq _4cvr1y6m _80wau2gc _s2c4kb7n _141m1j28"])
|
|
167
170
|
}, !isSinglePage && !isOnFirstPage && /*#__PURE__*/React.createElement(LeftNavigationButton, {
|
|
@@ -187,18 +190,18 @@ var ReactionsDialogHeader = exports.ReactionsDialogHeader = function ReactionsDi
|
|
|
187
190
|
canAppear: function canAppear() {
|
|
188
191
|
return !!cache[reaction.emojiId];
|
|
189
192
|
}
|
|
190
|
-
}, /*#__PURE__*/React.createElement(
|
|
193
|
+
}, /*#__PURE__*/React.createElement(_flex.Flex, {
|
|
191
194
|
justifyContent: "center",
|
|
192
195
|
alignItems: "center",
|
|
193
196
|
direction: "row"
|
|
194
|
-
}, /*#__PURE__*/React.createElement(
|
|
197
|
+
}, /*#__PURE__*/React.createElement(_box.Box, {
|
|
195
198
|
xcss: styles.emoji
|
|
196
|
-
}, /*#__PURE__*/React.createElement(
|
|
199
|
+
}, /*#__PURE__*/React.createElement(_resourcedEmoji.default, {
|
|
197
200
|
emojiProvider: emojiProvider,
|
|
198
201
|
emojiId: emojiId,
|
|
199
202
|
fitToHeight: _constants.RESOURCED_EMOJI_COMPACT_HEIGHT,
|
|
200
203
|
showTooltip: true
|
|
201
|
-
})), /*#__PURE__*/React.createElement(
|
|
204
|
+
})), /*#__PURE__*/React.createElement(_box.Box, {
|
|
202
205
|
xcss: styles.counterStyle
|
|
203
206
|
}, /*#__PURE__*/React.createElement(_Counter.Counter, {
|
|
204
207
|
value: reaction.count
|
|
@@ -13,7 +13,7 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
13
13
|
var _react2 = require("@compiled/react");
|
|
14
14
|
var _reactIntl = require("react-intl");
|
|
15
15
|
var _showMoreHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/show-more-horizontal"));
|
|
16
|
-
var
|
|
16
|
+
var _pressable = require("@atlaskit/primitives/compiled/pressable");
|
|
17
17
|
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
18
18
|
var _i18n = require("../shared/i18n");
|
|
19
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -26,7 +26,7 @@ var styles = {
|
|
|
26
26
|
var ReactionsDialogTrigger = exports.ReactionsDialogTrigger = function ReactionsDialogTrigger(_ref) {
|
|
27
27
|
var onClick = _ref.onClick;
|
|
28
28
|
var intl = (0, _reactIntl.useIntl)();
|
|
29
|
-
return /*#__PURE__*/React.createElement(
|
|
29
|
+
return /*#__PURE__*/React.createElement(_pressable.Pressable, {
|
|
30
30
|
xcss: (0, _react2.cx)(styles.trigger, styles.transparentEnabledTrigger),
|
|
31
31
|
onClick: onClick,
|
|
32
32
|
"aria-label": intl.formatMessage(_i18n.messages.seeWhoReactedTooltip)
|
|
@@ -6,13 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.ReactionsList = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _box = require("@atlaskit/primitives/compiled/box");
|
|
10
10
|
var _ReactionView = require("./ReactionView");
|
|
11
11
|
var ReactionsList = exports.ReactionsList = function ReactionsList(_ref) {
|
|
12
12
|
var reactions = _ref.reactions,
|
|
13
13
|
selectedEmojiId = _ref.selectedEmojiId,
|
|
14
14
|
ProfileCardWrapper = _ref.ProfileCardWrapper;
|
|
15
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
15
|
+
return /*#__PURE__*/_react.default.createElement(_box.Box, null, reactions.map(function (reaction) {
|
|
16
16
|
if (reaction.emojiId === selectedEmojiId) {
|
|
17
17
|
return /*#__PURE__*/_react.default.createElement(_ReactionView.ReactionView, {
|
|
18
18
|
key: reaction.emojiId,
|
|
@@ -11,7 +11,7 @@ require("./StaticReaction.compiled.css");
|
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
13
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
14
|
-
var
|
|
14
|
+
var _pressable = require("@atlaskit/primitives/compiled/pressable");
|
|
15
15
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
16
16
|
var styles = {
|
|
17
17
|
staticReaction: "_1reo15vq _18m915vq _19itglyw _2rko12b0 _v564k6bl _1e0c1txw _2lx2vrvc _4cvr1y6m _1ul914no _4t3i1tcg _bfhksm61 _syazazsu _1pfh1b66 _12l21b66 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _d0al73ad _irr31dpa"
|
|
@@ -23,7 +23,7 @@ var StaticReaction = exports.StaticReaction = function StaticReaction(_ref) {
|
|
|
23
23
|
testId = _ref.testId,
|
|
24
24
|
_ref$dataAttributes = _ref.dataAttributes,
|
|
25
25
|
dataAttributes = _ref$dataAttributes === void 0 ? {} : _ref$dataAttributes;
|
|
26
|
-
return /*#__PURE__*/React.createElement(
|
|
26
|
+
return /*#__PURE__*/React.createElement(_pressable.Pressable, (0, _extends2.default)({
|
|
27
27
|
onMouseEnter: onMouseEnter,
|
|
28
28
|
onFocus: onFocus,
|
|
29
29
|
testId: testId,
|
|
@@ -14,7 +14,8 @@ var _react2 = require("@compiled/react");
|
|
|
14
14
|
var _reactIntl = require("react-intl");
|
|
15
15
|
var _emojiAdd = _interopRequireDefault(require("@atlaskit/icon/core/emoji-add"));
|
|
16
16
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
17
|
-
var
|
|
17
|
+
var _box = require("@atlaskit/primitives/compiled/box");
|
|
18
|
+
var _pressable = require("@atlaskit/primitives/compiled/pressable");
|
|
18
19
|
var _Tooltip = _interopRequireDefault(require("@atlaskit/tooltip/Tooltip"));
|
|
19
20
|
var styles = {
|
|
20
21
|
trigger: "_2rko1rr0 _189ee4h9 _1dqonqa1 _1ul9zwfg _4t3i1tcg _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _1e0c1txw _1bah1h6o _4cvr1h6o",
|
|
@@ -84,7 +85,7 @@ var Trigger = exports.Trigger = /*#__PURE__*/_react.default.forwardRef(function
|
|
|
84
85
|
}
|
|
85
86
|
};
|
|
86
87
|
var renderPressableButton = function renderPressableButton() {
|
|
87
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
88
|
+
return /*#__PURE__*/_react.default.createElement(_pressable.Pressable, (0, _extends2.default)({
|
|
88
89
|
testId: RENDER_TRIGGER_BUTTON_TESTID,
|
|
89
90
|
xcss: (0, _react2.cx)(styles.trigger, (fullWidthSummaryViewReactionPickerTrigger || fullWidthSelectorTrayReactionPickerTrigger) && styles.fullWidth, subtleReactionsSummaryAndPicker && styles.subtleTrigger, showAddReactionText && styles.expandedTrigger, disabled ? styles.disabledTrigger : showOpaqueBackground ? styles.opaqueEnabledTrigger : styles.transparentEnabledTrigger, miniMode && styles.miniMode, (0, _fg.fg)('platform-component-visual-refresh') && styles.triggerStylesRefresh),
|
|
90
91
|
style: {
|
|
@@ -105,11 +106,11 @@ var Trigger = exports.Trigger = /*#__PURE__*/_react.default.forwardRef(function
|
|
|
105
106
|
label: formatMessage(i18n.addReaction),
|
|
106
107
|
"aria-hidden": true,
|
|
107
108
|
size: emojiPickerSize === 'small' ? 'small' : 'medium'
|
|
108
|
-
}), showAddReactionText && /*#__PURE__*/_react.default.createElement(
|
|
109
|
+
}), showAddReactionText && /*#__PURE__*/_react.default.createElement(_box.Box, {
|
|
109
110
|
xcss: (0, _react2.cx)(addReactionStyles.addReactionMessage)
|
|
110
111
|
}, reactionPickerTriggerText));
|
|
111
112
|
};
|
|
112
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
113
|
+
return /*#__PURE__*/_react.default.createElement(_box.Box, {
|
|
113
114
|
xcss: (0, _react2.cx)(fullWidthSummaryViewReactionPickerTrigger && styles.fullWidthSummaryViewReactionPickerTrigger, fullWidthSelectorTrayReactionPickerTrigger && styles.fullWidthSelectorTrayReactionPickerTrigger),
|
|
114
115
|
testId: RENDER_TRIGGER_CONTAINER_TESTID
|
|
115
116
|
}, /*#__PURE__*/_react.default.createElement(_Tooltip.default, {
|
|
@@ -2,7 +2,7 @@ import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-t
|
|
|
2
2
|
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
3
3
|
import createAndFireEvent from '@atlaskit/analytics-next/createAndFireEvents';
|
|
4
4
|
const packageName = "@atlaskit/reactions";
|
|
5
|
-
const packageVersion = "36.7.
|
|
5
|
+
const packageVersion = "36.7.10";
|
|
6
6
|
/**
|
|
7
7
|
* TODO: move to utility package?
|
|
8
8
|
* A random sampling function
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import { utils } from '@atlaskit/util-service-support';
|
|
2
|
+
import { utils } from '@atlaskit/util-service-support/constants';
|
|
3
3
|
/**
|
|
4
4
|
* Utility class to retrieve/modify all actions on reactions collection
|
|
5
5
|
*/
|
|
@@ -6,9 +6,10 @@ import { useCallback, useEffect, useRef, useState } from 'react';
|
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
7
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
8
8
|
import { cx } from '@atlaskit/css';
|
|
9
|
-
import
|
|
9
|
+
import ResourcedEmoji from '@atlaskit/emoji/resourced-emoji';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
|
-
import { Box
|
|
11
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
12
|
+
import { Inline } from '@atlaskit/primitives/compiled/inline';
|
|
12
13
|
import { createAndFireSafe, createReactionClickedEvent, createReactionFocusedEvent, createReactionHoveredEvent } from '../analytics';
|
|
13
14
|
import { RESOURCED_EMOJI_COMPACT_HEIGHT } from '../shared/constants';
|
|
14
15
|
import { messages } from '../shared/i18n';
|
|
@@ -6,7 +6,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
import { cx } from '@compiled/react';
|
|
7
7
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
|
-
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
9
|
+
import { Pressable } from '@atlaskit/primitives/compiled/pressable';
|
|
10
10
|
import { FlashAnimation } from './FlashAnimation';
|
|
11
11
|
const styles = {
|
|
12
12
|
reactionButton: "_2rko1rr0 _1reo15vq _18m915vq _189ee4h9 _1dqonqa1 _1h6d1l7x _1e0c1txw _2lx2vrvc _4cvr1y6m _1ul914no _4t3i1tcg _bfhksm61 _syazazsu _1pfh1b66 _12l21b66 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _irr31dpa _1di6fcek",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./ReactionParticleEffect.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import
|
|
5
|
+
import ResourcedEmoji from '@atlaskit/emoji/resourced-emoji';
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-atlaskit-theme
|
|
7
7
|
import { layers } from '@atlaskit/theme/constants';
|
|
8
8
|
import { RESOURCED_EMOJI_COMPACT_HEIGHT } from '../shared/constants';
|
|
@@ -5,8 +5,11 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { forwardRef, useMemo } from 'react';
|
|
6
6
|
import { cx } from '@compiled/react';
|
|
7
7
|
import { useIntl } from 'react-intl';
|
|
8
|
-
import
|
|
9
|
-
import { Box
|
|
8
|
+
import ResourcedEmoji from '@atlaskit/emoji/resourced-emoji';
|
|
9
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
10
|
+
import { Flex } from '@atlaskit/primitives/compiled/flex';
|
|
11
|
+
import { Inline } from '@atlaskit/primitives/compiled/inline';
|
|
12
|
+
import { Stack } from '@atlaskit/primitives/compiled/stack';
|
|
10
13
|
import { RESOURCED_EMOJI_COMPACT_HEIGHT } from '../shared/constants';
|
|
11
14
|
import { messages } from '../shared/i18n';
|
|
12
15
|
import { Counter } from './Counter';
|
|
@@ -4,10 +4,12 @@ import "./ReactionSummaryView.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { useCallback, useState } from 'react';
|
|
7
|
-
import
|
|
7
|
+
import EmojiPicker from '@atlaskit/emoji/emoji-picker';
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
9
|
import { Popup } from '@atlaskit/popup/popup';
|
|
10
|
-
import { Box
|
|
10
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
11
|
+
import { Flex } from '@atlaskit/primitives/compiled/flex';
|
|
12
|
+
import { Inline } from '@atlaskit/primitives/compiled/inline';
|
|
11
13
|
import { useDelayedState } from '../hooks/useDelayedState';
|
|
12
14
|
import { PickerRender } from '../ufo';
|
|
13
15
|
import { Reaction } from './Reaction';
|
|
@@ -6,7 +6,8 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
import { useMemo } from 'react';
|
|
7
7
|
import { FormattedMessage } from 'react-intl';
|
|
8
8
|
import Avatar from '@atlaskit/avatar/Avatar';
|
|
9
|
-
import { Box
|
|
9
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
10
|
+
import { Flex } from '@atlaskit/primitives/compiled/flex';
|
|
10
11
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
11
12
|
import TabPanel from '@atlaskit/tabs/tab-panel';
|
|
12
13
|
import { messages } from '../shared/i18n';
|
|
@@ -5,7 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { useEffect, useState, useCallback, useMemo } from 'react';
|
|
6
6
|
import ModalBody from '@atlaskit/modal-dialog/modal-body';
|
|
7
7
|
import Modal from '@atlaskit/modal-dialog/modal-dialog';
|
|
8
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
8
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
9
9
|
import Tabs from '@atlaskit/tabs/tabs';
|
|
10
10
|
import { NUMBER_OF_REACTIONS_TO_DISPLAY } from '../shared/constants';
|
|
11
11
|
import { ReactionsDialogHeader } from './ReactionsDialogHeader';
|
|
@@ -6,7 +6,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
import { useState } from 'react';
|
|
7
7
|
import { useIntl } from 'react-intl';
|
|
8
8
|
import IconButton from '@atlaskit/button/icon/button';
|
|
9
|
-
import
|
|
9
|
+
import ResourcedEmoji from '@atlaskit/emoji/resourced-emoji';
|
|
10
10
|
import Heading from '@atlaskit/heading/heading';
|
|
11
11
|
import ChevronLeftIcon from '@atlaskit/icon/core/chevron-left';
|
|
12
12
|
import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
|
|
@@ -15,7 +15,10 @@ import { useModal } from '@atlaskit/modal-dialog/hooks';
|
|
|
15
15
|
import ModalHeader from '@atlaskit/modal-dialog/modal-header';
|
|
16
16
|
import ModalTitle from '@atlaskit/modal-dialog/modal-title';
|
|
17
17
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
18
|
-
import { Box
|
|
18
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
19
|
+
import { Flex } from '@atlaskit/primitives/compiled/flex';
|
|
20
|
+
import { Inline } from '@atlaskit/primitives/compiled/inline';
|
|
21
|
+
import { Stack } from '@atlaskit/primitives/compiled/stack';
|
|
19
22
|
import Tab from '@atlaskit/tabs/tab';
|
|
20
23
|
import TabList from '@atlaskit/tabs/tab-list';
|
|
21
24
|
import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
|
|
@@ -5,7 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { cx } from '@compiled/react';
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
7
|
import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
8
|
-
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
8
|
+
import { Pressable } from '@atlaskit/primitives/compiled/pressable';
|
|
9
9
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
10
10
|
import { messages } from '../shared/i18n';
|
|
11
11
|
const styles = {
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./StaticReaction.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
-
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
6
|
+
import { Pressable } from '@atlaskit/primitives/compiled/pressable';
|
|
7
7
|
const styles = {
|
|
8
8
|
staticReaction: "_1reo15vq _18m915vq _19itglyw _2rko12b0 _v564k6bl _1e0c1txw _2lx2vrvc _4cvr1y6m _1ul914no _4t3i1tcg _bfhksm61 _syazazsu _1pfh1b66 _12l21b66 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _d0al73ad _irr31dpa"
|
|
9
9
|
};
|
|
@@ -7,7 +7,8 @@ import { cx } from '@compiled/react';
|
|
|
7
7
|
import { defineMessages, useIntl } from 'react-intl';
|
|
8
8
|
import EmojiAddIcon from '@atlaskit/icon/core/emoji-add';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
|
-
import { Box
|
|
10
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
11
|
+
import { Pressable } from '@atlaskit/primitives/compiled/pressable';
|
|
11
12
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
12
13
|
const styles = {
|
|
13
14
|
trigger: "_2rko1rr0 _189ee4h9 _1dqonqa1 _1ul9zwfg _4t3i1tcg _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _1e0c1txw _1bah1h6o _4cvr1h6o",
|
|
@@ -5,7 +5,7 @@ import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-t
|
|
|
5
5
|
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
6
6
|
import createAndFireEvent from '@atlaskit/analytics-next/createAndFireEvents';
|
|
7
7
|
var packageName = "@atlaskit/reactions";
|
|
8
|
-
var packageVersion = "36.7.
|
|
8
|
+
var packageVersion = "36.7.10";
|
|
9
9
|
/**
|
|
10
10
|
* TODO: move to utility package?
|
|
11
11
|
* A random sampling function
|
|
@@ -3,7 +3,7 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
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; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
-
import { utils } from '@atlaskit/util-service-support';
|
|
6
|
+
import { utils } from '@atlaskit/util-service-support/constants';
|
|
7
7
|
/**
|
|
8
8
|
* Utility class to retrieve/modify all actions on reactions collection
|
|
9
9
|
*/
|
|
@@ -9,9 +9,10 @@ import { useCallback, useEffect, useRef, useState } from 'react';
|
|
|
9
9
|
import { useIntl } from 'react-intl';
|
|
10
10
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
|
|
11
11
|
import { cx } from '@atlaskit/css';
|
|
12
|
-
import
|
|
12
|
+
import ResourcedEmoji from '@atlaskit/emoji/resourced-emoji';
|
|
13
13
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
|
-
import { Box
|
|
14
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
15
|
+
import { Inline } from '@atlaskit/primitives/compiled/inline';
|
|
15
16
|
import { createAndFireSafe, createReactionClickedEvent, createReactionFocusedEvent, createReactionHoveredEvent } from '../analytics';
|
|
16
17
|
import { RESOURCED_EMOJI_COMPACT_HEIGHT } from '../shared/constants';
|
|
17
18
|
import { messages } from '../shared/i18n';
|
|
@@ -6,7 +6,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
import { cx } from '@compiled/react';
|
|
7
7
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
|
-
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
9
|
+
import { Pressable } from '@atlaskit/primitives/compiled/pressable';
|
|
10
10
|
import { FlashAnimation } from './FlashAnimation';
|
|
11
11
|
var styles = {
|
|
12
12
|
reactionButton: "_2rko1rr0 _1reo15vq _18m915vq _189ee4h9 _1dqonqa1 _1h6d1l7x _1e0c1txw _2lx2vrvc _4cvr1y6m _1ul914no _4t3i1tcg _bfhksm61 _syazazsu _1pfh1b66 _12l21b66 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _irr31dpa _1di6fcek",
|
|
@@ -3,7 +3,7 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
3
3
|
import "./ReactionParticleEffect.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
-
import
|
|
6
|
+
import ResourcedEmoji from '@atlaskit/emoji/resourced-emoji';
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-atlaskit-theme
|
|
8
8
|
import { layers } from '@atlaskit/theme/constants';
|
|
9
9
|
import { RESOURCED_EMOJI_COMPACT_HEIGHT } from '../shared/constants';
|
|
@@ -6,8 +6,11 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
import { forwardRef, useMemo } from 'react';
|
|
7
7
|
import { cx } from '@compiled/react';
|
|
8
8
|
import { useIntl } from 'react-intl';
|
|
9
|
-
import
|
|
10
|
-
import { Box
|
|
9
|
+
import ResourcedEmoji from '@atlaskit/emoji/resourced-emoji';
|
|
10
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
11
|
+
import { Flex } from '@atlaskit/primitives/compiled/flex';
|
|
12
|
+
import { Inline } from '@atlaskit/primitives/compiled/inline';
|
|
13
|
+
import { Stack } from '@atlaskit/primitives/compiled/stack';
|
|
11
14
|
import { RESOURCED_EMOJI_COMPACT_HEIGHT } from '../shared/constants';
|
|
12
15
|
import { messages } from '../shared/i18n';
|
|
13
16
|
import { Counter } from './Counter';
|
|
@@ -5,10 +5,12 @@ import "./ReactionSummaryView.compiled.css";
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
7
|
import { useCallback, useState } from 'react';
|
|
8
|
-
import
|
|
8
|
+
import EmojiPicker from '@atlaskit/emoji/emoji-picker';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
10
|
import { Popup } from '@atlaskit/popup/popup';
|
|
11
|
-
import { Box
|
|
11
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
12
|
+
import { Flex } from '@atlaskit/primitives/compiled/flex';
|
|
13
|
+
import { Inline } from '@atlaskit/primitives/compiled/inline';
|
|
12
14
|
import { useDelayedState } from '../hooks/useDelayedState';
|
|
13
15
|
import { PickerRender } from '../ufo';
|
|
14
16
|
import { Reaction } from './Reaction';
|
|
@@ -6,7 +6,8 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
import { useMemo } from 'react';
|
|
7
7
|
import { FormattedMessage } from 'react-intl';
|
|
8
8
|
import Avatar from '@atlaskit/avatar/Avatar';
|
|
9
|
-
import { Box
|
|
9
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
10
|
+
import { Flex } from '@atlaskit/primitives/compiled/flex';
|
|
10
11
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
11
12
|
import TabPanel from '@atlaskit/tabs/tab-panel';
|
|
12
13
|
import { messages } from '../shared/i18n';
|
|
@@ -6,7 +6,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
import { useEffect, useState, useCallback, useMemo } from 'react';
|
|
7
7
|
import ModalBody from '@atlaskit/modal-dialog/modal-body';
|
|
8
8
|
import Modal from '@atlaskit/modal-dialog/modal-dialog';
|
|
9
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
9
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
10
10
|
import Tabs from '@atlaskit/tabs/tabs';
|
|
11
11
|
import { NUMBER_OF_REACTIONS_TO_DISPLAY } from '../shared/constants';
|
|
12
12
|
import { ReactionsDialogHeader } from './ReactionsDialogHeader';
|
|
@@ -12,7 +12,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
12
12
|
import { useState } from 'react';
|
|
13
13
|
import { useIntl } from 'react-intl';
|
|
14
14
|
import IconButton from '@atlaskit/button/icon/button';
|
|
15
|
-
import
|
|
15
|
+
import ResourcedEmoji from '@atlaskit/emoji/resourced-emoji';
|
|
16
16
|
import Heading from '@atlaskit/heading/heading';
|
|
17
17
|
import ChevronLeftIcon from '@atlaskit/icon/core/chevron-left';
|
|
18
18
|
import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
|
|
@@ -21,7 +21,10 @@ import { useModal } from '@atlaskit/modal-dialog/hooks';
|
|
|
21
21
|
import ModalHeader from '@atlaskit/modal-dialog/modal-header';
|
|
22
22
|
import ModalTitle from '@atlaskit/modal-dialog/modal-title';
|
|
23
23
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
24
|
-
import { Box
|
|
24
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
25
|
+
import { Flex } from '@atlaskit/primitives/compiled/flex';
|
|
26
|
+
import { Inline } from '@atlaskit/primitives/compiled/inline';
|
|
27
|
+
import { Stack } from '@atlaskit/primitives/compiled/stack';
|
|
25
28
|
import Tab from '@atlaskit/tabs/tab';
|
|
26
29
|
import TabList from '@atlaskit/tabs/tab-list';
|
|
27
30
|
import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
|
|
@@ -5,7 +5,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { cx } from '@compiled/react';
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
7
|
import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
8
|
-
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
8
|
+
import { Pressable } from '@atlaskit/primitives/compiled/pressable';
|
|
9
9
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
10
10
|
import { messages } from '../shared/i18n';
|
|
11
11
|
var styles = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
2
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
3
3
|
import { ReactionView } from './ReactionView';
|
|
4
4
|
export var ReactionsList = function ReactionsList(_ref) {
|
|
5
5
|
var reactions = _ref.reactions,
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./StaticReaction.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
-
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
6
|
+
import { Pressable } from '@atlaskit/primitives/compiled/pressable';
|
|
7
7
|
var styles = {
|
|
8
8
|
staticReaction: "_1reo15vq _18m915vq _19itglyw _2rko12b0 _v564k6bl _1e0c1txw _2lx2vrvc _4cvr1y6m _1ul914no _4t3i1tcg _bfhksm61 _syazazsu _1pfh1b66 _12l21b66 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _d0al73ad _irr31dpa"
|
|
9
9
|
};
|
|
@@ -7,7 +7,8 @@ import { cx } from '@compiled/react';
|
|
|
7
7
|
import { defineMessages, useIntl } from 'react-intl';
|
|
8
8
|
import EmojiAddIcon from '@atlaskit/icon/core/emoji-add';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
|
-
import { Box
|
|
10
|
+
import { Box } from '@atlaskit/primitives/compiled/box';
|
|
11
|
+
import { Pressable } from '@atlaskit/primitives/compiled/pressable';
|
|
11
12
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
12
13
|
var styles = {
|
|
13
14
|
trigger: "_2rko1rr0 _189ee4h9 _1dqonqa1 _1ul9zwfg _4t3i1tcg _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _1e0c1txw _1bah1h6o _4cvr1h6o",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { EmojiProvider } from '@atlaskit/emoji/types';
|
|
2
2
|
import { type ReactionSummary, type ReactionClick, type ReactionMouseEnter } from '../types';
|
|
3
3
|
import { type ReactionFocused } from '../types/reaction';
|
|
4
4
|
import { type OpenReactionsDialogOptions } from './Reactions';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
5
|
+
import type { EmojiProvider, EmojiId } from '@atlaskit/emoji/types';
|
|
6
6
|
export declare const PARTICLE_COUNT = 4;
|
|
7
7
|
interface ReactionParticleEffectProps {
|
|
8
8
|
/**
|
|
@@ -9,6 +9,10 @@ interface ReactionSummaryButtonProps extends Pick<ReactionsProps, 'emojiProvider
|
|
|
9
9
|
* The number of emojis to show in the summary button
|
|
10
10
|
*/
|
|
11
11
|
emojisToShow?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Optional prop to indicate whether the summary popup is open, used for aria-expanded
|
|
14
|
+
*/
|
|
15
|
+
isOpen?: boolean;
|
|
12
16
|
/**
|
|
13
17
|
* event handler when the summary button is clicked to view all reactions
|
|
14
18
|
*/
|
|
@@ -44,10 +48,6 @@ interface ReactionSummaryButtonProps extends Pick<ReactionsProps, 'emojiProvider
|
|
|
44
48
|
id: string;
|
|
45
49
|
shortName: string;
|
|
46
50
|
} | null;
|
|
47
|
-
/**
|
|
48
|
-
* Optional prop to indicate whether the summary popup is open, used for aria-expanded
|
|
49
|
-
*/
|
|
50
|
-
isOpen?: boolean;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* Test id for summary reaction wrapper button
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { EmojiProvider } from '@atlaskit/emoji/types';
|
|
2
2
|
import type { OnCloseHandler } from '@atlaskit/modal-dialog/types';
|
|
3
3
|
import { type ReactionSummary, type ProfileCardWrapper } from '../types';
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { EmojiProvider } from '@atlaskit/emoji/types';
|
|
2
2
|
import type { OnCloseHandler } from '@atlaskit/modal-dialog/types';
|
|
3
3
|
import { type ReactionSummary } from '../types';
|
|
4
4
|
interface ReactionsDialogModalHeaderProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { type ErrorInfo } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { WithSamplingUFOExperience } from '@atlaskit/emoji/sampling-ufo';
|
|
3
3
|
import type { UFOExperience } from '@atlaskit/ufo/experience';
|
|
4
4
|
export interface UfoErrorBoundaryProps {
|
|
5
5
|
children?: React.ReactNode;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { WithSamplingUFOExperience } from '@atlaskit/emoji/sampling-ufo';
|
|
2
|
+
import type { EmojiId } from '@atlaskit/emoji/types';
|
|
2
3
|
import type { ConcurrentExperience } from '@atlaskit/ufo/concurrent-experience';
|
|
3
4
|
import type { UFOExperience } from '@atlaskit/ufo/experience';
|
|
4
5
|
import { ComponentName, ExperienceName } from './ufo';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
2
|
-
import type { WithSamplingUFOExperience } from '@atlaskit/emoji';
|
|
2
|
+
import type { WithSamplingUFOExperience } from '@atlaskit/emoji/sampling-ufo';
|
|
3
3
|
import type { ConcurrentExperience } from '@atlaskit/ufo/concurrent-experience';
|
|
4
4
|
import { type Client, type OnChangeCallback, type State, type Store } from '../types';
|
|
5
5
|
import { type ReactionUpdateSuccess, type ReactionUpdateFailure } from '../types/reaction';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WithSamplingUFOExperience } from '@atlaskit/emoji/sampling-ufo';
|
|
2
2
|
import { ConcurrentExperience } from '@atlaskit/ufo/concurrent-experience';
|
|
3
3
|
import { UFOExperience } from '@atlaskit/ufo/experience';
|
|
4
4
|
/**
|
package/docs/0-intro.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import Link from '@atlaskit/link/link';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { md, Example, Props, code, AtlassianInternalWarning } from '@atlaskit/docs';
|
|
4
4
|
import SectionMessage from '@atlaskit/section-message/message';
|
|
5
|
-
import { Text } from '@atlaskit/primitives/compiled';
|
|
5
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
6
6
|
|
|
7
7
|
import ReactionsExample from '../examples/01-connected-reactions-view';
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { md, Example, code, Props } from '@atlaskit/docs';
|
|
3
3
|
import SectionMessage from '@atlaskit/section-message/message';
|
|
4
|
-
import { Text } from '@atlaskit/primitives/compiled';
|
|
4
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
5
5
|
|
|
6
6
|
import ConnectedReactionPickerExample from '../examples/00-connected-reaction-picker';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { md, Example, code, Props } from '@atlaskit/docs';
|
|
3
3
|
import SectionMessage from '@atlaskit/section-message/message';
|
|
4
|
-
import { Text } from '@atlaskit/primitives/compiled';
|
|
4
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
5
5
|
|
|
6
6
|
import ConnectedReactionsViewExample from '../examples/01-connected-reactions-view';
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@ import Link from '@atlaskit/link/link';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { md, code, Props } from '@atlaskit/docs';
|
|
4
4
|
import SectionMessage from '@atlaskit/section-message/message';
|
|
5
|
-
import { Text } from '@atlaskit/primitives/compiled';
|
|
5
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
6
6
|
|
|
7
7
|
const LinkComponent = (props: any) => <Link {...props}>{props.children}</Link>;
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { md, code, Props } from '@atlaskit/docs';
|
|
3
3
|
import SectionMessage from '@atlaskit/section-message/message';
|
|
4
|
-
import { Text } from '@atlaskit/primitives/compiled';
|
|
4
|
+
import { Text } from '@atlaskit/primitives/compiled/text';
|
|
5
5
|
|
|
6
6
|
const _default_1: any = md`
|
|
7
7
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/reactions",
|
|
3
|
-
"version": "36.7.
|
|
3
|
+
"version": "36.7.11",
|
|
4
4
|
"description": "Reactions component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@atlaskit/spinner": "^20.4.0",
|
|
59
59
|
"@atlaskit/tabs": "^21.3.0",
|
|
60
60
|
"@atlaskit/theme": "^28.2.0",
|
|
61
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
61
|
+
"@atlaskit/tmp-editor-statsig": "^231.0.0",
|
|
62
62
|
"@atlaskit/tokens": "^20.4.0",
|
|
63
63
|
"@atlaskit/tooltip": "^24.4.0",
|
|
64
64
|
"@atlaskit/ufo": "^2.0.0",
|