@atlaskit/reactions 22.16.2 → 22.16.4

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,20 @@
1
1
  # @atlaskit/reactions
2
2
 
3
+ ## 22.16.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 22.16.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [#165681](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/165681)
14
+ [`57716f58fccef`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/57716f58fccef) -
15
+ [ux] typography changes to text and heading
16
+ - Updated dependencies
17
+
3
18
  ## 22.16.2
4
19
 
5
20
  ### Patch Changes
@@ -35,6 +35,9 @@
35
35
  {
36
36
  "path": "../../emoji/afm-cc/tsconfig.json"
37
37
  },
38
+ {
39
+ "path": "../../../design-system/heading/afm-cc/tsconfig.json"
40
+ },
38
41
  {
39
42
  "path": "../../../design-system/icon/afm-cc/tsconfig.json"
40
43
  },
@@ -35,6 +35,9 @@
35
35
  {
36
36
  "path": "../../emoji/afm-jira/tsconfig.json"
37
37
  },
38
+ {
39
+ "path": "../../../design-system/heading/afm-jira/tsconfig.json"
40
+ },
38
41
  {
39
42
  "path": "../../../design-system/icon/afm-jira/tsconfig.json"
40
43
  },
@@ -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.2";
14
+ var packageVersion = "22.16.4";
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)("p", null, (0, _react2.jsx)(_element.ResourcedEmoji, {
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,
@@ -293,7 +293,9 @@ var PopperWrapper = function PopperWrapper(props) {
293
293
  }
294
294
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
295
295
  ,
296
- css: _styles.popupWrapperStyle,
296
+ css: _styles.popupWrapperStyle
297
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
298
+ ,
297
299
  tabIndex: 0
298
300
  }, (0, _react2.jsx)(_RepositionOnUpdate.RepositionOnUpdate, {
299
301
  update: update,
@@ -43,7 +43,7 @@ var ReactionTooltip = exports.ReactionTooltip = function ReactionTooltip(_ref) {
43
43
  * Render list of users in the tooltip box
44
44
  */
45
45
  var content = !users || users.length === 0 || !isEnabled ? null :
46
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
46
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, jsx-a11y/no-noninteractive-tabindex -- Ignored via go/DSP-18766
47
47
  (0, _react2.jsx)("div", {
48
48
  css: _styles.tooltipStyle,
49
49
  tabIndex: 0
@@ -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.2";
4
+ const packageVersion = "22.16.4";
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("p", null, jsx(ResourcedEmoji, {
46
+ }, tabPanelAttributes), jsx(Text, {
47
+ as: "p"
48
+ }, jsx(ResourcedEmoji, {
46
49
  emojiProvider: emojiProvider,
47
50
  emojiId: {
48
51
  id: selectedEmojiId,
@@ -269,7 +269,9 @@ const PopperWrapper = props => {
269
269
  }
270
270
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
271
271
  ,
272
- css: popupWrapperStyle,
272
+ css: popupWrapperStyle
273
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
274
+ ,
273
275
  tabIndex: 0
274
276
  }, jsx(RepositionOnUpdate, {
275
277
  update: update,
@@ -32,7 +32,7 @@ export const ReactionTooltip = ({
32
32
  * Render list of users in the tooltip box
33
33
  */
34
34
  const content = !users || users.length === 0 || !isEnabled ? null :
35
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
35
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, jsx-a11y/no-noninteractive-tabindex -- Ignored via go/DSP-18766
36
36
  jsx("div", {
37
37
  css: tooltipStyle,
38
38
  tabIndex: 0
@@ -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.2";
7
+ var packageVersion = "22.16.4";
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("p", null, jsx(ResourcedEmoji, {
68
+ }, tabPanelAttributes), jsx(Text, {
69
+ as: "p"
70
+ }, jsx(ResourcedEmoji, {
68
71
  emojiProvider: emojiProvider,
69
72
  emojiId: {
70
73
  id: selectedEmojiId,
@@ -286,7 +286,9 @@ var PopperWrapper = function PopperWrapper(props) {
286
286
  }
287
287
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
288
288
  ,
289
- css: popupWrapperStyle,
289
+ css: popupWrapperStyle
290
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
291
+ ,
290
292
  tabIndex: 0
291
293
  }, jsx(RepositionOnUpdate, {
292
294
  update: update,
@@ -35,7 +35,7 @@ export var ReactionTooltip = function ReactionTooltip(_ref) {
35
35
  * Render list of users in the tooltip box
36
36
  */
37
37
  var content = !users || users.length === 0 || !isEnabled ? null :
38
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
38
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, jsx-a11y/no-noninteractive-tabindex -- Ignored via go/DSP-18766
39
39
  jsx("div", {
40
40
  css: tooltipStyle,
41
41
  tabIndex: 0
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
- </p>
124
+ </Text>
124
125
  </SectionMessage>
125
126
  <br />
126
127
  <SectionMessage appearance="information">
127
- <p>EmojiResource object implements the EmojiProvider interface.</p>
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
- </p>
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
- </p>
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</strong> class object that contains all logic required to
16
- communicate with the store. It provides all the methods to interact with the store and the
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
- </p>
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.2",
3
+ "version": "22.16.4",
4
4
  "description": "Reactions component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -38,17 +38,18 @@
38
38
  "@atlaskit/avatar": "^21.17.0",
39
39
  "@atlaskit/button": "^20.3.0",
40
40
  "@atlaskit/emoji": "^67.11.0",
41
- "@atlaskit/icon": "^22.24.0",
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",
45
46
  "@atlaskit/popper": "^6.3.0",
46
- "@atlaskit/popup": "1.29.4",
47
- "@atlaskit/primitives": "^13.2.0",
47
+ "@atlaskit/popup": "1.29.5",
48
+ "@atlaskit/primitives": "^13.3.0",
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.2.0",
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",