@atlaskit/reactions 37.2.14 → 37.2.16
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 +16 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/components/ReactionPicker.js +5 -2
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/components/ReactionPicker.js +3 -2
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/components/ReactionPicker.js +5 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/reactions
|
|
2
2
|
|
|
3
|
+
## 37.2.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 37.2.15
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`aa38a369d8ee2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/aa38a369d8ee2) -
|
|
14
|
+
Render the reaction picker panel inline for screen reader reading order when either the
|
|
15
|
+
`a11y_reactions_reading_order` or the new `a11y_reactions_reading_order_other_apps` gate is
|
|
16
|
+
enabled.
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 37.2.14
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -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 = "37.2.
|
|
14
|
+
var packageVersion = "37.2.15";
|
|
15
15
|
/**
|
|
16
16
|
* TODO: move to utility package?
|
|
17
17
|
* A random sampling function
|
|
@@ -33,6 +33,9 @@ var _Trigger = require("./Trigger");
|
|
|
33
33
|
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); }
|
|
34
34
|
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; }
|
|
35
35
|
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 @atlaskit/ui-styling-standard/no-atlaskit-theme
|
|
36
|
+
var isReadingOrderInlineEnabled = function isReadingOrderInlineEnabled() {
|
|
37
|
+
return (0, _fg.fg)('a11y_reactions_reading_order') || (0, _fg.fg)('a11y_reactions_reading_order_other_apps');
|
|
38
|
+
};
|
|
36
39
|
var pickerStyle = null;
|
|
37
40
|
var popupWrapperStyle = null;
|
|
38
41
|
var popupStyle = null;
|
|
@@ -248,7 +251,7 @@ var ReactionPicker = exports.ReactionPicker = /*#__PURE__*/_react.default.memo(f
|
|
|
248
251
|
// ufo reactions picker opened success
|
|
249
252
|
_ufo.PickerRender.success({
|
|
250
253
|
metadata: {
|
|
251
|
-
readingOrderInline: (
|
|
254
|
+
readingOrderInline: isReadingOrderInlineEnabled()
|
|
252
255
|
}
|
|
253
256
|
});
|
|
254
257
|
}, [hoverableReactionPicker, isPopupTrayOpen, setIsPopupTrayOpen, isTriggerClicked, setIsTriggerClicked, isHoverableReactionPickerEmojiPickerOpen, onOpen, settings, popperPlacement]);
|
|
@@ -365,7 +368,7 @@ var ReactionPicker = exports.ReactionPicker = /*#__PURE__*/_react.default.memo(f
|
|
|
365
368
|
emojiPickerSize: emojiPickerSize
|
|
366
369
|
}))
|
|
367
370
|
);
|
|
368
|
-
}), isPopupTrayOpen && ((
|
|
371
|
+
}), isPopupTrayOpen && (isReadingOrderInlineEnabled() ?
|
|
369
372
|
// Render the picker panel inline (a DOM sibling directly after the trigger)
|
|
370
373
|
// so assistive technologies encounter the expanded content in the correct
|
|
371
374
|
// reading order. The popper still positions with `position: fixed`, so the
|
|
@@ -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 = "37.2.
|
|
5
|
+
const packageVersion = "37.2.15";
|
|
6
6
|
/**
|
|
7
7
|
* TODO: move to utility package?
|
|
8
8
|
* A random sampling function
|
|
@@ -21,6 +21,7 @@ import { PickerRender } from '../ufo';
|
|
|
21
21
|
import { RepositionOnUpdate } from './RepositionOnUpdate';
|
|
22
22
|
import { Selector } from './Selector';
|
|
23
23
|
import { Trigger } from './Trigger';
|
|
24
|
+
const isReadingOrderInlineEnabled = () => fg('a11y_reactions_reading_order') || fg('a11y_reactions_reading_order_other_apps');
|
|
24
25
|
const pickerStyle = null;
|
|
25
26
|
const popupWrapperStyle = null;
|
|
26
27
|
const popupStyle = null;
|
|
@@ -206,7 +207,7 @@ export const ReactionPicker = /*#__PURE__*/React.memo(props => {
|
|
|
206
207
|
// ufo reactions picker opened success
|
|
207
208
|
PickerRender.success({
|
|
208
209
|
metadata: {
|
|
209
|
-
readingOrderInline:
|
|
210
|
+
readingOrderInline: isReadingOrderInlineEnabled()
|
|
210
211
|
}
|
|
211
212
|
});
|
|
212
213
|
}, [hoverableReactionPicker, isPopupTrayOpen, setIsPopupTrayOpen, isTriggerClicked, setIsTriggerClicked, isHoverableReactionPickerEmojiPickerOpen, onOpen, settings, popperPlacement]);
|
|
@@ -322,7 +323,7 @@ export const ReactionPicker = /*#__PURE__*/React.memo(props => {
|
|
|
322
323
|
reactionPickerTriggerText: reactionPickerTriggerText,
|
|
323
324
|
isListItem: isListItem,
|
|
324
325
|
emojiPickerSize: emojiPickerSize
|
|
325
|
-
}))), isPopupTrayOpen && (
|
|
326
|
+
}))), isPopupTrayOpen && (isReadingOrderInlineEnabled() ?
|
|
326
327
|
// Render the picker panel inline (a DOM sibling directly after the trigger)
|
|
327
328
|
// so assistive technologies encounter the expanded content in the correct
|
|
328
329
|
// reading order. The popper still positions with `position: fixed`, so the
|
|
@@ -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 = "37.2.
|
|
8
|
+
var packageVersion = "37.2.15";
|
|
9
9
|
/**
|
|
10
10
|
* TODO: move to utility package?
|
|
11
11
|
* A random sampling function
|
|
@@ -25,6 +25,9 @@ import { PickerRender } from '../ufo';
|
|
|
25
25
|
import { RepositionOnUpdate } from './RepositionOnUpdate';
|
|
26
26
|
import { Selector } from './Selector';
|
|
27
27
|
import { Trigger } from './Trigger';
|
|
28
|
+
var isReadingOrderInlineEnabled = function isReadingOrderInlineEnabled() {
|
|
29
|
+
return fg('a11y_reactions_reading_order') || fg('a11y_reactions_reading_order_other_apps');
|
|
30
|
+
};
|
|
28
31
|
var pickerStyle = null;
|
|
29
32
|
var popupWrapperStyle = null;
|
|
30
33
|
var popupStyle = null;
|
|
@@ -240,7 +243,7 @@ export var ReactionPicker = /*#__PURE__*/React.memo(function (props) {
|
|
|
240
243
|
// ufo reactions picker opened success
|
|
241
244
|
PickerRender.success({
|
|
242
245
|
metadata: {
|
|
243
|
-
readingOrderInline:
|
|
246
|
+
readingOrderInline: isReadingOrderInlineEnabled()
|
|
244
247
|
}
|
|
245
248
|
});
|
|
246
249
|
}, [hoverableReactionPicker, isPopupTrayOpen, setIsPopupTrayOpen, isTriggerClicked, setIsTriggerClicked, isHoverableReactionPickerEmojiPickerOpen, onOpen, settings, popperPlacement]);
|
|
@@ -357,7 +360,7 @@ export var ReactionPicker = /*#__PURE__*/React.memo(function (props) {
|
|
|
357
360
|
emojiPickerSize: emojiPickerSize
|
|
358
361
|
}))
|
|
359
362
|
);
|
|
360
|
-
}), isPopupTrayOpen && (
|
|
363
|
+
}), isPopupTrayOpen && (isReadingOrderInlineEnabled() ?
|
|
361
364
|
// Render the picker panel inline (a DOM sibling directly after the trigger)
|
|
362
365
|
// so assistive technologies encounter the expanded content in the correct
|
|
363
366
|
// reading order. The popper still positions with `position: fixed`, so the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/reactions",
|
|
3
|
-
"version": "37.2.
|
|
3
|
+
"version": "37.2.16",
|
|
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": "^259.0.0",
|
|
62
62
|
"@atlaskit/tokens": "^20.9.0",
|
|
63
63
|
"@atlaskit/tooltip": "^24.4.0",
|
|
64
64
|
"@atlaskit/ufo": "^2.0.0",
|