@atlaskit/share 4.16.11 → 4.16.13

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.
@@ -586,7 +586,9 @@ var ShareDialogWithTriggerInternal = exports.ShareDialogWithTriggerInternal = /*
586
586
  onClose: this.handleCloseDialog,
587
587
  placement: dialogPlacement,
588
588
  trigger: this.renderShareTriggerButton,
589
- zIndex: dialogZIndex
589
+ zIndex: dialogZIndex,
590
+ label: this.props.intl.formatMessage(_i18n.messages.sharePopupLabel),
591
+ role: "dialog"
590
592
  }), (0, _react2.jsx)(_portal.default, {
591
593
  zIndex: (0, _utils.generateSelectZIndex)(dialogZIndex)
592
594
  }, (0, _react2.jsx)("div", {
@@ -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.16.11"
16
+ packageVersion: "4.16.13"
17
17
  }, attributes);
18
18
  };
19
19
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
package/dist/cjs/i18n.js CHANGED
@@ -243,5 +243,10 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
243
243
  id: 'fabric.elements.share.invite.to.jira',
244
244
  defaultMessage: 'Invite to Jira',
245
245
  description: 'Text for the byline of the non-licensed users'
246
+ },
247
+ sharePopupLabel: {
248
+ id: 'fabric.elements.share.popup.label',
249
+ defaultMessage: 'Share',
250
+ description: 'Label of the popup that contains share menu used by assistive technologies'
246
251
  }
247
252
  });
@@ -529,7 +529,9 @@ export class ShareDialogWithTriggerInternal extends React.PureComponent {
529
529
  onClose: this.handleCloseDialog,
530
530
  placement: dialogPlacement,
531
531
  trigger: this.renderShareTriggerButton,
532
- zIndex: dialogZIndex
532
+ zIndex: dialogZIndex,
533
+ label: this.props.intl.formatMessage(messages.sharePopupLabel),
534
+ role: "dialog"
533
535
  }), jsx(Portal, {
534
536
  zIndex: generateSelectZIndex(dialogZIndex)
535
537
  }, jsx("div", {
@@ -1,7 +1,7 @@
1
1
  import { isEmail, isExternalUser, isTeam, isUser } from '@atlaskit/smart-user-picker';
2
2
  const buildAttributes = (attributes = {}) => ({
3
3
  packageName: "@atlaskit/share",
4
- packageVersion: "4.16.11",
4
+ packageVersion: "4.16.13",
5
5
  ...attributes
6
6
  });
7
7
  const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
@@ -237,5 +237,10 @@ export const messages = defineMessages({
237
237
  id: 'fabric.elements.share.invite.to.jira',
238
238
  defaultMessage: 'Invite to Jira',
239
239
  description: 'Text for the byline of the non-licensed users'
240
+ },
241
+ sharePopupLabel: {
242
+ id: 'fabric.elements.share.popup.label',
243
+ defaultMessage: 'Share',
244
+ description: 'Label of the popup that contains share menu used by assistive technologies'
240
245
  }
241
246
  });
@@ -584,7 +584,9 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
584
584
  onClose: this.handleCloseDialog,
585
585
  placement: dialogPlacement,
586
586
  trigger: this.renderShareTriggerButton,
587
- zIndex: dialogZIndex
587
+ zIndex: dialogZIndex,
588
+ label: this.props.intl.formatMessage(messages.sharePopupLabel),
589
+ role: "dialog"
588
590
  }), jsx(Portal, {
589
591
  zIndex: generateSelectZIndex(dialogZIndex)
590
592
  }, jsx("div", {
@@ -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.16.11"
9
+ packageVersion: "4.16.13"
10
10
  }, attributes);
11
11
  };
12
12
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
package/dist/esm/i18n.js CHANGED
@@ -237,5 +237,10 @@ export var messages = defineMessages({
237
237
  id: 'fabric.elements.share.invite.to.jira',
238
238
  defaultMessage: 'Invite to Jira',
239
239
  description: 'Text for the byline of the non-licensed users'
240
+ },
241
+ sharePopupLabel: {
242
+ id: 'fabric.elements.share.popup.label',
243
+ defaultMessage: 'Share',
244
+ description: 'Label of the popup that contains share menu used by assistive technologies'
240
245
  }
241
246
  });
@@ -1,11 +1,11 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
3
  import { jsx } from '@emotion/react';
4
- import { WrappedComponentProps } from 'react-intl-next';
5
- import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
6
- import { TriggerProps } from '@atlaskit/popup';
7
- import { Value } from '@atlaskit/user-picker';
8
- import { Integration, ShareData, ShareDialogWithTriggerProps, ShareDialogWithTriggerStates } from '../types';
4
+ import { type WrappedComponentProps } from 'react-intl-next';
5
+ import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
6
+ import { type TriggerProps } from '@atlaskit/popup';
7
+ import { type Value } from '@atlaskit/user-picker';
8
+ import { type Integration, type ShareData, type ShareDialogWithTriggerProps, type ShareDialogWithTriggerStates } from '../types';
9
9
  export declare const defaultShareContentState: ShareData;
10
10
  type ShareDialogWithTriggerInternalProps = ShareDialogWithTriggerProps & WrappedComponentProps & WithAnalyticsEventsProps;
11
11
  export declare class ShareDialogWithTriggerInternal extends React.PureComponent<ShareDialogWithTriggerInternalProps, ShareDialogWithTriggerStates> {
@@ -229,4 +229,9 @@ export declare const messages: {
229
229
  defaultMessage: string;
230
230
  description: string;
231
231
  };
232
+ sharePopupLabel: {
233
+ id: string;
234
+ defaultMessage: string;
235
+ description: string;
236
+ };
232
237
  };
@@ -1,11 +1,11 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
3
  import { jsx } from '@emotion/react';
4
- import { WrappedComponentProps } from 'react-intl-next';
5
- import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
6
- import { TriggerProps } from '@atlaskit/popup';
7
- import { Value } from '@atlaskit/user-picker';
8
- import { Integration, ShareData, ShareDialogWithTriggerProps, ShareDialogWithTriggerStates } from '../types';
4
+ import { type WrappedComponentProps } from 'react-intl-next';
5
+ import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
6
+ import { type TriggerProps } from '@atlaskit/popup';
7
+ import { type Value } from '@atlaskit/user-picker';
8
+ import { type Integration, type ShareData, type ShareDialogWithTriggerProps, type ShareDialogWithTriggerStates } from '../types';
9
9
  export declare const defaultShareContentState: ShareData;
10
10
  type ShareDialogWithTriggerInternalProps = ShareDialogWithTriggerProps & WrappedComponentProps & WithAnalyticsEventsProps;
11
11
  export declare class ShareDialogWithTriggerInternal extends React.PureComponent<ShareDialogWithTriggerInternalProps, ShareDialogWithTriggerStates> {
@@ -229,4 +229,9 @@ export declare const messages: {
229
229
  defaultMessage: string;
230
230
  description: string;
231
231
  };
232
+ sharePopupLabel: {
233
+ id: string;
234
+ defaultMessage: string;
235
+ description: string;
236
+ };
232
237
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "4.16.11",
3
+ "version": "4.16.13",
4
4
  "description": "Fabric Share Element",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -43,21 +43,21 @@
43
43
  "dependencies": {
44
44
  "@atlaskit/analytics-next": "^9.3.0",
45
45
  "@atlaskit/button": "^17.14.0",
46
- "@atlaskit/dropdown-menu": "^12.9.0",
47
- "@atlaskit/form": "^9.3.0",
46
+ "@atlaskit/dropdown-menu": "^12.10.0",
47
+ "@atlaskit/form": "^10.0.0",
48
48
  "@atlaskit/icon": "^22.1.0",
49
49
  "@atlaskit/popper": "^5.5.4",
50
- "@atlaskit/popup": "^1.14.0",
51
- "@atlaskit/portal": "^4.4.0",
50
+ "@atlaskit/popup": "^1.17.0",
51
+ "@atlaskit/portal": "^4.5.0",
52
52
  "@atlaskit/smart-user-picker": "^6.9.0",
53
- "@atlaskit/spinner": "^16.0.0",
54
- "@atlaskit/tabs": "^16.0.0",
55
- "@atlaskit/textarea": "^5.2.0",
56
- "@atlaskit/theme": "^12.7.0",
57
- "@atlaskit/tokens": "^1.43.0",
58
- "@atlaskit/tooltip": "^18.2.0",
53
+ "@atlaskit/spinner": "^16.1.0",
54
+ "@atlaskit/tabs": "^16.1.0",
55
+ "@atlaskit/textarea": "^5.4.0",
56
+ "@atlaskit/theme": "^12.8.0",
57
+ "@atlaskit/tokens": "^1.47.0",
58
+ "@atlaskit/tooltip": "^18.3.0",
59
59
  "@atlaskit/ufo": "^0.2.0",
60
- "@atlaskit/user-picker": "^10.19.0",
60
+ "@atlaskit/user-picker": "^10.20.0",
61
61
  "@atlaskit/util-service-support": "^6.2.0",
62
62
  "@babel/runtime": "^7.0.0",
63
63
  "@emotion/react": "^11.7.1",
@@ -72,8 +72,8 @@
72
72
  "react": "^16.8.0"
73
73
  },
74
74
  "devDependencies": {
75
- "@atlaskit/editor-test-helpers": "^18.21.0",
76
- "@atlaskit/flag": "^15.4.0",
75
+ "@atlaskit/editor-test-helpers": "^18.22.0",
76
+ "@atlaskit/flag": "^15.5.0",
77
77
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
78
78
  "@testing-library/react": "^12.1.5",
79
79
  "@testing-library/user-event": "^14.4.3",