@atlaskit/reactions 31.14.0 → 31.15.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
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/reactions
|
|
2
2
|
|
|
3
|
+
## 31.15.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#157074](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/157074)
|
|
8
|
+
[`0c1f766dcb979`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0c1f766dcb979) -
|
|
9
|
+
We are testing the migration to the ADS Link component behind a feature flag. If this fix is
|
|
10
|
+
successful it will be available in a later release.
|
|
11
|
+
|
|
3
12
|
## 31.14.0
|
|
4
13
|
|
|
5
14
|
### Minor 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 = "31.
|
|
14
|
+
var packageVersion = "31.15.0";
|
|
15
15
|
/**
|
|
16
16
|
* TODO: move to utility package?
|
|
17
17
|
* A random sampling function
|
|
@@ -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 = "31.
|
|
4
|
+
const packageVersion = "31.15.0";
|
|
5
5
|
/**
|
|
6
6
|
* TODO: move to utility package?
|
|
7
7
|
* A random sampling function
|
|
@@ -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 = "31.
|
|
7
|
+
var packageVersion = "31.15.0";
|
|
8
8
|
/**
|
|
9
9
|
* TODO: move to utility package?
|
|
10
10
|
* A random sampling function
|
package/docs/0-intro.tsx
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import Link from '@atlaskit/link';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { md, Example, Props, code, AtlassianInternalWarning } from '@atlaskit/docs';
|
|
3
5
|
import SectionMessage from '@atlaskit/section-message';
|
|
@@ -5,6 +7,10 @@ import { Text } from '@atlaskit/primitives/compiled';
|
|
|
5
7
|
|
|
6
8
|
import ReactionsExample from '../examples/01-connected-reactions-view';
|
|
7
9
|
|
|
10
|
+
const LinkComponent = (props: any) =>
|
|
11
|
+
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor, jsx-a11y/anchor-has-content
|
|
12
|
+
fg('dst-a11y__replace-anchor-with-link__editor-collabo') ? <Link {...props} /> : <a {...props} />;
|
|
13
|
+
|
|
8
14
|
export default md`
|
|
9
15
|
${(<AtlassianInternalWarning />)}
|
|
10
16
|
|
|
@@ -126,13 +132,13 @@ export default md`
|
|
|
126
132
|
<br />
|
|
127
133
|
<SectionMessage appearance="information">
|
|
128
134
|
<Text as="p">EmojiResource object implements the EmojiProvider interface.</Text>
|
|
129
|
-
<
|
|
135
|
+
<LinkComponent
|
|
130
136
|
href="https://atlaskit.atlassian.com/packages/elements/emoji/docs/emoji-provider"
|
|
131
137
|
target="_blank"
|
|
132
138
|
rel="noopener noreferrer"
|
|
133
139
|
>
|
|
134
140
|
See here for information on EmojiProvider.
|
|
135
|
-
</
|
|
141
|
+
</LinkComponent>
|
|
136
142
|
</SectionMessage>
|
|
137
143
|
</>
|
|
138
144
|
)}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
import Link from '@atlaskit/link';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { md, code, Props } from '@atlaskit/docs';
|
|
3
5
|
import SectionMessage from '@atlaskit/section-message';
|
|
4
6
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
5
7
|
|
|
8
|
+
const LinkComponent = (props: any) =>
|
|
9
|
+
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor, jsx-a11y/anchor-has-content
|
|
10
|
+
fg('dst-a11y__replace-anchor-with-link__editor-collabo') ? <Link {...props} /> : <a {...props} />;
|
|
11
|
+
|
|
6
12
|
export default md`
|
|
7
13
|
|
|
8
14
|
The ReactionsStore is one of the key interfaces that encapsulates all logic needed to maintain internal state of the reaction elements (get latest state and onChange callback events), including different types of Actions required to perform on the store (getReactions, toggleReaction on/off, adding a new reaciton, getting detailed reaction upon hovering the emoji icon).
|
|
@@ -16,13 +22,13 @@ export default md`
|
|
|
16
22
|
<Text as="strong">MemoryReactionsStore</Text> class object that contains all logic required
|
|
17
23
|
to communicate with the store. It provides all the methods to interact with the store and
|
|
18
24
|
the API calls to the server, including logging
|
|
19
|
-
<
|
|
25
|
+
<LinkComponent
|
|
20
26
|
target="_blank"
|
|
21
27
|
rel="noopener noreferrer"
|
|
22
28
|
href="https://developer.atlassian.com/platform/ufo/"
|
|
23
29
|
>
|
|
24
30
|
UFO
|
|
25
|
-
</
|
|
31
|
+
</LinkComponent>
|
|
26
32
|
.
|
|
27
33
|
<br />
|
|
28
34
|
</SectionMessage>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/reactions",
|
|
3
|
-
"version": "31.
|
|
3
|
+
"version": "31.15.0",
|
|
4
4
|
"description": "Reactions component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,11 +36,12 @@
|
|
|
36
36
|
"@atlaskit/analytics-namespaced-context": "^7.0.0",
|
|
37
37
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
38
38
|
"@atlaskit/avatar": "^25.1.0",
|
|
39
|
-
"@atlaskit/button": "^23.
|
|
39
|
+
"@atlaskit/button": "^23.2.0",
|
|
40
40
|
"@atlaskit/css": "^0.10.0",
|
|
41
41
|
"@atlaskit/emoji": "^69.2.0",
|
|
42
42
|
"@atlaskit/heading": "^5.2.0",
|
|
43
|
-
"@atlaskit/icon": "^26.
|
|
43
|
+
"@atlaskit/icon": "^26.1.0",
|
|
44
|
+
"@atlaskit/link": "^3.2.0",
|
|
44
45
|
"@atlaskit/modal-dialog": "^14.2.0",
|
|
45
46
|
"@atlaskit/motion": "^5.1.0",
|
|
46
47
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
@@ -48,12 +49,12 @@
|
|
|
48
49
|
"@atlaskit/popper": "^7.0.0",
|
|
49
50
|
"@atlaskit/popup": "^4.2.0",
|
|
50
51
|
"@atlaskit/portal": "^5.1.0",
|
|
51
|
-
"@atlaskit/primitives": "^14.
|
|
52
|
-
"@atlaskit/react-ufo": "^3.
|
|
52
|
+
"@atlaskit/primitives": "^14.8.0",
|
|
53
|
+
"@atlaskit/react-ufo": "^3.13.0",
|
|
53
54
|
"@atlaskit/spinner": "^18.0.0",
|
|
54
|
-
"@atlaskit/tabs": "^18.
|
|
55
|
+
"@atlaskit/tabs": "^18.1.0",
|
|
55
56
|
"@atlaskit/theme": "^18.0.0",
|
|
56
|
-
"@atlaskit/tokens": "^4.
|
|
57
|
+
"@atlaskit/tokens": "^4.9.0",
|
|
57
58
|
"@atlaskit/tooltip": "^20.0.0",
|
|
58
59
|
"@atlaskit/ufo": "^0.4.0",
|
|
59
60
|
"@atlaskit/util-service-support": "^6.3.0",
|
|
@@ -127,6 +128,9 @@
|
|
|
127
128
|
},
|
|
128
129
|
"platform_editor_reactions_picker_fix": {
|
|
129
130
|
"type": "boolean"
|
|
131
|
+
},
|
|
132
|
+
"dst-a11y__replace-anchor-with-link__editor-collabo": {
|
|
133
|
+
"type": "boolean"
|
|
130
134
|
}
|
|
131
135
|
},
|
|
132
136
|
"sideEffects": [
|