@atlaskit/share 6.9.0 → 6.11.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 +17 -0
- package/afm-cc/tsconfig.json +1 -1
- package/dist/cjs/components/ShareForm.js +6 -2
- package/dist/cjs/components/ShareHeader.js +9 -4
- package/dist/cjs/components/SplitButton.js +8 -3
- package/dist/cjs/components/UserPickerField.js +6 -2
- package/dist/cjs/components/analytics/analytics.js +1 -1
- package/dist/es2019/components/ShareForm.js +6 -2
- package/dist/es2019/components/ShareHeader.js +8 -3
- package/dist/es2019/components/SplitButton.js +6 -3
- package/dist/es2019/components/UserPickerField.js +6 -2
- package/dist/es2019/components/analytics/analytics.js +1 -1
- package/dist/esm/components/ShareForm.js +6 -2
- package/dist/esm/components/ShareHeader.js +9 -4
- package/dist/esm/components/SplitButton.js +8 -3
- package/dist/esm/components/UserPickerField.js +6 -2
- package/dist/esm/components/analytics/analytics.js +1 -1
- package/dist/types/components/ShareHeader.d.ts +2 -1
- package/dist/types-ts4.5/components/ShareHeader.d.ts +2 -1
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/share
|
|
2
2
|
|
|
3
|
+
## 6.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#169389](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/169389)
|
|
8
|
+
[`879143e11dc2d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/879143e11dc2d) -
|
|
9
|
+
[ux] Update share dialog styles for the extended variant
|
|
10
|
+
|
|
11
|
+
## 6.10.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#167224](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/167224)
|
|
16
|
+
[`198e371fcf6c7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/198e371fcf6c7) -
|
|
17
|
+
We are testing adding `shouldRenderToProp` to Design System dropdown menu and popup components to
|
|
18
|
+
improve accessibility. If this fix is successful it will be available in a later release.
|
|
19
|
+
|
|
3
20
|
## 6.9.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -83,6 +83,9 @@ var formFooterStyles = exports.formFooterStyles = (0, _react2.css)({
|
|
|
83
83
|
var formFieldStyles = (0, _react2.css)({
|
|
84
84
|
marginBottom: "var(--ds-space-150, 12px)"
|
|
85
85
|
});
|
|
86
|
+
var formFieldStylesSpacious = (0, _react2.css)({
|
|
87
|
+
marginBottom: "var(--ds-space-250, 20px)"
|
|
88
|
+
});
|
|
86
89
|
var integrationWrapperStyles = (0, _react2.css)({
|
|
87
90
|
display: 'flex',
|
|
88
91
|
alignItems: 'center'
|
|
@@ -165,11 +168,12 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
165
168
|
source: _analytics.ANALYTICS_SOURCE
|
|
166
169
|
}
|
|
167
170
|
}, (0, _react2.jsx)("form", formProps, showTitle && (0, _react2.jsx)(_ShareHeader.ShareHeader, {
|
|
171
|
+
isExtendedShareDialogEnabled: isExtendedShareDialogEnabled,
|
|
168
172
|
title: title
|
|
169
173
|
}), !isExtendedShareDialogEnabled && (0, _react2.jsx)("div", {
|
|
170
174
|
css: requiredFieldInfoStyles
|
|
171
175
|
}, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, _i18n.messages.requiredFieldSummary), (0, _react2.jsx)(_form.RequiredAsterisk, null)), (0, _react2.jsx)("div", {
|
|
172
|
-
css: formFieldStyles
|
|
176
|
+
css: isExtendedShareDialogEnabled ? formFieldStyles : formFieldStylesSpacious
|
|
173
177
|
}, isExtendedShareDialogEnabled ? (0, _react2.jsx)(_primitives.Inline, {
|
|
174
178
|
space: "space.100"
|
|
175
179
|
}, (0, _react2.jsx)(_primitives.Box, {
|
|
@@ -215,7 +219,7 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
215
219
|
productAttributes: productAttributes,
|
|
216
220
|
isExtendedShareDialogEnabled: isExtendedShareDialogEnabled
|
|
217
221
|
})), (0, _react2.jsx)("div", {
|
|
218
|
-
css: formFieldStyles
|
|
222
|
+
css: isExtendedShareDialogEnabled ? formFieldStyles : formFieldStylesSpacious
|
|
219
223
|
}, (0, _react2.jsx)(_CommentField.CommentField, {
|
|
220
224
|
defaultValue: defaultValue && defaultValue.comment,
|
|
221
225
|
isExtendedShareDialogEnabled: isExtendedShareDialogEnabled
|
|
@@ -21,14 +21,19 @@ var headerWrapperStyles = (0, _primitives.xcss)({
|
|
|
21
21
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
22
22
|
lineHeight: 'space.400'
|
|
23
23
|
});
|
|
24
|
+
var headerWrapperExtraSpaceStyles = (0, _primitives.xcss)({
|
|
25
|
+
marginBottom: 'space.200'
|
|
26
|
+
});
|
|
24
27
|
var ShareHeader = exports.ShareHeader = function ShareHeader(_ref) {
|
|
25
|
-
var
|
|
28
|
+
var isExtendedShareDialogEnabled = _ref.isExtendedShareDialogEnabled,
|
|
29
|
+
title = _ref.title;
|
|
30
|
+
var headingSize = isExtendedShareDialogEnabled ? 'medium' : 'small';
|
|
26
31
|
return /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
27
|
-
xcss: headerWrapperStyles
|
|
32
|
+
xcss: [headerWrapperStyles, isExtendedShareDialogEnabled && headerWrapperExtraSpaceStyles]
|
|
28
33
|
}, (0, _platformFeatureFlags.fg)('share-header-accessibility') ? /*#__PURE__*/_react.default.createElement(_heading.default, {
|
|
29
|
-
size:
|
|
34
|
+
size: headingSize,
|
|
30
35
|
as: "h2"
|
|
31
36
|
}, title || /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.formTitle)) : /*#__PURE__*/_react.default.createElement(_heading.default, {
|
|
32
|
-
size:
|
|
37
|
+
size: headingSize
|
|
33
38
|
}, title || /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.formTitle)));
|
|
34
39
|
};
|
|
@@ -14,7 +14,7 @@ var _react2 = require("@emotion/react");
|
|
|
14
14
|
var _reactIntlNext = require("react-intl-next");
|
|
15
15
|
var _new = require("@atlaskit/button/new");
|
|
16
16
|
var _dropdownMenu = _interopRequireWildcard(require("@atlaskit/dropdown-menu"));
|
|
17
|
-
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/
|
|
17
|
+
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-down"));
|
|
18
18
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
19
|
var _colors = require("@atlaskit/theme/colors");
|
|
20
20
|
var _i18n = require("../i18n");
|
|
@@ -76,13 +76,18 @@ var SplitButtonDropdown = function SplitButtonDropdown(props) {
|
|
|
76
76
|
label: ""
|
|
77
77
|
}, providedProps, {
|
|
78
78
|
ref: triggerRef,
|
|
79
|
-
icon:
|
|
79
|
+
icon: function icon(iconProps) {
|
|
80
|
+
return (0, _react2.jsx)(_chevronDown.default, (0, _extends2.default)({}, iconProps, {
|
|
81
|
+
size: "small"
|
|
82
|
+
}));
|
|
83
|
+
},
|
|
80
84
|
appearance: triggerButtonAppearance
|
|
81
85
|
}));
|
|
82
86
|
},
|
|
83
87
|
placement: "bottom-end",
|
|
84
88
|
isOpen: isUsingSplitButton,
|
|
85
|
-
onOpenChange: onOpenChange
|
|
89
|
+
onOpenChange: onOpenChange,
|
|
90
|
+
shouldRenderToParent: (0, _platformFeatureFlags.fg)('should-render-to-parent-should-be-true-people-and-')
|
|
86
91
|
}, (0, _react2.jsx)(_dropdownMenu.DropdownItemGroup, null, shareIntegrations.map(function (integration) {
|
|
87
92
|
return (0, _react2.jsx)(_dropdownMenu.DropdownItem, {
|
|
88
93
|
key: integration.type,
|
|
@@ -279,9 +279,13 @@ var UserPickerFieldComponent = exports.UserPickerFieldComponent = /*#__PURE__*/f
|
|
|
279
279
|
var UserPickerComponent = enableSmartUserPicker && !isBrowseUsersDisabled ? _smartUserPicker.default : _userPicker.default;
|
|
280
280
|
var menuPortalTarget = (0, _utils.getMenuPortalTargetCurrentHTML)(selectPortalRef);
|
|
281
281
|
return /*#__PURE__*/_react.default.createElement(_form.Field, {
|
|
282
|
-
label: /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
282
|
+
label: /*#__PURE__*/_react.default.createElement(_compiled.Text, (0, _extends2.default)({
|
|
283
283
|
id: USER_PICKER_FIELD_LABEL
|
|
284
|
-
},
|
|
284
|
+
}, isExtendedShareDialogEnabled ? {
|
|
285
|
+
weight: 'bold',
|
|
286
|
+
size: 'small',
|
|
287
|
+
color: 'color.text.subtle'
|
|
288
|
+
} : {}), /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, getLabelMessage(product, allowEmail, isBrowseUsersDisabled))),
|
|
285
289
|
name: "users",
|
|
286
290
|
validate: !isExtendedShareDialogEnabled ? validate : undefined,
|
|
287
291
|
defaultValue: defaultValue,
|
|
@@ -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: "6.
|
|
16
|
+
packageVersion: "6.11.0"
|
|
17
17
|
}, attributes);
|
|
18
18
|
};
|
|
19
19
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -68,6 +68,9 @@ export const formFooterStyles = css({
|
|
|
68
68
|
const formFieldStyles = css({
|
|
69
69
|
marginBottom: "var(--ds-space-150, 12px)"
|
|
70
70
|
});
|
|
71
|
+
const formFieldStylesSpacious = css({
|
|
72
|
+
marginBottom: "var(--ds-space-250, 20px)"
|
|
73
|
+
});
|
|
71
74
|
const integrationWrapperStyles = css({
|
|
72
75
|
display: 'flex',
|
|
73
76
|
alignItems: 'center'
|
|
@@ -145,11 +148,12 @@ class InternalForm extends React.PureComponent {
|
|
|
145
148
|
source: ANALYTICS_SOURCE
|
|
146
149
|
}
|
|
147
150
|
}, jsx("form", formProps, showTitle && jsx(ShareHeader, {
|
|
151
|
+
isExtendedShareDialogEnabled: isExtendedShareDialogEnabled,
|
|
148
152
|
title: title
|
|
149
153
|
}), !isExtendedShareDialogEnabled && jsx("div", {
|
|
150
154
|
css: requiredFieldInfoStyles
|
|
151
155
|
}, jsx(FormattedMessage, messages.requiredFieldSummary), jsx(RequiredAsterisk, null)), jsx("div", {
|
|
152
|
-
css: formFieldStyles
|
|
156
|
+
css: isExtendedShareDialogEnabled ? formFieldStyles : formFieldStylesSpacious
|
|
153
157
|
}, isExtendedShareDialogEnabled ? jsx(Inline, {
|
|
154
158
|
space: "space.100"
|
|
155
159
|
}, jsx(Box, {
|
|
@@ -195,7 +199,7 @@ class InternalForm extends React.PureComponent {
|
|
|
195
199
|
productAttributes: productAttributes,
|
|
196
200
|
isExtendedShareDialogEnabled: isExtendedShareDialogEnabled
|
|
197
201
|
})), jsx("div", {
|
|
198
|
-
css: formFieldStyles
|
|
202
|
+
css: isExtendedShareDialogEnabled ? formFieldStyles : formFieldStylesSpacious
|
|
199
203
|
}, jsx(CommentField, {
|
|
200
204
|
defaultValue: defaultValue && defaultValue.comment,
|
|
201
205
|
isExtendedShareDialogEnabled: isExtendedShareDialogEnabled
|
|
@@ -14,15 +14,20 @@ const headerWrapperStyles = xcss({
|
|
|
14
14
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
15
15
|
lineHeight: 'space.400'
|
|
16
16
|
});
|
|
17
|
+
const headerWrapperExtraSpaceStyles = xcss({
|
|
18
|
+
marginBottom: 'space.200'
|
|
19
|
+
});
|
|
17
20
|
export const ShareHeader = ({
|
|
21
|
+
isExtendedShareDialogEnabled,
|
|
18
22
|
title
|
|
19
23
|
}) => {
|
|
24
|
+
const headingSize = isExtendedShareDialogEnabled ? 'medium' : 'small';
|
|
20
25
|
return /*#__PURE__*/React.createElement(Box, {
|
|
21
|
-
xcss: headerWrapperStyles
|
|
26
|
+
xcss: [headerWrapperStyles, isExtendedShareDialogEnabled && headerWrapperExtraSpaceStyles]
|
|
22
27
|
}, fg('share-header-accessibility') ? /*#__PURE__*/React.createElement(Heading, {
|
|
23
|
-
size:
|
|
28
|
+
size: headingSize,
|
|
24
29
|
as: "h2"
|
|
25
30
|
}, title || /*#__PURE__*/React.createElement(FormattedMessage, messages.formTitle)) : /*#__PURE__*/React.createElement(Heading, {
|
|
26
|
-
size:
|
|
31
|
+
size: headingSize
|
|
27
32
|
}, title || /*#__PURE__*/React.createElement(FormattedMessage, messages.formTitle)));
|
|
28
33
|
};
|
|
@@ -10,7 +10,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
10
10
|
import { FormattedMessage } from 'react-intl-next';
|
|
11
11
|
import { SplitButton as AKSplitButton, IconButton } from '@atlaskit/button/new';
|
|
12
12
|
import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
13
|
-
import ChevronDownIcon from '@atlaskit/icon/
|
|
13
|
+
import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import { N800 } from '@atlaskit/theme/colors';
|
|
16
16
|
import { messages } from '../i18n';
|
|
@@ -68,12 +68,15 @@ const SplitButtonDropdown = props => {
|
|
|
68
68
|
label: ""
|
|
69
69
|
}, providedProps, {
|
|
70
70
|
ref: triggerRef,
|
|
71
|
-
icon: ChevronDownIcon,
|
|
71
|
+
icon: iconProps => jsx(ChevronDownIcon, _extends({}, iconProps, {
|
|
72
|
+
size: "small"
|
|
73
|
+
})),
|
|
72
74
|
appearance: triggerButtonAppearance
|
|
73
75
|
})),
|
|
74
76
|
placement: "bottom-end",
|
|
75
77
|
isOpen: isUsingSplitButton,
|
|
76
|
-
onOpenChange: onOpenChange
|
|
78
|
+
onOpenChange: onOpenChange,
|
|
79
|
+
shouldRenderToParent: fg('should-render-to-parent-should-be-true-people-and-')
|
|
77
80
|
}, jsx(DropdownItemGroup, null, shareIntegrations.map(integration => jsx(DropdownItem, {
|
|
78
81
|
key: integration.type,
|
|
79
82
|
testId: `split-button-dropdownitem-${integration.type}`
|
|
@@ -232,9 +232,13 @@ export class UserPickerFieldComponent extends React.Component {
|
|
|
232
232
|
const UserPickerComponent = enableSmartUserPicker && !isBrowseUsersDisabled ? SmartUserPicker : UserPicker;
|
|
233
233
|
const menuPortalTarget = getMenuPortalTargetCurrentHTML(selectPortalRef);
|
|
234
234
|
return /*#__PURE__*/React.createElement(Field, {
|
|
235
|
-
label: /*#__PURE__*/React.createElement(Text, {
|
|
235
|
+
label: /*#__PURE__*/React.createElement(Text, _extends({
|
|
236
236
|
id: USER_PICKER_FIELD_LABEL
|
|
237
|
-
},
|
|
237
|
+
}, isExtendedShareDialogEnabled ? {
|
|
238
|
+
weight: 'bold',
|
|
239
|
+
size: 'small',
|
|
240
|
+
color: 'color.text.subtle'
|
|
241
|
+
} : {}), /*#__PURE__*/React.createElement(FormattedMessage, getLabelMessage(product, allowEmail, isBrowseUsersDisabled))),
|
|
238
242
|
name: "users",
|
|
239
243
|
validate: !isExtendedShareDialogEnabled ? validate : undefined,
|
|
240
244
|
defaultValue: defaultValue,
|
|
@@ -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: "6.
|
|
4
|
+
packageVersion: "6.11.0",
|
|
5
5
|
...attributes
|
|
6
6
|
});
|
|
7
7
|
const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
|
|
@@ -77,6 +77,9 @@ export var formFooterStyles = css({
|
|
|
77
77
|
var formFieldStyles = css({
|
|
78
78
|
marginBottom: "var(--ds-space-150, 12px)"
|
|
79
79
|
});
|
|
80
|
+
var formFieldStylesSpacious = css({
|
|
81
|
+
marginBottom: "var(--ds-space-250, 20px)"
|
|
82
|
+
});
|
|
80
83
|
var integrationWrapperStyles = css({
|
|
81
84
|
display: 'flex',
|
|
82
85
|
alignItems: 'center'
|
|
@@ -159,11 +162,12 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
159
162
|
source: ANALYTICS_SOURCE
|
|
160
163
|
}
|
|
161
164
|
}, jsx("form", formProps, showTitle && jsx(ShareHeader, {
|
|
165
|
+
isExtendedShareDialogEnabled: isExtendedShareDialogEnabled,
|
|
162
166
|
title: title
|
|
163
167
|
}), !isExtendedShareDialogEnabled && jsx("div", {
|
|
164
168
|
css: requiredFieldInfoStyles
|
|
165
169
|
}, jsx(FormattedMessage, messages.requiredFieldSummary), jsx(RequiredAsterisk, null)), jsx("div", {
|
|
166
|
-
css: formFieldStyles
|
|
170
|
+
css: isExtendedShareDialogEnabled ? formFieldStyles : formFieldStylesSpacious
|
|
167
171
|
}, isExtendedShareDialogEnabled ? jsx(Inline, {
|
|
168
172
|
space: "space.100"
|
|
169
173
|
}, jsx(Box, {
|
|
@@ -209,7 +213,7 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
209
213
|
productAttributes: productAttributes,
|
|
210
214
|
isExtendedShareDialogEnabled: isExtendedShareDialogEnabled
|
|
211
215
|
})), jsx("div", {
|
|
212
|
-
css: formFieldStyles
|
|
216
|
+
css: isExtendedShareDialogEnabled ? formFieldStyles : formFieldStylesSpacious
|
|
213
217
|
}, jsx(CommentField, {
|
|
214
218
|
defaultValue: defaultValue && defaultValue.comment,
|
|
215
219
|
isExtendedShareDialogEnabled: isExtendedShareDialogEnabled
|
|
@@ -14,14 +14,19 @@ var headerWrapperStyles = xcss({
|
|
|
14
14
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
15
15
|
lineHeight: 'space.400'
|
|
16
16
|
});
|
|
17
|
+
var headerWrapperExtraSpaceStyles = xcss({
|
|
18
|
+
marginBottom: 'space.200'
|
|
19
|
+
});
|
|
17
20
|
export var ShareHeader = function ShareHeader(_ref) {
|
|
18
|
-
var
|
|
21
|
+
var isExtendedShareDialogEnabled = _ref.isExtendedShareDialogEnabled,
|
|
22
|
+
title = _ref.title;
|
|
23
|
+
var headingSize = isExtendedShareDialogEnabled ? 'medium' : 'small';
|
|
19
24
|
return /*#__PURE__*/React.createElement(Box, {
|
|
20
|
-
xcss: headerWrapperStyles
|
|
25
|
+
xcss: [headerWrapperStyles, isExtendedShareDialogEnabled && headerWrapperExtraSpaceStyles]
|
|
21
26
|
}, fg('share-header-accessibility') ? /*#__PURE__*/React.createElement(Heading, {
|
|
22
|
-
size:
|
|
27
|
+
size: headingSize,
|
|
23
28
|
as: "h2"
|
|
24
29
|
}, title || /*#__PURE__*/React.createElement(FormattedMessage, messages.formTitle)) : /*#__PURE__*/React.createElement(Heading, {
|
|
25
|
-
size:
|
|
30
|
+
size: headingSize
|
|
26
31
|
}, title || /*#__PURE__*/React.createElement(FormattedMessage, messages.formTitle)));
|
|
27
32
|
};
|
|
@@ -13,7 +13,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
13
13
|
import { FormattedMessage } from 'react-intl-next';
|
|
14
14
|
import { SplitButton as AKSplitButton, IconButton } from '@atlaskit/button/new';
|
|
15
15
|
import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
16
|
-
import ChevronDownIcon from '@atlaskit/icon/
|
|
16
|
+
import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
|
|
17
17
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
18
|
import { N800 } from '@atlaskit/theme/colors';
|
|
19
19
|
import { messages } from '../i18n';
|
|
@@ -69,13 +69,18 @@ var SplitButtonDropdown = function SplitButtonDropdown(props) {
|
|
|
69
69
|
label: ""
|
|
70
70
|
}, providedProps, {
|
|
71
71
|
ref: triggerRef,
|
|
72
|
-
icon:
|
|
72
|
+
icon: function icon(iconProps) {
|
|
73
|
+
return jsx(ChevronDownIcon, _extends({}, iconProps, {
|
|
74
|
+
size: "small"
|
|
75
|
+
}));
|
|
76
|
+
},
|
|
73
77
|
appearance: triggerButtonAppearance
|
|
74
78
|
}));
|
|
75
79
|
},
|
|
76
80
|
placement: "bottom-end",
|
|
77
81
|
isOpen: isUsingSplitButton,
|
|
78
|
-
onOpenChange: onOpenChange
|
|
82
|
+
onOpenChange: onOpenChange,
|
|
83
|
+
shouldRenderToParent: fg('should-render-to-parent-should-be-true-people-and-')
|
|
79
84
|
}, jsx(DropdownItemGroup, null, shareIntegrations.map(function (integration) {
|
|
80
85
|
return jsx(DropdownItem, {
|
|
81
86
|
key: integration.type,
|
|
@@ -270,9 +270,13 @@ export var UserPickerFieldComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
270
270
|
var UserPickerComponent = enableSmartUserPicker && !isBrowseUsersDisabled ? SmartUserPicker : UserPicker;
|
|
271
271
|
var menuPortalTarget = getMenuPortalTargetCurrentHTML(selectPortalRef);
|
|
272
272
|
return /*#__PURE__*/React.createElement(Field, {
|
|
273
|
-
label: /*#__PURE__*/React.createElement(Text, {
|
|
273
|
+
label: /*#__PURE__*/React.createElement(Text, _extends({
|
|
274
274
|
id: USER_PICKER_FIELD_LABEL
|
|
275
|
-
},
|
|
275
|
+
}, isExtendedShareDialogEnabled ? {
|
|
276
|
+
weight: 'bold',
|
|
277
|
+
size: 'small',
|
|
278
|
+
color: 'color.text.subtle'
|
|
279
|
+
} : {}), /*#__PURE__*/React.createElement(FormattedMessage, getLabelMessage(product, allowEmail, isBrowseUsersDisabled))),
|
|
276
280
|
name: "users",
|
|
277
281
|
validate: !isExtendedShareDialogEnabled ? validate : undefined,
|
|
278
282
|
defaultValue: defaultValue,
|
|
@@ -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: "6.
|
|
9
|
+
packageVersion: "6.11.0"
|
|
10
10
|
}, attributes);
|
|
11
11
|
};
|
|
12
12
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export type Props = {
|
|
3
|
+
isExtendedShareDialogEnabled?: boolean;
|
|
3
4
|
title?: React.ReactNode;
|
|
4
5
|
};
|
|
5
|
-
export declare const ShareHeader: ({ title }: Props) => React.JSX.Element;
|
|
6
|
+
export declare const ShareHeader: ({ isExtendedShareDialogEnabled, title }: Props) => React.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export type Props = {
|
|
3
|
+
isExtendedShareDialogEnabled?: boolean;
|
|
3
4
|
title?: React.ReactNode;
|
|
4
5
|
};
|
|
5
|
-
export declare const ShareHeader: ({ title }: Props) => React.JSX.Element;
|
|
6
|
+
export declare const ShareHeader: ({ isExtendedShareDialogEnabled, title }: Props) => React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/share",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.11.0",
|
|
4
4
|
"description": "Fabric Share Element",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@atlaskit/tabs": "^18.1.0",
|
|
58
58
|
"@atlaskit/textarea": "^8.0.0",
|
|
59
59
|
"@atlaskit/theme": "^18.0.0",
|
|
60
|
-
"@atlaskit/tokens": "^5.
|
|
60
|
+
"@atlaskit/tokens": "^5.1.0",
|
|
61
61
|
"@atlaskit/tooltip": "^20.3.0",
|
|
62
62
|
"@atlaskit/ufo": "^0.4.0",
|
|
63
63
|
"@atlaskit/user-picker": "^11.2.0",
|
|
@@ -139,6 +139,9 @@
|
|
|
139
139
|
},
|
|
140
140
|
"dst-a11y__replace-anchor-with-link__people-and-tea": {
|
|
141
141
|
"type": "boolean"
|
|
142
|
+
},
|
|
143
|
+
"should-render-to-parent-should-be-true-people-and-": {
|
|
144
|
+
"type": "boolean"
|
|
142
145
|
}
|
|
143
146
|
},
|
|
144
147
|
"sideEffects": [
|