@atlaskit/share 4.25.6 → 5.0.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,17 @@
1
1
  # @atlaskit/share
2
2
 
3
+ ## 5.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#112367](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/112367)
8
+ [`fbcf73510841a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fbcf73510841a) -
9
+ Added issue terminology refresh changes
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 4.25.6
4
16
 
5
17
  ### Patch Changes
@@ -18,6 +18,7 @@ var _react = _interopRequireDefault(require("react"));
18
18
  var _reactIntlNext = require("react-intl-next");
19
19
  var _form = require("@atlaskit/form");
20
20
  var _link = _interopRequireDefault(require("@atlaskit/link"));
21
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
21
22
  var _primitives = require("@atlaskit/primitives");
22
23
  var _smartUserPicker = _interopRequireWildcard(require("@atlaskit/smart-user-picker"));
23
24
  var _userPicker = _interopRequireDefault(require("@atlaskit/user-picker"));
@@ -152,7 +153,10 @@ var UserPickerFieldComponent = exports.UserPickerFieldComponent = /*#__PURE__*/f
152
153
  if (helperMessage !== undefined) {
153
154
  return helperMessage;
154
155
  }
155
- return product === 'jira' ? /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.infoMessageDefaultJira) : /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.infoMessageDefaultConfluence);
156
+ if (product === 'jira') {
157
+ return (0, _platformFeatureFlags.fg)('jira-issue-terminology-refresh-m3') ? /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.infoMessageDefaultJiraIssueTermRefresh) : /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.infoMessageDefaultJira);
158
+ }
159
+ return /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.infoMessageDefaultConfluence);
156
160
  });
157
161
  (0, _defineProperty2.default)(_this, "handleUserPickerTransform", function (event, current) {
158
162
  var onChange = _this.props.onChange;
@@ -13,7 +13,7 @@ var buildAttributes = function buildAttributes() {
13
13
  var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
14
14
  return _objectSpread({
15
15
  packageName: "@atlaskit/share",
16
- packageVersion: "4.25.6"
16
+ packageVersion: "5.0.0"
17
17
  }, attributes);
18
18
  };
19
19
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
package/dist/cjs/i18n.js CHANGED
@@ -192,6 +192,11 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
192
192
  defaultMessage: 'Recipients will see the name of the issue and your message',
193
193
  description: 'Message indicating the recipients of the email share will be able to see the Jira issue title and the included message'
194
194
  },
195
+ infoMessageDefaultJiraIssueTermRefresh: {
196
+ id: 'fabric.elements.share.form.info.message.no.invite.jira.issue-term-refresh',
197
+ defaultMessage: 'Recipients will see the name of the work item and your message',
198
+ description: 'Message indicating the recipients of the email share will be able to see the Jira issue title and the included message'
199
+ },
195
200
  requiredFieldSummary: {
196
201
  id: 'fabric.elements.share.form.required-field.summary',
197
202
  defaultMessage: 'Required fields are marked with an asterisk',
@@ -4,6 +4,7 @@ import React from 'react';
4
4
  import { FormattedMessage, injectIntl } from 'react-intl-next';
5
5
  import { ErrorMessage, Field, HelperMessage } from '@atlaskit/form';
6
6
  import Link from '@atlaskit/link';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
7
8
  import { Text } from '@atlaskit/primitives';
8
9
  import SmartUserPicker, { isValidEmail } from '@atlaskit/smart-user-picker';
9
10
  import UserPicker from '@atlaskit/user-picker';
@@ -120,7 +121,10 @@ export class UserPickerFieldComponent extends React.Component {
120
121
  if (helperMessage !== undefined) {
121
122
  return helperMessage;
122
123
  }
123
- return product === 'jira' ? /*#__PURE__*/React.createElement(FormattedMessage, messages.infoMessageDefaultJira) : /*#__PURE__*/React.createElement(FormattedMessage, messages.infoMessageDefaultConfluence);
124
+ if (product === 'jira') {
125
+ return fg('jira-issue-terminology-refresh-m3') ? /*#__PURE__*/React.createElement(FormattedMessage, messages.infoMessageDefaultJiraIssueTermRefresh) : /*#__PURE__*/React.createElement(FormattedMessage, messages.infoMessageDefaultJira);
126
+ }
127
+ return /*#__PURE__*/React.createElement(FormattedMessage, messages.infoMessageDefaultConfluence);
124
128
  });
125
129
  _defineProperty(this, "handleUserPickerTransform", (event, current) => {
126
130
  const {
@@ -1,7 +1,7 @@
1
1
  import { isEmail, isExternalUser, isGroup, isTeam, isUser } from '@atlaskit/smart-user-picker';
2
2
  const buildAttributes = (attributes = {}) => ({
3
3
  packageName: "@atlaskit/share",
4
- packageVersion: "4.25.6",
4
+ packageVersion: "5.0.0",
5
5
  ...attributes
6
6
  });
7
7
  const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
@@ -186,6 +186,11 @@ export const messages = defineMessages({
186
186
  defaultMessage: 'Recipients will see the name of the issue and your message',
187
187
  description: 'Message indicating the recipients of the email share will be able to see the Jira issue title and the included message'
188
188
  },
189
+ infoMessageDefaultJiraIssueTermRefresh: {
190
+ id: 'fabric.elements.share.form.info.message.no.invite.jira.issue-term-refresh',
191
+ defaultMessage: 'Recipients will see the name of the work item and your message',
192
+ description: 'Message indicating the recipients of the email share will be able to see the Jira issue title and the included message'
193
+ },
189
194
  requiredFieldSummary: {
190
195
  id: 'fabric.elements.share.form.required-field.summary',
191
196
  defaultMessage: 'Required fields are marked with an asterisk',
@@ -14,6 +14,7 @@ import React from 'react';
14
14
  import { FormattedMessage, injectIntl } from 'react-intl-next';
15
15
  import { ErrorMessage, Field, HelperMessage } from '@atlaskit/form';
16
16
  import Link from '@atlaskit/link';
17
+ import { fg } from '@atlaskit/platform-feature-flags';
17
18
  import { Text } from '@atlaskit/primitives';
18
19
  import SmartUserPicker, { isValidEmail } from '@atlaskit/smart-user-picker';
19
20
  import UserPicker from '@atlaskit/user-picker';
@@ -142,7 +143,10 @@ export var UserPickerFieldComponent = /*#__PURE__*/function (_React$Component) {
142
143
  if (helperMessage !== undefined) {
143
144
  return helperMessage;
144
145
  }
145
- return product === 'jira' ? /*#__PURE__*/React.createElement(FormattedMessage, messages.infoMessageDefaultJira) : /*#__PURE__*/React.createElement(FormattedMessage, messages.infoMessageDefaultConfluence);
146
+ if (product === 'jira') {
147
+ return fg('jira-issue-terminology-refresh-m3') ? /*#__PURE__*/React.createElement(FormattedMessage, messages.infoMessageDefaultJiraIssueTermRefresh) : /*#__PURE__*/React.createElement(FormattedMessage, messages.infoMessageDefaultJira);
148
+ }
149
+ return /*#__PURE__*/React.createElement(FormattedMessage, messages.infoMessageDefaultConfluence);
146
150
  });
147
151
  _defineProperty(_this, "handleUserPickerTransform", function (event, current) {
148
152
  var onChange = _this.props.onChange;
@@ -6,7 +6,7 @@ var buildAttributes = function buildAttributes() {
6
6
  var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
7
7
  return _objectSpread({
8
8
  packageName: "@atlaskit/share",
9
- packageVersion: "4.25.6"
9
+ packageVersion: "5.0.0"
10
10
  }, attributes);
11
11
  };
12
12
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
package/dist/esm/i18n.js CHANGED
@@ -186,6 +186,11 @@ export var messages = defineMessages({
186
186
  defaultMessage: 'Recipients will see the name of the issue and your message',
187
187
  description: 'Message indicating the recipients of the email share will be able to see the Jira issue title and the included message'
188
188
  },
189
+ infoMessageDefaultJiraIssueTermRefresh: {
190
+ id: 'fabric.elements.share.form.info.message.no.invite.jira.issue-term-refresh',
191
+ defaultMessage: 'Recipients will see the name of the work item and your message',
192
+ description: 'Message indicating the recipients of the email share will be able to see the Jira issue title and the included message'
193
+ },
189
194
  requiredFieldSummary: {
190
195
  id: 'fabric.elements.share.form.required-field.summary',
191
196
  defaultMessage: 'Required fields are marked with an asterisk',
@@ -179,6 +179,11 @@ export declare const messages: {
179
179
  defaultMessage: string;
180
180
  description: string;
181
181
  };
182
+ infoMessageDefaultJiraIssueTermRefresh: {
183
+ id: string;
184
+ defaultMessage: string;
185
+ description: string;
186
+ };
182
187
  requiredFieldSummary: {
183
188
  id: string;
184
189
  defaultMessage: string;
@@ -179,6 +179,11 @@ export declare const messages: {
179
179
  defaultMessage: string;
180
180
  description: string;
181
181
  };
182
+ infoMessageDefaultJiraIssueTermRefresh: {
183
+ id: string;
184
+ defaultMessage: string;
185
+ description: string;
186
+ };
182
187
  requiredFieldSummary: {
183
188
  id: string;
184
189
  defaultMessage: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "4.25.6",
3
+ "version": "5.0.0",
4
4
  "description": "Fabric Share Element",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -42,7 +42,7 @@
42
42
  "@atlaskit/button": "^20.5.0",
43
43
  "@atlaskit/dropdown-menu": "^12.26.0",
44
44
  "@atlaskit/form": "^11.1.0",
45
- "@atlaskit/heading": "^4.1.0",
45
+ "@atlaskit/heading": "^4.2.0",
46
46
  "@atlaskit/icon": "^23.9.0",
47
47
  "@atlaskit/link": "^2.1.0",
48
48
  "@atlaskit/menu": "^2.14.0",
@@ -126,6 +126,9 @@
126
126
  },
127
127
  "plans_outgoing_mail_fix": {
128
128
  "type": "boolean"
129
+ },
130
+ "jira-issue-terminology-refresh-m3": {
131
+ "type": "boolean"
129
132
  }
130
133
  }
131
134
  }