@atlaskit/reactions 34.0.6 → 34.1.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,18 @@
1
1
  # @atlaskit/reactions
2
2
 
3
+ ## 34.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`954d295f45814`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/954d295f45814) -
8
+ [ux] Ensuring add emoji button takes emojiPickerSize as size
9
+
10
+ ## 34.0.7
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 34.0.6
4
17
 
5
18
  ### Patch Changes
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "extends": "../../../../tsconfig.local-consumption.json",
3
3
  "compilerOptions": {
4
- "target": "es5",
5
4
  "outDir": "../../../../../confluence/tsDist/@atlaskit__reactions",
6
5
  "rootDir": "../",
7
6
  "composite": true,
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "extends": "../../../../tsconfig.local-consumption.json",
3
3
  "compilerOptions": {
4
- "target": "es5",
5
4
  "outDir": "../../../../../tsDist/@atlaskit__reactions/app",
6
5
  "rootDir": "../",
7
6
  "composite": true,
@@ -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; } // eslint-disable-next-line @typescript-eslint/consistent-type-imports
13
13
  var packageName = "@atlaskit/reactions";
14
- var packageVersion = "34.0.5";
14
+ var packageVersion = "0.0.0-development";
15
15
  /**
16
16
  * TODO: move to utility package?
17
17
  * A random sampling function
@@ -323,7 +323,8 @@ var ReactionPicker = exports.ReactionPicker = /*#__PURE__*/_react.default.memo(f
323
323
  subtleReactionsSummaryAndPicker: subtleReactionsSummaryAndPicker,
324
324
  reactionPickerTriggerIcon: reactionPickerTriggerIcon,
325
325
  reactionPickerTriggerText: reactionPickerTriggerText,
326
- isListItem: isListItem
326
+ isListItem: isListItem,
327
+ emojiPickerSize: emojiPickerSize
327
328
  }))
328
329
  );
