@atlaskit/share 3.0.0 → 3.0.4
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 +24 -0
- package/dist/cjs/components/CommentField.js +5 -4
- package/dist/cjs/components/CopyLinkButton.js +11 -10
- package/dist/cjs/components/ErrorBoundary.js +2 -0
- package/dist/cjs/components/IntegrationForm.js +7 -2
- package/dist/cjs/components/LazyShareForm/LazyShareForm.js +6 -4
- package/dist/cjs/components/LazyShareForm/lazy.js +2 -2
- package/dist/cjs/components/ShareButton.js +2 -2
- package/dist/cjs/components/ShareDialogContainer.js +8 -7
- package/dist/cjs/components/ShareDialogWithTrigger.js +12 -10
- package/dist/cjs/components/ShareForm.js +29 -10
- package/dist/cjs/components/ShareFormWrapper/ShareFormWrapper.js +2 -2
- package/dist/cjs/components/UserPickerField.js +8 -7
- package/dist/cjs/components/colorSlackIcon.js +67 -0
- package/dist/cjs/components/utils.js +2 -5
- package/dist/cjs/i18n/cs.js +1 -0
- package/dist/cjs/i18n/de.js +1 -0
- package/dist/cjs/i18n/fr.js +1 -0
- package/dist/cjs/i18n/pl.js +1 -0
- package/dist/cjs/i18n/pt_BR.js +1 -0
- package/dist/cjs/i18n/ru.js +1 -0
- package/dist/cjs/i18n/tr.js +1 -0
- package/dist/cjs/i18n/vi.js +1 -0
- package/dist/cjs/i18n/zh_TW.js +1 -0
- package/dist/cjs/types/ShareEntities.js +10 -1
- package/dist/cjs/types/index.js +9 -1
- package/dist/cjs/util/i18n-util.js +3 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/CommentField.js +3 -2
- package/dist/es2019/components/CopyLinkButton.js +6 -5
- package/dist/es2019/components/ErrorBoundary.js +2 -0
- package/dist/es2019/components/IntegrationForm.js +4 -2
- package/dist/es2019/components/LazyShareForm/LazyShareForm.js +5 -3
- package/dist/es2019/components/LazyShareForm/lazy.js +2 -2
- package/dist/es2019/components/MessagesIntlProvider.js +1 -1
- package/dist/es2019/components/ShareButton.js +1 -1
- package/dist/es2019/components/ShareDialogContainer.js +5 -4
- package/dist/es2019/components/ShareDialogWithTrigger.js +11 -7
- package/dist/es2019/components/ShareForm.js +24 -6
- package/dist/es2019/components/ShareFormWrapper/ShareFormWrapper.js +1 -1
- package/dist/es2019/components/UserPickerField.js +5 -4
- package/dist/es2019/components/colorSlackIcon.js +57 -0
- package/dist/es2019/components/utils.js +1 -3
- package/dist/es2019/i18n/cs.js +1 -0
- package/dist/es2019/i18n/de.js +1 -0
- package/dist/es2019/i18n/fr.js +1 -0
- package/dist/es2019/i18n/pl.js +1 -0
- package/dist/es2019/i18n/pt_BR.js +1 -0
- package/dist/es2019/i18n/ru.js +1 -0
- package/dist/es2019/i18n/tr.js +1 -0
- package/dist/es2019/i18n/vi.js +1 -0
- package/dist/es2019/i18n/zh_TW.js +1 -0
- package/dist/es2019/types/ShareEntities.js +7 -1
- package/dist/es2019/types/index.js +2 -1
- package/dist/es2019/util/i18n-util.js +3 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/CommentField.js +3 -2
- package/dist/esm/components/CopyLinkButton.js +6 -5
- package/dist/esm/components/ErrorBoundary.js +2 -0
- package/dist/esm/components/IntegrationForm.js +7 -2
- package/dist/esm/components/LazyShareForm/LazyShareForm.js +5 -3
- package/dist/esm/components/LazyShareForm/lazy.js +2 -2
- package/dist/esm/components/MessagesIntlProvider.js +1 -1
- package/dist/esm/components/ShareButton.js +1 -1
- package/dist/esm/components/ShareDialogContainer.js +5 -4
- package/dist/esm/components/ShareDialogWithTrigger.js +11 -7
- package/dist/esm/components/ShareForm.js +26 -6
- package/dist/esm/components/ShareFormWrapper/ShareFormWrapper.js +1 -1
- package/dist/esm/components/UserPickerField.js +5 -4
- package/dist/esm/components/colorSlackIcon.js +57 -0
- package/dist/esm/components/utils.js +1 -3
- package/dist/esm/i18n/cs.js +1 -0
- package/dist/esm/i18n/de.js +1 -0
- package/dist/esm/i18n/fr.js +1 -0
- package/dist/esm/i18n/pl.js +1 -0
- package/dist/esm/i18n/pt_BR.js +1 -0
- package/dist/esm/i18n/ru.js +1 -0
- package/dist/esm/i18n/tr.js +1 -0
- package/dist/esm/i18n/vi.js +1 -0
- package/dist/esm/i18n/zh_TW.js +1 -0
- package/dist/esm/types/ShareEntities.js +7 -1
- package/dist/esm/types/index.js +2 -1
- package/dist/esm/util/i18n-util.js +3 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/components/CopyLinkButton.d.ts +1 -1
- package/dist/types/components/IntegrationForm.d.ts +2 -1
- package/dist/types/components/LazyShareForm/LazyShareForm.d.ts +1 -1
- package/dist/types/components/ShareButton.d.ts +1 -1
- package/dist/types/components/ShareDialogContainer.d.ts +2 -3
- package/dist/types/components/ShareDialogWithTrigger.d.ts +2 -2
- package/dist/types/components/ShareForm.d.ts +4 -1
- package/dist/types/components/UserPickerField.d.ts +1 -1
- package/dist/types/components/colorSlackIcon.d.ts +3 -0
- package/dist/types/i18n/cs.d.ts +1 -0
- package/dist/types/i18n/de.d.ts +1 -0
- package/dist/types/i18n/fr.d.ts +1 -0
- package/dist/types/i18n/pl.d.ts +1 -0
- package/dist/types/i18n/pt_BR.d.ts +1 -0
- package/dist/types/i18n/ru.d.ts +1 -0
- package/dist/types/i18n/tr.d.ts +1 -0
- package/dist/types/i18n/vi.d.ts +1 -0
- package/dist/types/i18n/zh_TW.d.ts +1 -0
- package/dist/types/types/ShareDialogContainer.d.ts +4 -4
- package/dist/types/types/ShareEntities.d.ts +5 -0
- package/dist/types/types/ShareForm.d.ts +2 -2
- package/dist/types/types/index.d.ts +1 -0
- package/docs/0-intro.tsx +4 -4
- package/package.json +29 -8
package/dist/cjs/i18n/vi.js
CHANGED
|
@@ -38,6 +38,7 @@ 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}',
|
|
41
42
|
'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}}',
|
|
42
43
|
'fabric.elements.share.to.integration.button': 'Chia sẻ với {integrationName}',
|
|
43
44
|
'fabric.elements.share.trigger.button.icon.label': 'Biểu tượng chia sẻ',
|
package/dist/cjs/i18n/zh_TW.js
CHANGED
|
@@ -38,6 +38,7 @@ 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} 中分享',
|
|
41
42
|
'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 {已分享連結}}',
|
|
42
43
|
'fabric.elements.share.to.integration.button': '與 {integrationName} 分享',
|
|
43
44
|
'fabric.elements.share.trigger.button.icon.label': '分享圖示',
|
|
@@ -2,4 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
|
-
});
|
|
5
|
+
});
|
|
6
|
+
exports.TabType = void 0;
|
|
7
|
+
// Third party integrations
|
|
8
|
+
var TabType;
|
|
9
|
+
exports.TabType = TabType;
|
|
10
|
+
|
|
11
|
+
(function (TabType) {
|
|
12
|
+
TabType[TabType["default"] = 0] = "default";
|
|
13
|
+
TabType[TabType["Slack"] = 1] = "Slack";
|
|
14
|
+
})(TabType || (exports.TabType = TabType = {}));
|
package/dist/cjs/types/index.js
CHANGED
|
@@ -15,5 +15,13 @@ Object.defineProperty(exports, "OBJECT_SHARED", {
|
|
|
15
15
|
return _Flag.OBJECT_SHARED;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
+
Object.defineProperty(exports, "TabType", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _ShareEntities.TabType;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
var _Flag = require("./Flag");
|
|
18
26
|
|
|
19
|
-
var
|
|
27
|
+
var _ShareEntities = require("./ShareEntities");
|
|
@@ -7,6 +7,9 @@ exports.getMessagesForLocale = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _index = require("../i18n/index");
|
|
9
9
|
|
|
10
|
+
// Cannot import from `../i18n` because there is `../i18n.tsx` file there.
|
|
11
|
+
|
|
12
|
+
/* eslint-disable @atlassian/tangerine/import/no-dangling-index */
|
|
10
13
|
var localesMessagesMap = {
|
|
11
14
|
cs: _index.cs,
|
|
12
15
|
da: _index.da,
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useIntl } from 'react-intl-next'; // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
4
|
+
|
|
2
5
|
import FieldTextArea from '@atlaskit/field-text-area';
|
|
3
6
|
import { Field } from '@atlaskit/form';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { useIntl } from 'react-intl-next';
|
|
6
7
|
import { messages } from '../i18n';
|
|
7
8
|
export const CommentField = ({
|
|
8
9
|
defaultValue
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { isSafari } from 'react-device-detect';
|
|
5
|
+
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
6
|
+
import styled from 'styled-components';
|
|
3
7
|
import CheckCircleIcon from '@atlaskit/icon/glyph/check-circle';
|
|
4
8
|
import LinkFilledIcon from '@atlaskit/icon/glyph/link-filled';
|
|
5
9
|
import Popup from '@atlaskit/popup';
|
|
6
10
|
import { G300 } from '@atlaskit/theme/colors';
|
|
7
11
|
import { layers } from '@atlaskit/theme/constants';
|
|
8
12
|
import Tooltip from '@atlaskit/tooltip';
|
|
9
|
-
import React from 'react';
|
|
10
|
-
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
11
|
-
import { isSafari } from 'react-device-detect';
|
|
12
|
-
import styled from 'styled-components';
|
|
13
|
-
import Button from './styles';
|
|
14
13
|
import { messages } from '../i18n';
|
|
15
14
|
import { InlineDialogContentWrapper } from './ShareFormWrapper/styled';
|
|
15
|
+
import Button from './styles';
|
|
16
16
|
const Z_INDEX = layers.modal();
|
|
17
17
|
const AUTO_DISMISS_SECONDS = 8;
|
|
18
18
|
export const AUTO_DISMISS_MS = AUTO_DISMISS_SECONDS * 1000;
|
|
@@ -36,6 +36,7 @@ export const HiddenInput = /*#__PURE__*/React.forwardRef( // we need a hidden in
|
|
|
36
36
|
value: props.text,
|
|
37
37
|
readOnly: true
|
|
38
38
|
}));
|
|
39
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
39
40
|
export class CopyLinkButton extends React.Component {
|
|
40
41
|
constructor(...args) {
|
|
41
42
|
super(...args);
|
|
@@ -3,6 +3,8 @@ import React from 'react';
|
|
|
3
3
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
4
4
|
import { CHANNEL_ID, errorEncountered } from './analytics';
|
|
5
5
|
|
|
6
|
+
// ErrorBoundary does not support in functional component
|
|
7
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
6
8
|
class ErrorBoundary extends React.Component {
|
|
7
9
|
constructor(...args) {
|
|
8
10
|
super(...args);
|
|
@@ -31,7 +31,9 @@ export const FormWrapper = styled.div`
|
|
|
31
31
|
`;
|
|
32
32
|
export const IntegrationForm = ({
|
|
33
33
|
Content,
|
|
34
|
-
onIntegrationClose = () => undefined
|
|
34
|
+
onIntegrationClose = () => undefined,
|
|
35
|
+
changeTab = () => undefined
|
|
35
36
|
}) => /*#__PURE__*/React.createElement(FormWrapper, null, Content && /*#__PURE__*/React.createElement(Content, {
|
|
36
|
-
onClose: onIntegrationClose
|
|
37
|
+
onClose: onIntegrationClose,
|
|
38
|
+
changeTab: changeTab
|
|
37
39
|
}));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
3
|
-
import { ShareForm } from '../ShareForm';
|
|
4
3
|
import { ANALYTICS_SOURCE } from '../analytics';
|
|
5
4
|
import { IntegrationForm } from '../IntegrationForm';
|
|
6
|
-
import {
|
|
5
|
+
import { ShareForm } from '../ShareForm';
|
|
7
6
|
import { ShareFormWrapper } from '../ShareFormWrapper';
|
|
7
|
+
import { BottomMessageWrapper, CustomFooterWrapper } from './styled';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* A Share form content which is lazy-loaded.
|
|
@@ -36,6 +36,7 @@ function LazyShareForm(props) {
|
|
|
36
36
|
onDismiss,
|
|
37
37
|
onSubmit,
|
|
38
38
|
onDialogClose,
|
|
39
|
+
onTabChange,
|
|
39
40
|
// ref
|
|
40
41
|
selectPortalRef,
|
|
41
42
|
// props from states of parent:
|
|
@@ -85,7 +86,8 @@ function LazyShareForm(props) {
|
|
|
85
86
|
onDismiss: onDismiss,
|
|
86
87
|
onLinkCopy: onLinkCopy,
|
|
87
88
|
onUserSelectionChange: onUserSelectionChange,
|
|
88
|
-
handleCloseDialog: onDialogClose
|
|
89
|
+
handleCloseDialog: onDialogClose,
|
|
90
|
+
onTabChange: onTabChange
|
|
89
91
|
})));
|
|
90
92
|
}
|
|
91
93
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { lazyForPaint, LazySuspense } from 'react-loosely-lazy';
|
|
3
3
|
import Spinner from '@atlaskit/spinner';
|
|
4
|
-
import { SpinnerWrapper } from './styled';
|
|
5
4
|
import { ShareFormWrapper } from '../ShareFormWrapper';
|
|
5
|
+
import { SpinnerWrapper } from './styled';
|
|
6
6
|
const LazyShareFormLazy = lazyForPaint(() => import(
|
|
7
7
|
/* webpackChunkName: "@atlaskit-internal_share-form" */
|
|
8
8
|
'./LazyShareForm'), {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import Button from '@atlaskit/button/custom-theme-button';
|
|
3
2
|
import React from 'react';
|
|
3
|
+
import Button from '@atlaskit/button/custom-theme-button';
|
|
4
4
|
export const ShareButton = /*#__PURE__*/React.forwardRef(function ShareButton({
|
|
5
5
|
text,
|
|
6
6
|
...props
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
3
|
-
import memoizeOne from 'memoize-one';
|
|
4
2
|
import React from 'react';
|
|
3
|
+
import deepEqual from 'fast-deep-equal';
|
|
4
|
+
import memoizeOne from 'memoize-one';
|
|
5
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import assert from 'tiny-invariant';
|
|
7
|
+
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
7
8
|
import { AtlassianUrlShortenerClient } from '../clients/AtlassianUrlShortenerClient';
|
|
8
9
|
import { ShareServiceClient } from '../clients/ShareServiceClient';
|
|
9
10
|
import { messages } from '../i18n';
|
|
10
11
|
import { CHANNEL_ID, copyLinkButtonClicked, errorEncountered, shortUrlGenerated, shortUrlRequested } from './analytics';
|
|
12
|
+
import ErrorBoundary from './ErrorBoundary';
|
|
11
13
|
import MessagesIntlProvider from './MessagesIntlProvider';
|
|
12
14
|
import { ShareDialogWithTrigger } from './ShareDialogWithTrigger';
|
|
13
15
|
import { optionDataToUsers } from './utils';
|
|
14
|
-
import ErrorBoundary from './ErrorBoundary';
|
|
15
|
-
import deepEqual from 'fast-deep-equal';
|
|
16
16
|
const COPY_LINK_EVENT = copyLinkButtonClicked(0);
|
|
17
17
|
export const defaultConfig = {
|
|
18
18
|
disableSharingToEmails: false
|
|
@@ -26,6 +26,7 @@ function getCurrentPageUrl() {
|
|
|
26
26
|
* This component serves as a Provider to provide customizable implementations
|
|
27
27
|
* to ShareDialogTrigger component
|
|
28
28
|
*/
|
|
29
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
29
30
|
|
|
30
31
|
|
|
31
32
|
export class ShareDialogContainerInternal extends React.Component {
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import React from 'react';
|
|
4
|
+
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
5
|
+
import styled from 'styled-components';
|
|
4
6
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
5
|
-
import SplitButton from './SplitButton';
|
|
6
7
|
import ShareIcon from '@atlaskit/icon/glyph/share';
|
|
7
8
|
import Popup from '@atlaskit/popup';
|
|
8
9
|
import Portal from '@atlaskit/portal';
|
|
9
|
-
import Aktooltip from '@atlaskit/tooltip';
|
|
10
10
|
import { layers } from '@atlaskit/theme/constants';
|
|
11
|
-
import
|
|
12
|
-
import styled from 'styled-components';
|
|
11
|
+
import Aktooltip from '@atlaskit/tooltip';
|
|
13
12
|
import { messages } from '../i18n';
|
|
14
13
|
import { OBJECT_SHARED } from '../types';
|
|
15
|
-
import { cancelShare, CHANNEL_ID, copyLinkButtonClicked,
|
|
14
|
+
import { cancelShare, CHANNEL_ID, copyLinkButtonClicked, formShareSubmitted, screenEvent, shareSplitButtonEvent, shareTabClicked, shareTriggerButtonClicked // type TabSubjectIdType,
|
|
15
|
+
} from './analytics'; // eslint-disable-next-line no-duplicate-imports
|
|
16
|
+
|
|
17
|
+
import LazyShareFormLazy from './LazyShareForm/lazy';
|
|
16
18
|
import ShareButton from './ShareButton';
|
|
19
|
+
import SplitButton from './SplitButton';
|
|
17
20
|
import { generateSelectZIndex } from './utils';
|
|
18
|
-
import LazyShareFormLazy from './LazyShareForm/lazy';
|
|
19
21
|
const ShareButtonWrapper = styled.div`
|
|
20
22
|
display: inline-flex;
|
|
21
23
|
outline: none;
|
|
@@ -27,6 +29,7 @@ export const defaultShareContentState = {
|
|
|
27
29
|
value: ''
|
|
28
30
|
}
|
|
29
31
|
};
|
|
32
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
30
33
|
export class ShareDialogWithTriggerInternal extends React.PureComponent {
|
|
31
34
|
constructor(...args) {
|
|
32
35
|
super(...args);
|
|
@@ -308,9 +311,10 @@ export class ShareDialogWithTriggerInternal extends React.PureComponent {
|
|
|
308
311
|
button = /*#__PURE__*/React.createElement(ShareButton, _extends({
|
|
309
312
|
appearance: triggerButtonAppearance,
|
|
310
313
|
text: triggerButtonStyle !== 'icon-only' ? /*#__PURE__*/React.createElement(FormattedMessage, messages.shareTriggerButtonText) : null,
|
|
314
|
+
"aria-label": formatMessage(messages.shareTriggerButtonText),
|
|
311
315
|
onClick: this.onTriggerClick,
|
|
312
316
|
iconBefore: triggerButtonStyle !== 'text-only' ? /*#__PURE__*/React.createElement(ShareButtonIcon, {
|
|
313
|
-
label:
|
|
317
|
+
label: ""
|
|
314
318
|
}) : undefined,
|
|
315
319
|
isSelected: isDialogOpen,
|
|
316
320
|
isDisabled: isDisabled
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import React from 'react';
|
|
4
|
+
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
5
|
+
import styled from 'styled-components';
|
|
4
6
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
5
7
|
import Form from '@atlaskit/form';
|
|
6
8
|
import ErrorIcon from '@atlaskit/icon/glyph/error';
|
|
9
|
+
import Tabs, { Tab, TabList, TabPanel } from '@atlaskit/tabs';
|
|
7
10
|
import { R400 } from '@atlaskit/theme/colors';
|
|
8
11
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
9
12
|
import Tooltip from '@atlaskit/tooltip';
|
|
10
|
-
import Tabs, { Tab, TabList, TabPanel } from '@atlaskit/tabs';
|
|
11
|
-
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
12
|
-
import styled from 'styled-components';
|
|
13
13
|
import { messages } from '../i18n';
|
|
14
|
+
import { TabType } from '../types';
|
|
14
15
|
import { CommentField } from './CommentField';
|
|
15
16
|
import CopyLinkButton from './CopyLinkButton';
|
|
17
|
+
import { IntegrationForm } from './IntegrationForm';
|
|
16
18
|
import { ShareHeader } from './ShareHeader';
|
|
17
19
|
import { UserPickerField } from './UserPickerField';
|
|
18
|
-
import { IntegrationForm } from './IntegrationForm';
|
|
19
20
|
const SubmitButtonWrapper = styled.div`
|
|
20
21
|
display: flex;
|
|
21
22
|
margin-left: auto;
|
|
@@ -51,6 +52,7 @@ const IntegrationWrapper = styled.div`
|
|
|
51
52
|
align-items: center;
|
|
52
53
|
`;
|
|
53
54
|
const IntegrationIconWrapper = styled.span`
|
|
55
|
+
margin-bottom: -2px;
|
|
54
56
|
margin-right: 5px;
|
|
55
57
|
`;
|
|
56
58
|
|
|
@@ -60,10 +62,15 @@ const integrationTabText = integrationName => /*#__PURE__*/React.createElement(F
|
|
|
60
62
|
}
|
|
61
63
|
}));
|
|
62
64
|
|
|
65
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
63
66
|
class InternalForm extends React.PureComponent {
|
|
64
67
|
constructor(...args) {
|
|
65
68
|
super(...args);
|
|
66
69
|
|
|
70
|
+
_defineProperty(this, "state", {
|
|
71
|
+
selectedTab: TabType.default
|
|
72
|
+
});
|
|
73
|
+
|
|
67
74
|
_defineProperty(this, "renderShareForm", () => {
|
|
68
75
|
const {
|
|
69
76
|
formProps,
|
|
@@ -164,6 +171,12 @@ class InternalForm extends React.PureComponent {
|
|
|
164
171
|
};
|
|
165
172
|
return /*#__PURE__*/React.createElement(FormattedMessage, productShareType);
|
|
166
173
|
});
|
|
174
|
+
|
|
175
|
+
_defineProperty(this, "changeTab", tab => {
|
|
176
|
+
this.setState({
|
|
177
|
+
selectedTab: tab
|
|
178
|
+
});
|
|
179
|
+
});
|
|
167
180
|
}
|
|
168
181
|
|
|
169
182
|
componentWillUnmount() {
|
|
@@ -195,8 +208,10 @@ class InternalForm extends React.PureComponent {
|
|
|
195
208
|
return /*#__PURE__*/React.createElement(Tabs, {
|
|
196
209
|
id: "ShareForm-Tabs-Integrations",
|
|
197
210
|
onChange: index => {
|
|
211
|
+
this.changeTab(index);
|
|
198
212
|
onTabChange === null || onTabChange === void 0 ? void 0 : onTabChange(index);
|
|
199
|
-
}
|
|
213
|
+
},
|
|
214
|
+
selected: this.state.selectedTab
|
|
200
215
|
}, /*#__PURE__*/React.createElement(TabList, null, /*#__PURE__*/React.createElement(Tab, {
|
|
201
216
|
key: `share-tab-default`
|
|
202
217
|
}, this.renderMainTabTitle()), /*#__PURE__*/React.createElement(Tab, {
|
|
@@ -211,7 +226,10 @@ class InternalForm extends React.PureComponent {
|
|
|
211
226
|
isMainShare: false
|
|
212
227
|
}, /*#__PURE__*/React.createElement(IntegrationForm, {
|
|
213
228
|
Content: firstIntegration.Content,
|
|
214
|
-
onIntegrationClose: () => handleCloseDialog === null || handleCloseDialog === void 0 ? void 0 : handleCloseDialog()
|
|
229
|
+
onIntegrationClose: () => handleCloseDialog === null || handleCloseDialog === void 0 ? void 0 : handleCloseDialog(),
|
|
230
|
+
changeTab: index => {
|
|
231
|
+
this.changeTab(index);
|
|
232
|
+
}
|
|
215
233
|
}))));
|
|
216
234
|
}
|
|
217
235
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { InlineDialogFormWrapper, InlineDialogContentWrapper } from './styled';
|
|
3
2
|
import { ShareHeader } from '../ShareHeader';
|
|
3
|
+
import { InlineDialogContentWrapper, InlineDialogFormWrapper } from './styled';
|
|
4
4
|
|
|
5
5
|
const ShareFormWrapper = ({
|
|
6
6
|
shareFormTitle,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
3
5
|
import { ErrorMessage, Field, HelperMessage } from '@atlaskit/form';
|
|
4
6
|
import UserPicker, { isValidEmail, SmartUserPicker } from '@atlaskit/user-picker';
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import { injectIntl, FormattedMessage } from 'react-intl-next';
|
|
7
7
|
import { messages } from '../i18n';
|
|
8
|
-
import { allowEmails, getMenuPortalTargetCurrentHTML } from './utils';
|
|
9
8
|
import { MAX_PICKER_HEIGHT } from './styles';
|
|
9
|
+
import { allowEmails, getMenuPortalTargetCurrentHTML } from './utils';
|
|
10
10
|
export const REQUIRED = 'REQUIRED';
|
|
11
11
|
const DEBOUNCE_MS = 150;
|
|
12
12
|
|
|
@@ -58,7 +58,8 @@ const requiredMessagesWithoutEmail = {
|
|
|
58
58
|
const getRequiredMessage = (product, allowEmail) => {
|
|
59
59
|
const messages = allowEmail ? requiredMessagesWithEmail : requiredMessagesWithoutEmail;
|
|
60
60
|
return messages[product];
|
|
61
|
-
};
|
|
61
|
+
}; // eslint-disable-next-line @repo/internal/react/no-class-components
|
|
62
|
+
|
|
62
63
|
|
|
63
64
|
export class UserPickerFieldComponent extends React.Component {
|
|
64
65
|
constructor(...args) {
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
const SlackIcon = () => {
|
|
4
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
5
|
+
width: "16",
|
|
6
|
+
height: "16",
|
|
7
|
+
viewBox: "0 0 125 125"
|
|
8
|
+
}, /*#__PURE__*/React.createElement("style", null, '.prefix__st0{fill:#e01e5a}.prefix__st1{fill:#36c5f0}.prefix__st2{fill:#2eb67d}.prefix__st3{fill:#ecb22e}'), /*#__PURE__*/React.createElement("path", {
|
|
9
|
+
fill: "none",
|
|
10
|
+
id: "prefix__canvas_background",
|
|
11
|
+
d: "M-1-1h127v127H-1z"
|
|
12
|
+
}), /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("g", {
|
|
13
|
+
id: "prefix__svg_1"
|
|
14
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
15
|
+
id: "prefix__svg_2"
|
|
16
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
17
|
+
id: "prefix__svg_3",
|
|
18
|
+
d: "M27.4 79.2c0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9 0-7.1 5.8-12.9 12.9-12.9h12.9v12.9z",
|
|
19
|
+
className: "prefix__st0"
|
|
20
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
21
|
+
id: "prefix__svg_4",
|
|
22
|
+
d: "M33.9 79.2c0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9v32.3c0 7.1-5.8 12.9-12.9 12.9s-12.9-5.8-12.9-12.9V79.2z",
|
|
23
|
+
className: "prefix__st0"
|
|
24
|
+
})), /*#__PURE__*/React.createElement("g", {
|
|
25
|
+
id: "prefix__svg_5"
|
|
26
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
27
|
+
id: "prefix__svg_6",
|
|
28
|
+
d: "M46.8 27.4c-7.1 0-12.9-5.8-12.9-12.9 0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9v12.9H46.8z",
|
|
29
|
+
className: "prefix__st1"
|
|
30
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
31
|
+
id: "prefix__svg_7",
|
|
32
|
+
d: "M46.8 33.9c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H14.5c-7.1 0-12.9-5.8-12.9-12.9s5.8-12.9 12.9-12.9h32.3z",
|
|
33
|
+
className: "prefix__st1"
|
|
34
|
+
})), /*#__PURE__*/React.createElement("g", {
|
|
35
|
+
id: "prefix__svg_8"
|
|
36
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
37
|
+
id: "prefix__svg_9",
|
|
38
|
+
d: "M98.6 46.8c0-7.1 5.8-12.9 12.9-12.9 7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H98.6V46.8z",
|
|
39
|
+
className: "prefix__st2"
|
|
40
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
41
|
+
id: "prefix__svg_10",
|
|
42
|
+
d: "M92.1 46.8c0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9V14.5c0-7.1 5.8-12.9 12.9-12.9 7.1 0 12.9 5.8 12.9 12.9v32.3z",
|
|
43
|
+
className: "prefix__st2"
|
|
44
|
+
})), /*#__PURE__*/React.createElement("g", {
|
|
45
|
+
id: "prefix__svg_11"
|
|
46
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
47
|
+
id: "prefix__svg_12",
|
|
48
|
+
d: "M79.2 98.6c7.1 0 12.9 5.8 12.9 12.9 0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9V98.6h12.9z",
|
|
49
|
+
className: "prefix__st3"
|
|
50
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
51
|
+
id: "prefix__svg_13",
|
|
52
|
+
d: "M79.2 92.1c-7.1 0-12.9-5.8-12.9-12.9 0-7.1 5.8-12.9 12.9-12.9h32.3c7.1 0 12.9 5.8 12.9 12.9 0 7.1-5.8 12.9-12.9 12.9H79.2z",
|
|
53
|
+
className: "prefix__st3"
|
|
54
|
+
})))));
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export default SlackIcon;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
3
|
-
import { layers } from '@atlaskit/theme';
|
|
1
|
+
import { layers } from '@atlaskit/theme/constants';
|
|
4
2
|
|
|
5
3
|
/**
|
|
6
4
|
* We need to generate correct zIndex, for the PopUp and for the Select inside it.
|
package/dist/es2019/i18n/cs.js
CHANGED
|
@@ -31,6 +31,7 @@ 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}',
|
|
34
35
|
'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}}',
|
|
35
36
|
'fabric.elements.share.to.integration.button': 'Sdílet ve službě {integrationName}',
|
|
36
37
|
'fabric.elements.share.trigger.button.icon.label': 'Ikona sdílení',
|
package/dist/es2019/i18n/de.js
CHANGED
|
@@ -31,6 +31,7 @@ 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',
|
|
34
35
|
'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}}',
|
|
35
36
|
'fabric.elements.share.to.integration.button': 'Mit {integrationName} teilen',
|
|
36
37
|
'fabric.elements.share.trigger.button.icon.label': 'Teilen-Symbol',
|
package/dist/es2019/i18n/fr.js
CHANGED
|
@@ -31,6 +31,7 @@ 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}',
|
|
34
35
|
'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é}}',
|
|
35
36
|
'fabric.elements.share.to.integration.button': 'Partager avec {integrationName}',
|
|
36
37
|
'fabric.elements.share.trigger.button.icon.label': 'Icône de partage',
|
package/dist/es2019/i18n/pl.js
CHANGED
|
@@ -31,6 +31,7 @@ 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}',
|
|
34
35
|
'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}}',
|
|
35
36
|
'fabric.elements.share.to.integration.button': 'Udostępnij w {integrationName}',
|
|
36
37
|
'fabric.elements.share.trigger.button.icon.label': 'Ikona udostępniania',
|
|
@@ -31,6 +31,7 @@ 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}',
|
|
34
35
|
'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}}',
|
|
35
36
|
'fabric.elements.share.to.integration.button': 'Compartilhar em {integrationName}',
|
|
36
37
|
'fabric.elements.share.trigger.button.icon.label': 'Ícone de compartilhamento',
|
package/dist/es2019/i18n/ru.js
CHANGED
|
@@ -31,6 +31,7 @@ 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}',
|
|
34
35
|
'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 {Вы поделились ссылкой}}',
|
|
35
36
|
'fabric.elements.share.to.integration.button': 'Поделиться в {integrationName}',
|
|
36
37
|
'fabric.elements.share.trigger.button.icon.label': 'Значок «Поделиться»',
|
package/dist/es2019/i18n/tr.js
CHANGED
|
@@ -31,6 +31,7 @@ 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ş',
|
|
34
35
|
'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ı}}',
|
|
35
36
|
'fabric.elements.share.to.integration.button': '{integrationName} üzerinden paylaş',
|
|
36
37
|
'fabric.elements.share.trigger.button.icon.label': 'Paylaşma simgesi',
|
package/dist/es2019/i18n/vi.js
CHANGED
|
@@ -31,6 +31,7 @@ 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}',
|
|
34
35
|
'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}}',
|
|
35
36
|
'fabric.elements.share.to.integration.button': 'Chia sẻ với {integrationName}',
|
|
36
37
|
'fabric.elements.share.trigger.button.icon.label': 'Biểu tượng chia sẻ',
|
|
@@ -31,6 +31,7 @@ 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} 中分享',
|
|
34
35
|
'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 {已分享連結}}',
|
|
35
36
|
'fabric.elements.share.to.integration.button': '與 {integrationName} 分享',
|
|
36
37
|
'fabric.elements.share.trigger.button.icon.label': '分享圖示',
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export { ADMIN_NOTIFIED, OBJECT_SHARED } from './Flag';
|
|
1
|
+
export { ADMIN_NOTIFIED, OBJECT_SHARED } from './Flag';
|
|
2
|
+
export { TabType } from './ShareEntities';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// Cannot import from `../i18n` because there is `../i18n.tsx` file there.
|
|
2
|
+
|
|
3
|
+
/* eslint-disable @atlassian/tangerine/import/no-dangling-index */
|
|
1
4
|
import { cs, da, de, en, en_GB, es, et, fi, fr, hu, is, it, ja, ko, nb, nl, pl, pt_BR, pt_PT, ro, ru, sk, sv, zh } from '../i18n/index';
|
|
2
5
|
const localesMessagesMap = {
|
|
3
6
|
cs,
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useIntl } from 'react-intl-next'; // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
4
|
+
|
|
2
5
|
import FieldTextArea from '@atlaskit/field-text-area';
|
|
3
6
|
import { Field } from '@atlaskit/form';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { useIntl } from 'react-intl-next';
|
|
6
7
|
import { messages } from '../i18n';
|
|
7
8
|
export var CommentField = function CommentField(_ref) {
|
|
8
9
|
var defaultValue = _ref.defaultValue;
|