@atlaskit/share 3.0.6 → 3.0.10
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 +26 -0
- package/dist/cjs/components/CommentField.js +3 -6
- package/dist/cjs/components/LazyShareForm/LazyShareForm.js +1 -1
- package/dist/cjs/components/ShareDialogWithTrigger.js +11 -4
- package/dist/cjs/components/ShareForm.js +14 -19
- package/dist/cjs/components/utils.js +12 -2
- package/dist/cjs/i18n/cs.js +0 -1
- package/dist/cjs/i18n/de.js +0 -1
- package/dist/cjs/i18n/fr.js +0 -1
- package/dist/cjs/i18n/pl.js +0 -1
- package/dist/cjs/i18n/pt_BR.js +0 -1
- package/dist/cjs/i18n/ru.js +0 -1
- package/dist/cjs/i18n/tr.js +0 -1
- package/dist/cjs/i18n/vi.js +0 -1
- package/dist/cjs/i18n/zh_TW.js +0 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/CommentField.js +3 -6
- package/dist/es2019/components/LazyShareForm/LazyShareForm.js +1 -1
- package/dist/es2019/components/ShareDialogWithTrigger.js +11 -5
- package/dist/es2019/components/ShareForm.js +5 -8
- package/dist/es2019/components/utils.js +8 -1
- package/dist/es2019/i18n/cs.js +0 -1
- package/dist/es2019/i18n/de.js +0 -1
- package/dist/es2019/i18n/fr.js +0 -1
- package/dist/es2019/i18n/pl.js +0 -1
- package/dist/es2019/i18n/pt_BR.js +0 -1
- package/dist/es2019/i18n/ru.js +0 -1
- package/dist/es2019/i18n/tr.js +0 -1
- package/dist/es2019/i18n/vi.js +0 -1
- package/dist/es2019/i18n/zh_TW.js +0 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/CommentField.js +3 -6
- package/dist/esm/components/LazyShareForm/LazyShareForm.js +1 -1
- package/dist/esm/components/ShareDialogWithTrigger.js +12 -5
- package/dist/esm/components/ShareForm.js +14 -19
- package/dist/esm/components/utils.js +7 -0
- package/dist/esm/i18n/cs.js +0 -1
- package/dist/esm/i18n/de.js +0 -1
- package/dist/esm/i18n/fr.js +0 -1
- package/dist/esm/i18n/pl.js +0 -1
- package/dist/esm/i18n/pt_BR.js +0 -1
- package/dist/esm/i18n/ru.js +0 -1
- package/dist/esm/i18n/tr.js +0 -1
- package/dist/esm/i18n/vi.js +0 -1
- package/dist/esm/i18n/zh_TW.js +0 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/components/CommentField.d.ts +1 -1
- package/dist/types/components/utils.d.ts +2 -0
- package/dist/types/i18n/cs.d.ts +0 -1
- package/dist/types/i18n/de.d.ts +0 -1
- package/dist/types/i18n/fr.d.ts +0 -1
- package/dist/types/i18n/pl.d.ts +0 -1
- package/dist/types/i18n/pt_BR.d.ts +0 -1
- package/dist/types/i18n/ru.d.ts +0 -1
- package/dist/types/i18n/tr.d.ts +0 -1
- package/dist/types/i18n/vi.d.ts +0 -1
- package/dist/types/i18n/zh_TW.d.ts +0 -1
- package/dist/types/types/ShareDialogWithTrigger.d.ts +1 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @atlaskit/share
|
|
2
2
|
|
|
3
|
+
## 3.0.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - [ux] Replace dependency on deprecated @atlaskit/field-text-area with supported package @atlaskit/textarea.
|
|
8
|
+
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - Bump dependency tiny-invariant to latest"
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 3.0.9
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`da84c14aa89`](https://bitbucket.org/atlassian/atlassian-frontend/commits/da84c14aa89) - Custom footer display in stein fix. Connected analytics event fire fix
|
|
16
|
+
|
|
17
|
+
## 3.0.8
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [`9f7c98cf94f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9f7c98cf94f) - Fixes issues with share dialog closing and resetting tabIndex
|
|
22
|
+
|
|
23
|
+
## 3.0.7
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- [`4e97b934e85`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4e97b934e85) - Adds condition to only render customFooter for default share form
|
|
28
|
+
|
|
3
29
|
## 3.0.6
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
|
@@ -13,13 +13,12 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
13
13
|
|
|
14
14
|
var _reactIntlNext = require("react-intl-next");
|
|
15
15
|
|
|
16
|
-
var _fieldTextArea = _interopRequireDefault(require("@atlaskit/field-text-area"));
|
|
17
|
-
|
|
18
16
|
var _form = require("@atlaskit/form");
|
|
19
17
|
|
|
18
|
+
var _textarea = _interopRequireDefault(require("@atlaskit/textarea"));
|
|
19
|
+
|
|
20
20
|
var _i18n = require("../i18n");
|
|
21
21
|
|
|
22
|
-
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
23
22
|
var CommentField = function CommentField(_ref) {
|
|
24
23
|
var defaultValue = _ref.defaultValue;
|
|
25
24
|
var intl = (0, _reactIntlNext.useIntl)();
|
|
@@ -28,7 +27,7 @@ var CommentField = function CommentField(_ref) {
|
|
|
28
27
|
defaultValue: defaultValue
|
|
29
28
|
}, function (_ref2) {
|
|
30
29
|
var fieldProps = _ref2.fieldProps;
|
|
31
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
30
|
+
return /*#__PURE__*/_react.default.createElement(_textarea.default, (0, _extends2.default)({}, fieldProps, {
|
|
32
31
|
onChange: function onChange(event) {
|
|
33
32
|
return fieldProps.onChange({
|
|
34
33
|
format: 'plain_text',
|
|
@@ -38,8 +37,6 @@ var CommentField = function CommentField(_ref) {
|
|
|
38
37
|
value: fieldProps.value && fieldProps.value.value,
|
|
39
38
|
maxLength: 500,
|
|
40
39
|
minimumRows: 3,
|
|
41
|
-
shouldFitContainer: true,
|
|
42
|
-
isLabelHidden: true,
|
|
43
40
|
placeholder: intl.formatMessage(_i18n.messages.commentPlaceholder)
|
|
44
41
|
}));
|
|
45
42
|
});
|
|
@@ -58,7 +58,7 @@ function LazyShareForm(props) {
|
|
|
58
58
|
defaultValue = props.defaultValue,
|
|
59
59
|
showTitle = props.showTitle;
|
|
60
60
|
|
|
61
|
-
var footer = /*#__PURE__*/_react.default.createElement("div", null, bottomMessage ? /*#__PURE__*/_react.default.createElement(_styled.BottomMessageWrapper, null, bottomMessage) : null, customFooter && /*#__PURE__*/_react.default.createElement(_styled.CustomFooterWrapper, null, customFooter));
|
|
61
|
+
var footer = /*#__PURE__*/_react.default.createElement("div", null, bottomMessage ? /*#__PURE__*/_react.default.createElement(_styled.BottomMessageWrapper, null, bottomMessage) : null, customFooter && selectedIntegration === null && /*#__PURE__*/_react.default.createElement(_styled.CustomFooterWrapper, null, customFooter));
|
|
62
62
|
|
|
63
63
|
return /*#__PURE__*/_react.default.createElement(_ShareFormWrapper.ShareFormWrapper, {
|
|
64
64
|
footer: footer // form title will be determined by `title` and `showTitle` prop passed to `ShareForm`,
|
|
@@ -104,7 +104,8 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
|
|
|
104
104
|
defaultValue: defaultShareContentState,
|
|
105
105
|
isUsingSplitButton: false,
|
|
106
106
|
showIntegrationForm: false,
|
|
107
|
-
selectedIntegration: null
|
|
107
|
+
selectedIntegration: null,
|
|
108
|
+
tabIndex: 0
|
|
108
109
|
});
|
|
109
110
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "closeAndResetDialog", function () {
|
|
110
111
|
_this.setState({
|
|
@@ -149,6 +150,10 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
|
|
|
149
150
|
}
|
|
150
151
|
|
|
151
152
|
_this.createAndFireEvent((0, _analytics.shareTabClicked)(subjectId));
|
|
153
|
+
|
|
154
|
+
_this.setState({
|
|
155
|
+
tabIndex: index
|
|
156
|
+
});
|
|
152
157
|
});
|
|
153
158
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getFlags", function () {
|
|
154
159
|
var formatMessage = _this.props.intl.formatMessage; // The reason for providing message property is that in jira,
|
|
@@ -250,7 +255,8 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
|
|
|
250
255
|
_this.setState({
|
|
251
256
|
isDialogOpen: false,
|
|
252
257
|
showIntegrationForm: false,
|
|
253
|
-
selectedIntegration: null
|
|
258
|
+
selectedIntegration: null,
|
|
259
|
+
tabIndex: 0
|
|
254
260
|
});
|
|
255
261
|
});
|
|
256
262
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleShareSubmit", function (data) {
|
|
@@ -450,7 +456,8 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
|
|
|
450
456
|
shareIntegrations = _this$props7.shareIntegrations;
|
|
451
457
|
var style = typeof tabIndex !== 'undefined' && tabIndex >= 0 ? {
|
|
452
458
|
outline: 'none'
|
|
453
|
-
} : undefined;
|
|
459
|
+
} : undefined;
|
|
460
|
+
var footer = (0, _utils.resolveShareFooter)(integrationMode, this.state.tabIndex, customFooter); // for performance purposes, we may want to have a loadable content i.e. ShareForm
|
|
454
461
|
|
|
455
462
|
return /*#__PURE__*/_react.default.createElement(ShareButtonWrapper, {
|
|
456
463
|
tabIndex: tabIndex,
|
|
@@ -466,7 +473,7 @@ var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureComponent
|
|
|
466
473
|
copyLink: copyLink,
|
|
467
474
|
showIntegrationForm: showIntegrationForm,
|
|
468
475
|
bottomMessage: bottomMessage,
|
|
469
|
-
customFooter:
|
|
476
|
+
customFooter: footer,
|
|
470
477
|
loadOptions: loadUserOptions,
|
|
471
478
|
isSharing: isSharing,
|
|
472
479
|
shareFormTitle: shareFormTitle,
|
|
@@ -225,9 +225,13 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
225
225
|
return /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, productShareType);
|
|
226
226
|
});
|
|
227
227
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "changeTab", function (tab) {
|
|
228
|
+
var _this$props$onTabChan, _this$props4;
|
|
229
|
+
|
|
228
230
|
_this.setState({
|
|
229
231
|
selectedTab: tab
|
|
230
232
|
});
|
|
233
|
+
|
|
234
|
+
(_this$props$onTabChan = (_this$props4 = _this.props).onTabChange) === null || _this$props$onTabChan === void 0 ? void 0 : _this$props$onTabChan.call(_this$props4, tab);
|
|
231
235
|
});
|
|
232
236
|
return _this;
|
|
233
237
|
}
|
|
@@ -235,9 +239,9 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
235
239
|
(0, _createClass2.default)(InternalForm, [{
|
|
236
240
|
key: "componentWillUnmount",
|
|
237
241
|
value: function componentWillUnmount() {
|
|
238
|
-
var _this$
|
|
239
|
-
onDismiss = _this$
|
|
240
|
-
getValues = _this$
|
|
242
|
+
var _this$props5 = this.props,
|
|
243
|
+
onDismiss = _this$props5.onDismiss,
|
|
244
|
+
getValues = _this$props5.getValues;
|
|
241
245
|
|
|
242
246
|
if (onDismiss) {
|
|
243
247
|
onDismiss(getValues());
|
|
@@ -246,14 +250,11 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
246
250
|
}, {
|
|
247
251
|
key: "render",
|
|
248
252
|
value: function render() {
|
|
249
|
-
var
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
shareIntegrations = _this$props5.shareIntegrations,
|
|
255
|
-
onTabChange = _this$props5.onTabChange,
|
|
256
|
-
handleCloseDialog = _this$props5.handleCloseDialog;
|
|
253
|
+
var _this$props6 = this.props,
|
|
254
|
+
_this$props6$integrat = _this$props6.integrationMode,
|
|
255
|
+
integrationMode = _this$props6$integrat === void 0 ? 'off' : _this$props6$integrat,
|
|
256
|
+
shareIntegrations = _this$props6.shareIntegrations,
|
|
257
|
+
handleCloseDialog = _this$props6.handleCloseDialog;
|
|
257
258
|
|
|
258
259
|
if (integrationMode === 'off' || !shareIntegrations || !shareIntegrations.length) {
|
|
259
260
|
return this.renderShareForm();
|
|
@@ -264,11 +265,7 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
264
265
|
if (integrationMode === 'tabs') {
|
|
265
266
|
return /*#__PURE__*/_react.default.createElement(_tabs.default, {
|
|
266
267
|
id: "ShareForm-Tabs-Integrations",
|
|
267
|
-
onChange:
|
|
268
|
-
_this2.changeTab(index);
|
|
269
|
-
|
|
270
|
-
onTabChange === null || onTabChange === void 0 ? void 0 : onTabChange(index);
|
|
271
|
-
},
|
|
268
|
+
onChange: this.changeTab,
|
|
272
269
|
selected: this.state.selectedTab
|
|
273
270
|
}, /*#__PURE__*/_react.default.createElement(_tabs.TabList, null, /*#__PURE__*/_react.default.createElement(_tabs.Tab, {
|
|
274
271
|
key: "share-tab-default"
|
|
@@ -287,9 +284,7 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
287
284
|
onIntegrationClose: function onIntegrationClose() {
|
|
288
285
|
return handleCloseDialog === null || handleCloseDialog === void 0 ? void 0 : handleCloseDialog();
|
|
289
286
|
},
|
|
290
|
-
changeTab:
|
|
291
|
-
_this2.changeTab(index);
|
|
292
|
-
}
|
|
287
|
+
changeTab: this.changeTab
|
|
293
288
|
})))));
|
|
294
289
|
}
|
|
295
290
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.zIndexAddition = exports.optionDataToUsers = exports.getMenuPortalTargetCurrentHTML = exports.generateSelectZIndex = exports.allowEmails = void 0;
|
|
6
|
+
exports.zIndexAddition = exports.resolveShareFooter = exports.optionDataToUsers = exports.getMenuPortalTargetCurrentHTML = exports.generateSelectZIndex = exports.allowEmails = void 0;
|
|
7
7
|
|
|
8
8
|
var _constants = require("@atlaskit/theme/constants");
|
|
9
9
|
|
|
@@ -73,4 +73,14 @@ var allowEmails = function allowEmails(config) {
|
|
|
73
73
|
return !(config && config.disableSharingToEmails);
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
-
exports.allowEmails = allowEmails;
|
|
76
|
+
exports.allowEmails = allowEmails;
|
|
77
|
+
|
|
78
|
+
var resolveShareFooter = function resolveShareFooter(integrationMode, tabIndex, customFooter) {
|
|
79
|
+
if (customFooter) {
|
|
80
|
+
if (integrationMode !== 'tabs' || tabIndex === 0) {
|
|
81
|
+
return customFooter;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
exports.resolveShareFooter = resolveShareFooter;
|
package/dist/cjs/i18n/cs.js
CHANGED
|
@@ -38,7 +38,6 @@ var _default = {
|
|
|
38
38
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': 'Vyberte alespoň jednoho uživatele, skupinu nebo tým.',
|
|
39
39
|
'fabric.elements.share.form.user-picker.validation.required.jira': 'Vyberte alespoň jednoho uživatele, tým nebo e-mail.',
|
|
40
40
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': 'Vyberte alespoň jednoho uživatele nebo tým.',
|
|
41
|
-
'fabric.elements.share.in.integration.button': 'Sdílet v: {integrationName}',
|
|
42
41
|
'fabric.elements.share.success.message': '{object, select, blogpost {Příspěvek na blogu je sdílen} board {Board je sdílen} calendar {Kalendář je sdílen} draft {Koncept je sdílen} filter {Filtr je sdílen} issue {Požadavek je sdílen} media {Multimediální soubor je sdílen} page {Stránka je sdílena} project {Projekt je sdílen} pullrequest {Pull request je sdílen} question {Otázka je sdílena} report {Sestava je sdílena} repository {Repozitář je sdílen} request {Žádost je sdílena} roadmap {Plán je sdílen} site {Web je sdílen} space {Prostor je sdílen} other {Odkaz je sdílen}}',
|
|
43
42
|
'fabric.elements.share.to.integration.button': 'Sdílet ve službě {integrationName}',
|
|
44
43
|
'fabric.elements.share.trigger.button.icon.label': 'Ikona sdílení',
|
package/dist/cjs/i18n/de.js
CHANGED
|
@@ -38,7 +38,6 @@ var _default = {
|
|
|
38
38
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': 'Wählen Sie mindestens einen Benutzer, eine Gruppe oder ein Team aus.',
|
|
39
39
|
'fabric.elements.share.form.user-picker.validation.required.jira': 'Bitte wählen Sie mindestens einen Benutzer, ein Team oder eine E-Mail-Adresse aus.',
|
|
40
40
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': 'Wählen Sie mindestens einen Benutzer oder ein Team aus.',
|
|
41
|
-
'fabric.elements.share.in.integration.button': 'In {integrationName} teilen',
|
|
42
41
|
'fabric.elements.share.success.message': '{object, select, blogpost {Geteilter Blogpost} board {Geteiltes Board} calendar {Geteilter Kalender} draft {Geteilter Entwurf} filter {Geteilter Filter} issue {Geteilter Vorgang} media {Geteilte Medien} page {Geteilte Seite} project {Geteiltes Projekt} pullrequest {Geteilte Pull-Anfrage} question {Geteilte Frage} report {Geteilter Bericht} repository {Geteiltes Repository} request {Geteilte Anfrage} roadmap {Geteilte Roadmap} site {Geteilte Site} space {Geteilter Bereich} other {Geteilter Link}}',
|
|
43
42
|
'fabric.elements.share.to.integration.button': 'Mit {integrationName} teilen',
|
|
44
43
|
'fabric.elements.share.trigger.button.icon.label': 'Teilen-Symbol',
|
package/dist/cjs/i18n/fr.js
CHANGED
|
@@ -38,7 +38,6 @@ var _default = {
|
|
|
38
38
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': 'Sélectionnez au moins un utilisateur, un groupe ou une équipe.',
|
|
39
39
|
'fabric.elements.share.form.user-picker.validation.required.jira': 'Sélectionnez au moins un utilisateur, une équipe ou une adresse e-mail.',
|
|
40
40
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': 'Sélectionnez au moins un utilisateur ou une équipe.',
|
|
41
|
-
'fabric.elements.share.in.integration.button': 'Partager dans {integrationName}',
|
|
42
41
|
'fabric.elements.share.success.message': '{object, select, blogpost {Billet de blog partagé} board {Tableau partagé} calendar {Calendrier partagé} draft {Brouillon partagé} filter {Filtre partagé} issue {Ticket partagé} media {Support partagé} page {Page partagée} project {Projet partagé} pullrequest {Pull request partagée} question {Question partagée} report {Rapport partagé} repository {Dépôt partagé} request {Demande partagée} roadmap {Feuille de route partagée} site {Site partagé} space {Espace partagé} other {Lien partagé}}',
|
|
43
42
|
'fabric.elements.share.to.integration.button': 'Partager avec {integrationName}',
|
|
44
43
|
'fabric.elements.share.trigger.button.icon.label': 'Icône de partage',
|
package/dist/cjs/i18n/pl.js
CHANGED
|
@@ -38,7 +38,6 @@ var _default = {
|
|
|
38
38
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': 'Wybierz co najmniej jednego użytkownika, jedną grupę lub jeden zespół.',
|
|
39
39
|
'fabric.elements.share.form.user-picker.validation.required.jira': 'Wybierz co najmniej jednego użytkownika, jeden zespół lub adres e-mail.',
|
|
40
40
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': 'Wybierz co najmniej jednego użytkownika lub jeden zespół.',
|
|
41
|
-
'fabric.elements.share.in.integration.button': 'Udostępnij w {integrationName}',
|
|
42
41
|
'fabric.elements.share.success.message': '{object, select, blogpost {Udostępniono wpis na blogu} board {Udostępniono tablicę} calendar {Udostępniono kalendarz} draft {Udostępniono wersję roboczą} filter {Udostępniono filtr} issue {Udostępniono zgłoszenie} media {Udostępniono media} page {Udostępniono stronę} project {Udostępniono projekt} pullrequest {Udostępniono pull request} question {Udostępniono pytanie} report {Udostępniono raport} repository {Udostępniono repozytorium} request {Udostępniono wniosek} roadmap {Udostępniono harmonogram} site {Udostępniono witrynę} space {Udostępniono przestrzeń} other {Udostępniono łącze}}',
|
|
43
42
|
'fabric.elements.share.to.integration.button': 'Udostępnij w {integrationName}',
|
|
44
43
|
'fabric.elements.share.trigger.button.icon.label': 'Ikona udostępniania',
|
package/dist/cjs/i18n/pt_BR.js
CHANGED
|
@@ -38,7 +38,6 @@ var _default = {
|
|
|
38
38
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': 'Selecione pelo menos um usuário, grupo ou equipe.',
|
|
39
39
|
'fabric.elements.share.form.user-picker.validation.required.jira': 'Selecione pelo menos um usuário, equipe ou e-mail.',
|
|
40
40
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': 'Selecione pelo menos um usuário ou equipe.',
|
|
41
|
-
'fabric.elements.share.in.integration.button': 'Compartilhar em {integrationName}',
|
|
42
41
|
'fabric.elements.share.success.message': '{object, select, blogpost {Postagem de blog compartilhada} board {Painel compartilhado} calendar {Calendário compartilhado} draft {Rascunho compartilhado} filter {Filtro compartilhado} issue {Item compartilhado} media {Mídia compartilhada} page {Página compartilhada} project {Projeto compartilhado} pullrequest {Solicitação pull compartilhada} question {Pergunta compartilhada} report {Relatório compartilhado} repository {Repositório compartilhado} request {Solicitação compartilhada} roadmap {Roteiro compartilhado} site {Site compartilhado} space {Espaço compartilhado} other {Link compartilhado}}',
|
|
43
42
|
'fabric.elements.share.to.integration.button': 'Compartilhar em {integrationName}',
|
|
44
43
|
'fabric.elements.share.trigger.button.icon.label': 'Ícone de compartilhamento',
|
package/dist/cjs/i18n/ru.js
CHANGED
|
@@ -38,7 +38,6 @@ var _default = {
|
|
|
38
38
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': 'Выберите хотя бы 1 пользователя, группу или команду.',
|
|
39
39
|
'fabric.elements.share.form.user-picker.validation.required.jira': 'Выберите хотя бы 1 пользователя, команду или адрес эл. почты.',
|
|
40
40
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': 'Выберите хотя бы 1 пользователя или команду.',
|
|
41
|
-
'fabric.elements.share.in.integration.button': 'Поделиться в {integrationName}',
|
|
42
41
|
'fabric.elements.share.success.message': '{object, select, blogpost {Вы поделились записью в блоге} board {Вы поделились доской} calendar {Вы поделились календарем} draft {Вы поделились черновиком} filter {Вы поделились фильтром} issue {Вы поделились задачей} media {Вы поделились объектом мультимедиа} page {Вы поделились страницей} project {Вы поделились проектом} pullrequest {Вы поделились запросом pull} question {Вы поделились вопросом} report {Вы поделились отчетом} repository {Вы поделились репозиторием} request {Вы поделились запросом} roadmap {Вы поделились дорожной картой} site {Вы поделились сайтом} space {Вы поделились разделом} other {Вы поделились ссылкой}}',
|
|
43
42
|
'fabric.elements.share.to.integration.button': 'Поделиться в {integrationName}',
|
|
44
43
|
'fabric.elements.share.trigger.button.icon.label': 'Значок «Поделиться»',
|
package/dist/cjs/i18n/tr.js
CHANGED
|
@@ -38,7 +38,6 @@ var _default = {
|
|
|
38
38
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': 'En az bir kullanıcı, grup veya takım seçin.',
|
|
39
39
|
'fabric.elements.share.form.user-picker.validation.required.jira': 'En az bir kullanıcı, takım veya e-posta adresi seçin.',
|
|
40
40
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': 'En az bir kullanıcı veya takım seçin.',
|
|
41
|
-
'fabric.elements.share.in.integration.button': '{integrationName} içinde paylaş',
|
|
42
41
|
'fabric.elements.share.success.message': '{object, select, blogpost {Blog gönderisi paylaşıldı} board {Pano paylaşıldı} calendar {Takvim paylaşıldı} draft {Taslak paylaşıldı} filter {Filtre paylaşıldı} issue {Konu paylaşıldı} media {Medya paylaşıldı} page {Sayfa paylaşıldı} project {Proje paylaşıldı} pullrequest {Çekme İsteği paylaşıldı} question {Soru paylaşıldı} report {Rapor paylaşıldı} repository {Depo paylaşıldı} request {Talep paylaşıldı} roadmap {Yol haritası paylaşıldı} site {Site paylaşıldı} space {Alan paylaşıldı} other {Bağlantı paylaşıldı}}',
|
|
43
42
|
'fabric.elements.share.to.integration.button': '{integrationName} üzerinden paylaş',
|
|
44
43
|
'fabric.elements.share.trigger.button.icon.label': 'Paylaşma simgesi',
|
package/dist/cjs/i18n/vi.js
CHANGED
|
@@ -38,7 +38,6 @@ var _default = {
|
|
|
38
38
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': 'Chọn ít nhất một người dùng, nhóm hoặc đội ngũ.',
|
|
39
39
|
'fabric.elements.share.form.user-picker.validation.required.jira': 'Chọn ít nhất một người dùng, nhóm hoặc email.',
|
|
40
40
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': 'Chọn ít nhất một người dùng hoặc đội ngũ.',
|
|
41
|
-
'fabric.elements.share.in.integration.button': 'Chia sẻ trong {integrationName}',
|
|
42
41
|
'fabric.elements.share.success.message': '{object, select, blogpost {Đã chia sẻ bài đăng} board {Đã chia sẻ bảng} calendar {Đã chia sẻ lịch} draft {Đã chia sẻ bản nháp} filter {Đã chia sẻ bộ lọc} issue {Đã chia sẻ vấn đề} media {Đã chia sẻ phương tiện} page {Đã chia sẻ trang} project {Đã chia sẻ dự án} pullrequest {Đã chia sẻ yêu cầu kéo} question {Đã chia sẻ câu hỏi} report {Đã chia sẻ báo cáo} repository {Đã chia sẻ kho lưu trữ} request {Đã chia sẻ yêu cầu} roadmap {Đã chia sẻ lộ trình} site {Đã chia sẻ trang} space {Đã chia sẻ không gian} other {Đã chia sẻ liên kết}}',
|
|
43
42
|
'fabric.elements.share.to.integration.button': 'Chia sẻ với {integrationName}',
|
|
44
43
|
'fabric.elements.share.trigger.button.icon.label': 'Biểu tượng chia sẻ',
|
package/dist/cjs/i18n/zh_TW.js
CHANGED
|
@@ -38,7 +38,6 @@ var _default = {
|
|
|
38
38
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': '至少選取一個使用者、群組或團隊。',
|
|
39
39
|
'fabric.elements.share.form.user-picker.validation.required.jira': '請選取至少一個使用者、團隊或電子郵件。',
|
|
40
40
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': '至少選取一個使用者或團隊。',
|
|
41
|
-
'fabric.elements.share.in.integration.button': '在 {integrationName} 中分享',
|
|
42
41
|
'fabric.elements.share.success.message': '{object, select, blogpost {已分享部落格貼文} board {已分享看板} calendar {已分享日曆} draft {已分享草稿} filter {已分享篩選條件} issue {已分享問題} media {已分享媒體} page {已分享頁面} project {已分享專案} pullrequest {已分享提取請求} question {已分享問題} report {已分享報告} repository {已分享存放庫} request {已分享請求} roadmap {已分享藍圖} site {已分享網站} space {已分享空間} other {已分享連結}}',
|
|
43
42
|
'fabric.elements.share.to.integration.button': '與 {integrationName} 分享',
|
|
44
43
|
'fabric.elements.share.trigger.button.icon.label': '分享圖示',
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { useIntl } from 'react-intl-next';
|
|
4
|
-
|
|
5
|
-
import FieldTextArea from '@atlaskit/field-text-area';
|
|
3
|
+
import { useIntl } from 'react-intl-next';
|
|
6
4
|
import { Field } from '@atlaskit/form';
|
|
5
|
+
import TextArea from '@atlaskit/textarea';
|
|
7
6
|
import { messages } from '../i18n';
|
|
8
7
|
export const CommentField = ({
|
|
9
8
|
defaultValue
|
|
@@ -14,7 +13,7 @@ export const CommentField = ({
|
|
|
14
13
|
defaultValue: defaultValue
|
|
15
14
|
}, ({
|
|
16
15
|
fieldProps
|
|
17
|
-
}) => /*#__PURE__*/React.createElement(
|
|
16
|
+
}) => /*#__PURE__*/React.createElement(TextArea, _extends({}, fieldProps, {
|
|
18
17
|
onChange: event => fieldProps.onChange({
|
|
19
18
|
format: 'plain_text',
|
|
20
19
|
value: event.target.value
|
|
@@ -22,8 +21,6 @@ export const CommentField = ({
|
|
|
22
21
|
value: fieldProps.value && fieldProps.value.value,
|
|
23
22
|
maxLength: 500,
|
|
24
23
|
minimumRows: 3,
|
|
25
|
-
shouldFitContainer: true,
|
|
26
|
-
isLabelHidden: true,
|
|
27
24
|
placeholder: intl.formatMessage(messages.commentPlaceholder)
|
|
28
25
|
})));
|
|
29
26
|
};
|
|
@@ -47,7 +47,7 @@ function LazyShareForm(props) {
|
|
|
47
47
|
defaultValue,
|
|
48
48
|
showTitle
|
|
49
49
|
} = props;
|
|
50
|
-
const footer = /*#__PURE__*/React.createElement("div", null, bottomMessage ? /*#__PURE__*/React.createElement(BottomMessageWrapper, null, bottomMessage) : null, customFooter && /*#__PURE__*/React.createElement(CustomFooterWrapper, null, customFooter));
|
|
50
|
+
const footer = /*#__PURE__*/React.createElement("div", null, bottomMessage ? /*#__PURE__*/React.createElement(BottomMessageWrapper, null, bottomMessage) : null, customFooter && selectedIntegration === null && /*#__PURE__*/React.createElement(CustomFooterWrapper, null, customFooter));
|
|
51
51
|
return /*#__PURE__*/React.createElement(ShareFormWrapper, {
|
|
52
52
|
footer: footer // form title will be determined by `title` and `showTitle` prop passed to `ShareForm`,
|
|
53
53
|
// so we don't need to show title via ShareFormWrapper
|
|
@@ -17,7 +17,7 @@ import { cancelShare, CHANNEL_ID, copyLinkButtonClicked, formShareSubmitted, scr
|
|
|
17
17
|
import LazyShareFormLazy from './LazyShareForm/lazy';
|
|
18
18
|
import ShareButton from './ShareButton';
|
|
19
19
|
import SplitButton from './SplitButton';
|
|
20
|
-
import { generateSelectZIndex } from './utils';
|
|
20
|
+
import { generateSelectZIndex, resolveShareFooter } from './utils';
|
|
21
21
|
const ShareButtonWrapper = styled.div`
|
|
22
22
|
display: inline-flex;
|
|
23
23
|
outline: none;
|
|
@@ -47,7 +47,8 @@ export class ShareDialogWithTriggerInternal extends React.PureComponent {
|
|
|
47
47
|
defaultValue: defaultShareContentState,
|
|
48
48
|
isUsingSplitButton: false,
|
|
49
49
|
showIntegrationForm: false,
|
|
50
|
-
selectedIntegration: null
|
|
50
|
+
selectedIntegration: null,
|
|
51
|
+
tabIndex: 0
|
|
51
52
|
});
|
|
52
53
|
|
|
53
54
|
_defineProperty(this, "closeAndResetDialog", () => {
|
|
@@ -96,6 +97,9 @@ export class ShareDialogWithTriggerInternal extends React.PureComponent {
|
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
this.createAndFireEvent(shareTabClicked(subjectId));
|
|
100
|
+
this.setState({
|
|
101
|
+
tabIndex: index
|
|
102
|
+
});
|
|
99
103
|
});
|
|
100
104
|
|
|
101
105
|
_defineProperty(this, "getFlags", () => {
|
|
@@ -209,7 +213,8 @@ export class ShareDialogWithTriggerInternal extends React.PureComponent {
|
|
|
209
213
|
this.setState({
|
|
210
214
|
isDialogOpen: false,
|
|
211
215
|
showIntegrationForm: false,
|
|
212
|
-
selectedIntegration: null
|
|
216
|
+
selectedIntegration: null,
|
|
217
|
+
tabIndex: 0
|
|
213
218
|
});
|
|
214
219
|
});
|
|
215
220
|
|
|
@@ -410,7 +415,8 @@ export class ShareDialogWithTriggerInternal extends React.PureComponent {
|
|
|
410
415
|
} = this.props;
|
|
411
416
|
const style = typeof tabIndex !== 'undefined' && tabIndex >= 0 ? {
|
|
412
417
|
outline: 'none'
|
|
413
|
-
} : undefined;
|
|
418
|
+
} : undefined;
|
|
419
|
+
const footer = resolveShareFooter(integrationMode, this.state.tabIndex, customFooter); // for performance purposes, we may want to have a loadable content i.e. ShareForm
|
|
414
420
|
|
|
415
421
|
return /*#__PURE__*/React.createElement(ShareButtonWrapper, {
|
|
416
422
|
tabIndex: tabIndex,
|
|
@@ -425,7 +431,7 @@ export class ShareDialogWithTriggerInternal extends React.PureComponent {
|
|
|
425
431
|
copyLink: copyLink,
|
|
426
432
|
showIntegrationForm: showIntegrationForm,
|
|
427
433
|
bottomMessage: bottomMessage,
|
|
428
|
-
customFooter:
|
|
434
|
+
customFooter: footer,
|
|
429
435
|
loadOptions: loadUserOptions,
|
|
430
436
|
isSharing: isSharing,
|
|
431
437
|
shareFormTitle: shareFormTitle,
|
|
@@ -183,9 +183,12 @@ class InternalForm extends React.PureComponent {
|
|
|
183
183
|
});
|
|
184
184
|
|
|
185
185
|
_defineProperty(this, "changeTab", tab => {
|
|
186
|
+
var _this$props$onTabChan, _this$props;
|
|
187
|
+
|
|
186
188
|
this.setState({
|
|
187
189
|
selectedTab: tab
|
|
188
190
|
});
|
|
191
|
+
(_this$props$onTabChan = (_this$props = this.props).onTabChange) === null || _this$props$onTabChan === void 0 ? void 0 : _this$props$onTabChan.call(_this$props, tab);
|
|
189
192
|
});
|
|
190
193
|
}
|
|
191
194
|
|
|
@@ -204,7 +207,6 @@ class InternalForm extends React.PureComponent {
|
|
|
204
207
|
const {
|
|
205
208
|
integrationMode = 'off',
|
|
206
209
|
shareIntegrations,
|
|
207
|
-
onTabChange,
|
|
208
210
|
handleCloseDialog
|
|
209
211
|
} = this.props;
|
|
210
212
|
|
|
@@ -217,10 +219,7 @@ class InternalForm extends React.PureComponent {
|
|
|
217
219
|
if (integrationMode === 'tabs') {
|
|
218
220
|
return /*#__PURE__*/React.createElement(Tabs, {
|
|
219
221
|
id: "ShareForm-Tabs-Integrations",
|
|
220
|
-
onChange:
|
|
221
|
-
this.changeTab(index);
|
|
222
|
-
onTabChange === null || onTabChange === void 0 ? void 0 : onTabChange(index);
|
|
223
|
-
},
|
|
222
|
+
onChange: this.changeTab,
|
|
224
223
|
selected: this.state.selectedTab
|
|
225
224
|
}, /*#__PURE__*/React.createElement(TabList, null, /*#__PURE__*/React.createElement(Tab, {
|
|
226
225
|
key: `share-tab-default`
|
|
@@ -237,9 +236,7 @@ class InternalForm extends React.PureComponent {
|
|
|
237
236
|
}, /*#__PURE__*/React.createElement(FormWrapper, null, /*#__PURE__*/React.createElement(IntegrationForm, {
|
|
238
237
|
Content: firstIntegration.Content,
|
|
239
238
|
onIntegrationClose: () => handleCloseDialog === null || handleCloseDialog === void 0 ? void 0 : handleCloseDialog(),
|
|
240
|
-
changeTab:
|
|
241
|
-
this.changeTab(index);
|
|
242
|
-
}
|
|
239
|
+
changeTab: this.changeTab
|
|
243
240
|
})))));
|
|
244
241
|
}
|
|
245
242
|
|
|
@@ -49,4 +49,11 @@ export const optionDataToUsers = optionDataArray => optionDataArray.map(optionDa
|
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
|
-
export const allowEmails = config => !(config && config.disableSharingToEmails);
|
|
52
|
+
export const allowEmails = config => !(config && config.disableSharingToEmails);
|
|
53
|
+
export const resolveShareFooter = (integrationMode, tabIndex, customFooter) => {
|
|
54
|
+
if (customFooter) {
|
|
55
|
+
if (integrationMode !== 'tabs' || tabIndex === 0) {
|
|
56
|
+
return customFooter;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
package/dist/es2019/i18n/cs.js
CHANGED
|
@@ -31,7 +31,6 @@ export default {
|
|
|
31
31
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': 'Vyberte alespoň jednoho uživatele, skupinu nebo tým.',
|
|
32
32
|
'fabric.elements.share.form.user-picker.validation.required.jira': 'Vyberte alespoň jednoho uživatele, tým nebo e-mail.',
|
|
33
33
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': 'Vyberte alespoň jednoho uživatele nebo tým.',
|
|
34
|
-
'fabric.elements.share.in.integration.button': 'Sdílet v: {integrationName}',
|
|
35
34
|
'fabric.elements.share.success.message': '{object, select, blogpost {Příspěvek na blogu je sdílen} board {Board je sdílen} calendar {Kalendář je sdílen} draft {Koncept je sdílen} filter {Filtr je sdílen} issue {Požadavek je sdílen} media {Multimediální soubor je sdílen} page {Stránka je sdílena} project {Projekt je sdílen} pullrequest {Pull request je sdílen} question {Otázka je sdílena} report {Sestava je sdílena} repository {Repozitář je sdílen} request {Žádost je sdílena} roadmap {Plán je sdílen} site {Web je sdílen} space {Prostor je sdílen} other {Odkaz je sdílen}}',
|
|
36
35
|
'fabric.elements.share.to.integration.button': 'Sdílet ve službě {integrationName}',
|
|
37
36
|
'fabric.elements.share.trigger.button.icon.label': 'Ikona sdílení',
|
package/dist/es2019/i18n/de.js
CHANGED
|
@@ -31,7 +31,6 @@ export default {
|
|
|
31
31
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': 'Wählen Sie mindestens einen Benutzer, eine Gruppe oder ein Team aus.',
|
|
32
32
|
'fabric.elements.share.form.user-picker.validation.required.jira': 'Bitte wählen Sie mindestens einen Benutzer, ein Team oder eine E-Mail-Adresse aus.',
|
|
33
33
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': 'Wählen Sie mindestens einen Benutzer oder ein Team aus.',
|
|
34
|
-
'fabric.elements.share.in.integration.button': 'In {integrationName} teilen',
|
|
35
34
|
'fabric.elements.share.success.message': '{object, select, blogpost {Geteilter Blogpost} board {Geteiltes Board} calendar {Geteilter Kalender} draft {Geteilter Entwurf} filter {Geteilter Filter} issue {Geteilter Vorgang} media {Geteilte Medien} page {Geteilte Seite} project {Geteiltes Projekt} pullrequest {Geteilte Pull-Anfrage} question {Geteilte Frage} report {Geteilter Bericht} repository {Geteiltes Repository} request {Geteilte Anfrage} roadmap {Geteilte Roadmap} site {Geteilte Site} space {Geteilter Bereich} other {Geteilter Link}}',
|
|
36
35
|
'fabric.elements.share.to.integration.button': 'Mit {integrationName} teilen',
|
|
37
36
|
'fabric.elements.share.trigger.button.icon.label': 'Teilen-Symbol',
|
package/dist/es2019/i18n/fr.js
CHANGED
|
@@ -31,7 +31,6 @@ export default {
|
|
|
31
31
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': 'Sélectionnez au moins un utilisateur, un groupe ou une équipe.',
|
|
32
32
|
'fabric.elements.share.form.user-picker.validation.required.jira': 'Sélectionnez au moins un utilisateur, une équipe ou une adresse e-mail.',
|
|
33
33
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': 'Sélectionnez au moins un utilisateur ou une équipe.',
|
|
34
|
-
'fabric.elements.share.in.integration.button': 'Partager dans {integrationName}',
|
|
35
34
|
'fabric.elements.share.success.message': '{object, select, blogpost {Billet de blog partagé} board {Tableau partagé} calendar {Calendrier partagé} draft {Brouillon partagé} filter {Filtre partagé} issue {Ticket partagé} media {Support partagé} page {Page partagée} project {Projet partagé} pullrequest {Pull request partagée} question {Question partagée} report {Rapport partagé} repository {Dépôt partagé} request {Demande partagée} roadmap {Feuille de route partagée} site {Site partagé} space {Espace partagé} other {Lien partagé}}',
|
|
36
35
|
'fabric.elements.share.to.integration.button': 'Partager avec {integrationName}',
|
|
37
36
|
'fabric.elements.share.trigger.button.icon.label': 'Icône de partage',
|
package/dist/es2019/i18n/pl.js
CHANGED
|
@@ -31,7 +31,6 @@ export default {
|
|
|
31
31
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': 'Wybierz co najmniej jednego użytkownika, jedną grupę lub jeden zespół.',
|
|
32
32
|
'fabric.elements.share.form.user-picker.validation.required.jira': 'Wybierz co najmniej jednego użytkownika, jeden zespół lub adres e-mail.',
|
|
33
33
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': 'Wybierz co najmniej jednego użytkownika lub jeden zespół.',
|
|
34
|
-
'fabric.elements.share.in.integration.button': 'Udostępnij w {integrationName}',
|
|
35
34
|
'fabric.elements.share.success.message': '{object, select, blogpost {Udostępniono wpis na blogu} board {Udostępniono tablicę} calendar {Udostępniono kalendarz} draft {Udostępniono wersję roboczą} filter {Udostępniono filtr} issue {Udostępniono zgłoszenie} media {Udostępniono media} page {Udostępniono stronę} project {Udostępniono projekt} pullrequest {Udostępniono pull request} question {Udostępniono pytanie} report {Udostępniono raport} repository {Udostępniono repozytorium} request {Udostępniono wniosek} roadmap {Udostępniono harmonogram} site {Udostępniono witrynę} space {Udostępniono przestrzeń} other {Udostępniono łącze}}',
|
|
36
35
|
'fabric.elements.share.to.integration.button': 'Udostępnij w {integrationName}',
|
|
37
36
|
'fabric.elements.share.trigger.button.icon.label': 'Ikona udostępniania',
|
|
@@ -31,7 +31,6 @@ export default {
|
|
|
31
31
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': 'Selecione pelo menos um usuário, grupo ou equipe.',
|
|
32
32
|
'fabric.elements.share.form.user-picker.validation.required.jira': 'Selecione pelo menos um usuário, equipe ou e-mail.',
|
|
33
33
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': 'Selecione pelo menos um usuário ou equipe.',
|
|
34
|
-
'fabric.elements.share.in.integration.button': 'Compartilhar em {integrationName}',
|
|
35
34
|
'fabric.elements.share.success.message': '{object, select, blogpost {Postagem de blog compartilhada} board {Painel compartilhado} calendar {Calendário compartilhado} draft {Rascunho compartilhado} filter {Filtro compartilhado} issue {Item compartilhado} media {Mídia compartilhada} page {Página compartilhada} project {Projeto compartilhado} pullrequest {Solicitação pull compartilhada} question {Pergunta compartilhada} report {Relatório compartilhado} repository {Repositório compartilhado} request {Solicitação compartilhada} roadmap {Roteiro compartilhado} site {Site compartilhado} space {Espaço compartilhado} other {Link compartilhado}}',
|
|
36
35
|
'fabric.elements.share.to.integration.button': 'Compartilhar em {integrationName}',
|
|
37
36
|
'fabric.elements.share.trigger.button.icon.label': 'Ícone de compartilhamento',
|
package/dist/es2019/i18n/ru.js
CHANGED
|
@@ -31,7 +31,6 @@ export default {
|
|
|
31
31
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': 'Выберите хотя бы 1 пользователя, группу или команду.',
|
|
32
32
|
'fabric.elements.share.form.user-picker.validation.required.jira': 'Выберите хотя бы 1 пользователя, команду или адрес эл. почты.',
|
|
33
33
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': 'Выберите хотя бы 1 пользователя или команду.',
|
|
34
|
-
'fabric.elements.share.in.integration.button': 'Поделиться в {integrationName}',
|
|
35
34
|
'fabric.elements.share.success.message': '{object, select, blogpost {Вы поделились записью в блоге} board {Вы поделились доской} calendar {Вы поделились календарем} draft {Вы поделились черновиком} filter {Вы поделились фильтром} issue {Вы поделились задачей} media {Вы поделились объектом мультимедиа} page {Вы поделились страницей} project {Вы поделились проектом} pullrequest {Вы поделились запросом pull} question {Вы поделились вопросом} report {Вы поделились отчетом} repository {Вы поделились репозиторием} request {Вы поделились запросом} roadmap {Вы поделились дорожной картой} site {Вы поделились сайтом} space {Вы поделились разделом} other {Вы поделились ссылкой}}',
|
|
36
35
|
'fabric.elements.share.to.integration.button': 'Поделиться в {integrationName}',
|
|
37
36
|
'fabric.elements.share.trigger.button.icon.label': 'Значок «Поделиться»',
|
package/dist/es2019/i18n/tr.js
CHANGED
|
@@ -31,7 +31,6 @@ export default {
|
|
|
31
31
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': 'En az bir kullanıcı, grup veya takım seçin.',
|
|
32
32
|
'fabric.elements.share.form.user-picker.validation.required.jira': 'En az bir kullanıcı, takım veya e-posta adresi seçin.',
|
|
33
33
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': 'En az bir kullanıcı veya takım seçin.',
|
|
34
|
-
'fabric.elements.share.in.integration.button': '{integrationName} içinde paylaş',
|
|
35
34
|
'fabric.elements.share.success.message': '{object, select, blogpost {Blog gönderisi paylaşıldı} board {Pano paylaşıldı} calendar {Takvim paylaşıldı} draft {Taslak paylaşıldı} filter {Filtre paylaşıldı} issue {Konu paylaşıldı} media {Medya paylaşıldı} page {Sayfa paylaşıldı} project {Proje paylaşıldı} pullrequest {Çekme İsteği paylaşıldı} question {Soru paylaşıldı} report {Rapor paylaşıldı} repository {Depo paylaşıldı} request {Talep paylaşıldı} roadmap {Yol haritası paylaşıldı} site {Site paylaşıldı} space {Alan paylaşıldı} other {Bağlantı paylaşıldı}}',
|
|
36
35
|
'fabric.elements.share.to.integration.button': '{integrationName} üzerinden paylaş',
|
|
37
36
|
'fabric.elements.share.trigger.button.icon.label': 'Paylaşma simgesi',
|
package/dist/es2019/i18n/vi.js
CHANGED
|
@@ -31,7 +31,6 @@ export default {
|
|
|
31
31
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': 'Chọn ít nhất một người dùng, nhóm hoặc đội ngũ.',
|
|
32
32
|
'fabric.elements.share.form.user-picker.validation.required.jira': 'Chọn ít nhất một người dùng, nhóm hoặc email.',
|
|
33
33
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': 'Chọn ít nhất một người dùng hoặc đội ngũ.',
|
|
34
|
-
'fabric.elements.share.in.integration.button': 'Chia sẻ trong {integrationName}',
|
|
35
34
|
'fabric.elements.share.success.message': '{object, select, blogpost {Đã chia sẻ bài đăng} board {Đã chia sẻ bảng} calendar {Đã chia sẻ lịch} draft {Đã chia sẻ bản nháp} filter {Đã chia sẻ bộ lọc} issue {Đã chia sẻ vấn đề} media {Đã chia sẻ phương tiện} page {Đã chia sẻ trang} project {Đã chia sẻ dự án} pullrequest {Đã chia sẻ yêu cầu kéo} question {Đã chia sẻ câu hỏi} report {Đã chia sẻ báo cáo} repository {Đã chia sẻ kho lưu trữ} request {Đã chia sẻ yêu cầu} roadmap {Đã chia sẻ lộ trình} site {Đã chia sẻ trang} space {Đã chia sẻ không gian} other {Đã chia sẻ liên kết}}',
|
|
36
35
|
'fabric.elements.share.to.integration.button': 'Chia sẻ với {integrationName}',
|
|
37
36
|
'fabric.elements.share.trigger.button.icon.label': 'Biểu tượng chia sẻ',
|
|
@@ -31,7 +31,6 @@ export default {
|
|
|
31
31
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': '至少選取一個使用者、群組或團隊。',
|
|
32
32
|
'fabric.elements.share.form.user-picker.validation.required.jira': '請選取至少一個使用者、團隊或電子郵件。',
|
|
33
33
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': '至少選取一個使用者或團隊。',
|
|
34
|
-
'fabric.elements.share.in.integration.button': '在 {integrationName} 中分享',
|
|
35
34
|
'fabric.elements.share.success.message': '{object, select, blogpost {已分享部落格貼文} board {已分享看板} calendar {已分享日曆} draft {已分享草稿} filter {已分享篩選條件} issue {已分享問題} media {已分享媒體} page {已分享頁面} project {已分享專案} pullrequest {已分享提取請求} question {已分享問題} report {已分享報告} repository {已分享存放庫} request {已分享請求} roadmap {已分享藍圖} site {已分享網站} space {已分享空間} other {已分享連結}}',
|
|
36
35
|
'fabric.elements.share.to.integration.button': '與 {integrationName} 分享',
|
|
37
36
|
'fabric.elements.share.trigger.button.icon.label': '分享圖示',
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { useIntl } from 'react-intl-next';
|
|
4
|
-
|
|
5
|
-
import FieldTextArea from '@atlaskit/field-text-area';
|
|
3
|
+
import { useIntl } from 'react-intl-next';
|
|
6
4
|
import { Field } from '@atlaskit/form';
|
|
5
|
+
import TextArea from '@atlaskit/textarea';
|
|
7
6
|
import { messages } from '../i18n';
|
|
8
7
|
export var CommentField = function CommentField(_ref) {
|
|
9
8
|
var defaultValue = _ref.defaultValue;
|
|
@@ -13,7 +12,7 @@ export var CommentField = function CommentField(_ref) {
|
|
|
13
12
|
defaultValue: defaultValue
|
|
14
13
|
}, function (_ref2) {
|
|
15
14
|
var fieldProps = _ref2.fieldProps;
|
|
16
|
-
return /*#__PURE__*/React.createElement(
|
|
15
|
+
return /*#__PURE__*/React.createElement(TextArea, _extends({}, fieldProps, {
|
|
17
16
|
onChange: function onChange(event) {
|
|
18
17
|
return fieldProps.onChange({
|
|
19
18
|
format: 'plain_text',
|
|
@@ -23,8 +22,6 @@ export var CommentField = function CommentField(_ref) {
|
|
|
23
22
|
value: fieldProps.value && fieldProps.value.value,
|
|
24
23
|
maxLength: 500,
|
|
25
24
|
minimumRows: 3,
|
|
26
|
-
shouldFitContainer: true,
|
|
27
|
-
isLabelHidden: true,
|
|
28
25
|
placeholder: intl.formatMessage(messages.commentPlaceholder)
|
|
29
26
|
}));
|
|
30
27
|
});
|
|
@@ -42,7 +42,7 @@ function LazyShareForm(props) {
|
|
|
42
42
|
shareError = props.shareError,
|
|
43
43
|
defaultValue = props.defaultValue,
|
|
44
44
|
showTitle = props.showTitle;
|
|
45
|
-
var footer = /*#__PURE__*/React.createElement("div", null, bottomMessage ? /*#__PURE__*/React.createElement(BottomMessageWrapper, null, bottomMessage) : null, customFooter && /*#__PURE__*/React.createElement(CustomFooterWrapper, null, customFooter));
|
|
45
|
+
var footer = /*#__PURE__*/React.createElement("div", null, bottomMessage ? /*#__PURE__*/React.createElement(BottomMessageWrapper, null, bottomMessage) : null, customFooter && selectedIntegration === null && /*#__PURE__*/React.createElement(CustomFooterWrapper, null, customFooter));
|
|
46
46
|
return /*#__PURE__*/React.createElement(ShareFormWrapper, {
|
|
47
47
|
footer: footer // form title will be determined by `title` and `showTitle` prop passed to `ShareForm`,
|
|
48
48
|
// so we don't need to show title via ShareFormWrapper
|
|
@@ -35,7 +35,7 @@ import { cancelShare, CHANNEL_ID, copyLinkButtonClicked, formShareSubmitted, scr
|
|
|
35
35
|
import LazyShareFormLazy from './LazyShareForm/lazy';
|
|
36
36
|
import ShareButton from './ShareButton';
|
|
37
37
|
import SplitButton from './SplitButton';
|
|
38
|
-
import { generateSelectZIndex } from './utils';
|
|
38
|
+
import { generateSelectZIndex, resolveShareFooter } from './utils';
|
|
39
39
|
var ShareButtonWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: inline-flex;\n outline: none;\n"])));
|
|
40
40
|
export var defaultShareContentState = {
|
|
41
41
|
users: [],
|
|
@@ -74,7 +74,8 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
74
74
|
defaultValue: defaultShareContentState,
|
|
75
75
|
isUsingSplitButton: false,
|
|
76
76
|
showIntegrationForm: false,
|
|
77
|
-
selectedIntegration: null
|
|
77
|
+
selectedIntegration: null,
|
|
78
|
+
tabIndex: 0
|
|
78
79
|
});
|
|
79
80
|
|
|
80
81
|
_defineProperty(_assertThisInitialized(_this), "closeAndResetDialog", function () {
|
|
@@ -122,6 +123,10 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
_this.createAndFireEvent(shareTabClicked(subjectId));
|
|
126
|
+
|
|
127
|
+
_this.setState({
|
|
128
|
+
tabIndex: index
|
|
129
|
+
});
|
|
125
130
|
});
|
|
126
131
|
|
|
127
132
|
_defineProperty(_assertThisInitialized(_this), "getFlags", function () {
|
|
@@ -228,7 +233,8 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
228
233
|
_this.setState({
|
|
229
234
|
isDialogOpen: false,
|
|
230
235
|
showIntegrationForm: false,
|
|
231
|
-
selectedIntegration: null
|
|
236
|
+
selectedIntegration: null,
|
|
237
|
+
tabIndex: 0
|
|
232
238
|
});
|
|
233
239
|
});
|
|
234
240
|
|
|
@@ -436,7 +442,8 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
436
442
|
shareIntegrations = _this$props7.shareIntegrations;
|
|
437
443
|
var style = typeof tabIndex !== 'undefined' && tabIndex >= 0 ? {
|
|
438
444
|
outline: 'none'
|
|
439
|
-
} : undefined;
|
|
445
|
+
} : undefined;
|
|
446
|
+
var footer = resolveShareFooter(integrationMode, this.state.tabIndex, customFooter); // for performance purposes, we may want to have a loadable content i.e. ShareForm
|
|
440
447
|
|
|
441
448
|
return /*#__PURE__*/React.createElement(ShareButtonWrapper, {
|
|
442
449
|
tabIndex: tabIndex,
|
|
@@ -452,7 +459,7 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
452
459
|
copyLink: copyLink,
|
|
453
460
|
showIntegrationForm: showIntegrationForm,
|
|
454
461
|
bottomMessage: bottomMessage,
|
|
455
|
-
customFooter:
|
|
462
|
+
customFooter: footer,
|
|
456
463
|
loadOptions: loadUserOptions,
|
|
457
464
|
isSharing: isSharing,
|
|
458
465
|
shareFormTitle: shareFormTitle,
|
|
@@ -178,9 +178,13 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
178
178
|
});
|
|
179
179
|
|
|
180
180
|
_defineProperty(_assertThisInitialized(_this), "changeTab", function (tab) {
|
|
181
|
+
var _this$props$onTabChan, _this$props4;
|
|
182
|
+
|
|
181
183
|
_this.setState({
|
|
182
184
|
selectedTab: tab
|
|
183
185
|
});
|
|
186
|
+
|
|
187
|
+
(_this$props$onTabChan = (_this$props4 = _this.props).onTabChange) === null || _this$props$onTabChan === void 0 ? void 0 : _this$props$onTabChan.call(_this$props4, tab);
|
|
184
188
|
});
|
|
185
189
|
|
|
186
190
|
return _this;
|
|
@@ -189,9 +193,9 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
189
193
|
_createClass(InternalForm, [{
|
|
190
194
|
key: "componentWillUnmount",
|
|
191
195
|
value: function componentWillUnmount() {
|
|
192
|
-
var _this$
|
|
193
|
-
onDismiss = _this$
|
|
194
|
-
getValues = _this$
|
|
196
|
+
var _this$props5 = this.props,
|
|
197
|
+
onDismiss = _this$props5.onDismiss,
|
|
198
|
+
getValues = _this$props5.getValues;
|
|
195
199
|
|
|
196
200
|
if (onDismiss) {
|
|
197
201
|
onDismiss(getValues());
|
|
@@ -200,14 +204,11 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
200
204
|
}, {
|
|
201
205
|
key: "render",
|
|
202
206
|
value: function render() {
|
|
203
|
-
var
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
shareIntegrations = _this$props5.shareIntegrations,
|
|
209
|
-
onTabChange = _this$props5.onTabChange,
|
|
210
|
-
handleCloseDialog = _this$props5.handleCloseDialog;
|
|
207
|
+
var _this$props6 = this.props,
|
|
208
|
+
_this$props6$integrat = _this$props6.integrationMode,
|
|
209
|
+
integrationMode = _this$props6$integrat === void 0 ? 'off' : _this$props6$integrat,
|
|
210
|
+
shareIntegrations = _this$props6.shareIntegrations,
|
|
211
|
+
handleCloseDialog = _this$props6.handleCloseDialog;
|
|
211
212
|
|
|
212
213
|
if (integrationMode === 'off' || !shareIntegrations || !shareIntegrations.length) {
|
|
213
214
|
return this.renderShareForm();
|
|
@@ -218,11 +219,7 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
218
219
|
if (integrationMode === 'tabs') {
|
|
219
220
|
return /*#__PURE__*/React.createElement(Tabs, {
|
|
220
221
|
id: "ShareForm-Tabs-Integrations",
|
|
221
|
-
onChange:
|
|
222
|
-
_this2.changeTab(index);
|
|
223
|
-
|
|
224
|
-
onTabChange === null || onTabChange === void 0 ? void 0 : onTabChange(index);
|
|
225
|
-
},
|
|
222
|
+
onChange: this.changeTab,
|
|
226
223
|
selected: this.state.selectedTab
|
|
227
224
|
}, /*#__PURE__*/React.createElement(TabList, null, /*#__PURE__*/React.createElement(Tab, {
|
|
228
225
|
key: "share-tab-default"
|
|
@@ -241,9 +238,7 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
241
238
|
onIntegrationClose: function onIntegrationClose() {
|
|
242
239
|
return handleCloseDialog === null || handleCloseDialog === void 0 ? void 0 : handleCloseDialog();
|
|
243
240
|
},
|
|
244
|
-
changeTab:
|
|
245
|
-
_this2.changeTab(index);
|
|
246
|
-
}
|
|
241
|
+
changeTab: this.changeTab
|
|
247
242
|
})))));
|
|
248
243
|
}
|
|
249
244
|
|
|
@@ -53,4 +53,11 @@ export var optionDataToUsers = function optionDataToUsers(optionDataArray) {
|
|
|
53
53
|
};
|
|
54
54
|
export var allowEmails = function allowEmails(config) {
|
|
55
55
|
return !(config && config.disableSharingToEmails);
|
|
56
|
+
};
|
|
57
|
+
export var resolveShareFooter = function resolveShareFooter(integrationMode, tabIndex, customFooter) {
|
|
58
|
+
if (customFooter) {
|
|
59
|
+
if (integrationMode !== 'tabs' || tabIndex === 0) {
|
|
60
|
+
return customFooter;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
56
63
|
};
|
package/dist/esm/i18n/cs.js
CHANGED
|
@@ -31,7 +31,6 @@ export default {
|
|
|
31
31
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': 'Vyberte alespoň jednoho uživatele, skupinu nebo tým.',
|
|
32
32
|
'fabric.elements.share.form.user-picker.validation.required.jira': 'Vyberte alespoň jednoho uživatele, tým nebo e-mail.',
|
|
33
33
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': 'Vyberte alespoň jednoho uživatele nebo tým.',
|
|
34
|
-
'fabric.elements.share.in.integration.button': 'Sdílet v: {integrationName}',
|
|
35
34
|
'fabric.elements.share.success.message': '{object, select, blogpost {Příspěvek na blogu je sdílen} board {Board je sdílen} calendar {Kalendář je sdílen} draft {Koncept je sdílen} filter {Filtr je sdílen} issue {Požadavek je sdílen} media {Multimediální soubor je sdílen} page {Stránka je sdílena} project {Projekt je sdílen} pullrequest {Pull request je sdílen} question {Otázka je sdílena} report {Sestava je sdílena} repository {Repozitář je sdílen} request {Žádost je sdílena} roadmap {Plán je sdílen} site {Web je sdílen} space {Prostor je sdílen} other {Odkaz je sdílen}}',
|
|
36
35
|
'fabric.elements.share.to.integration.button': 'Sdílet ve službě {integrationName}',
|
|
37
36
|
'fabric.elements.share.trigger.button.icon.label': 'Ikona sdílení',
|
package/dist/esm/i18n/de.js
CHANGED
|
@@ -31,7 +31,6 @@ export default {
|
|
|
31
31
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': 'Wählen Sie mindestens einen Benutzer, eine Gruppe oder ein Team aus.',
|
|
32
32
|
'fabric.elements.share.form.user-picker.validation.required.jira': 'Bitte wählen Sie mindestens einen Benutzer, ein Team oder eine E-Mail-Adresse aus.',
|
|
33
33
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': 'Wählen Sie mindestens einen Benutzer oder ein Team aus.',
|
|
34
|
-
'fabric.elements.share.in.integration.button': 'In {integrationName} teilen',
|
|
35
34
|
'fabric.elements.share.success.message': '{object, select, blogpost {Geteilter Blogpost} board {Geteiltes Board} calendar {Geteilter Kalender} draft {Geteilter Entwurf} filter {Geteilter Filter} issue {Geteilter Vorgang} media {Geteilte Medien} page {Geteilte Seite} project {Geteiltes Projekt} pullrequest {Geteilte Pull-Anfrage} question {Geteilte Frage} report {Geteilter Bericht} repository {Geteiltes Repository} request {Geteilte Anfrage} roadmap {Geteilte Roadmap} site {Geteilte Site} space {Geteilter Bereich} other {Geteilter Link}}',
|
|
36
35
|
'fabric.elements.share.to.integration.button': 'Mit {integrationName} teilen',
|
|
37
36
|
'fabric.elements.share.trigger.button.icon.label': 'Teilen-Symbol',
|
package/dist/esm/i18n/fr.js
CHANGED
|
@@ -31,7 +31,6 @@ export default {
|
|
|
31
31
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': 'Sélectionnez au moins un utilisateur, un groupe ou une équipe.',
|
|
32
32
|
'fabric.elements.share.form.user-picker.validation.required.jira': 'Sélectionnez au moins un utilisateur, une équipe ou une adresse e-mail.',
|
|
33
33
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': 'Sélectionnez au moins un utilisateur ou une équipe.',
|
|
34
|
-
'fabric.elements.share.in.integration.button': 'Partager dans {integrationName}',
|
|
35
34
|
'fabric.elements.share.success.message': '{object, select, blogpost {Billet de blog partagé} board {Tableau partagé} calendar {Calendrier partagé} draft {Brouillon partagé} filter {Filtre partagé} issue {Ticket partagé} media {Support partagé} page {Page partagée} project {Projet partagé} pullrequest {Pull request partagée} question {Question partagée} report {Rapport partagé} repository {Dépôt partagé} request {Demande partagée} roadmap {Feuille de route partagée} site {Site partagé} space {Espace partagé} other {Lien partagé}}',
|
|
36
35
|
'fabric.elements.share.to.integration.button': 'Partager avec {integrationName}',
|
|
37
36
|
'fabric.elements.share.trigger.button.icon.label': 'Icône de partage',
|
package/dist/esm/i18n/pl.js
CHANGED
|
@@ -31,7 +31,6 @@ export default {
|
|
|
31
31
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': 'Wybierz co najmniej jednego użytkownika, jedną grupę lub jeden zespół.',
|
|
32
32
|
'fabric.elements.share.form.user-picker.validation.required.jira': 'Wybierz co najmniej jednego użytkownika, jeden zespół lub adres e-mail.',
|
|
33
33
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': 'Wybierz co najmniej jednego użytkownika lub jeden zespół.',
|
|
34
|
-
'fabric.elements.share.in.integration.button': 'Udostępnij w {integrationName}',
|
|
35
34
|
'fabric.elements.share.success.message': '{object, select, blogpost {Udostępniono wpis na blogu} board {Udostępniono tablicę} calendar {Udostępniono kalendarz} draft {Udostępniono wersję roboczą} filter {Udostępniono filtr} issue {Udostępniono zgłoszenie} media {Udostępniono media} page {Udostępniono stronę} project {Udostępniono projekt} pullrequest {Udostępniono pull request} question {Udostępniono pytanie} report {Udostępniono raport} repository {Udostępniono repozytorium} request {Udostępniono wniosek} roadmap {Udostępniono harmonogram} site {Udostępniono witrynę} space {Udostępniono przestrzeń} other {Udostępniono łącze}}',
|
|
36
35
|
'fabric.elements.share.to.integration.button': 'Udostępnij w {integrationName}',
|
|
37
36
|
'fabric.elements.share.trigger.button.icon.label': 'Ikona udostępniania',
|
package/dist/esm/i18n/pt_BR.js
CHANGED
|
@@ -31,7 +31,6 @@ export default {
|
|
|
31
31
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': 'Selecione pelo menos um usuário, grupo ou equipe.',
|
|
32
32
|
'fabric.elements.share.form.user-picker.validation.required.jira': 'Selecione pelo menos um usuário, equipe ou e-mail.',
|
|
33
33
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': 'Selecione pelo menos um usuário ou equipe.',
|
|
34
|
-
'fabric.elements.share.in.integration.button': 'Compartilhar em {integrationName}',
|
|
35
34
|
'fabric.elements.share.success.message': '{object, select, blogpost {Postagem de blog compartilhada} board {Painel compartilhado} calendar {Calendário compartilhado} draft {Rascunho compartilhado} filter {Filtro compartilhado} issue {Item compartilhado} media {Mídia compartilhada} page {Página compartilhada} project {Projeto compartilhado} pullrequest {Solicitação pull compartilhada} question {Pergunta compartilhada} report {Relatório compartilhado} repository {Repositório compartilhado} request {Solicitação compartilhada} roadmap {Roteiro compartilhado} site {Site compartilhado} space {Espaço compartilhado} other {Link compartilhado}}',
|
|
36
35
|
'fabric.elements.share.to.integration.button': 'Compartilhar em {integrationName}',
|
|
37
36
|
'fabric.elements.share.trigger.button.icon.label': 'Ícone de compartilhamento',
|
package/dist/esm/i18n/ru.js
CHANGED
|
@@ -31,7 +31,6 @@ export default {
|
|
|
31
31
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': 'Выберите хотя бы 1 пользователя, группу или команду.',
|
|
32
32
|
'fabric.elements.share.form.user-picker.validation.required.jira': 'Выберите хотя бы 1 пользователя, команду или адрес эл. почты.',
|
|
33
33
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': 'Выберите хотя бы 1 пользователя или команду.',
|
|
34
|
-
'fabric.elements.share.in.integration.button': 'Поделиться в {integrationName}',
|
|
35
34
|
'fabric.elements.share.success.message': '{object, select, blogpost {Вы поделились записью в блоге} board {Вы поделились доской} calendar {Вы поделились календарем} draft {Вы поделились черновиком} filter {Вы поделились фильтром} issue {Вы поделились задачей} media {Вы поделились объектом мультимедиа} page {Вы поделились страницей} project {Вы поделились проектом} pullrequest {Вы поделились запросом pull} question {Вы поделились вопросом} report {Вы поделились отчетом} repository {Вы поделились репозиторием} request {Вы поделились запросом} roadmap {Вы поделились дорожной картой} site {Вы поделились сайтом} space {Вы поделились разделом} other {Вы поделились ссылкой}}',
|
|
36
35
|
'fabric.elements.share.to.integration.button': 'Поделиться в {integrationName}',
|
|
37
36
|
'fabric.elements.share.trigger.button.icon.label': 'Значок «Поделиться»',
|
package/dist/esm/i18n/tr.js
CHANGED
|
@@ -31,7 +31,6 @@ export default {
|
|
|
31
31
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': 'En az bir kullanıcı, grup veya takım seçin.',
|
|
32
32
|
'fabric.elements.share.form.user-picker.validation.required.jira': 'En az bir kullanıcı, takım veya e-posta adresi seçin.',
|
|
33
33
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': 'En az bir kullanıcı veya takım seçin.',
|
|
34
|
-
'fabric.elements.share.in.integration.button': '{integrationName} içinde paylaş',
|
|
35
34
|
'fabric.elements.share.success.message': '{object, select, blogpost {Blog gönderisi paylaşıldı} board {Pano paylaşıldı} calendar {Takvim paylaşıldı} draft {Taslak paylaşıldı} filter {Filtre paylaşıldı} issue {Konu paylaşıldı} media {Medya paylaşıldı} page {Sayfa paylaşıldı} project {Proje paylaşıldı} pullrequest {Çekme İsteği paylaşıldı} question {Soru paylaşıldı} report {Rapor paylaşıldı} repository {Depo paylaşıldı} request {Talep paylaşıldı} roadmap {Yol haritası paylaşıldı} site {Site paylaşıldı} space {Alan paylaşıldı} other {Bağlantı paylaşıldı}}',
|
|
36
35
|
'fabric.elements.share.to.integration.button': '{integrationName} üzerinden paylaş',
|
|
37
36
|
'fabric.elements.share.trigger.button.icon.label': 'Paylaşma simgesi',
|
package/dist/esm/i18n/vi.js
CHANGED
|
@@ -31,7 +31,6 @@ export default {
|
|
|
31
31
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': 'Chọn ít nhất một người dùng, nhóm hoặc đội ngũ.',
|
|
32
32
|
'fabric.elements.share.form.user-picker.validation.required.jira': 'Chọn ít nhất một người dùng, nhóm hoặc email.',
|
|
33
33
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': 'Chọn ít nhất một người dùng hoặc đội ngũ.',
|
|
34
|
-
'fabric.elements.share.in.integration.button': 'Chia sẻ trong {integrationName}',
|
|
35
34
|
'fabric.elements.share.success.message': '{object, select, blogpost {Đã chia sẻ bài đăng} board {Đã chia sẻ bảng} calendar {Đã chia sẻ lịch} draft {Đã chia sẻ bản nháp} filter {Đã chia sẻ bộ lọc} issue {Đã chia sẻ vấn đề} media {Đã chia sẻ phương tiện} page {Đã chia sẻ trang} project {Đã chia sẻ dự án} pullrequest {Đã chia sẻ yêu cầu kéo} question {Đã chia sẻ câu hỏi} report {Đã chia sẻ báo cáo} repository {Đã chia sẻ kho lưu trữ} request {Đã chia sẻ yêu cầu} roadmap {Đã chia sẻ lộ trình} site {Đã chia sẻ trang} space {Đã chia sẻ không gian} other {Đã chia sẻ liên kết}}',
|
|
36
35
|
'fabric.elements.share.to.integration.button': 'Chia sẻ với {integrationName}',
|
|
37
36
|
'fabric.elements.share.trigger.button.icon.label': 'Biểu tượng chia sẻ',
|
package/dist/esm/i18n/zh_TW.js
CHANGED
|
@@ -31,7 +31,6 @@ export default {
|
|
|
31
31
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': '至少選取一個使用者、群組或團隊。',
|
|
32
32
|
'fabric.elements.share.form.user-picker.validation.required.jira': '請選取至少一個使用者、團隊或電子郵件。',
|
|
33
33
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': '至少選取一個使用者或團隊。',
|
|
34
|
-
'fabric.elements.share.in.integration.button': '在 {integrationName} 中分享',
|
|
35
34
|
'fabric.elements.share.success.message': '{object, select, blogpost {已分享部落格貼文} board {已分享看板} calendar {已分享日曆} draft {已分享草稿} filter {已分享篩選條件} issue {已分享問題} media {已分享媒體} page {已分享頁面} project {已分享專案} pullrequest {已分享提取請求} question {已分享問題} report {已分享報告} repository {已分享存放庫} request {已分享請求} roadmap {已分享藍圖} site {已分享網站} space {已分享空間} other {已分享連結}}',
|
|
36
35
|
'fabric.elements.share.to.integration.button': '與 {integrationName} 分享',
|
|
37
36
|
'fabric.elements.share.trigger.button.icon.label': '分享圖示',
|
package/dist/esm/version.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { OptionData } from '@atlaskit/user-picker';
|
|
3
3
|
import { ConfigResponse, User } from '../types';
|
|
4
|
+
import type { IntegrationMode } from '../types/ShareEntities';
|
|
4
5
|
/**
|
|
5
6
|
* We need to generate correct zIndex, for the PopUp and for the Select inside it.
|
|
6
7
|
* The PopUp's defaults to `layers.layer()` from @atlaskit/theme. But if user provides
|
|
@@ -16,3 +17,4 @@ export declare const generateSelectZIndex: (dialogZIndex?: number | undefined) =
|
|
|
16
17
|
export declare const getMenuPortalTargetCurrentHTML: (ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined) => HTMLDivElement | null;
|
|
17
18
|
export declare const optionDataToUsers: (optionDataArray: OptionData[]) => User[];
|
|
18
19
|
export declare const allowEmails: (config?: ConfigResponse | undefined) => boolean;
|
|
20
|
+
export declare const resolveShareFooter: (integrationMode: IntegrationMode | undefined, tabIndex: number, customFooter: React.ReactNode) => React.ReactNode | undefined;
|
package/dist/types/i18n/cs.d.ts
CHANGED
|
@@ -24,7 +24,6 @@ declare const _default: {
|
|
|
24
24
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': string;
|
|
25
25
|
'fabric.elements.share.form.user-picker.validation.required.jira': string;
|
|
26
26
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': string;
|
|
27
|
-
'fabric.elements.share.in.integration.button': string;
|
|
28
27
|
'fabric.elements.share.success.message': string;
|
|
29
28
|
'fabric.elements.share.to.integration.button': string;
|
|
30
29
|
'fabric.elements.share.trigger.button.icon.label': string;
|
package/dist/types/i18n/de.d.ts
CHANGED
|
@@ -24,7 +24,6 @@ declare const _default: {
|
|
|
24
24
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': string;
|
|
25
25
|
'fabric.elements.share.form.user-picker.validation.required.jira': string;
|
|
26
26
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': string;
|
|
27
|
-
'fabric.elements.share.in.integration.button': string;
|
|
28
27
|
'fabric.elements.share.success.message': string;
|
|
29
28
|
'fabric.elements.share.to.integration.button': string;
|
|
30
29
|
'fabric.elements.share.trigger.button.icon.label': string;
|
package/dist/types/i18n/fr.d.ts
CHANGED
|
@@ -24,7 +24,6 @@ declare const _default: {
|
|
|
24
24
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': string;
|
|
25
25
|
'fabric.elements.share.form.user-picker.validation.required.jira': string;
|
|
26
26
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': string;
|
|
27
|
-
'fabric.elements.share.in.integration.button': string;
|
|
28
27
|
'fabric.elements.share.success.message': string;
|
|
29
28
|
'fabric.elements.share.to.integration.button': string;
|
|
30
29
|
'fabric.elements.share.trigger.button.icon.label': string;
|
package/dist/types/i18n/pl.d.ts
CHANGED
|
@@ -24,7 +24,6 @@ declare const _default: {
|
|
|
24
24
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': string;
|
|
25
25
|
'fabric.elements.share.form.user-picker.validation.required.jira': string;
|
|
26
26
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': string;
|
|
27
|
-
'fabric.elements.share.in.integration.button': string;
|
|
28
27
|
'fabric.elements.share.success.message': string;
|
|
29
28
|
'fabric.elements.share.to.integration.button': string;
|
|
30
29
|
'fabric.elements.share.trigger.button.icon.label': string;
|
|
@@ -24,7 +24,6 @@ declare const _default: {
|
|
|
24
24
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': string;
|
|
25
25
|
'fabric.elements.share.form.user-picker.validation.required.jira': string;
|
|
26
26
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': string;
|
|
27
|
-
'fabric.elements.share.in.integration.button': string;
|
|
28
27
|
'fabric.elements.share.success.message': string;
|
|
29
28
|
'fabric.elements.share.to.integration.button': string;
|
|
30
29
|
'fabric.elements.share.trigger.button.icon.label': string;
|
package/dist/types/i18n/ru.d.ts
CHANGED
|
@@ -24,7 +24,6 @@ declare const _default: {
|
|
|
24
24
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': string;
|
|
25
25
|
'fabric.elements.share.form.user-picker.validation.required.jira': string;
|
|
26
26
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': string;
|
|
27
|
-
'fabric.elements.share.in.integration.button': string;
|
|
28
27
|
'fabric.elements.share.success.message': string;
|
|
29
28
|
'fabric.elements.share.to.integration.button': string;
|
|
30
29
|
'fabric.elements.share.trigger.button.icon.label': string;
|
package/dist/types/i18n/tr.d.ts
CHANGED
|
@@ -24,7 +24,6 @@ declare const _default: {
|
|
|
24
24
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': string;
|
|
25
25
|
'fabric.elements.share.form.user-picker.validation.required.jira': string;
|
|
26
26
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': string;
|
|
27
|
-
'fabric.elements.share.in.integration.button': string;
|
|
28
27
|
'fabric.elements.share.success.message': string;
|
|
29
28
|
'fabric.elements.share.to.integration.button': string;
|
|
30
29
|
'fabric.elements.share.trigger.button.icon.label': string;
|
package/dist/types/i18n/vi.d.ts
CHANGED
|
@@ -24,7 +24,6 @@ declare const _default: {
|
|
|
24
24
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': string;
|
|
25
25
|
'fabric.elements.share.form.user-picker.validation.required.jira': string;
|
|
26
26
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': string;
|
|
27
|
-
'fabric.elements.share.in.integration.button': string;
|
|
28
27
|
'fabric.elements.share.success.message': string;
|
|
29
28
|
'fabric.elements.share.to.integration.button': string;
|
|
30
29
|
'fabric.elements.share.trigger.button.icon.label': string;
|
|
@@ -24,7 +24,6 @@ declare const _default: {
|
|
|
24
24
|
'fabric.elements.share.form.user-picker.validation.required.existingUserOnly': string;
|
|
25
25
|
'fabric.elements.share.form.user-picker.validation.required.jira': string;
|
|
26
26
|
'fabric.elements.share.form.user-picker.validation.required.jira.existingUserOnly': string;
|
|
27
|
-
'fabric.elements.share.in.integration.button': string;
|
|
28
27
|
'fabric.elements.share.success.message': string;
|
|
29
28
|
'fabric.elements.share.to.integration.button': string;
|
|
30
29
|
'fabric.elements.share.trigger.button.icon.label': string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/share",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.10",
|
|
4
4
|
"description": "Fabric Share Element",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -33,24 +33,24 @@
|
|
|
33
33
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
34
34
|
"@atlaskit/button": "^16.0.0",
|
|
35
35
|
"@atlaskit/dropdown-menu": "^11.0.0",
|
|
36
|
-
"@atlaskit/field-text-area": "^8.0.0",
|
|
37
36
|
"@atlaskit/form": "^8.4.0",
|
|
38
37
|
"@atlaskit/icon": "^21.10.0",
|
|
39
38
|
"@atlaskit/popup": "^1.3.0",
|
|
40
39
|
"@atlaskit/portal": "^4.0.0",
|
|
41
40
|
"@atlaskit/spinner": "^15.1.4",
|
|
42
41
|
"@atlaskit/tabs": "^13.2.3",
|
|
42
|
+
"@atlaskit/textarea": "^4.2.2",
|
|
43
43
|
"@atlaskit/theme": "^12.1.0",
|
|
44
44
|
"@atlaskit/tooltip": "^17.5.0",
|
|
45
45
|
"@atlaskit/user-picker": "^8.3.0",
|
|
46
|
-
"@atlaskit/util-service-support": "^6.
|
|
46
|
+
"@atlaskit/util-service-support": "^6.1.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"fast-deep-equal": "^3.1.1",
|
|
49
49
|
"memoize-one": "^6.0.0",
|
|
50
50
|
"react-device-detect": "^1.15.0",
|
|
51
51
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
52
52
|
"react-loosely-lazy": "^0.5.0",
|
|
53
|
-
"tiny-invariant": "^
|
|
53
|
+
"tiny-invariant": "^1.2.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"react": "^16.8.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@atlaskit/section-message": "^6.0.0",
|
|
64
64
|
"@atlaskit/select": "^15.0.0",
|
|
65
65
|
"@atlaskit/toggle": "^12.4.0",
|
|
66
|
-
"@atlaskit/util-data-test": "^17.
|
|
66
|
+
"@atlaskit/util-data-test": "^17.2.0",
|
|
67
67
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
68
68
|
"enzyme": "^3.10.0",
|
|
69
69
|
"enzyme-adapter-react-16": "^1.15.1",
|