@atlaskit/reactions 22.16.2 → 22.16.3
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 +9 -0
- package/afm-cc/tsconfig.json +3 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/components/ReactionDialog/ReactionView.js +4 -1
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/components/ReactionDialog/ReactionView.js +4 -1
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/components/ReactionDialog/ReactionView.js +4 -1
- package/docs/0-intro.tsx +4 -3
- package/docs/1-connected-reaction-picker.tsx +3 -2
- package/docs/2-connected-reactions-view.tsx +3 -2
- package/docs/3-reactions-store.tsx +4 -3
- package/docs/5-graphql-support.tsx +3 -2
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/reactions
|
|
2
2
|
|
|
3
|
+
## 22.16.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#165681](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/165681)
|
|
8
|
+
[`57716f58fccef`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/57716f58fccef) -
|
|
9
|
+
[ux] typography changes to text and heading
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 22.16.2
|
|
4
13
|
|
|
5
14
|
### Patch 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 = "22.16.
|
|
14
|
+
var packageVersion = "22.16.3";
|
|
15
15
|
/**
|
|
16
16
|
* TODO: move to utility package?
|
|
17
17
|
* A random sampling function
|
|
@@ -16,6 +16,7 @@ var _element = require("@atlaskit/emoji/element");
|
|
|
16
16
|
var _Avatar = _interopRequireDefault(require("@atlaskit/avatar/Avatar"));
|
|
17
17
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
18
18
|
var _tabs = require("@atlaskit/tabs");
|
|
19
|
+
var _primitives = require("@atlaskit/primitives");
|
|
19
20
|
var _i18n = require("../../shared/i18n");
|
|
20
21
|
var _styles = require("./styles");
|
|
21
22
|
/**
|
|
@@ -73,7 +74,9 @@ var ReactionView = exports.ReactionView = function ReactionView(_ref) {
|
|
|
73
74
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
74
75
|
(0, _react2.jsx)("div", (0, _extends2.default)({
|
|
75
76
|
css: _styles.reactionViewStyle
|
|
76
|
-
}, tabPanelAttributes), (0, _react2.jsx)(
|
|
77
|
+
}, tabPanelAttributes), (0, _react2.jsx)(_primitives.Text, {
|
|
78
|
+
as: "p"
|
|
79
|
+
}, (0, _react2.jsx)(_element.ResourcedEmoji, {
|
|
77
80
|
emojiProvider: emojiProvider,
|
|
78
81
|
emojiId: {
|
|
79
82
|
id: selectedEmojiId,
|
|
@@ -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 = "22.16.
|
|
4
|
+
const packageVersion = "22.16.3";
|
|
5
5
|
/**
|
|
6
6
|
* TODO: move to utility package?
|
|
7
7
|
* A random sampling function
|
|
@@ -11,6 +11,7 @@ import { ResourcedEmoji } from '@atlaskit/emoji/element';
|
|
|
11
11
|
import Avatar from '@atlaskit/avatar/Avatar';
|
|
12
12
|
import Spinner from '@atlaskit/spinner';
|
|
13
13
|
import { useTabPanel } from '@atlaskit/tabs';
|
|
14
|
+
import { Text } from '@atlaskit/primitives';
|
|
14
15
|
import { messages } from '../../shared/i18n';
|
|
15
16
|
import { reactionViewStyle, userListStyle, userStyle, centerSpinner } from './styles';
|
|
16
17
|
export const ReactionView = ({
|
|
@@ -42,7 +43,9 @@ export const ReactionView = ({
|
|
|
42
43
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
43
44
|
jsx("div", _extends({
|
|
44
45
|
css: reactionViewStyle
|
|
45
|
-
}, tabPanelAttributes), jsx(
|
|
46
|
+
}, tabPanelAttributes), jsx(Text, {
|
|
47
|
+
as: "p"
|
|
48
|
+
}, jsx(ResourcedEmoji, {
|
|
46
49
|
emojiProvider: emojiProvider,
|
|
47
50
|
emojiId: {
|
|
48
51
|
id: selectedEmojiId,
|
|
@@ -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 = "22.16.
|
|
7
|
+
var packageVersion = "22.16.3";
|
|
8
8
|
/**
|
|
9
9
|
* TODO: move to utility package?
|
|
10
10
|
* A random sampling function
|
|
@@ -14,6 +14,7 @@ import { ResourcedEmoji } from '@atlaskit/emoji/element';
|
|
|
14
14
|
import Avatar from '@atlaskit/avatar/Avatar';
|
|
15
15
|
import Spinner from '@atlaskit/spinner';
|
|
16
16
|
import { useTabPanel } from '@atlaskit/tabs';
|
|
17
|
+
import { Text } from '@atlaskit/primitives';
|
|
17
18
|
import { messages } from '../../shared/i18n';
|
|
18
19
|
import { reactionViewStyle, userListStyle, userStyle, centerSpinner } from './styles';
|
|
19
20
|
export var ReactionView = function ReactionView(_ref) {
|
|
@@ -64,7 +65,9 @@ export var ReactionView = function ReactionView(_ref) {
|
|
|
64
65
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
65
66
|
jsx("div", _extends({
|
|
66
67
|
css: reactionViewStyle
|
|
67
|
-
}, tabPanelAttributes), jsx(
|
|
68
|
+
}, tabPanelAttributes), jsx(Text, {
|
|
69
|
+
as: "p"
|
|
70
|
+
}, jsx(ResourcedEmoji, {
|
|
68
71
|
emojiProvider: emojiProvider,
|
|
69
72
|
emojiId: {
|
|
70
73
|
id: selectedEmojiId,
|
package/docs/0-intro.tsx
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { md, Example, Props, code, AtlassianInternalWarning } from '@atlaskit/docs';
|
|
3
3
|
import SectionMessage from '@atlaskit/section-message';
|
|
4
|
+
import { Text } from '@atlaskit/primitives';
|
|
4
5
|
|
|
5
6
|
import ReactionsExample from '../examples/01-connected-reactions-view';
|
|
6
7
|
|
|
@@ -117,14 +118,14 @@ export default md`
|
|
|
117
118
|
appearance="warning"
|
|
118
119
|
title="There should be only one instance of EmojiResource in your application"
|
|
119
120
|
>
|
|
120
|
-
<p>
|
|
121
|
+
<Text as="p">
|
|
121
122
|
Make sure EmojiResource is initialised only once to avoid performance issues using
|
|
122
123
|
useMemo.
|
|
123
|
-
</
|
|
124
|
+
</Text>
|
|
124
125
|
</SectionMessage>
|
|
125
126
|
<br />
|
|
126
127
|
<SectionMessage appearance="information">
|
|
127
|
-
<p>EmojiResource object implements the EmojiProvider interface.</
|
|
128
|
+
<Text as="p">EmojiResource object implements the EmojiProvider interface.</Text>
|
|
128
129
|
<a
|
|
129
130
|
href="https://atlaskit.atlassian.com/packages/elements/emoji/docs/emoji-provider"
|
|
130
131
|
target="_blank"
|
|
@@ -1,6 +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';
|
|
4
|
+
import { Text } from '@atlaskit/primitives';
|
|
4
5
|
|
|
5
6
|
import ConnectedReactionPickerExample from '../examples/00-connected-reaction-picker';
|
|
6
7
|
|
|
@@ -105,10 +106,10 @@ export default md`
|
|
|
105
106
|
appearance="warning"
|
|
106
107
|
title="There should be only one instance of EmojiResource in your application"
|
|
107
108
|
>
|
|
108
|
-
<p>
|
|
109
|
+
<Text as="p">
|
|
109
110
|
Make sure EmojiResource is initialised only once to avoid performance issues using
|
|
110
111
|
useMemo.
|
|
111
|
-
</
|
|
112
|
+
</Text>
|
|
112
113
|
</SectionMessage>
|
|
113
114
|
</>
|
|
114
115
|
)}
|
|
@@ -1,6 +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';
|
|
4
|
+
import { Text } from '@atlaskit/primitives';
|
|
4
5
|
|
|
5
6
|
import ConnectedReactionsViewExample from '../examples/01-connected-reactions-view';
|
|
6
7
|
|
|
@@ -104,10 +105,10 @@ export default md`
|
|
|
104
105
|
appearance="warning"
|
|
105
106
|
title="There should be only one instance of EmojiResource in your application"
|
|
106
107
|
>
|
|
107
|
-
<p>
|
|
108
|
+
<Text as="p">
|
|
108
109
|
Make sure EmojiResource is initialised only once to avoid performance issues using
|
|
109
110
|
useMemo.
|
|
110
|
-
</
|
|
111
|
+
</Text>
|
|
111
112
|
</SectionMessage>
|
|
112
113
|
</>
|
|
113
114
|
)}
|
|
@@ -1,6 +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';
|
|
4
|
+
import { Text } from '@atlaskit/primitives';
|
|
4
5
|
|
|
5
6
|
export default md`
|
|
6
7
|
|
|
@@ -12,9 +13,9 @@ export default md`
|
|
|
12
13
|
<br />
|
|
13
14
|
<SectionMessage appearance="information" title="">
|
|
14
15
|
You can instantiate an instance of the ReactionsStore object using the built in{' '}
|
|
15
|
-
<strong>MemoryReactionsStore</
|
|
16
|
-
communicate with the store. It provides all the methods to interact with the store and
|
|
17
|
-
API calls to the server, including logging
|
|
16
|
+
<Text as="strong">MemoryReactionsStore</Text> class object that contains all logic required
|
|
17
|
+
to communicate with the store. It provides all the methods to interact with the store and
|
|
18
|
+
the API calls to the server, including logging
|
|
18
19
|
<a
|
|
19
20
|
target="_blank"
|
|
20
21
|
rel="noopener noreferrer"
|
|
@@ -1,6 +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';
|
|
4
|
+
import { Text } from '@atlaskit/primitives';
|
|
4
5
|
|
|
5
6
|
export default md`
|
|
6
7
|
|
|
@@ -126,11 +127,11 @@ ${(
|
|
|
126
127
|
appearance="information"
|
|
127
128
|
title="There should be only one instance of EmojiResource in your application"
|
|
128
129
|
>
|
|
129
|
-
<p>
|
|
130
|
+
<Text as="p">
|
|
130
131
|
Above examples show the best practice to integrate Graphql APIs. By extending from our
|
|
131
132
|
`ReactionsClient` interface, you are free to use any GrapqhQL client, any queries or
|
|
132
133
|
mutations, as long as they return the same type as defined in the interface.
|
|
133
|
-
</
|
|
134
|
+
</Text>
|
|
134
135
|
</SectionMessage>
|
|
135
136
|
<br />
|
|
136
137
|
<SectionMessage appearance="warning">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/reactions",
|
|
3
|
-
"version": "22.16.
|
|
3
|
+
"version": "22.16.3",
|
|
4
4
|
"description": "Reactions component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -38,7 +38,8 @@
|
|
|
38
38
|
"@atlaskit/avatar": "^21.17.0",
|
|
39
39
|
"@atlaskit/button": "^20.3.0",
|
|
40
40
|
"@atlaskit/emoji": "^67.11.0",
|
|
41
|
-
"@atlaskit/
|
|
41
|
+
"@atlaskit/heading": "^3.1.0",
|
|
42
|
+
"@atlaskit/icon": "^22.26.0",
|
|
42
43
|
"@atlaskit/modal-dialog": "^12.17.0",
|
|
43
44
|
"@atlaskit/motion": "^1.9.0",
|
|
44
45
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
@@ -48,7 +49,7 @@
|
|
|
48
49
|
"@atlaskit/spinner": "^16.3.0",
|
|
49
50
|
"@atlaskit/tabs": "^16.5.0",
|
|
50
51
|
"@atlaskit/theme": "^14.0.0",
|
|
51
|
-
"@atlaskit/tokens": "^2.
|
|
52
|
+
"@atlaskit/tokens": "^2.3.0",
|
|
52
53
|
"@atlaskit/tooltip": "^18.9.0",
|
|
53
54
|
"@atlaskit/ufo": "^0.3.0",
|
|
54
55
|
"@atlaskit/util-service-support": "^6.2.0",
|