329
330
  }), isPopupTrayOpen && /*#__PURE__*/_react.default.createElement(_portal.default, {
@@ -76,7 +76,8 @@ var Trigger = exports.Trigger = /*#__PURE__*/_react2.default.forwardRef(function
76
76
  _props$isListItem = props.isListItem,
77
77
  isListItem = _props$isListItem === void 0 ? false : _props$isListItem,
78
78
  _props$fullWidthSelec = props.fullWidthSelectorTrayReactionPickerTrigger,
79
- fullWidthSelectorTrayReactionPickerTrigger = _props$fullWidthSelec === void 0 ? false : _props$fullWidthSelec;
79
+ fullWidthSelectorTrayReactionPickerTrigger = _props$fullWidthSelec === void 0 ? false : _props$fullWidthSelec,
80
+ emojiPickerSize = props.emojiPickerSize;
80
81
  var handleMouseDown = function handleMouseDown(e, analyticsEvent) {
81
82
  if (onClick && !disabled) {
82
83
  onClick(e, analyticsEvent);
@@ -101,7 +102,8 @@ var Trigger = exports.Trigger = /*#__PURE__*/_react2.default.forwardRef(function
101
102
  _react2.default.createElement(_emojiAdd.default, {
102
103
  testId: "emoji-add-icon",
103
104
  color: disabled ? "var(--ds-icon-disabled, #080F214A)" : "var(--ds-icon, #292A2E)",
104
- label: "Add reaction"
105
+ label: "Add reaction",
106
+ size: emojiPickerSize === 'small' ? 'small' : 'medium'
105
107
  }), showAddReactionText && /*#__PURE__*/_react2.default.createElement(_compiled.Box, {
106
108
  xcss: (0, _react.cx)(addReactionStyles.addReactionMessage)
107
109
  }, reactionPickerTriggerText));
@@ -2,7 +2,7 @@
2
2
  import { createAndFireEvent } from '@atlaskit/analytics-next';
3
3
  import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
4
4
  const packageName = "@atlaskit/reactions";
5
- const packageVersion = "34.0.5";
5
+ const packageVersion = "0.0.0-development";
6
6
  /**
7
7
  * TODO: move to utility package?
8
8
  * A random sampling function
@@ -281,7 +281,8 @@ export const ReactionPicker = /*#__PURE__*/React.memo(props => {
281
281
  subtleReactionsSummaryAndPicker: subtleReactionsSummaryAndPicker,
282
282
  reactionPickerTriggerIcon: reactionPickerTriggerIcon,
283
283
  reactionPickerTriggerText: reactionPickerTriggerText,
284
- isListItem: isListItem
284
+ isListItem: isListItem,
285
+ emojiPickerSize: emojiPickerSize
285
286
  }))), isPopupTrayOpen && /*#__PURE__*/React.createElement(Portal, {
286
287
  zIndex: reactionPickerPopperZIndex || layers.flag()
287
288
  }, /*#__PURE__*/React.createElement(PopperWrapper, {
@@ -62,7 +62,8 @@ export const Trigger = /*#__PURE__*/React.forwardRef((props, ref) => {
62
62
  reactionPickerTriggerText = formatMessage(i18n.addReaction),
63
63
  fullWidthSummaryViewReactionPickerTrigger = false,
64
64
  isListItem = false,
65
- fullWidthSelectorTrayReactionPickerTrigger = false
65
+ fullWidthSelectorTrayReactionPickerTrigger = false,
66
+ emojiPickerSize
66
67
  } = props;
67
68
  const handleMouseDown = (e, analyticsEvent) => {
68
69
  if (onClick && !disabled) {
@@ -87,7 +88,8 @@ export const Trigger = /*#__PURE__*/React.forwardRef((props, ref) => {
87
88
  React.createElement(EmojiAddIcon, {
88
89
  testId: "emoji-add-icon",
89
90
  color: disabled ? "var(--ds-icon-disabled, #080F214A)" : "var(--ds-icon, #292A2E)",
90
- label: "Add reaction"
91
+ label: "Add reaction",
92
+ size: emojiPickerSize === 'small' ? 'small' : 'medium'
91
93
  }), showAddReactionText && /*#__PURE__*/React.createElement(Box, {
92
94
  xcss: cx(addReactionStyles.addReactionMessage)
93
95
  }, reactionPickerTriggerText));
@@ -5,7 +5,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
5
5
  import { createAndFireEvent } from '@atlaskit/analytics-next';
6
6
  import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
7
7
  var packageName = "@atlaskit/reactions";
8
- var packageVersion = "34.0.5";
8
+ var packageVersion = "0.0.0-development";
9
9
  /**
10
10
  * TODO: move to utility package?
11
11
  * A random sampling function
@@ -314,7 +314,8 @@ export var ReactionPicker = /*#__PURE__*/React.memo(function (props) {
314
314
  subtleReactionsSummaryAndPicker: subtleReactionsSummaryAndPicker,
315
315
  reactionPickerTriggerIcon: reactionPickerTriggerIcon,
316
316
  reactionPickerTriggerText: reactionPickerTriggerText,
317
- isListItem: isListItem
317
+ isListItem: isListItem,
318
+ emojiPickerSize: emojiPickerSize
318
319
  }))
319
320
  );
320
321
  }), isPopupTrayOpen && /*#__PURE__*/React.createElement(Portal, {
@@ -69,7 +69,8 @@ export var Trigger = /*#__PURE__*/React.forwardRef(function (props, ref) {
69
69
  _props$isListItem = props.isListItem,
70
70
  isListItem = _props$isListItem === void 0 ? false : _props$isListItem,
71
71
  _props$fullWidthSelec = props.fullWidthSelectorTrayReactionPickerTrigger,
72
- fullWidthSelectorTrayReactionPickerTrigger = _props$fullWidthSelec === void 0 ? false : _props$fullWidthSelec;
72
+ fullWidthSelectorTrayReactionPickerTrigger = _props$fullWidthSelec === void 0 ? false : _props$fullWidthSelec,
73
+ emojiPickerSize = props.emojiPickerSize;
73
74
  var handleMouseDown = function handleMouseDown(e, analyticsEvent) {
74
75
  if (onClick && !disabled) {
75
76
  onClick(e, analyticsEvent);
@@ -94,7 +95,8 @@ export var Trigger = /*#__PURE__*/React.forwardRef(function (props, ref) {
94
95
  React.createElement(EmojiAddIcon, {
95
96
  testId: "emoji-add-icon",
96
97
  color: disabled ? "var(--ds-icon-disabled, #080F214A)" : "var(--ds-icon, #292A2E)",
97
- label: "Add reaction"
98
+ label: "Add reaction",
99
+ size: emojiPickerSize === 'small' ? 'small' : 'medium'
98
100
  }), showAddReactionText && /*#__PURE__*/React.createElement(Box, {
99
101
  xcss: cx(addReactionStyles.addReactionMessage)
100
102
  }, reactionPickerTriggerText));
@@ -4,6 +4,7 @@
4
4
  */
5
5
  import { type AriaAttributes } from 'react';
6
6
  import { type AnalyticsEvent } from '@atlaskit/analytics-next';
7
+ import { type PickerSize } from '@atlaskit/emoji/types';
7
8
  import React from 'react';
8
9
  /**
9
10
  * Test id for the tooltip
@@ -21,6 +22,13 @@ export interface TriggerProps {
21
22
  * Enable/Disable the button to be clickable (defaults to false)
22
23
  */
23
24
  disabled?: boolean;
25
+ /**
26
+ * Optional emoji picker size; when supplied, the default trigger icon is rendered at the
27
+ * matching size ('small' = 12px, 'medium' = 16px). Mirrors the size used by the emoji
28
+ * picker popup so the trigger stays visually consistent. `'large'` is excluded because
29
+ * the underlying icon family does not provide a large variant.
30
+ */
31
+ emojiPickerSize?: PickerSize;
24
32
  fullWidthSelectorTrayReactionPickerTrigger?: boolean;
25
33
  /**
26
34
  * Optional prop for controlling if the summary view reaction picker trigger should be full width
@@ -4,6 +4,7 @@
4
4
  */
5
5
  import { type AriaAttributes } from 'react';
6
6
  import { type AnalyticsEvent } from '@atlaskit/analytics-next';
7
+ import { type PickerSize } from '@atlaskit/emoji/types';
7
8
  import React from 'react';
8
9
  /**
9
10
  * Test id for the tooltip
@@ -21,6 +22,13 @@ export interface TriggerProps {
21
22
  * Enable/Disable the button to be clickable (defaults to false)
22
23
  */
23
24
  disabled?: boolean;
25
+ /**
26
+ * Optional emoji picker size; when supplied, the default trigger icon is rendered at the
27
+ * matching size ('small' = 12px, 'medium' = 16px). Mirrors the size used by the emoji
28
+ * picker popup so the trigger stays visually consistent. `'large'` is excluded because
29
+ * the underlying icon family does not provide a large variant.
30
+ */
31
+ emojiPickerSize?: PickerSize;
24
32
  fullWidthSelectorTrayReactionPickerTrigger?: boolean;
25
33
  /**
26
34
  * Optional prop for controlling if the summary view reaction picker trigger should be full width
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/reactions",
3
- "version": "34.0.6",
3
+ "version": "34.1.0",
4
4
  "description": "Reactions component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -38,18 +38,18 @@
38
38
  "@atlaskit/avatar": "^25.14.0",
39
39
  "@atlaskit/button": "^23.11.0",
40
40
  "@atlaskit/css": "^0.19.0",
41
- "@atlaskit/emoji": "^70.3.0",
41
+ "@atlaskit/emoji": "^70.4.0",
42
42
  "@atlaskit/heading": "^5.4.0",
43
- "@atlaskit/icon": "^34.3.0",
43
+ "@atlaskit/icon": "^34.4.0",
44
44
  "@atlaskit/link": "^3.4.0",
45
- "@atlaskit/modal-dialog": "^14.18.0",
45
+ "@atlaskit/modal-dialog": "^15.0.0",
46
46
  "@atlaskit/motion": "^6.2.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
48
  "@atlaskit/popper": "^7.2.0",
49
49
  "@atlaskit/popup": "^4.17.0",
50
50
  "@atlaskit/portal": "^5.5.0",
51
51
  "@atlaskit/primitives": "^19.0.0",
52
- "@atlaskit/react-ufo": "^5.18.0",
52
+ "@atlaskit/react-ufo": "^5.19.0",
53
53
  "@atlaskit/spinner": "^19.1.0",
54
54
  "@atlaskit/tabs": "^19.1.0",
55
55
  "@atlaskit/theme": "^23.2.0",
@@ -72,7 +72,7 @@
72
72
  "@atlaskit/elements-test-helpers": "workspace:^",
73
73
  "@atlaskit/util-data-test": "^18.5.0",
74
74
  "@atlassian/a11y-jest-testing": "^0.11.0",
75
- "@atlassian/feature-flags-test-utils": "^1.0.0",
75
+ "@atlassian/feature-flags-test-utils": "^1.1.0",
76
76
  "@testing-library/dom": "^10.1.0",
77
77
  "@testing-library/jest-dom": "^6.4.5",
78
78
  "@testing-library/react": "^16.3.0",
@@ -1,102 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.local-consumption.json",
3
- "compilerOptions": {
4
- "target": "es5",
5
- "outDir": "../../../../../jira/tsDist/@atlaskit__reactions/app",
6
- "rootDir": "../",
7
- "composite": true,
8
- "noCheck": true
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*",
18
- "../src/**/examples.*",
19
- "../src/**/examples/*",
20
- "../src/**/examples/**/*",
21
- "../src/**/*.stories.*",
22
- "../src/**/stories/*",
23
- "../src/**/stories/**/*"
24
- ],
25
- "references": [
26
- {
27
- "path": "../../../analytics/analytics-gas-types/afm-jira/tsconfig.json"
28
- },
29
- {
30
- "path": "../../../analytics/analytics-namespaced-context/afm-jira/tsconfig.json"
31
- },
32
- {
33
- "path": "../../../analytics/analytics-next/afm-jira/tsconfig.json"
34
- },
35
- {
36
- "path": "../../../design-system/avatar/afm-jira/tsconfig.json"
37
- },
38
- {
39
- "path": "../../../design-system/button/afm-jira/tsconfig.json"
40
- },
41
- {
42
- "path": "../../../design-system/css/afm-jira/tsconfig.json"
43
- },
44
- {
45
- "path": "../../emoji/afm-jira/tsconfig.json"
46
- },
47
- {
48
- "path": "../../../design-system/heading/afm-jira/tsconfig.json"
49
- },
50
- {
51
- "path": "../../../design-system/icon/afm-jira/tsconfig.json"
52
- },
53
- {
54
- "path": "../../../design-system/link/afm-jira/tsconfig.json"
55
- },
56
- {
57
- "path": "../../../design-system/modal-dialog/afm-jira/tsconfig.json"
58
- },
59
- {
60
- "path": "../../../design-system/motion/afm-jira/tsconfig.json"
61
- },
62
- {
63
- "path": "../../../platform/feature-flags/afm-jira/tsconfig.json"
64
- },
65
- {
66
- "path": "../../../design-system/popper/afm-jira/tsconfig.json"
67
- },
68
- {
69
- "path": "../../../design-system/popup/afm-jira/tsconfig.json"
70
- },
71
- {
72
- "path": "../../../design-system/portal/afm-jira/tsconfig.json"
73
- },
74
- {
75
- "path": "../../../design-system/primitives/afm-jira/tsconfig.json"
76
- },
77
- {
78
- "path": "../../../react-ufo/atlaskit/afm-jira/tsconfig.json"
79
- },
80
- {
81
- "path": "../../../design-system/spinner/afm-jira/tsconfig.json"
82
- },
83
- {
84
- "path": "../../../design-system/tabs/afm-jira/tsconfig.json"
85
- },
86
- {
87
- "path": "../../../design-system/theme/afm-jira/tsconfig.json"
88
- },
89
- {
90
- "path": "../../../design-system/tokens/afm-jira/tsconfig.json"
91
- },
92
- {
93
- "path": "../../../design-system/tooltip/afm-jira/tsconfig.json"
94
- },
95
- {
96
- "path": "../../../data/ufo-external/afm-jira/tsconfig.json"
97
- },
98
- {
99
- "path": "../../util-service-support/afm-jira/tsconfig.json"
100
- }
101
- ]
102
- }