@atlaskit/share 4.23.5 → 4.23.7

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.
@@ -1,15 +1,14 @@
1
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
3
  import _createClass from "@babel/runtime/helpers/createClass";
4
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
5
- import _inherits from "@babel/runtime/helpers/inherits";
6
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
7
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
+ import _inherits from "@babel/runtime/helpers/inherits";
8
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
8
  import _regeneratorRuntime from "@babel/runtime/regenerator";
10
9
  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; }
11
10
  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) { _defineProperty(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; }
12
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
11
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
13
12
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
14
13
  /**
15
14
  * @jsxRuntime classic
@@ -61,24 +60,22 @@ export var IconShare = function IconShare() {
61
60
 
62
61
  // eslint-disable-next-line @repo/internal/react/no-class-components
63
62
  export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent) {
64
- _inherits(ShareDialogWithTriggerInternal, _React$PureComponent);
65
- var _super = _createSuper(ShareDialogWithTriggerInternal);
66
63
  function ShareDialogWithTriggerInternal() {
67
64
  var _this;
68
65
  _classCallCheck(this, ShareDialogWithTriggerInternal);
69
66
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
70
67
  args[_key] = arguments[_key];
71
68
  }
72
- _this = _super.call.apply(_super, [this].concat(args));
73
- _defineProperty(_assertThisInitialized(_this), "containerRef", /*#__PURE__*/React.createRef());
69
+ _this = _callSuper(this, ShareDialogWithTriggerInternal, [].concat(args));
70
+ _defineProperty(_this, "containerRef", /*#__PURE__*/React.createRef());
74
71
  /**
75
72
  * Because the PopUp component has a higher zIndex it causes
76
73
  * the select to be rendered within it, and add scrollbars.
77
74
  * We will render the select options the PopUp outside,
78
75
  */
