@atlaskit/share 4.18.11 → 4.19.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 +12 -0
- package/dist/cjs/components/LazyShareForm/LazyShareForm.js +2 -0
- package/dist/cjs/components/ShareDialogContainer.js +2 -0
- package/dist/cjs/components/ShareDialogWithTrigger.js +2 -0
- package/dist/cjs/components/ShareForm.js +4 -2
- package/dist/cjs/components/UserPickerField.js +4 -2
- package/dist/cjs/components/analytics/analytics.js +1 -1
- package/dist/es2019/components/LazyShareForm/LazyShareForm.js +2 -0
- package/dist/es2019/components/ShareDialogContainer.js +2 -0
- package/dist/es2019/components/ShareDialogWithTrigger.js +2 -0
- package/dist/es2019/components/ShareForm.js +4 -2
- package/dist/es2019/components/UserPickerField.js +4 -2
- package/dist/es2019/components/analytics/analytics.js +1 -1
- package/dist/esm/components/LazyShareForm/LazyShareForm.js +2 -0
- package/dist/esm/components/ShareDialogContainer.js +2 -0
- package/dist/esm/components/ShareDialogWithTrigger.js +2 -0
- package/dist/esm/components/ShareForm.js +4 -2
- package/dist/esm/components/UserPickerField.js +4 -2
- package/dist/esm/components/analytics/analytics.js +1 -1
- package/dist/types/components/LazyShareForm/LazyShareForm.d.ts +1 -1
- package/dist/types/components/UserPickerField.d.ts +2 -1
- package/dist/types/types/ShareDialogContainer.d.ts +2 -1
- package/dist/types/types/ShareDialogWithTrigger.d.ts +1 -1
- package/dist/types/types/ShareForm.d.ts +1 -1
- package/dist/types-ts4.5/components/LazyShareForm/LazyShareForm.d.ts +1 -1
- package/dist/types-ts4.5/components/UserPickerField.d.ts +2 -1
- package/dist/types-ts4.5/types/ShareDialogContainer.d.ts +2 -1
- package/dist/types-ts4.5/types/ShareDialogWithTrigger.d.ts +1 -1
- package/dist/types-ts4.5/types/ShareForm.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/share
|
|
2
2
|
|
|
3
|
+
## 4.19.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#121686](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/121686)
|
|
8
|
+
[`806f67cf6655e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/806f67cf6655e) -
|
|
9
|
+
[ux] passing an optional productAttributes
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 4.18.11
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -49,6 +49,7 @@ function LazyShareForm(props) {
|
|
|
49
49
|
bottomMessage = props.bottomMessage,
|
|
50
50
|
submitButtonLabel = props.submitButtonLabel,
|
|
51
51
|
product = props.product,
|
|
52
|
+
productAttributes = props.productAttributes,
|
|
52
53
|
customFooter = props.customFooter,
|
|
53
54
|
enableSmartUserPicker = props.enableSmartUserPicker,
|
|
54
55
|
loggedInAccountId = props.loggedInAccountId,
|
|
@@ -111,6 +112,7 @@ function LazyShareForm(props) {
|
|
|
111
112
|
config: config,
|
|
112
113
|
submitButtonLabel: submitButtonLabel,
|
|
113
114
|
product: product,
|
|
115
|
+
productAttributes: productAttributes,
|
|
114
116
|
enableSmartUserPicker: enableSmartUserPicker,
|
|
115
117
|
loggedInAccountId: loggedInAccountId,
|
|
116
118
|
cloudId: cloudId,
|
|
@@ -344,6 +344,7 @@ var ShareDialogContainerInternal = exports.ShareDialogContainerInternal = /*#__P
|
|
|
344
344
|
bottomMessage = _this$props2.bottomMessage,
|
|
345
345
|
shareeAction = _this$props2.shareeAction,
|
|
346
346
|
product = _this$props2.product,
|
|
347
|
+
productAttributes = _this$props2.productAttributes,
|
|
347
348
|
customFooter = _this$props2.customFooter,
|
|
348
349
|
onTriggerButtonClick = _this$props2.onTriggerButtonClick,
|
|
349
350
|
onUserSelectionChange = _this$props2.onUserSelectionChange,
|
|
@@ -394,6 +395,7 @@ var ShareDialogContainerInternal = exports.ShareDialogContainerInternal = /*#__P
|
|
|
394
395
|
bottomMessage: bottomMessage,
|
|
395
396
|
submitButtonLabel: shareeAction === 'edit' && /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.inviteTriggerButtonText),
|
|
396
397
|
product: product,
|
|
398
|
+
productAttributes: productAttributes,
|
|
397
399
|
customFooter: customFooter,
|
|
398
400
|
onUserSelectionChange: onUserSelectionChange,
|
|
399
401
|
shareFieldsFooter: shareFieldsFooter,
|
|
@@ -535,6 +535,7 @@ var ShareDialogWithTriggerInternal = exports.ShareDialogWithTriggerInternal = /*
|
|
|
535
535
|
bottomMessage = _this$props7.bottomMessage,
|
|
536
536
|
submitButtonLabel = _this$props7.submitButtonLabel,
|
|
537
537
|
product = _this$props7.product,
|
|
538
|
+
productAttributes = _this$props7.productAttributes,
|
|
538
539
|
customFooter = _this$props7.customFooter,
|
|
539
540
|
enableSmartUserPicker = _this$props7.enableSmartUserPicker,
|
|
540
541
|
loggedInAccountId = _this$props7.loggedInAccountId,
|
|
@@ -585,6 +586,7 @@ var ShareDialogWithTriggerInternal = exports.ShareDialogWithTriggerInternal = /*
|
|
|
585
586
|
setIsLoading: _this2.setIsLoading,
|
|
586
587
|
submitButtonLabel: submitButtonLabel,
|
|
587
588
|
product: product,
|
|
589
|
+
productAttributes: productAttributes,
|
|
588
590
|
enableSmartUserPicker: enableSmartUserPicker,
|
|
589
591
|
loggedInAccountId: loggedInAccountId,
|
|
590
592
|
cloudId: cloudId,
|
|
@@ -151,7 +151,8 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
151
151
|
isBrowseUsersDisabled = _this$props.isBrowseUsersDisabled,
|
|
152
152
|
formatMessage = _this$props.intl.formatMessage,
|
|
153
153
|
shareError = _this$props.shareError,
|
|
154
|
-
userPickerOptions = _this$props.userPickerOptions
|
|
154
|
+
userPickerOptions = _this$props.userPickerOptions,
|
|
155
|
+
productAttributes = _this$props.productAttributes;
|
|
155
156
|
return (0, _react2.jsx)(_analyticsNext.AnalyticsContext, {
|
|
156
157
|
data: {
|
|
157
158
|
source: _analytics.ANALYTICS_SOURCE
|
|
@@ -179,7 +180,8 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
179
180
|
orgId: orgId,
|
|
180
181
|
isBrowseUsersDisabled: isBrowseUsersDisabled,
|
|
181
182
|
shareError: shareError,
|
|
182
|
-
userPickerOptions: userPickerOptions
|
|
183
|
+
userPickerOptions: userPickerOptions,
|
|
184
|
+
productAttributes: productAttributes
|
|
183
185
|
})), (0, _react2.jsx)("div", {
|
|
184
186
|
css: formFieldStyles
|
|
185
187
|
}, (0, _react2.jsx)(_CommentField.CommentField, {
|
|
@@ -171,7 +171,8 @@ var UserPickerFieldComponent = exports.UserPickerFieldComponent = /*#__PURE__*/f
|
|
|
171
171
|
orgId = _this$props2.orgId,
|
|
172
172
|
enableSmartUserPicker = _this$props2.enableSmartUserPicker,
|
|
173
173
|
isBrowseUsersDisabled = _this$props2.isBrowseUsersDisabled,
|
|
174
|
-
userPickerOptions = _this$props2.userPickerOptions
|
|
174
|
+
userPickerOptions = _this$props2.userPickerOptions,
|
|
175
|
+
productAttributes = _this$props2.productAttributes;
|
|
175
176
|
if (!enableSmartUserPicker || isBrowseUsersDisabled) {
|
|
176
177
|
return {};
|
|
177
178
|
}
|
|
@@ -182,7 +183,8 @@ var UserPickerFieldComponent = exports.UserPickerFieldComponent = /*#__PURE__*/f
|
|
|
182
183
|
includeTeams: true,
|
|
183
184
|
includeGroups: true,
|
|
184
185
|
debounceTime: DEBOUNCE_MS,
|
|
185
|
-
orgId: orgId
|
|
186
|
+
orgId: orgId,
|
|
187
|
+
productAttributes: productAttributes
|
|
186
188
|
};
|
|
187
189
|
var externalUserBylineByProduct = {
|
|
188
190
|
confluence: intl.formatMessage(_i18n.messages.inviteToConfluence),
|
|
@@ -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
|
+
packageVersion: "4.19.0"
|
|
17
17
|
}, attributes);
|
|
18
18
|
};
|
|
19
19
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -41,6 +41,7 @@ function LazyShareForm(props) {
|
|
|
41
41
|
bottomMessage,
|
|
42
42
|
submitButtonLabel,
|
|
43
43
|
product,
|
|
44
|
+
productAttributes,
|
|
44
45
|
customFooter,
|
|
45
46
|
enableSmartUserPicker,
|
|
46
47
|
loggedInAccountId,
|
|
@@ -107,6 +108,7 @@ function LazyShareForm(props) {
|
|
|
107
108
|
config: config,
|
|
108
109
|
submitButtonLabel: submitButtonLabel,
|
|
109
110
|
product: product,
|
|
111
|
+
productAttributes: productAttributes,
|
|
110
112
|
enableSmartUserPicker: enableSmartUserPicker,
|
|
111
113
|
loggedInAccountId: loggedInAccountId,
|
|
112
114
|
cloudId: cloudId,
|
|
@@ -290,6 +290,7 @@ export class ShareDialogContainerInternal extends React.Component {
|
|
|
290
290
|
bottomMessage,
|
|
291
291
|
shareeAction,
|
|
292
292
|
product,
|
|
293
|
+
productAttributes,
|
|
293
294
|
customFooter,
|
|
294
295
|
onTriggerButtonClick,
|
|
295
296
|
onUserSelectionChange,
|
|
@@ -342,6 +343,7 @@ export class ShareDialogContainerInternal extends React.Component {
|
|
|
342
343
|
bottomMessage: bottomMessage,
|
|
343
344
|
submitButtonLabel: shareeAction === 'edit' && /*#__PURE__*/React.createElement(FormattedMessage, messages.inviteTriggerButtonText),
|
|
344
345
|
product: product,
|
|
346
|
+
productAttributes: productAttributes,
|
|
345
347
|
customFooter: customFooter,
|
|
346
348
|
onUserSelectionChange: onUserSelectionChange,
|
|
347
349
|
shareFieldsFooter: shareFieldsFooter,
|
|
@@ -483,6 +483,7 @@ export class ShareDialogWithTriggerInternal extends React.PureComponent {
|
|
|
483
483
|
bottomMessage,
|
|
484
484
|
submitButtonLabel,
|
|
485
485
|
product,
|
|
486
|
+
productAttributes,
|
|
486
487
|
customFooter,
|
|
487
488
|
enableSmartUserPicker,
|
|
488
489
|
loggedInAccountId,
|
|
@@ -533,6 +534,7 @@ export class ShareDialogWithTriggerInternal extends React.PureComponent {
|
|
|
533
534
|
setIsLoading: this.setIsLoading,
|
|
534
535
|
submitButtonLabel: submitButtonLabel,
|
|
535
536
|
product: product,
|
|
537
|
+
productAttributes: productAttributes,
|
|
536
538
|
enableSmartUserPicker: enableSmartUserPicker,
|
|
537
539
|
loggedInAccountId: loggedInAccountId,
|
|
538
540
|
cloudId: cloudId,
|
|
@@ -126,7 +126,8 @@ class InternalForm extends React.PureComponent {
|
|
|
126
126
|
formatMessage
|
|
127
127
|
},
|
|
128
128
|
shareError,
|
|
129
|
-
userPickerOptions
|
|
129
|
+
userPickerOptions,
|
|
130
|
+
productAttributes
|
|
130
131
|
} = this.props;
|
|
131
132
|
return jsx(AnalyticsContext, {
|
|
132
133
|
data: {
|
|
@@ -155,7 +156,8 @@ class InternalForm extends React.PureComponent {
|
|
|
155
156
|
orgId: orgId,
|
|
156
157
|
isBrowseUsersDisabled: isBrowseUsersDisabled,
|
|
157
158
|
shareError: shareError,
|
|
158
|
-
userPickerOptions: userPickerOptions
|
|
159
|
+
userPickerOptions: userPickerOptions,
|
|
160
|
+
productAttributes: productAttributes
|
|
159
161
|
})), jsx("div", {
|
|
160
162
|
css: formFieldStyles
|
|
161
163
|
}, jsx(CommentField, {
|
|
@@ -138,7 +138,8 @@ export class UserPickerFieldComponent extends React.Component {
|
|
|
138
138
|
orgId,
|
|
139
139
|
enableSmartUserPicker,
|
|
140
140
|
isBrowseUsersDisabled,
|
|
141
|
-
userPickerOptions
|
|
141
|
+
userPickerOptions,
|
|
142
|
+
productAttributes
|
|
142
143
|
} = this.props;
|
|
143
144
|
if (!enableSmartUserPicker || isBrowseUsersDisabled) {
|
|
144
145
|
return {};
|
|
@@ -150,7 +151,8 @@ export class UserPickerFieldComponent extends React.Component {
|
|
|
150
151
|
includeTeams: true,
|
|
151
152
|
includeGroups: true,
|
|
152
153
|
debounceTime: DEBOUNCE_MS,
|
|
153
|
-
orgId
|
|
154
|
+
orgId,
|
|
155
|
+
productAttributes
|
|
154
156
|
};
|
|
155
157
|
const externalUserBylineByProduct = {
|
|
156
158
|
confluence: intl.formatMessage(messages.inviteToConfluence),
|
|
@@ -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.
|
|
4
|
+
packageVersion: "4.19.0",
|
|
5
5
|
...attributes
|
|
6
6
|
});
|
|
7
7
|
const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
|
|
@@ -40,6 +40,7 @@ function LazyShareForm(props) {
|
|
|
40
40
|
bottomMessage = props.bottomMessage,
|
|
41
41
|
submitButtonLabel = props.submitButtonLabel,
|
|
42
42
|
product = props.product,
|
|
43
|
+
productAttributes = props.productAttributes,
|
|
43
44
|
customFooter = props.customFooter,
|
|
44
45
|
enableSmartUserPicker = props.enableSmartUserPicker,
|
|
45
46
|
loggedInAccountId = props.loggedInAccountId,
|
|
@@ -102,6 +103,7 @@ function LazyShareForm(props) {
|
|
|
102
103
|
config: config,
|
|
103
104
|
submitButtonLabel: submitButtonLabel,
|
|
104
105
|
product: product,
|
|
106
|
+
productAttributes: productAttributes,
|
|
105
107
|
enableSmartUserPicker: enableSmartUserPicker,
|
|
106
108
|
loggedInAccountId: loggedInAccountId,
|
|
107
109
|
cloudId: cloudId,
|
|
@@ -337,6 +337,7 @@ export var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Componen
|
|
|
337
337
|
bottomMessage = _this$props2.bottomMessage,
|
|
338
338
|
shareeAction = _this$props2.shareeAction,
|
|
339
339
|
product = _this$props2.product,
|
|
340
|
+
productAttributes = _this$props2.productAttributes,
|
|
340
341
|
customFooter = _this$props2.customFooter,
|
|
341
342
|
onTriggerButtonClick = _this$props2.onTriggerButtonClick,
|
|
342
343
|
onUserSelectionChange = _this$props2.onUserSelectionChange,
|
|
@@ -387,6 +388,7 @@ export var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Componen
|
|
|
387
388
|
bottomMessage: bottomMessage,
|
|
388
389
|
submitButtonLabel: shareeAction === 'edit' && /*#__PURE__*/React.createElement(FormattedMessage, messages.inviteTriggerButtonText),
|
|
389
390
|
product: product,
|
|
391
|
+
productAttributes: productAttributes,
|
|
390
392
|
customFooter: customFooter,
|
|
391
393
|
onUserSelectionChange: onUserSelectionChange,
|
|
392
394
|
shareFieldsFooter: shareFieldsFooter,
|
|
@@ -534,6 +534,7 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
534
534
|
bottomMessage = _this$props7.bottomMessage,
|
|
535
535
|
submitButtonLabel = _this$props7.submitButtonLabel,
|
|
536
536
|
product = _this$props7.product,
|
|
537
|
+
productAttributes = _this$props7.productAttributes,
|
|
537
538
|
customFooter = _this$props7.customFooter,
|
|
538
539
|
enableSmartUserPicker = _this$props7.enableSmartUserPicker,
|
|
539
540
|
loggedInAccountId = _this$props7.loggedInAccountId,
|
|
@@ -584,6 +585,7 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
584
585
|
setIsLoading: _this2.setIsLoading,
|
|
585
586
|
submitButtonLabel: submitButtonLabel,
|
|
586
587
|
product: product,
|
|
588
|
+
productAttributes: productAttributes,
|
|
587
589
|
enableSmartUserPicker: enableSmartUserPicker,
|
|
588
590
|
loggedInAccountId: loggedInAccountId,
|
|
589
591
|
cloudId: cloudId,
|
|
@@ -144,7 +144,8 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
144
144
|
isBrowseUsersDisabled = _this$props.isBrowseUsersDisabled,
|
|
145
145
|
formatMessage = _this$props.intl.formatMessage,
|
|
146
146
|
shareError = _this$props.shareError,
|
|
147
|
-
userPickerOptions = _this$props.userPickerOptions
|
|
147
|
+
userPickerOptions = _this$props.userPickerOptions,
|
|
148
|
+
productAttributes = _this$props.productAttributes;
|
|
148
149
|
return jsx(AnalyticsContext, {
|
|
149
150
|
data: {
|
|
150
151
|
source: ANALYTICS_SOURCE
|
|
@@ -172,7 +173,8 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
172
173
|
orgId: orgId,
|
|
173
174
|
isBrowseUsersDisabled: isBrowseUsersDisabled,
|
|
174
175
|
shareError: shareError,
|
|
175
|
-
userPickerOptions: userPickerOptions
|
|
176
|
+
userPickerOptions: userPickerOptions,
|
|
177
|
+
productAttributes: productAttributes
|
|
176
178
|
})), jsx("div", {
|
|
177
179
|
css: formFieldStyles
|
|
178
180
|
}, jsx(CommentField, {
|
|
@@ -161,7 +161,8 @@ export var UserPickerFieldComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
161
161
|
orgId = _this$props2.orgId,
|
|
162
162
|
enableSmartUserPicker = _this$props2.enableSmartUserPicker,
|
|
163
163
|
isBrowseUsersDisabled = _this$props2.isBrowseUsersDisabled,
|
|
164
|
-
userPickerOptions = _this$props2.userPickerOptions
|
|
164
|
+
userPickerOptions = _this$props2.userPickerOptions,
|
|
165
|
+
productAttributes = _this$props2.productAttributes;
|
|
165
166
|
if (!enableSmartUserPicker || isBrowseUsersDisabled) {
|
|
166
167
|
return {};
|
|
167
168
|
}
|
|
@@ -172,7 +173,8 @@ export var UserPickerFieldComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
172
173
|
includeTeams: true,
|
|
173
174
|
includeGroups: true,
|
|
174
175
|
debounceTime: DEBOUNCE_MS,
|
|
175
|
-
orgId: orgId
|
|
176
|
+
orgId: orgId,
|
|
177
|
+
productAttributes: productAttributes
|
|
176
178
|
};
|
|
177
179
|
var externalUserBylineByProduct = {
|
|
178
180
|
confluence: intl.formatMessage(messages.inviteToConfluence),
|
|
@@ -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.
|
|
9
|
+
packageVersion: "4.19.0"
|
|
10
10
|
}, attributes);
|
|
11
11
|
};
|
|
12
12
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -2,7 +2,7 @@ import { jsx } from '@emotion/react';
|
|
|
2
2
|
import type { LoadOptions } from '@atlaskit/smart-user-picker';
|
|
3
3
|
import type { MenuType, ShareData, ShareDialogWithTriggerProps, ShareDialogWithTriggerStates } from '../../types';
|
|
4
4
|
import { type IntegrationFormProps } from '../IntegrationForm';
|
|
5
|
-
export type LazyShareFormProps = Pick<ShareDialogWithTriggerProps, 'copyLink' | 'config' | 'isFetchingConfig' | 'loadUserOptions' | 'shareFormTitle' | 'shareFormHelperMessage' | 'bottomMessage' | 'submitButtonLabel' | 'product' | 'customFooter' | 'enableSmartUserPicker' | 'loggedInAccountId' | 'cloudId' | 'shareFieldsFooter' | 'onUserSelectionChange' | 'isPublicLink' | 'copyTooltipText' | 'shareIntegrations' | 'integrationMode' | 'onDialogClose' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions' | 'isMenuItemSelected'> & Pick<ShareDialogWithTriggerStates, 'showIntegrationForm' | 'selectedIntegration' | 'isSharing' | 'shareError' | 'defaultValue'> & Pick<IntegrationFormProps, 'Content'> & {
|
|
5
|
+
export type LazyShareFormProps = Pick<ShareDialogWithTriggerProps, 'copyLink' | 'config' | 'isFetchingConfig' | 'loadUserOptions' | 'shareFormTitle' | 'shareFormHelperMessage' | 'bottomMessage' | 'submitButtonLabel' | 'product' | 'productAttributes' | 'customFooter' | 'enableSmartUserPicker' | 'loggedInAccountId' | 'cloudId' | 'shareFieldsFooter' | 'onUserSelectionChange' | 'isPublicLink' | 'copyTooltipText' | 'shareIntegrations' | 'integrationMode' | 'onDialogClose' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions' | 'isMenuItemSelected'> & Pick<ShareDialogWithTriggerStates, 'showIntegrationForm' | 'selectedIntegration' | 'isSharing' | 'shareError' | 'defaultValue'> & Pick<IntegrationFormProps, 'Content'> & {
|
|
6
6
|
onLinkCopy: () => void;
|
|
7
7
|
onDismiss: (data: ShareData) => void;
|
|
8
8
|
onSubmit: (data: ShareData) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type WrappedComponentProps } from 'react-intl-next';
|
|
3
|
-
import { type LoadOptions, type OptionData, type Value } from '@atlaskit/smart-user-picker';
|
|
3
|
+
import { type LoadOptions, type OptionData, type Props as SmartUserPickerProps, type Value } from '@atlaskit/smart-user-picker';
|
|
4
4
|
import { type ConfigResponse, type ProductName, type ShareError, type UserPickerOptions } from '../types';
|
|
5
5
|
export declare const REQUIRED = "REQUIRED";
|
|
6
6
|
export type Props = {
|
|
@@ -21,6 +21,7 @@ export type Props = {
|
|
|
21
21
|
isBrowseUsersDisabled?: boolean;
|
|
22
22
|
shareError?: ShareError;
|
|
23
23
|
userPickerOptions?: UserPickerOptions;
|
|
24
|
+
productAttributes?: SmartUserPickerProps['productAttributes'];
|
|
24
25
|
};
|
|
25
26
|
export declare class UserPickerFieldComponent extends React.Component<WrappedComponentProps & Props> {
|
|
26
27
|
private loadOptions;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { IconButtonProps } from '@atlaskit/button/new';
|
|
3
3
|
import type { IconProps } from '@atlaskit/icon';
|
|
4
|
-
import type { LoadOptions, Value } from '@atlaskit/smart-user-picker';
|
|
4
|
+
import type { LoadOptions, Props as SmartUserPickerProps, Value } from '@atlaskit/smart-user-picker';
|
|
5
5
|
import type { ShortenRequest, UrlShortenerClient } from '../clients/AtlassianUrlShortenerClient';
|
|
6
6
|
import type { ShareClient } from '../clients/ShareServiceClient';
|
|
7
7
|
import type { Flag } from './Flag';
|
|
@@ -134,6 +134,7 @@ export type ShareDialogContainerProps = {
|
|
|
134
134
|
* We use this prop to control different text messages in UI.
|
|
135
135
|
*/
|
|
136
136
|
product?: ProductName;
|
|
137
|
+
productAttributes?: SmartUserPickerProps['productAttributes'];
|
|
137
138
|
/**
|
|
138
139
|
* Footer for the share dialog.
|
|
139
140
|
*/
|
|
@@ -19,7 +19,7 @@ export type DialogPlacement = Placement;
|
|
|
19
19
|
* with the demo page and clearly visible options on that page.
|
|
20
20
|
*/
|
|
21
21
|
export type DialogBoundariesElement = 'viewport' | 'window' | 'scrollParent';
|
|
22
|
-
export type ShareDialogWithTriggerProps = Pick<ShareDialogContainerProps, 'onTriggerButtonClick' | 'isAutoOpenDialog' | 'shouldCloseOnEscapePress' | 'dialogPlacement' | 'loadUserOptions' | 'onDialogOpen' | 'onDialogClose' | 'onUserSelectionChange' | 'renderCustomTriggerButton' | 'shareContentType' | 'shareContentSubType' | 'shareContentId' | 'shareFormTitle' | 'shareFormHelperMessage' | 'showFlags' | 'enableSmartUserPicker' | 'loggedInAccountId' | 'triggerButtonAppearance' | 'triggerButtonIcon' | 'triggerButtonStyle' | 'triggerButtonTooltipPosition' | 'triggerButtonTooltipText' | 'cloudId' | 'bottomMessage' | 'product' | 'customFooter' | 'isCopyDisabled' | 'isPublicLink' | 'integrationMode' | 'isMenuItemSelected' | 'shareFieldsFooter' | 'shareIntegrations' | 'shareAri' | 'tabIndex' | 'copyTooltipText' | 'dialogZIndex' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions'> & {
|
|
22
|
+
export type ShareDialogWithTriggerProps = Pick<ShareDialogContainerProps, 'onTriggerButtonClick' | 'isAutoOpenDialog' | 'shouldCloseOnEscapePress' | 'dialogPlacement' | 'loadUserOptions' | 'onDialogOpen' | 'onDialogClose' | 'onUserSelectionChange' | 'renderCustomTriggerButton' | 'shareContentType' | 'shareContentSubType' | 'shareContentId' | 'shareFormTitle' | 'shareFormHelperMessage' | 'showFlags' | 'enableSmartUserPicker' | 'loggedInAccountId' | 'triggerButtonAppearance' | 'triggerButtonIcon' | 'triggerButtonStyle' | 'triggerButtonTooltipPosition' | 'triggerButtonTooltipText' | 'cloudId' | 'bottomMessage' | 'product' | 'productAttributes' | 'customFooter' | 'isCopyDisabled' | 'isPublicLink' | 'integrationMode' | 'isMenuItemSelected' | 'shareFieldsFooter' | 'shareIntegrations' | 'shareAri' | 'tabIndex' | 'copyTooltipText' | 'dialogZIndex' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions'> & {
|
|
23
23
|
config?: ConfigResponse;
|
|
24
24
|
isFetchingConfig?: boolean;
|
|
25
25
|
children?: RenderCustomTriggerButton;
|
|
@@ -5,7 +5,7 @@ import type { ProductName } from './Products';
|
|
|
5
5
|
import type { ShareData, ShareError } from './ShareContentState';
|
|
6
6
|
import type { ShareDialogContainerProps } from './ShareDialogContainer';
|
|
7
7
|
import { type MenuType } from './ShareEntities';
|
|
8
|
-
export type ShareFormProps = Pick<ShareDialogContainerProps, 'integrationMode' | 'shareIntegrations' | 'copyTooltipText' | 'isPublicLink' | 'onUserSelectionChange' | 'cloudId' | 'loggedInAccountId' | 'enableSmartUserPicker' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions'> & {
|
|
8
|
+
export type ShareFormProps = Pick<ShareDialogContainerProps, 'integrationMode' | 'shareIntegrations' | 'copyTooltipText' | 'isPublicLink' | 'onUserSelectionChange' | 'cloudId' | 'loggedInAccountId' | 'enableSmartUserPicker' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions' | 'productAttributes'> & {
|
|
9
9
|
config?: ConfigResponse;
|
|
10
10
|
isFetchingConfig?: boolean;
|
|
11
11
|
copyLink: string;
|
|
@@ -2,7 +2,7 @@ import { jsx } from '@emotion/react';
|
|
|
2
2
|
import type { LoadOptions } from '@atlaskit/smart-user-picker';
|
|
3
3
|
import type { MenuType, ShareData, ShareDialogWithTriggerProps, ShareDialogWithTriggerStates } from '../../types';
|
|
4
4
|
import { type IntegrationFormProps } from '../IntegrationForm';
|
|
5
|
-
export type LazyShareFormProps = Pick<ShareDialogWithTriggerProps, 'copyLink' | 'config' | 'isFetchingConfig' | 'loadUserOptions' | 'shareFormTitle' | 'shareFormHelperMessage' | 'bottomMessage' | 'submitButtonLabel' | 'product' | 'customFooter' | 'enableSmartUserPicker' | 'loggedInAccountId' | 'cloudId' | 'shareFieldsFooter' | 'onUserSelectionChange' | 'isPublicLink' | 'copyTooltipText' | 'shareIntegrations' | 'integrationMode' | 'onDialogClose' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions' | 'isMenuItemSelected'> & Pick<ShareDialogWithTriggerStates, 'showIntegrationForm' | 'selectedIntegration' | 'isSharing' | 'shareError' | 'defaultValue'> & Pick<IntegrationFormProps, 'Content'> & {
|
|
5
|
+
export type LazyShareFormProps = Pick<ShareDialogWithTriggerProps, 'copyLink' | 'config' | 'isFetchingConfig' | 'loadUserOptions' | 'shareFormTitle' | 'shareFormHelperMessage' | 'bottomMessage' | 'submitButtonLabel' | 'product' | 'productAttributes' | 'customFooter' | 'enableSmartUserPicker' | 'loggedInAccountId' | 'cloudId' | 'shareFieldsFooter' | 'onUserSelectionChange' | 'isPublicLink' | 'copyTooltipText' | 'shareIntegrations' | 'integrationMode' | 'onDialogClose' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions' | 'isMenuItemSelected'> & Pick<ShareDialogWithTriggerStates, 'showIntegrationForm' | 'selectedIntegration' | 'isSharing' | 'shareError' | 'defaultValue'> & Pick<IntegrationFormProps, 'Content'> & {
|
|
6
6
|
onLinkCopy: () => void;
|
|
7
7
|
onDismiss: (data: ShareData) => void;
|
|
8
8
|
onSubmit: (data: ShareData) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type WrappedComponentProps } from 'react-intl-next';
|
|
3
|
-
import { type LoadOptions, type OptionData, type Value } from '@atlaskit/smart-user-picker';
|
|
3
|
+
import { type LoadOptions, type OptionData, type Props as SmartUserPickerProps, type Value } from '@atlaskit/smart-user-picker';
|
|
4
4
|
import { type ConfigResponse, type ProductName, type ShareError, type UserPickerOptions } from '../types';
|
|
5
5
|
export declare const REQUIRED = "REQUIRED";
|
|
6
6
|
export type Props = {
|
|
@@ -21,6 +21,7 @@ export type Props = {
|
|
|
21
21
|
isBrowseUsersDisabled?: boolean;
|
|
22
22
|
shareError?: ShareError;
|
|
23
23
|
userPickerOptions?: UserPickerOptions;
|
|
24
|
+
productAttributes?: SmartUserPickerProps['productAttributes'];
|
|
24
25
|
};
|
|
25
26
|
export declare class UserPickerFieldComponent extends React.Component<WrappedComponentProps & Props> {
|
|
26
27
|
private loadOptions;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { IconButtonProps } from '@atlaskit/button/new';
|
|
3
3
|
import type { IconProps } from '@atlaskit/icon';
|
|
4
|
-
import type { LoadOptions, Value } from '@atlaskit/smart-user-picker';
|
|
4
|
+
import type { LoadOptions, Props as SmartUserPickerProps, Value } from '@atlaskit/smart-user-picker';
|
|
5
5
|
import type { ShortenRequest, UrlShortenerClient } from '../clients/AtlassianUrlShortenerClient';
|
|
6
6
|
import type { ShareClient } from '../clients/ShareServiceClient';
|
|
7
7
|
import type { Flag } from './Flag';
|
|
@@ -134,6 +134,7 @@ export type ShareDialogContainerProps = {
|
|
|
134
134
|
* We use this prop to control different text messages in UI.
|
|
135
135
|
*/
|
|
136
136
|
product?: ProductName;
|
|
137
|
+
productAttributes?: SmartUserPickerProps['productAttributes'];
|
|
137
138
|
/**
|
|
138
139
|
* Footer for the share dialog.
|
|
139
140
|
*/
|
|
@@ -19,7 +19,7 @@ export type DialogPlacement = Placement;
|
|
|
19
19
|
* with the demo page and clearly visible options on that page.
|
|
20
20
|
*/
|
|
21
21
|
export type DialogBoundariesElement = 'viewport' | 'window' | 'scrollParent';
|
|
22
|
-
export type ShareDialogWithTriggerProps = Pick<ShareDialogContainerProps, 'onTriggerButtonClick' | 'isAutoOpenDialog' | 'shouldCloseOnEscapePress' | 'dialogPlacement' | 'loadUserOptions' | 'onDialogOpen' | 'onDialogClose' | 'onUserSelectionChange' | 'renderCustomTriggerButton' | 'shareContentType' | 'shareContentSubType' | 'shareContentId' | 'shareFormTitle' | 'shareFormHelperMessage' | 'showFlags' | 'enableSmartUserPicker' | 'loggedInAccountId' | 'triggerButtonAppearance' | 'triggerButtonIcon' | 'triggerButtonStyle' | 'triggerButtonTooltipPosition' | 'triggerButtonTooltipText' | 'cloudId' | 'bottomMessage' | 'product' | 'customFooter' | 'isCopyDisabled' | 'isPublicLink' | 'integrationMode' | 'isMenuItemSelected' | 'shareFieldsFooter' | 'shareIntegrations' | 'shareAri' | 'tabIndex' | 'copyTooltipText' | 'dialogZIndex' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions'> & {
|
|
22
|
+
export type ShareDialogWithTriggerProps = Pick<ShareDialogContainerProps, 'onTriggerButtonClick' | 'isAutoOpenDialog' | 'shouldCloseOnEscapePress' | 'dialogPlacement' | 'loadUserOptions' | 'onDialogOpen' | 'onDialogClose' | 'onUserSelectionChange' | 'renderCustomTriggerButton' | 'shareContentType' | 'shareContentSubType' | 'shareContentId' | 'shareFormTitle' | 'shareFormHelperMessage' | 'showFlags' | 'enableSmartUserPicker' | 'loggedInAccountId' | 'triggerButtonAppearance' | 'triggerButtonIcon' | 'triggerButtonStyle' | 'triggerButtonTooltipPosition' | 'triggerButtonTooltipText' | 'cloudId' | 'bottomMessage' | 'product' | 'productAttributes' | 'customFooter' | 'isCopyDisabled' | 'isPublicLink' | 'integrationMode' | 'isMenuItemSelected' | 'shareFieldsFooter' | 'shareIntegrations' | 'shareAri' | 'tabIndex' | 'copyTooltipText' | 'dialogZIndex' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions'> & {
|
|
23
23
|
config?: ConfigResponse;
|
|
24
24
|
isFetchingConfig?: boolean;
|
|
25
25
|
children?: RenderCustomTriggerButton;
|
|
@@ -5,7 +5,7 @@ import type { ProductName } from './Products';
|
|
|
5
5
|
import type { ShareData, ShareError } from './ShareContentState';
|
|
6
6
|
import type { ShareDialogContainerProps } from './ShareDialogContainer';
|
|
7
7
|
import { type MenuType } from './ShareEntities';
|
|
8
|
-
export type ShareFormProps = Pick<ShareDialogContainerProps, 'integrationMode' | 'shareIntegrations' | 'copyTooltipText' | 'isPublicLink' | 'onUserSelectionChange' | 'cloudId' | 'loggedInAccountId' | 'enableSmartUserPicker' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions'> & {
|
|
8
|
+
export type ShareFormProps = Pick<ShareDialogContainerProps, 'integrationMode' | 'shareIntegrations' | 'copyTooltipText' | 'isPublicLink' | 'onUserSelectionChange' | 'cloudId' | 'loggedInAccountId' | 'enableSmartUserPicker' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions' | 'productAttributes'> & {
|
|
9
9
|
config?: ConfigResponse;
|
|
10
10
|
isFetchingConfig?: boolean;
|
|
11
11
|
copyLink: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/share",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.19.0",
|
|
4
4
|
"description": "Fabric Share Element",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@atlaskit/popup": "^1.20.0",
|
|
53
53
|
"@atlaskit/portal": "^4.6.0",
|
|
54
54
|
"@atlaskit/primitives": "^11.0.0",
|
|
55
|
-
"@atlaskit/smart-user-picker": "^6.
|
|
55
|
+
"@atlaskit/smart-user-picker": "^6.10.0",
|
|
56
56
|
"@atlaskit/spinner": "^16.2.0",
|
|
57
57
|
"@atlaskit/tabs": "^16.3.0",
|
|
58
58
|
"@atlaskit/textarea": "^5.5.0",
|