@atlaskit/share 7.0.0 → 7.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/afm-cc/tsconfig.json +0 -1
- package/dist/cjs/components/CommentField.js +3 -3
- package/dist/cjs/components/LazyShareForm/LazyShareForm.js +2 -2
- package/dist/cjs/components/LazyShareForm/LazyShareFormNext.js +2 -2
- package/dist/cjs/components/ShareDialogContainer.js +4 -10
- package/dist/cjs/components/ShareDialogWithTrigger.js +7 -7
- package/dist/cjs/components/ShareDialogWithTriggerNext.js +7 -7
- package/dist/cjs/components/ShareForm.js +14 -14
- package/dist/cjs/components/ShareFormNext.js +14 -14
- package/dist/cjs/components/ShareFormWrapper/ShareFormWrapper.js +2 -2
- package/dist/cjs/components/ShareHeader.js +2 -2
- package/dist/cjs/components/SplitButton.js +2 -2
- package/dist/cjs/components/UserPickerField.js +23 -23
- package/dist/cjs/{i18n.js → i18n-messages.js} +4 -4
- package/dist/es2019/components/CommentField.js +1 -1
- package/dist/es2019/components/LazyShareForm/LazyShareForm.js +1 -1
- package/dist/es2019/components/LazyShareForm/LazyShareFormNext.js +1 -1
- package/dist/es2019/components/ShareDialogContainer.js +3 -9
- package/dist/es2019/components/ShareDialogWithTrigger.js +1 -1
- package/dist/es2019/components/ShareDialogWithTriggerNext.js +1 -1
- package/dist/es2019/components/ShareForm.js +1 -1
- package/dist/es2019/components/ShareFormNext.js +1 -1
- package/dist/es2019/components/ShareFormWrapper/ShareFormWrapper.js +1 -1
- package/dist/es2019/components/ShareHeader.js +1 -1
- package/dist/es2019/components/SplitButton.js +1 -1
- package/dist/es2019/components/UserPickerField.js +1 -1
- package/dist/es2019/{i18n.js → i18n-messages.js} +4 -4
- package/dist/esm/components/CommentField.js +1 -1
- package/dist/esm/components/LazyShareForm/LazyShareForm.js +1 -1
- package/dist/esm/components/LazyShareForm/LazyShareFormNext.js +1 -1
- package/dist/esm/components/ShareDialogContainer.js +3 -9
- package/dist/esm/components/ShareDialogWithTrigger.js +1 -1
- package/dist/esm/components/ShareDialogWithTriggerNext.js +1 -1
- package/dist/esm/components/ShareForm.js +1 -1
- package/dist/esm/components/ShareFormNext.js +1 -1
- package/dist/esm/components/ShareFormWrapper/ShareFormWrapper.js +1 -1
- package/dist/esm/components/ShareHeader.js +1 -1
- package/dist/esm/components/SplitButton.js +1 -1
- package/dist/esm/components/UserPickerField.js +1 -1
- package/dist/esm/{i18n.js → i18n-messages.js} +4 -4
- package/dist/types/components/ShareDialogContainer.d.ts +3 -67
- package/dist/types-ts4.5/components/ShareDialogContainer.d.ts +3 -67
- package/package.json +12 -12
- package/afm-jira/tsconfig.json +0 -99
- /package/dist/types/{i18n.d.ts → i18n-messages.d.ts} +0 -0
- /package/dist/types-ts4.5/{i18n.d.ts → i18n-messages.d.ts} +0 -0
|
@@ -3,7 +3,7 @@ import React, { useMemo } from 'react';
|
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import { Field, useFormState } from '@atlaskit/form';
|
|
5
5
|
import TextArea from '@atlaskit/textarea';
|
|
6
|
-
import { messages } from '../i18n';
|
|
6
|
+
import { messages } from '../i18n-messages';
|
|
7
7
|
export const CommentField = ({
|
|
8
8
|
defaultValue,
|
|
9
9
|
isExtendedShareDialogEnabled
|
|
@@ -10,7 +10,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
10
10
|
import { FormattedMessage } from 'react-intl';
|
|
11
11
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
12
12
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
13
|
-
import { messages } from '../../i18n';
|
|
13
|
+
import { messages } from '../../i18n-messages';
|
|
14
14
|
import { INTEGRATION_MODAL_SOURCE } from '../analytics/analytics';
|
|
15
15
|
import { IntegrationForm } from '../IntegrationForm';
|
|
16
16
|
import { ShareForm } from '../ShareForm';
|
|
@@ -6,7 +6,7 @@ import { FormattedMessage } from 'react-intl';
|
|
|
6
6
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
7
7
|
import { cx } from '@atlaskit/css';
|
|
8
8
|
import { Box, Text } from '@atlaskit/primitives/compiled';
|
|
9
|
-
import { messages } from '../../i18n';
|
|
9
|
+
import { messages } from '../../i18n-messages';
|
|
10
10
|
import { INTEGRATION_MODAL_SOURCE } from '../analytics/analytics';
|
|
11
11
|
import { IntegrationForm } from '../IntegrationForm';
|
|
12
12
|
import { ShareForm } from '../ShareForm';
|
|
@@ -5,10 +5,9 @@ import memoizeOne from 'memoize-one';
|
|
|
5
5
|
import { FormattedMessage } from 'react-intl';
|
|
6
6
|
import assert from 'tiny-invariant';
|
|
7
7
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { AtlassianUrlShortenerClient } from '../clients/AtlassianUrlShortenerClient';
|
|
10
9
|
import { ShareServiceClient } from '../clients/ShareServiceClient';
|
|
11
|
-
import { messages } from '../i18n';
|
|
10
|
+
import { messages } from '../i18n-messages';
|
|
12
11
|
import { CHANNEL_ID, copyLinkButtonClicked, errorEncountered, shortUrlGenerated, shortUrlRequested } from './analytics/analytics';
|
|
13
12
|
import { isValidFailedExperience } from './analytics/ufoExperienceHelper';
|
|
14
13
|
import { renderShareDialogExp } from './analytics/ufoExperiences';
|
|
@@ -184,13 +183,8 @@ export class ShareDialogContainerInternal extends React.Component {
|
|
|
184
183
|
}, deepEqual));
|
|
185
184
|
_defineProperty(this, "getFormShareLink", () => {
|
|
186
185
|
const rawLink = this.getRawLink();
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
const originTracing = this.getFormShareOriginTracing();
|
|
190
|
-
return memoizedFormatCopyLink(originTracing, rawLink);
|
|
191
|
-
}
|
|
192
|
-
// original share link is used if feature flag is disabled
|
|
193
|
-
return rawLink;
|
|
186
|
+
const originTracing = this.getFormShareOriginTracing();
|
|
187
|
+
return memoizedFormatCopyLink(originTracing, rawLink);
|
|
194
188
|
});
|
|
195
189
|
assert(!props.client, 'elements/share: Breaking change, please update your props!');
|
|
196
190
|
this.shareClient = props.shareClient || new ShareServiceClient();
|
|
@@ -15,7 +15,7 @@ import Popup from '@atlaskit/popup';
|
|
|
15
15
|
import Portal from '@atlaskit/portal';
|
|
16
16
|
import { layers } from '@atlaskit/theme/constants';
|
|
17
17
|
import Aktooltip from '@atlaskit/tooltip';
|
|
18
|
-
import { messages } from '../i18n';
|
|
18
|
+
import { messages } from '../i18n-messages';
|
|
19
19
|
import { OBJECT_SHARED } from '../types';
|
|
20
20
|
import { ANALYTICS_SOURCE, cancelShare, CHANNEL_ID, copyLinkButtonClicked, formShareSubmitted, jiraPageSharedEvent, screenEvent, shareMenuItemClicked, shareSplitButtonEvent, shareTabClicked, shareTriggerButtonClicked } from './analytics/analytics';
|
|
21
21
|
// eslint-disable-next-line no-duplicate-imports
|
|
@@ -13,7 +13,7 @@ import Portal from '@atlaskit/portal';
|
|
|
13
13
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
14
14
|
import { layers } from '@atlaskit/theme/constants';
|
|
15
15
|
import Aktooltip from '@atlaskit/tooltip';
|
|
16
|
-
import { messages } from '../i18n';
|
|
16
|
+
import { messages } from '../i18n-messages';
|
|
17
17
|
import { OBJECT_SHARED } from '../types';
|
|
18
18
|
import { ANALYTICS_SOURCE, cancelShare, CHANNEL_ID, copyLinkButtonClicked, formShareSubmitted, jiraPageSharedEvent, screenEvent, shareMenuItemClicked, shareSplitButtonEvent, shareTabClicked, shareTriggerButtonClicked } from './analytics/analytics';
|
|
19
19
|
import { isValidFailedExperience } from './analytics/ufoExperienceHelper';
|
|
@@ -19,7 +19,7 @@ import { MenuGroup } from '@atlaskit/menu';
|
|
|
19
19
|
import { Box, Inline, xcss } from '@atlaskit/primitives';
|
|
20
20
|
import Tabs, { Tab, TabList, TabPanel } from '@atlaskit/tabs';
|
|
21
21
|
import Tooltip from '@atlaskit/tooltip';
|
|
22
|
-
import { messages } from '../i18n';
|
|
22
|
+
import { messages } from '../i18n-messages';
|
|
23
23
|
import { TabType } from '../types';
|
|
24
24
|
import { ANALYTICS_SOURCE, INTEGRATION_MODAL_SOURCE } from './analytics/analytics';
|
|
25
25
|
import { CommentField } from './CommentField';
|
|
@@ -15,7 +15,7 @@ import { MenuGroup } from '@atlaskit/menu';
|
|
|
15
15
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
16
16
|
import Tabs, { Tab, TabList, TabPanel } from '@atlaskit/tabs';
|
|
17
17
|
import Tooltip from '@atlaskit/tooltip';
|
|
18
|
-
import { messages } from '../i18n';
|
|
18
|
+
import { messages } from '../i18n-messages';
|
|
19
19
|
import { TabType } from '../types';
|
|
20
20
|
import { ANALYTICS_SOURCE, INTEGRATION_MODAL_SOURCE } from './analytics/analytics';
|
|
21
21
|
import { CommentField } from './CommentField';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
-
import { messages } from '../../i18n';
|
|
4
|
+
import { messages } from '../../i18n-messages';
|
|
5
5
|
import { ShareHeader } from '../ShareHeader';
|
|
6
6
|
import { InlineDialogContentWrapper as InlineDialogContentWrapperCompiled, InlineDialogFormWrapper as InlineDialogFormWrapperCompiled } from './compiled';
|
|
7
7
|
import { InlineDialogContentWrapper, InlineDialogFormWrapper } from './styled';
|
|
@@ -3,7 +3,7 @@ import { FormattedMessage } from 'react-intl';
|
|
|
3
3
|
import Heading from '@atlaskit/heading';
|
|
4
4
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
5
5
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
6
|
-
import { messages } from '../i18n';
|
|
6
|
+
import { messages } from '../i18n-messages';
|
|
7
7
|
const headerWrapperStyles = xcss({
|
|
8
8
|
display: 'flex',
|
|
9
9
|
justifyContent: 'space-between',
|
|
@@ -12,7 +12,7 @@ import { SplitButton as AKSplitButton, IconButton } from '@atlaskit/button/new';
|
|
|
12
12
|
import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
13
13
|
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
|
-
import { messages } from '../i18n';
|
|
15
|
+
import { messages } from '../i18n-messages';
|
|
16
16
|
import { shareIntegrationButtonEvent } from './analytics/analytics';
|
|
17
17
|
import IntegrationButton from './IntegrationButton';
|
|
18
18
|
|
|
@@ -8,7 +8,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
8
8
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
9
9
|
import SmartUserPicker, { isValidEmail } from '@atlaskit/smart-user-picker';
|
|
10
10
|
import UserPicker from '@atlaskit/user-picker';
|
|
11
|
-
import { messages } from '../i18n';
|
|
11
|
+
import { messages } from '../i18n-messages';
|
|
12
12
|
import { MAX_PICKER_HEIGHT } from './styles';
|
|
13
13
|
import { allowEmails, getMenuPortalTargetCurrentHTML } from './utils';
|
|
14
14
|
export const REQUIRED = 'REQUIRED';
|
|
@@ -169,7 +169,7 @@ export const messages = defineMessages({
|
|
|
169
169
|
copyLinkButtonText: {
|
|
170
170
|
id: 'fabric.elements.share.copylink.button.text',
|
|
171
171
|
defaultMessage: 'Copy link',
|
|
172
|
-
description: '
|
|
172
|
+
description: 'Label for the Copy Link button in the share dialog that copies the page URL to the clipboard.'
|
|
173
173
|
},
|
|
174
174
|
copyPublicLinkButtonText: {
|
|
175
175
|
id: 'fabric.elements.share.copypubliclink.button.text',
|
|
@@ -231,7 +231,7 @@ export const messages = defineMessages({
|
|
|
231
231
|
shareMainTabTextJira: {
|
|
232
232
|
id: 'fabric.elements.share.main.tab.text.jira',
|
|
233
233
|
defaultMessage: 'Share issue',
|
|
234
|
-
description: '
|
|
234
|
+
description: 'Label for the main share tab heading in the Jira share dialog.'
|
|
235
235
|
},
|
|
236
236
|
shareMainTabTextConfluence: {
|
|
237
237
|
id: 'fabric.elements.share.main.tab.text.confluence',
|
|
@@ -256,11 +256,11 @@ export const messages = defineMessages({
|
|
|
256
256
|
slackMenuItemText: {
|
|
257
257
|
id: 'fabric.elements.share.menu.slack.label',
|
|
258
258
|
defaultMessage: 'Slack',
|
|
259
|
-
description: '
|
|
259
|
+
description: 'Label for the Slack option in the share menu drop-down, allowing users to share content via Slack.'
|
|
260
260
|
},
|
|
261
261
|
emailMenuItemText: {
|
|
262
262
|
id: 'fabric.elements.share.menu.email.label',
|
|
263
263
|
defaultMessage: 'Email',
|
|
264
|
-
description: '
|
|
264
|
+
description: 'Label for the Email option in the share menu drop-down, allowing users to share content via email.'
|
|
265
265
|
}
|
|
266
266
|
});
|
|
@@ -3,7 +3,7 @@ import React, { useMemo } from 'react';
|
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import { Field, useFormState } from '@atlaskit/form';
|
|
5
5
|
import TextArea from '@atlaskit/textarea';
|
|
6
|
-
import { messages } from '../i18n';
|
|
6
|
+
import { messages } from '../i18n-messages';
|
|
7
7
|
export var CommentField = function CommentField(_ref) {
|
|
8
8
|
var defaultValue = _ref.defaultValue,
|
|
9
9
|
isExtendedShareDialogEnabled = _ref.isExtendedShareDialogEnabled;
|
|
@@ -10,7 +10,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
10
10
|
import { FormattedMessage } from 'react-intl';
|
|
11
11
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
12
12
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
13
|
-
import { messages } from '../../i18n';
|
|
13
|
+
import { messages } from '../../i18n-messages';
|
|
14
14
|
import { INTEGRATION_MODAL_SOURCE } from '../analytics/analytics';
|
|
15
15
|
import { IntegrationForm } from '../IntegrationForm';
|
|
16
16
|
import { ShareForm } from '../ShareForm';
|
|
@@ -6,7 +6,7 @@ import { FormattedMessage } from 'react-intl';
|
|
|
6
6
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
7
7
|
import { cx } from '@atlaskit/css';
|
|
8
8
|
import { Box, Text } from '@atlaskit/primitives/compiled';
|
|
9
|
-
import { messages } from '../../i18n';
|
|
9
|
+
import { messages } from '../../i18n-messages';
|
|
10
10
|
import { INTEGRATION_MODAL_SOURCE } from '../analytics/analytics';
|
|
11
11
|
import { IntegrationForm } from '../IntegrationForm';
|
|
12
12
|
import { ShareForm } from '../ShareForm';
|
|
@@ -20,10 +20,9 @@ import memoizeOne from 'memoize-one';
|
|
|
20
20
|
import { FormattedMessage } from 'react-intl';
|
|
21
21
|
import assert from 'tiny-invariant';
|
|
22
22
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
23
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
24
23
|
import { AtlassianUrlShortenerClient } from '../clients/AtlassianUrlShortenerClient';
|
|
25
24
|
import { ShareServiceClient } from '../clients/ShareServiceClient';
|
|
26
|
-
import { messages } from '../i18n';
|
|
25
|
+
import { messages } from '../i18n-messages';
|
|
27
26
|
import { CHANNEL_ID, copyLinkButtonClicked, errorEncountered, shortUrlGenerated, shortUrlRequested } from './analytics/analytics';
|
|
28
27
|
import { isValidFailedExperience } from './analytics/ufoExperienceHelper';
|
|
29
28
|
import { renderShareDialogExp } from './analytics/ufoExperiences';
|
|
@@ -217,13 +216,8 @@ export var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Componen
|
|
|
217
216
|
}, deepEqual));
|
|
218
217
|
_defineProperty(_this, "getFormShareLink", function () {
|
|
219
218
|
var rawLink = _this.getRawLink();
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
var originTracing = _this.getFormShareOriginTracing();
|
|
223
|
-
return memoizedFormatCopyLink(originTracing, rawLink);
|
|
224
|
-
}
|
|
225
|
-
// original share link is used if feature flag is disabled
|
|
226
|
-
return rawLink;
|
|
219
|
+
var originTracing = _this.getFormShareOriginTracing();
|
|
220
|
+
return memoizedFormatCopyLink(originTracing, rawLink);
|
|
227
221
|
});
|
|
228
222
|
assert(!props.client, 'elements/share: Breaking change, please update your props!');
|
|
229
223
|
_this.shareClient = props.shareClient || new ShareServiceClient();
|
|
@@ -26,7 +26,7 @@ import Popup from '@atlaskit/popup';
|
|
|
26
26
|
import Portal from '@atlaskit/portal';
|
|
27
27
|
import { layers } from '@atlaskit/theme/constants';
|
|
28
28
|
import Aktooltip from '@atlaskit/tooltip';
|
|
29
|
-
import { messages } from '../i18n';
|
|
29
|
+
import { messages } from '../i18n-messages';
|
|
30
30
|
import { OBJECT_SHARED } from '../types';
|
|
31
31
|
import { ANALYTICS_SOURCE, cancelShare, CHANNEL_ID, copyLinkButtonClicked, formShareSubmitted, jiraPageSharedEvent, screenEvent, shareMenuItemClicked, shareSplitButtonEvent, shareTabClicked, shareTriggerButtonClicked } from './analytics/analytics';
|
|
32
32
|
// eslint-disable-next-line no-duplicate-imports
|
|
@@ -24,7 +24,7 @@ import Portal from '@atlaskit/portal';
|
|
|
24
24
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
25
25
|
import { layers } from '@atlaskit/theme/constants';
|
|
26
26
|
import Aktooltip from '@atlaskit/tooltip';
|
|
27
|
-
import { messages } from '../i18n';
|
|
27
|
+
import { messages } from '../i18n-messages';
|
|
28
28
|
import { OBJECT_SHARED } from '../types';
|
|
29
29
|
import { ANALYTICS_SOURCE, cancelShare, CHANNEL_ID, copyLinkButtonClicked, formShareSubmitted, jiraPageSharedEvent, screenEvent, shareMenuItemClicked, shareSplitButtonEvent, shareTabClicked, shareTriggerButtonClicked } from './analytics/analytics';
|
|
30
30
|
import { isValidFailedExperience } from './analytics/ufoExperienceHelper';
|
|
@@ -28,7 +28,7 @@ import { MenuGroup } from '@atlaskit/menu';
|
|
|
28
28
|
import { Box, Inline, xcss } from '@atlaskit/primitives';
|
|
29
29
|
import Tabs, { Tab, TabList, TabPanel } from '@atlaskit/tabs';
|
|
30
30
|
import Tooltip from '@atlaskit/tooltip';
|
|
31
|
-
import { messages } from '../i18n';
|
|
31
|
+
import { messages } from '../i18n-messages';
|
|
32
32
|
import { TabType } from '../types';
|
|
33
33
|
import { ANALYTICS_SOURCE, INTEGRATION_MODAL_SOURCE } from './analytics/analytics';
|
|
34
34
|
import { CommentField } from './CommentField';
|
|
@@ -24,7 +24,7 @@ import { MenuGroup } from '@atlaskit/menu';
|
|
|
24
24
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
25
25
|
import Tabs, { Tab, TabList, TabPanel } from '@atlaskit/tabs';
|
|
26
26
|
import Tooltip from '@atlaskit/tooltip';
|
|
27
|
-
import { messages } from '../i18n';
|
|
27
|
+
import { messages } from '../i18n-messages';
|
|
28
28
|
import { TabType } from '../types';
|
|
29
29
|
import { ANALYTICS_SOURCE, INTEGRATION_MODAL_SOURCE } from './analytics/analytics';
|
|
30
30
|
import { CommentField } from './CommentField';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
-
import { messages } from '../../i18n';
|
|
4
|
+
import { messages } from '../../i18n-messages';
|
|
5
5
|
import { ShareHeader } from '../ShareHeader';
|
|
6
6
|
import { InlineDialogContentWrapper as InlineDialogContentWrapperCompiled, InlineDialogFormWrapper as InlineDialogFormWrapperCompiled } from './compiled';
|
|
7
7
|
import { InlineDialogContentWrapper, InlineDialogFormWrapper } from './styled';
|
|
@@ -3,7 +3,7 @@ import { FormattedMessage } from 'react-intl';
|
|
|
3
3
|
import Heading from '@atlaskit/heading';
|
|
4
4
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
5
5
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
6
|
-
import { messages } from '../i18n';
|
|
6
|
+
import { messages } from '../i18n-messages';
|
|
7
7
|
var headerWrapperStyles = xcss({
|
|
8
8
|
display: 'flex',
|
|
9
9
|
justifyContent: 'space-between',
|
|
@@ -15,7 +15,7 @@ import { SplitButton as AKSplitButton, IconButton } from '@atlaskit/button/new';
|
|
|
15
15
|
import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
16
16
|
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
17
17
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
|
-
import { messages } from '../i18n';
|
|
18
|
+
import { messages } from '../i18n-messages';
|
|
19
19
|
import { shareIntegrationButtonEvent } from './analytics/analytics';
|
|
20
20
|
import IntegrationButton from './IntegrationButton';
|
|
21
21
|
|
|
@@ -18,7 +18,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
18
18
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
19
19
|
import SmartUserPicker, { isValidEmail } from '@atlaskit/smart-user-picker';
|
|
20
20
|
import UserPicker from '@atlaskit/user-picker';
|
|
21
|
-
import { messages } from '../i18n';
|
|
21
|
+
import { messages } from '../i18n-messages';
|
|
22
22
|
import { MAX_PICKER_HEIGHT } from './styles';
|
|
23
23
|
import { allowEmails, getMenuPortalTargetCurrentHTML } from './utils';
|
|
24
24
|
export var REQUIRED = 'REQUIRED';
|
|
@@ -169,7 +169,7 @@ export var messages = defineMessages({
|
|
|
169
169
|
copyLinkButtonText: {
|
|
170
170
|
id: 'fabric.elements.share.copylink.button.text',
|
|
171
171
|
defaultMessage: 'Copy link',
|
|
172
|
-
description: '
|
|
172
|
+
description: 'Label for the Copy Link button in the share dialog that copies the page URL to the clipboard.'
|
|
173
173
|
},
|
|
174
174
|
copyPublicLinkButtonText: {
|
|
175
175
|
id: 'fabric.elements.share.copypubliclink.button.text',
|
|
@@ -231,7 +231,7 @@ export var messages = defineMessages({
|
|
|
231
231
|
shareMainTabTextJira: {
|
|
232
232
|
id: 'fabric.elements.share.main.tab.text.jira',
|
|
233
233
|
defaultMessage: 'Share issue',
|
|
234
|
-
description: '
|
|
234
|
+
description: 'Label for the main share tab heading in the Jira share dialog.'
|
|
235
235
|
},
|
|
236
236
|
shareMainTabTextConfluence: {
|
|
237
237
|
id: 'fabric.elements.share.main.tab.text.confluence',
|
|
@@ -256,11 +256,11 @@ export var messages = defineMessages({
|
|
|
256
256
|
slackMenuItemText: {
|
|
257
257
|
id: 'fabric.elements.share.menu.slack.label',
|
|
258
258
|
defaultMessage: 'Slack',
|
|
259
|
-
description: '
|
|
259
|
+
description: 'Label for the Slack option in the share menu drop-down, allowing users to share content via Slack.'
|
|
260
260
|
},
|
|
261
261
|
emailMenuItemText: {
|
|
262
262
|
id: 'fabric.elements.share.menu.email.label',
|
|
263
263
|
defaultMessage: 'Email',
|
|
264
|
-
description: '
|
|
264
|
+
description: 'Label for the Email option in the share menu drop-down, allowing users to share content via email.'
|
|
265
265
|
}
|
|
266
266
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type MemoizedFn } from 'memoize-one';
|
|
3
3
|
import { type AnalyticsEventPayload, type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
4
|
-
import { type ShortenRequest
|
|
5
|
-
import { type ConfigResponse
|
|
4
|
+
import { type ShortenRequest } from '../clients/AtlassianUrlShortenerClient';
|
|
5
|
+
import { type ConfigResponse } from '../clients/ShareServiceClient';
|
|
6
6
|
import type { OriginTracing, OriginTracingFactory, ShareData, ShareDialogContainerProps } from '../types';
|
|
7
7
|
export declare const defaultConfig: ConfigResponse;
|
|
8
8
|
export type State = {
|
|
@@ -53,69 +53,5 @@ export declare class ShareDialogContainerInternal extends React.Component<ShareD
|
|
|
53
53
|
* ⚠️ DO NOT USE — This component has been replaced by @atlassian/jira-share-dialog.
|
|
54
54
|
* It will be removed once the switch-over is complete.
|
|
55
55
|
*/
|
|
56
|
-
export declare const ShareDialogContainer:
|
|
57
|
-
integrationMode?: import("../types/ShareEntities").IntegrationMode | undefined;
|
|
58
|
-
shareIntegrations?: Array<import("..").Integration> | undefined;
|
|
59
|
-
additionalTabs?: Array<import("..").AdditionalTab> | undefined;
|
|
60
|
-
builtInTabContentWidth?: number | undefined;
|
|
61
|
-
copyTooltipText?: string | undefined;
|
|
62
|
-
isPublicLink?: boolean | undefined;
|
|
63
|
-
onUserSelectionChange?: ((value: import("@atlaskit/user-picker").Value) => void) | undefined;
|
|
64
|
-
cloudId?: string | undefined;
|
|
65
|
-
loggedInAccountId?: string | undefined;
|
|
66
|
-
enableSmartUserPicker?: boolean | undefined;
|
|
67
|
-
orgId?: string | undefined;
|
|
68
|
-
isBrowseUsersDisabled?: boolean | undefined;
|
|
69
|
-
userPickerOptions?: import("../types").UserPickerOptions | undefined;
|
|
70
|
-
productAttributes?: import("packages/smart-experiences/smart-user-picker/dist/types/types").ProductAttributes | undefined;
|
|
71
|
-
additionalUserFields?: React.ReactNode;
|
|
72
|
-
isExtendedShareDialogEnabled?: boolean | undefined;
|
|
73
|
-
CustomSubmitButton?: React.FC<import("..").RenderCustomSubmitButtonProps> | undefined;
|
|
74
|
-
bottomMessage?: React.ReactNode;
|
|
75
|
-
customFooter?: React.ReactNode;
|
|
76
|
-
customHeader?: React.ReactNode;
|
|
77
|
-
customTriggerButtonIcon?: React.ComponentType<import("@atlaskit/icon").NewCoreIconProps> | undefined;
|
|
78
|
-
dialogPlacement?: import("..").DialogPlacement | undefined;
|
|
79
|
-
dialogZIndex?: number | undefined;
|
|
80
|
-
formatCopyLink?: ((origin: OriginTracing, link: string) => string) | undefined;
|
|
81
|
-
isAutoOpenDialog?: boolean | undefined;
|
|
82
|
-
isCopyDisabled?: boolean | undefined;
|
|
83
|
-
isMenuItemSelected?: boolean | undefined;
|
|
84
|
-
isSubmitShareDisabled?: boolean | undefined;
|
|
85
|
-
loadUserOptions?: import("@atlaskit/user-picker").LoadOptions | undefined;
|
|
86
|
-
onDialogClose?: (() => void) | undefined;
|
|
87
|
-
onDialogOpen?: (() => void) | undefined;
|
|
88
|
-
onSubmit?: ((formValues: ShareData) => void | Promise<void>) | undefined;
|
|
89
|
-
onTriggerButtonClick?: (() => void) | undefined;
|
|
90
|
-
originTracingFactory?: OriginTracingFactory | undefined;
|
|
91
|
-
product?: import("..").ProductName | undefined;
|
|
92
|
-
productId?: import("..").ProductId | undefined;
|
|
93
|
-
renderCustomTriggerButton?: import("..").RenderCustomTriggerButton | undefined;
|
|
94
|
-
shareAri?: string | undefined;
|
|
95
|
-
shareClient?: ShareClient | undefined;
|
|
96
|
-
shareContentId?: string | undefined;
|
|
97
|
-
shareContentSubType?: string | undefined;
|
|
98
|
-
shareContentType?: string | undefined;
|
|
99
|
-
shareeAction?: "view" | "edit" | undefined;
|
|
100
|
-
shareFieldsFooter?: React.ReactNode;
|
|
101
|
-
shareFormHelperMessage?: string | undefined;
|
|
102
|
-
shareFormTitle?: React.ReactNode;
|
|
103
|
-
shareLink?: string | undefined;
|
|
104
|
-
shareTitle?: string | undefined;
|
|
105
|
-
shortLinkData?: ShortenRequest | undefined;
|
|
106
|
-
shouldCloseOnEscapePress?: boolean | undefined;
|
|
107
|
-
showFlags?: ((flags: Array<import("..").Flag>) => void) | undefined;
|
|
108
|
-
tabIndex?: number | undefined;
|
|
109
|
-
triggerButtonAppearance?: "default" | "subtle" | "primary" | "discovery" | undefined;
|
|
110
|
-
triggerButtonIcon?: React.ComponentType<import("@atlaskit/icon").NewCoreIconProps> | undefined;
|
|
111
|
-
triggerButtonStyle?: import("..").ShareButtonStyle | undefined;
|
|
112
|
-
triggerButtonTooltipPosition?: import("..").TooltipPosition | undefined;
|
|
113
|
-
triggerButtonTooltipText?: React.ReactNode;
|
|
114
|
-
urlShortenerClient?: UrlShortenerClient | undefined;
|
|
115
|
-
useUrlShortener?: boolean | undefined;
|
|
116
|
-
workspaceAri?: string | undefined;
|
|
117
|
-
} & {
|
|
118
|
-
createAnalyticsEvent?: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | undefined;
|
|
119
|
-
ref?: React.Ref<any> | undefined;
|
|
120
|
-
}, "ref"> & React.RefAttributes<any>>;
|
|
56
|
+
export declare const ShareDialogContainer: any;
|
|
121
57
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type MemoizedFn } from 'memoize-one';
|
|
3
3
|
import { type AnalyticsEventPayload, type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
4
|
-
import { type ShortenRequest
|
|
5
|
-
import { type ConfigResponse
|
|
4
|
+
import { type ShortenRequest } from '../clients/AtlassianUrlShortenerClient';
|
|
5
|
+
import { type ConfigResponse } from '../clients/ShareServiceClient';
|
|
6
6
|
import type { OriginTracing, OriginTracingFactory, ShareData, ShareDialogContainerProps } from '../types';
|
|
7
7
|
export declare const defaultConfig: ConfigResponse;
|
|
8
8
|
export type State = {
|
|
@@ -53,69 +53,5 @@ export declare class ShareDialogContainerInternal extends React.Component<ShareD
|
|
|
53
53
|
* ⚠️ DO NOT USE — This component has been replaced by @atlassian/jira-share-dialog.
|
|
54
54
|
* It will be removed once the switch-over is complete.
|
|
55
55
|
*/
|
|
56
|
-
export declare const ShareDialogContainer:
|
|
57
|
-
integrationMode?: import("../types/ShareEntities").IntegrationMode | undefined;
|
|
58
|
-
shareIntegrations?: Array<import("..").Integration> | undefined;
|
|
59
|
-
additionalTabs?: Array<import("..").AdditionalTab> | undefined;
|
|
60
|
-
builtInTabContentWidth?: number | undefined;
|
|
61
|
-
copyTooltipText?: string | undefined;
|
|
62
|
-
isPublicLink?: boolean | undefined;
|
|
63
|
-
onUserSelectionChange?: ((value: import("@atlaskit/user-picker").Value) => void) | undefined;
|
|
64
|
-
cloudId?: string | undefined;
|
|
65
|
-
loggedInAccountId?: string | undefined;
|
|
66
|
-
enableSmartUserPicker?: boolean | undefined;
|
|
67
|
-
orgId?: string | undefined;
|
|
68
|
-
isBrowseUsersDisabled?: boolean | undefined;
|
|
69
|
-
userPickerOptions?: import("../types").UserPickerOptions | undefined;
|
|
70
|
-
productAttributes?: import("packages/smart-experiences/smart-user-picker/dist/types/types").ProductAttributes | undefined;
|
|
71
|
-
additionalUserFields?: React.ReactNode;
|
|
72
|
-
isExtendedShareDialogEnabled?: boolean | undefined;
|
|
73
|
-
CustomSubmitButton?: React.FC<import("..").RenderCustomSubmitButtonProps> | undefined;
|
|
74
|
-
bottomMessage?: React.ReactNode;
|
|
75
|
-
customFooter?: React.ReactNode;
|
|
76
|
-
customHeader?: React.ReactNode;
|
|
77
|
-
customTriggerButtonIcon?: React.ComponentType<import("@atlaskit/icon").NewCoreIconProps> | undefined;
|
|
78
|
-
dialogPlacement?: import("..").DialogPlacement | undefined;
|
|
79
|
-
dialogZIndex?: number | undefined;
|
|
80
|
-
formatCopyLink?: ((origin: OriginTracing, link: string) => string) | undefined;
|
|
81
|
-
isAutoOpenDialog?: boolean | undefined;
|
|
82
|
-
isCopyDisabled?: boolean | undefined;
|
|
83
|
-
isMenuItemSelected?: boolean | undefined;
|
|
84
|
-
isSubmitShareDisabled?: boolean | undefined;
|
|
85
|
-
loadUserOptions?: import("@atlaskit/user-picker").LoadOptions | undefined;
|
|
86
|
-
onDialogClose?: (() => void) | undefined;
|
|
87
|
-
onDialogOpen?: (() => void) | undefined;
|
|
88
|
-
onSubmit?: ((formValues: ShareData) => void | Promise<void>) | undefined;
|
|
89
|
-
onTriggerButtonClick?: (() => void) | undefined;
|
|
90
|
-
originTracingFactory?: OriginTracingFactory | undefined;
|
|
91
|
-
product?: import("..").ProductName | undefined;
|
|
92
|
-
productId?: import("..").ProductId | undefined;
|
|
93
|
-
renderCustomTriggerButton?: import("..").RenderCustomTriggerButton | undefined;
|
|
94
|
-
shareAri?: string | undefined;
|
|
95
|
-
shareClient?: ShareClient | undefined;
|
|
96
|
-
shareContentId?: string | undefined;
|
|
97
|
-
shareContentSubType?: string | undefined;
|
|
98
|
-
shareContentType?: string | undefined;
|
|
99
|
-
shareeAction?: "view" | "edit" | undefined;
|
|
100
|
-
shareFieldsFooter?: React.ReactNode;
|
|
101
|
-
shareFormHelperMessage?: string | undefined;
|
|
102
|
-
shareFormTitle?: React.ReactNode;
|
|
103
|
-
shareLink?: string | undefined;
|
|
104
|
-
shareTitle?: string | undefined;
|
|
105
|
-
shortLinkData?: ShortenRequest | undefined;
|
|
106
|
-
shouldCloseOnEscapePress?: boolean | undefined;
|
|
107
|
-
showFlags?: ((flags: Array<import("..").Flag>) => void) | undefined;
|
|
108
|
-
tabIndex?: number | undefined;
|
|
109
|
-
triggerButtonAppearance?: "default" | "subtle" | "primary" | "discovery" | undefined;
|
|
110
|
-
triggerButtonIcon?: React.ComponentType<import("@atlaskit/icon").NewCoreIconProps> | undefined;
|
|
111
|
-
triggerButtonStyle?: import("..").ShareButtonStyle | undefined;
|
|
112
|
-
triggerButtonTooltipPosition?: import("..").TooltipPosition | undefined;
|
|
113
|
-
triggerButtonTooltipText?: React.ReactNode;
|
|
114
|
-
urlShortenerClient?: UrlShortenerClient | undefined;
|
|
115
|
-
useUrlShortener?: boolean | undefined;
|
|
116
|
-
workspaceAri?: string | undefined;
|
|
117
|
-
} & {
|
|
118
|
-
createAnalyticsEvent?: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | undefined;
|
|
119
|
-
ref?: React.Ref<any> | undefined;
|
|
120
|
-
}, "ref"> & React.RefAttributes<any>>;
|
|
56
|
+
export declare const ShareDialogContainer: any;
|
|
121
57
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/share",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.2",
|
|
4
4
|
"description": "Fabric Share Element",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -44,22 +44,22 @@
|
|
|
44
44
|
"@atlaskit/dropdown-menu": "^16.8.0",
|
|
45
45
|
"@atlaskit/form": "^15.5.0",
|
|
46
46
|
"@atlaskit/heading": "^5.4.0",
|
|
47
|
-
"@atlaskit/icon": "^34.
|
|
47
|
+
"@atlaskit/icon": "^34.5.0",
|
|
48
48
|
"@atlaskit/link": "^3.4.0",
|
|
49
|
-
"@atlaskit/menu": "^8.
|
|
49
|
+
"@atlaskit/menu": "^8.5.0",
|
|
50
50
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
51
51
|
"@atlaskit/popper": "^7.2.0",
|
|
52
|
-
"@atlaskit/popup": "^4.
|
|
53
|
-
"@atlaskit/portal": "^5.
|
|
52
|
+
"@atlaskit/popup": "^4.19.0",
|
|
53
|
+
"@atlaskit/portal": "^5.5.0",
|
|
54
54
|
"@atlaskit/primitives": "^19.0.0",
|
|
55
55
|
"@atlaskit/smart-user-picker": "^10.0.0",
|
|
56
56
|
"@atlaskit/spinner": "^19.1.0",
|
|
57
|
-
"@atlaskit/tabs": "^19.
|
|
58
|
-
"@atlaskit/textarea": "^8.
|
|
59
|
-
"@atlaskit/theme": "^23.
|
|
57
|
+
"@atlaskit/tabs": "^19.1.0",
|
|
58
|
+
"@atlaskit/textarea": "^8.3.0",
|
|
59
|
+
"@atlaskit/theme": "^23.2.0",
|
|
60
60
|
"@atlaskit/tokens": "^13.0.0",
|
|
61
|
-
"@atlaskit/tooltip": "^
|
|
62
|
-
"@atlaskit/ufo": "^0.
|
|
61
|
+
"@atlaskit/tooltip": "^22.2.0",
|
|
62
|
+
"@atlaskit/ufo": "^0.5.0",
|
|
63
63
|
"@atlaskit/user-picker": "^12.0.0",
|
|
64
64
|
"@atlaskit/util-service-support": "^6.3.0",
|
|
65
65
|
"@babel/runtime": "^7.0.0",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
77
|
-
"@atlaskit/flag": "^17.
|
|
78
|
-
"@atlassian/feature-flags-test-utils": "^1.
|
|
77
|
+
"@atlaskit/flag": "^17.11.0",
|
|
78
|
+
"@atlassian/feature-flags-test-utils": "^1.1.0",
|
|
79
79
|
"@testing-library/react": "^16.3.0",
|
|
80
80
|
"@testing-library/user-event": "^14.4.3",
|
|
81
81
|
"enzyme": "^3.10.0",
|