@atlaskit/share 6.19.5 → 7.0.1
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 +25 -0
- package/dist/cjs/components/CommentField.js +2 -2
- package/dist/cjs/components/LazyShareForm/LazyShareForm.js +2 -2
- package/dist/cjs/components/LazyShareForm/LazyShareFormNext.js +2 -2
- package/dist/cjs/components/MessagesIntlProvider.js +3 -3
- package/dist/cjs/components/ShareDialogContainer.js +2 -2
- package/dist/cjs/components/ShareDialogWithTrigger.js +3 -3
- package/dist/cjs/components/ShareDialogWithTriggerNext.js +3 -3
- package/dist/cjs/components/ShareForm.js +8 -8
- package/dist/cjs/components/ShareFormNext.js +8 -8
- package/dist/cjs/components/ShareFormWrapper/ShareFormWrapper.js +2 -2
- package/dist/cjs/components/ShareHeader.js +2 -2
- package/dist/cjs/components/ShareMenuItem.js +2 -2
- package/dist/cjs/components/SplitButton.js +2 -2
- package/dist/cjs/components/UserPickerField.js +8 -8
- package/dist/cjs/components/analytics/analytics.js +1 -1
- package/dist/cjs/i18n.js +6 -6
- 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/MessagesIntlProvider.js +1 -1
- package/dist/es2019/components/ShareDialogContainer.js +1 -1
- 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/ShareMenuItem.js +1 -1
- package/dist/es2019/components/SplitButton.js +1 -1
- package/dist/es2019/components/UserPickerField.js +1 -1
- package/dist/es2019/components/analytics/analytics.js +1 -1
- package/dist/es2019/i18n.js +5 -5
- 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/MessagesIntlProvider.js +1 -1
- package/dist/esm/components/ShareDialogContainer.js +1 -1
- 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/ShareMenuItem.js +1 -1
- package/dist/esm/components/SplitButton.js +1 -1
- package/dist/esm/components/UserPickerField.js +1 -1
- package/dist/esm/components/analytics/analytics.js +1 -1
- package/dist/esm/i18n.js +5 -5
- package/dist/types/components/MessagesIntlProvider.d.ts +1 -1
- package/dist/types/components/ShareDialogContainer.d.ts +3 -67
- package/dist/types/components/ShareDialogWithTrigger.d.ts +1 -1
- package/dist/types/components/ShareDialogWithTriggerNext.d.ts +1 -1
- package/dist/types/components/ShareForm.d.ts +1 -1
- package/dist/types/components/ShareFormNext.d.ts +1 -1
- package/dist/types/components/ShareMenuItem.d.ts +1 -1
- package/dist/types/components/UserPickerField.d.ts +1 -1
- package/dist/types/types/UserPickerOptions.d.ts +1 -1
- package/dist/types-ts4.5/components/MessagesIntlProvider.d.ts +1 -1
- package/dist/types-ts4.5/components/ShareDialogContainer.d.ts +3 -67
- package/dist/types-ts4.5/components/ShareDialogWithTrigger.d.ts +1 -1
- package/dist/types-ts4.5/components/ShareDialogWithTriggerNext.d.ts +1 -1
- package/dist/types-ts4.5/components/ShareForm.d.ts +1 -1
- package/dist/types-ts4.5/components/ShareFormNext.d.ts +1 -1
- package/dist/types-ts4.5/components/ShareMenuItem.d.ts +1 -1
- package/dist/types-ts4.5/components/UserPickerField.d.ts +1 -1
- package/dist/types-ts4.5/types/UserPickerOptions.d.ts +1 -1
- package/package.json +16 -15
|
@@ -7,7 +7,7 @@ import React, { useCallback } from 'react';
|
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
|
-
import { FormattedMessage } from 'react-intl
|
|
10
|
+
import { FormattedMessage } from 'react-intl';
|
|
11
11
|
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';
|
|
@@ -1,7 +1,7 @@
|
|
|
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
|
|
4
|
+
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
5
5
|
import { ErrorMessage, Field, HelperMessage } from '@atlaskit/form';
|
|
6
6
|
import Link from '@atlaskit/link';
|
|
7
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isEmail, isExternalUser, isGroup, isTeam, isUser } from '@atlaskit/smart-user-picker';
|
|
2
2
|
const buildAttributes = (attributes = {}) => ({
|
|
3
3
|
packageName: "@atlaskit/share",
|
|
4
|
-
packageVersion: "
|
|
4
|
+
packageVersion: "7.0.0",
|
|
5
5
|
...attributes
|
|
6
6
|
});
|
|
7
7
|
const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
|
package/dist/es2019/i18n.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineMessages } from 'react-intl
|
|
1
|
+
import { defineMessages } from 'react-intl';
|
|
2
2
|
export const messages = defineMessages({
|
|
3
3
|
formTitle: {
|
|
4
4
|
id: 'fabric.elements.share.form.title',
|
|
@@ -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
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
|
-
import { useIntl } from 'react-intl
|
|
3
|
+
import { useIntl } from 'react-intl';
|
|
4
4
|
import { Field, useFormState } from '@atlaskit/form';
|
|
5
5
|
import TextArea from '@atlaskit/textarea';
|
|
6
6
|
import { messages } from '../i18n';
|
|
@@ -7,7 +7,7 @@ import React from 'react';
|
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
|
-
import { FormattedMessage } from 'react-intl
|
|
10
|
+
import { FormattedMessage } from 'react-intl';
|
|
11
11
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
12
12
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
13
13
|
import { messages } from '../../i18n';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./LazyShareFormNext.compiled.css";
|
|
3
3
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { FormattedMessage } from 'react-intl
|
|
5
|
+
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';
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import React, { useMemo } from 'react';
|
|
5
|
-
import { injectIntl, IntlProvider } from 'react-intl
|
|
5
|
+
import { injectIntl, IntlProvider } from 'react-intl';
|
|
6
6
|
import { getMessagesForLocale } from '../util/i18n-util';
|
|
7
7
|
var MessagesIntlProvider = function MessagesIntlProvider(_ref) {
|
|
8
8
|
var intl = _ref.intl,
|
|
@@ -17,7 +17,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
17
17
|
import React from 'react';
|
|
18
18
|
import deepEqual from 'fast-deep-equal';
|
|
19
19
|
import memoizeOne from 'memoize-one';
|
|
20
|
-
import { FormattedMessage } from 'react-intl
|
|
20
|
+
import { FormattedMessage } from 'react-intl';
|
|
21
21
|
import assert from 'tiny-invariant';
|
|
22
22
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
23
23
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -18,7 +18,7 @@ import React from 'react';
|
|
|
18
18
|
|
|
19
19
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
20
20
|
import { css, jsx } from '@emotion/react';
|
|
21
|
-
import { FormattedMessage, injectIntl } from 'react-intl
|
|
21
|
+
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
22
22
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
23
23
|
import ShareIcon from '@atlaskit/icon/core/share';
|
|
24
24
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -14,7 +14,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
14
14
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
15
15
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
16
16
|
import React from 'react';
|
|
17
|
-
import { FormattedMessage, injectIntl } from 'react-intl
|
|
17
|
+
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
18
18
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
19
19
|
import { cx } from '@atlaskit/css';
|
|
20
20
|
import ShareIcon from '@atlaskit/icon/core/share';
|
|
@@ -17,7 +17,7 @@ import React from 'react';
|
|
|
17
17
|
|
|
18
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
19
19
|
import { css, jsx } from '@emotion/react';
|
|
20
|
-
import { FormattedMessage, injectIntl } from 'react-intl
|
|
20
|
+
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
21
21
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
22
22
|
import Button from '@atlaskit/button/new';
|
|
23
23
|
import Form, { RequiredAsterisk } from '@atlaskit/form';
|
|
@@ -13,7 +13,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
13
13
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
14
14
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
15
15
|
import React from 'react';
|
|
16
|
-
import { FormattedMessage, injectIntl } from 'react-intl
|
|
16
|
+
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
17
17
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
18
18
|
import Button from '@atlaskit/button/new';
|
|
19
19
|
import { cx } from '@atlaskit/css';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FormattedMessage } from 'react-intl
|
|
2
|
+
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';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FormattedMessage } from 'react-intl
|
|
2
|
+
import { FormattedMessage } from 'react-intl';
|
|
3
3
|
import { ButtonItem } from '@atlaskit/menu';
|
|
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';
|
|
@@ -10,7 +10,7 @@ import React, { useCallback } from 'react';
|
|
|
10
10
|
|
|
11
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
12
|
import { css, jsx } from '@emotion/react';
|
|
13
|
-
import { FormattedMessage } from 'react-intl
|
|
13
|
+
import { FormattedMessage } from 'react-intl';
|
|
14
14
|
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';
|
|
@@ -11,7 +11,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
11
11
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
12
12
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
13
|
import React from 'react';
|
|
14
|
-
import { FormattedMessage, injectIntl } from 'react-intl
|
|
14
|
+
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
15
15
|
import { ErrorMessage, Field, HelperMessage } from '@atlaskit/form';
|
|
16
16
|
import Link from '@atlaskit/link';
|
|
17
17
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -6,7 +6,7 @@ var buildAttributes = function buildAttributes() {
|
|
|
6
6
|
var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
7
7
|
return _objectSpread({
|
|
8
8
|
packageName: "@atlaskit/share",
|
|
9
|
-
packageVersion: "
|
|
9
|
+
packageVersion: "7.0.0"
|
|
10
10
|
}, attributes);
|
|
11
11
|
};
|
|
12
12
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
package/dist/esm/i18n.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineMessages } from 'react-intl
|
|
1
|
+
import { defineMessages } from 'react-intl';
|
|
2
2
|
export var messages = defineMessages({
|
|
3
3
|
formTitle: {
|
|
4
4
|
id: 'fabric.elements.share.form.title',
|
|
@@ -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 {};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
import { type WrappedComponentProps } from 'react-intl
|
|
7
|
+
import { type WrappedComponentProps } from 'react-intl';
|
|
8
8
|
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
9
9
|
import { type TriggerProps } from '@atlaskit/popup';
|
|
10
10
|
import { type Value } from '@atlaskit/user-picker';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type WrappedComponentProps } from 'react-intl
|
|
2
|
+
import { type WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
4
4
|
import { type TriggerProps } from '@atlaskit/popup';
|
|
5
5
|
import { type Value } from '@atlaskit/user-picker';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { type SerializedStyles } from '@emotion/react';
|
|
7
|
-
import { type WrappedComponentProps } from 'react-intl
|
|
7
|
+
import { type WrappedComponentProps } from 'react-intl';
|
|
8
8
|
import { type FormChildrenArgs, type MenuType, type ShareData, type ShareFormProps, TabType } from '../types';
|
|
9
9
|
export declare const formWrapperStyles: SerializedStyles;
|
|
10
10
|
export declare const formFooterStyles: SerializedStyles;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type WrappedComponentProps } from 'react-intl
|
|
2
|
+
import { type WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import { type FormChildrenArgs, type MenuType, type ShareData, type ShareFormProps, TabType } from '../types';
|
|
4
4
|
export type State = {
|
|
5
5
|
selectedMenuItem: MenuType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type MessageDescriptor } from 'react-intl
|
|
2
|
+
import { type MessageDescriptor } from 'react-intl';
|
|
3
3
|
export declare const ShareMenuItem: ({ iconName, labelId, onClickHandler, }: {
|
|
4
4
|
iconName: React.ReactNode;
|
|
5
5
|
labelId: MessageDescriptor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type WrappedComponentProps } from 'react-intl
|
|
2
|
+
import { type WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import { type LoadOptions, type OptionData, type Props as SmartUserPickerProps, type Value } from '@atlaskit/smart-user-picker';
|
|
4
4
|
import { type ConfigResponse, type ProductName, type ShareError, type UserPickerOptions } from '../types';
|
|
5
5
|
export declare const REQUIRED = "REQUIRED";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type MessageDescriptor } from 'react-intl
|
|
1
|
+
import { type MessageDescriptor } from 'react-intl';
|
|
2
2
|
import type { Props as SmartUserPickerProps } from '@atlaskit/smart-user-picker';
|
|
3
3
|
export type UserPickerOptions = Pick<SmartUserPickerProps, 'onFocus' | 'header' | 'includeNonLicensedUsers'> & {
|
|
4
4
|
/**
|
|
@@ -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 {};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
import { type WrappedComponentProps } from 'react-intl
|
|
7
|
+
import { type WrappedComponentProps } from 'react-intl';
|
|
8
8
|
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
9
9
|
import { type TriggerProps } from '@atlaskit/popup';
|
|
10
10
|
import { type Value } from '@atlaskit/user-picker';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type WrappedComponentProps } from 'react-intl
|
|
2
|
+
import { type WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
4
4
|
import { type TriggerProps } from '@atlaskit/popup';
|
|
5
5
|
import { type Value } from '@atlaskit/user-picker';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { type SerializedStyles } from '@emotion/react';
|
|
7
|
-
import { type WrappedComponentProps } from 'react-intl
|
|
7
|
+
import { type WrappedComponentProps } from 'react-intl';
|
|
8
8
|
import { type FormChildrenArgs, type MenuType, type ShareData, type ShareFormProps, TabType } from '../types';
|
|
9
9
|
export declare const formWrapperStyles: SerializedStyles;
|
|
10
10
|
export declare const formFooterStyles: SerializedStyles;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type WrappedComponentProps } from 'react-intl
|
|
2
|
+
import { type WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import { type FormChildrenArgs, type MenuType, type ShareData, type ShareFormProps, TabType } from '../types';
|
|
4
4
|
export type State = {
|
|
5
5
|
selectedMenuItem: MenuType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type MessageDescriptor } from 'react-intl
|
|
2
|
+
import { type MessageDescriptor } from 'react-intl';
|
|
3
3
|
export declare const ShareMenuItem: ({ iconName, labelId, onClickHandler, }: {
|
|
4
4
|
iconName: React.ReactNode;
|
|
5
5
|
labelId: MessageDescriptor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type WrappedComponentProps } from 'react-intl
|
|
2
|
+
import { type WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import { type LoadOptions, type OptionData, type Props as SmartUserPickerProps, type Value } from '@atlaskit/smart-user-picker';
|
|
4
4
|
import { type ConfigResponse, type ProductName, type ShareError, type UserPickerOptions } from '../types';
|
|
5
5
|
export declare const REQUIRED = "REQUIRED";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type MessageDescriptor } from 'react-intl
|
|
1
|
+
import { type MessageDescriptor } from 'react-intl';
|
|
2
2
|
import type { Props as SmartUserPickerProps } from '@atlaskit/smart-user-picker';
|
|
3
3
|
export type UserPickerOptions = Pick<SmartUserPickerProps, 'onFocus' | 'header' | 'includeNonLicensedUsers'> & {
|
|
4
4
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/share",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.1",
|
|
4
4
|
"description": "Fabric Share Element",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -44,42 +44,43 @@
|
|
|
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.3.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
|
-
"@atlaskit/popper": "^7.
|
|
52
|
-
"@atlaskit/popup": "^4.
|
|
53
|
-
"@atlaskit/portal": "^5.
|
|
51
|
+
"@atlaskit/popper": "^7.2.0",
|
|
52
|
+
"@atlaskit/popup": "^4.17.0",
|
|
53
|
+
"@atlaskit/portal": "^5.5.0",
|
|
54
54
|
"@atlaskit/primitives": "^19.0.0",
|
|
55
|
-
"@atlaskit/smart-user-picker": "^
|
|
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": "^
|
|
61
|
+
"@atlaskit/tooltip": "^22.0.0",
|
|
62
62
|
"@atlaskit/ufo": "^0.4.0",
|
|
63
|
-
"@atlaskit/user-picker": "^
|
|
63
|
+
"@atlaskit/user-picker": "^12.0.0",
|
|
64
64
|
"@atlaskit/util-service-support": "^6.3.0",
|
|
65
65
|
"@babel/runtime": "^7.0.0",
|
|
66
66
|
"@emotion/react": "^11.7.1",
|
|
67
67
|
"fast-deep-equal": "^3.1.1",
|
|
68
68
|
"memoize-one": "^6.0.0",
|
|
69
|
-
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
70
69
|
"tiny-invariant": "^1.2.0"
|
|
71
70
|
},
|
|
72
71
|
"peerDependencies": {
|
|
73
|
-
"react": "^18.2.0"
|
|
72
|
+
"react": "^18.2.0",
|
|
73
|
+
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
77
|
-
"@atlaskit/flag": "^17.
|
|
77
|
+
"@atlaskit/flag": "^17.11.0",
|
|
78
78
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
79
79
|
"@testing-library/react": "^16.3.0",
|
|
80
80
|
"@testing-library/user-event": "^14.4.3",
|
|
81
81
|
"enzyme": "^3.10.0",
|
|
82
82
|
"react": "^18.2.0",
|
|
83
|
+
"react-intl": "^6.6.2",
|
|
83
84
|
"typescript": "5.9.2"
|
|
84
85
|
},
|
|
85
86
|
"keywords": [
|