79
- _defineProperty(_assertThisInitialized(_this), "selectPortalRef", /*#__PURE__*/React.createRef());
80
- _defineProperty(_assertThisInitialized(_this), "start", 0);
81
- _defineProperty(_assertThisInitialized(_this), "state", {
76
+ _defineProperty(_this, "selectPortalRef", /*#__PURE__*/React.createRef());
77
+ _defineProperty(_this, "start", 0);
78
+ _defineProperty(_this, "state", {
82
79
  isDialogOpen: false,
83
80
  isSharing: false,
84
81
  ignoreIntermediateState: false,
@@ -90,7 +87,7 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
90
87
  isMenuItemSelected: false,
91
88
  isLoading: false
92
89
  });
93
- _defineProperty(_assertThisInitialized(_this), "closeAndResetDialog", function () {
90
+ _defineProperty(_this, "closeAndResetDialog", function () {
94
91
  _this.setState({
95
92
  defaultValue: defaultShareContentState,
96
93
  ignoreIntermediateState: true,
@@ -110,7 +107,7 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
110
107
  onDialogClose();
111
108
  }
112
109
  });
113
- _defineProperty(_assertThisInitialized(_this), "createAndFireEvent", function (payload) {
110
+ _defineProperty(_this, "createAndFireEvent", function (payload) {
114
111
  var _this$props2 = _this.props,
115
112
  createAnalyticsEvent = _this$props2.createAnalyticsEvent,
116
113
  analyticsDecorator = _this$props2.analyticsDecorator;
@@ -121,7 +118,7 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
121
118
  createAnalyticsEvent(payload).fire(CHANNEL_ID);
122
119
  }
123
120
  });
124
- _defineProperty(_assertThisInitialized(_this), "onTabChange", function (index) {
121
+ _defineProperty(_this, "onTabChange", function (index) {
125
122
  var subjectId = 'shareTab';
126
123
  var shareContentType = _this.props.shareContentType;
127
124
  if (index === 1) {
@@ -132,7 +129,7 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
132
129
  tabIndex: index
133
130
  });
134
131
  });
135
- _defineProperty(_assertThisInitialized(_this), "onMenuItemChange", function (menuType) {
132
+ _defineProperty(_this, "onMenuItemChange", function (menuType) {
136
133
  var subjectId = menuType === 'Slack' ? 'shareToSlackMenuItem' : 'shareMenuItem';
137
134
  var shareContentType = _this.props.shareContentType;
138
135
  _this.createAndFireEvent(shareMenuItemClicked(subjectId, shareContentType));
@@ -140,7 +137,7 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
140
137
  isMenuItemSelected: true
141
138
  });
142
139
  });
143
- _defineProperty(_assertThisInitialized(_this), "getFlags", function () {
140
+ _defineProperty(_this, "getFlags", function () {
144
141
  var formatMessage = _this.props.intl.formatMessage;
145
142
 
146
143
  // The reason for providing message property is that in jira,
@@ -158,17 +155,17 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
158
155
  type: OBJECT_SHARED
159
156
  }];
160
157
  });
161
- _defineProperty(_assertThisInitialized(_this), "setIsLoading", function (isLoading) {
158
+ _defineProperty(_this, "setIsLoading", function (isLoading) {
162
159
  _this.setState({
163
160
  isLoading: isLoading
164
161
  });
165
162
  });
166
- _defineProperty(_assertThisInitialized(_this), "focus", function () {
163
+ _defineProperty(_this, "focus", function () {
167
164
  if (_this.containerRef.current) {
168
165
  _this.containerRef.current.focus();
169
166
  }
170
167
  });
171
- _defineProperty(_assertThisInitialized(_this), "handleKeyDown", function (event) {
168
+ _defineProperty(_this, "handleKeyDown", function (event) {
172
169
  var _this$state = _this.state,
173
170
  isLoading = _this$state.isLoading,
174
171
  isDialogOpen = _this$state.isDialogOpen;
@@ -204,7 +201,7 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
204
201
  }
205
202
  }
206
203
  });
207
- _defineProperty(_assertThisInitialized(_this), "handleDialogOpen", function () {
204
+ _defineProperty(_this, "handleDialogOpen", function () {
208
205
  _this.setState(function (state) {
209
206
  return {
210
207
  isDialogOpen: !state.isDialogOpen,
@@ -231,7 +228,7 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
231
228
  }
232
229
  });
233
230
  });
234
- _defineProperty(_assertThisInitialized(_this), "onTriggerClick", function () {
231
+ _defineProperty(_this, "onTriggerClick", function () {
235
232
  var onTriggerButtonClick = _this.props.onTriggerButtonClick;
236
233
  _this.createAndFireEvent(shareTriggerButtonClicked());
237
234
  _this.handleDialogOpen();
@@ -239,7 +236,7 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
239
236
  onTriggerButtonClick();
240
237
  }
241
238
  });
242
- _defineProperty(_assertThisInitialized(_this), "handleCloseDialog", function () {
239
+ _defineProperty(_this, "handleCloseDialog", function () {
243
240
  if (_this.props.onDialogClose) {
244
241
  _this.props.onDialogClose();
245
242
  }
@@ -256,7 +253,7 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
256
253
  isMenuItemSelected: false
257
254
  });
258
255
  });
259
- _defineProperty(_assertThisInitialized(_this), "handleShareSubmit", function (data) {
256
+ _defineProperty(_this, "handleShareSubmit", function (data) {
260
257
  var _this$props4 = _this.props,
261
258
  onShareSubmit = _this$props4.onShareSubmit,
262
259
  shareContentType = _this$props4.shareContentType,
@@ -319,7 +316,7 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
319
316
  };
320
317
  }());
321
318
  });
322
- _defineProperty(_assertThisInitialized(_this), "handleFormDismiss", function (data) {
319
+ _defineProperty(_this, "handleFormDismiss", function (data) {
323
320
  _this.setState(function (_ref2) {
324
321
  var ignoreIntermediateState = _ref2.ignoreIntermediateState;
325
322
  return ignoreIntermediateState ? null : {
@@ -327,7 +324,7 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
327
324
  };
328
325
  });
329
326
  });
330
- _defineProperty(_assertThisInitialized(_this), "calculatePopupOffset", function (_ref3) {
327
+ _defineProperty(_this, "calculatePopupOffset", function (_ref3) {
331
328
  var isMenuItemSelected = _ref3.isMenuItemSelected,
332
329
  dialogPlacement = _ref3.dialogPlacement;
333
330
  if (isMenuItemSelected && dialogPlacement === 'bottom-end') {
@@ -335,7 +332,7 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
335
332
  }
336
333
  return [0, 8];
337
334
  });
338
- _defineProperty(_assertThisInitialized(_this), "handleCopyLink", function () {
335
+ _defineProperty(_this, "handleCopyLink", function () {
339
336
  var _this$props5 = _this.props,
340
337
  copyLinkOrigin = _this$props5.copyLinkOrigin,
341
338
  shareContentType = _this$props5.shareContentType,
@@ -353,7 +350,7 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
353
350
  shareContentId: shareContentId
354
351
  }));
355
352
  });
356
- _defineProperty(_assertThisInitialized(_this), "handleIntegrationClick", function (integration) {
353
+ _defineProperty(_this, "handleIntegrationClick", function (integration) {
357
354
  _this.setState({
358
355
  isUsingSplitButton: false,
359
356
  isDialogOpen: true,
@@ -361,7 +358,7 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
361
358
  selectedIntegration: integration
362
359
  });
363
360
  });
364
- _defineProperty(_assertThisInitialized(_this), "renderShareTriggerButton", function (triggerProps) {
361
+ _defineProperty(_this, "renderShareTriggerButton", function (triggerProps) {
365
362
  var _this$state2 = _this.state,
366
363
  isDialogOpen = _this$state2.isDialogOpen,
367
364
  isUsingSplitButton = _this$state2.isUsingSplitButton;
@@ -434,7 +431,7 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
434
431
  }
435
432
  return button;
436
433
  });
437
- _defineProperty(_assertThisInitialized(_this), "handleOpenSplitButton", function () {
434
+ _defineProperty(_this, "handleOpenSplitButton", function () {
438
435
  _this.setState({
439
436
  isUsingSplitButton: true
440
437
  }, function () {
@@ -442,12 +439,12 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
442
439
  });
443
440
  _this.createAndFireEvent(shareSplitButtonEvent());
444
441
  });
445
- _defineProperty(_assertThisInitialized(_this), "handleCloseSplitButton", function () {
442
+ _defineProperty(_this, "handleCloseSplitButton", function () {
446
443
  _this.setState({
447
444
  isUsingSplitButton: false
448
445
  });
449
446
  });
450
- _defineProperty(_assertThisInitialized(_this), "handleOnUserSelectionChange", function (value) {
447
+ _defineProperty(_this, "handleOnUserSelectionChange", function (value) {
451
448
  var onUserSelectionChange = _this.props.onUserSelectionChange;
452
449
  _this.setState({
453
450
  shareError: undefined
@@ -456,7 +453,8 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
456
453
  });
457
454
  return _this;
458
455
  }
459
- _createClass(ShareDialogWithTriggerInternal, [{
456
+ _inherits(ShareDialogWithTriggerInternal, _React$PureComponent);
457
+ return _createClass(ShareDialogWithTriggerInternal, [{
460
458
  key: "componentDidMount",
461
459
  value: function componentDidMount() {
462
460
  if (this.props.isAutoOpenDialog) {
@@ -648,7 +646,6 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
648
646
  );
649
647
  }
650
648
  }]);
651
- return ShareDialogWithTriggerInternal;
652
649
  }(React.PureComponent);
653
650
  _defineProperty(ShareDialogWithTriggerInternal, "defaultProps", {
654
651
  isDisabled: false,
@@ -1,14 +1,13 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/createClass";
3
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
4
- import _inherits from "@babel/runtime/helpers/inherits";
5
3
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
6
4
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
5
+ import _inherits from "@babel/runtime/helpers/inherits";
7
6
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
7
  import _extends from "@babel/runtime/helpers/extends";
9
8
  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; }
10
9
  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) { _defineProperty(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; }
11
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
10
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
12
11
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
13
12
  /**
14
13
  * @jsxRuntime classic
@@ -103,20 +102,18 @@ var integrationTabText = function integrationTabText(integrationName) {
103
102
  };
104
103
  // eslint-disable-next-line @repo/internal/react/no-class-components
105
104
  var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
106
- _inherits(InternalForm, _React$PureComponent);
107
- var _super = _createSuper(InternalForm);
108
105
  function InternalForm() {
109
106
  var _this;
110
107
  _classCallCheck(this, InternalForm);
111
108
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
112
109
  args[_key] = arguments[_key];
113
110
  }
114
- _this = _super.call.apply(_super, [this].concat(args));
115
- _defineProperty(_assertThisInitialized(_this), "state", {
111
+ _this = _callSuper(this, InternalForm, [].concat(args));
112
+ _defineProperty(_this, "state", {
116
113
  selectedTab: TabType.default,
117
114
  selectedMenuItem: 'none'
118
115
  });
119
- _defineProperty(_assertThisInitialized(_this), "renderShareForm", function () {
116
+ _defineProperty(_this, "renderShareForm", function () {
120
117
  var _this$props = _this.props,
121
118
  formProps = _this$props.formProps,
122
119
  title = _this$props.title,
@@ -191,7 +188,7 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
191
188
  copiedToClipboardText: formatMessage(messages.copiedToClipboardMessage)
192
189
  }), _this.renderSubmitButton())));
193
190
  });
194
- _defineProperty(_assertThisInitialized(_this), "renderSubmitButton", function () {
191
+ _defineProperty(_this, "renderSubmitButton", function () {
195
192
  var _this$props2 = _this.props,
196
193
  formatMessage = _this$props2.intl.formatMessage,
197
194
  isSharing = _this$props2.isSharing,
@@ -229,7 +226,7 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
229
226
  isDisabled: buttonDisabled
230
227
  }, jsx(ButtonLabelWrapper, null, submitButtonLabel || jsx(FormattedMessage, buttonLabel))));
231
228
  });
232
- _defineProperty(_assertThisInitialized(_this), "renderMainTabTitle", function () {
229
+ _defineProperty(_this, "renderMainTabTitle", function () {
233
230
  var _this$props3 = _this.props,
234
231
  title = _this$props3.title,
235
232
  product = _this$props3.product;
@@ -242,14 +239,14 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
242
239
  var productShareType = product === 'jira' ? _objectSpread({}, messages.shareMainTabTextJira) : _objectSpread({}, messages.shareMainTabTextConfluence);
243
240
  return jsx(FormattedMessage, productShareType);
244
241
  });
245
- _defineProperty(_assertThisInitialized(_this), "changeTab", function (tab) {
242
+ _defineProperty(_this, "changeTab", function (tab) {
246
243
  var _this$props$onTabChan, _this$props4;
247
244
  _this.setState({
248
245
  selectedTab: tab
249
246
  });
250
247
  (_this$props$onTabChan = (_this$props4 = _this.props).onTabChange) === null || _this$props$onTabChan === void 0 || _this$props$onTabChan.call(_this$props4, tab);
251
248
  });
252
- _defineProperty(_assertThisInitialized(_this), "changeMenuItem", function (menuItem) {
249
+ _defineProperty(_this, "changeMenuItem", function (menuItem) {
253
250
  var _this$props$onMenuIte, _this$props5;
254
251
  _this.setState({
255
252
  selectedMenuItem: menuItem
@@ -258,7 +255,8 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
258
255
  });
259
256
  return _this;
260
257
  }
261
- _createClass(InternalForm, [{
258
+ _inherits(InternalForm, _React$PureComponent);
259
+ return _createClass(InternalForm, [{
262
260
  key: "componentWillUnmount",
263
261
  value: function componentWillUnmount() {
264
262
  var _this$props6 = this.props,
@@ -394,7 +392,6 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
394
392
  return this.renderShareForm();
395
393
  }
396
394
  }]);
397
- return InternalForm;
398
395
  }(React.PureComponent);
399
396
  _defineProperty(InternalForm, "defaultProps", {
400
397
  onSubmit: function onSubmit() {}
@@ -1,15 +1,14 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
3
  import _createClass from "@babel/runtime/helpers/createClass";
4
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
5
- import _inherits from "@babel/runtime/helpers/inherits";
6
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
7
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
+ import _inherits from "@babel/runtime/helpers/inherits";
8
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
8
  import _extends from "@babel/runtime/helpers/extends";
10
9
  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; }
11
10
  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) { _defineProperty(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; }
12
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
11
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
13
12
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
14
13
  import React from 'react';
15
14
  import { FormattedMessage, injectIntl } from 'react-intl-next';
@@ -117,16 +116,14 @@ var getRequiredMessageDefault = function getRequiredMessageDefault() {
117
116
 
118
117
  // eslint-disable-next-line @repo/internal/react/no-class-components
119
118
  export var UserPickerFieldComponent = /*#__PURE__*/function (_React$Component) {
120
- _inherits(UserPickerFieldComponent, _React$Component);
121
- var _super = _createSuper(UserPickerFieldComponent);
122
119
  function UserPickerFieldComponent() {
123
120
  var _this;
124
121
  _classCallCheck(this, UserPickerFieldComponent);
125
122
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
126
123
  args[_key] = arguments[_key];
127
124
  }
128
- _this = _super.call.apply(_super, [this].concat(args));
129
- _defineProperty(_assertThisInitialized(_this), "loadOptions", function (search) {
125
+ _this = _callSuper(this, UserPickerFieldComponent, [].concat(args));
126
+ _defineProperty(_this, "loadOptions", function (search) {
130
127
  var loadOptions = _this.props.loadOptions;
131
128
  if (loadOptions && search && search.length > 0) {
132
129
  return loadOptions(search);
@@ -134,7 +131,7 @@ export var UserPickerFieldComponent = /*#__PURE__*/function (_React$Component) {
134
131
  return [];
135
132
  }
136
133
  });
137
- _defineProperty(_assertThisInitialized(_this), "getHelperMessageOrDefault", function () {
134
+ _defineProperty(_this, "getHelperMessageOrDefault", function () {
138
135
  var _this$props = _this.props,
139
136
  product = _this$props.product,
140
137
  isPublicLink = _this$props.isPublicLink,
@@ -147,14 +144,14 @@ export var UserPickerFieldComponent = /*#__PURE__*/function (_React$Component) {
147
144
  }
148
145
  return product === 'jira' ? /*#__PURE__*/React.createElement(FormattedMessage, messages.infoMessageDefaultJira) : /*#__PURE__*/React.createElement(FormattedMessage, messages.infoMessageDefaultConfluence);
149
146
  });
150
- _defineProperty(_assertThisInitialized(_this), "handleUserPickerTransform", function (event, current) {
147
+ _defineProperty(_this, "handleUserPickerTransform", function (event, current) {
151
148
  var onChange = _this.props.onChange;
152
149
  if (onChange) {
153
150
  onChange(event);
154
151
  }
155
152
  return event;
156
153
  });
157
- _defineProperty(_assertThisInitialized(_this), "getSmartUserPickerProps", function () {
154
+ _defineProperty(_this, "getSmartUserPickerProps", function () {
158
155
  var _this$props2 = _this.props,
159
156
  product = _this$props2.product,
160
157
  intl = _this$props2.intl,
@@ -196,7 +193,8 @@ export var UserPickerFieldComponent = /*#__PURE__*/function (_React$Component) {
196
193
  });
197
194
  return _this;
198
195
  }
199
- _createClass(UserPickerFieldComponent, [{
196
+ _inherits(UserPickerFieldComponent, _React$Component);
197
+ return _createClass(UserPickerFieldComponent, [{
200
198
  key: "render",
201
199
  value: function render() {
202
200
  var _this2 = this;
@@ -299,6 +297,5 @@ export var UserPickerFieldComponent = /*#__PURE__*/function (_React$Component) {
299
297
  });
300
298
  }
301
299
  }]);
302
- return UserPickerFieldComponent;
303
300
  }(React.Component);
304
301
  export var UserPickerField = injectIntl(UserPickerFieldComponent);
@@ -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.23.5"
9
+ packageVersion: "4.23.7"
10
10
  }, attributes);
11
11
  };
12
12
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "4.23.5",
3
+ "version": "4.23.7",
4
4
  "description": "Fabric Share Element",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -44,22 +44,22 @@
44
44
  "@atlaskit/form": "^10.6.0",
45
45
  "@atlaskit/heading": "^4.0.0",
46
46
  "@atlaskit/icon": "^23.1.0",
47
- "@atlaskit/link": "^1.2.0",
47
+ "@atlaskit/link": "^2.0.0",
48
48
  "@atlaskit/menu": "^2.13.0",
49
49
  "@atlaskit/platform-feature-flags": "^0.3.0",
50
50
  "@atlaskit/popper": "^6.3.0",
51
51
  "@atlaskit/popup": "^1.30.0",
52
- "@atlaskit/portal": "^4.9.0",
52
+ "@atlaskit/portal": "^4.10.0",
53
53
  "@atlaskit/primitives": "^13.3.0",
54
54
  "@atlaskit/smart-user-picker": "^6.11.0",
55
55
  "@atlaskit/spinner": "^16.3.0",
56
56
  "@atlaskit/tabs": "^17.0.0",
57
57
  "@atlaskit/textarea": "^5.7.0",
58
58
  "@atlaskit/theme": "^14.0.0",
59
- "@atlaskit/tokens": "^2.4.0",
59
+ "@atlaskit/tokens": "^2.5.0",
60
60
  "@atlaskit/tooltip": "^19.0.0",
61
61
  "@atlaskit/ufo": "^0.3.0",
62
- "@atlaskit/user-picker": "^10.27.0",
62
+ "@atlaskit/user-picker": "^10.28.0",
63
63
  "@atlaskit/util-service-support": "^6.2.0",
64
64
  "@babel/runtime": "^7.0.0",
65
65
  "@emotion/react": "^11.7.1",
@@ -72,7 +72,7 @@
72
72
  "react": "^16.8.0 || ^17.0.0 || ^18.2.0"
73
73
  },
74
74
  "devDependencies": {
75
- "@atlaskit/editor-test-helpers": "^20.1.0",
75
+ "@atlaskit/editor-test-helpers": "^21.0.0",
76
76
  "@atlaskit/flag": "^15.8.0",
77
77
  "@atlassian/feature-flags-test-utils": "^0.2.0",
78
78
  "@testing-library/react": "^12.1.5",