@atlaskit/share 6.18.3 → 6.18.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/components/ShareDialogContainer.js +5 -18
- package/dist/cjs/components/UserPickerField.js +1 -4
- package/dist/cjs/components/analytics/analytics.js +2 -12
- package/dist/cjs/i18n.js +1 -3
- package/dist/es2019/components/ShareDialogContainer.js +1 -14
- package/dist/es2019/components/UserPickerField.js +1 -4
- package/dist/es2019/components/analytics/analytics.js +1 -9
- package/dist/es2019/i18n.js +1 -3
- package/dist/esm/components/ShareDialogContainer.js +6 -19
- package/dist/esm/components/UserPickerField.js +1 -4
- package/dist/esm/components/analytics/analytics.js +1 -11
- package/dist/esm/i18n.js +1 -3
- package/dist/types/components/CopyLinkButton.d.ts +1 -1
- package/dist/types/components/IntegrationForm.d.ts +1 -1
- package/dist/types/components/ShareDialogContainer.d.ts +10 -10
- package/dist/types/components/ShareForm.d.ts +2 -2
- package/dist/types/components/analytics/analytics.d.ts +0 -8
- package/dist/types/components/styles.d.ts +1 -1
- package/dist/types-ts4.5/components/CopyLinkButton.d.ts +1 -1
- package/dist/types-ts4.5/components/IntegrationForm.d.ts +1 -1
- package/dist/types-ts4.5/components/ShareDialogContainer.d.ts +10 -10
- package/dist/types-ts4.5/components/ShareForm.d.ts +2 -2
- package/dist/types-ts4.5/components/analytics/analytics.d.ts +0 -8
- package/dist/types-ts4.5/components/styles.d.ts +1 -1
- package/package.json +5 -8
package/CHANGELOG.md
CHANGED
|
@@ -72,7 +72,6 @@ var ShareDialogContainerInternal = exports.ShareDialogContainerInternal = /*#__P
|
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
(0, _defineProperty2.default)(_this, "fetchConfig", function () {
|
|
75
|
-
var startTime = Date.now();
|
|
76
75
|
_this.setState({
|
|
77
76
|
isFetchingConfig: true
|
|
78
77
|
}, /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
@@ -93,16 +92,10 @@ var ShareDialogContainerInternal = exports.ShareDialogContainerInternal = /*#__P
|
|
|
93
92
|
});
|
|
94
93
|
}
|
|
95
94
|
_ufoExperiences.renderShareDialogExp.success();
|
|
96
|
-
|
|
97
|
-
_this.createAndFireEvent((0, _analytics.shareConfigurationLoaded)({
|
|
98
|
-
disableSharingToEmails: config.disableSharingToEmails,
|
|
99
|
-
durationMs: Date.now() - startTime
|
|
100
|
-
}));
|
|
101
|
-
}
|
|
102
|
-
_context.next = 17;
|
|
95
|
+
_context.next = 15;
|
|
103
96
|
break;
|
|
104
|
-
case
|
|
105
|
-
_context.prev =
|
|
97
|
+
case 9:
|
|
98
|
+
_context.prev = 9;
|
|
106
99
|
_context.t0 = _context["catch"](0);
|
|
107
100
|
if (_this._isMounted) {
|
|
108
101
|
_this.setState({
|
|
@@ -117,17 +110,11 @@ var ShareDialogContainerInternal = exports.ShareDialogContainerInternal = /*#__P
|
|
|
117
110
|
});
|
|
118
111
|
}
|
|
119
112
|
(0, _ufoExperienceHelper.isValidFailedExperience)(_ufoExperiences.renderShareDialogExp, errObj);
|
|
120
|
-
|
|
121
|
-
_this.createAndFireEvent((0, _analytics.shareConfigurationLoadFailed)({
|
|
122
|
-
statusCode: _context.t0.code || _context.t0.status || _context.t0.statusCode,
|
|
123
|
-
durationMs: Date.now() - startTime
|
|
124
|
-
}));
|
|
125
|
-
}
|
|
126
|
-
case 17:
|
|
113
|
+
case 15:
|
|
127
114
|
case "end":
|
|
128
115
|
return _context.stop();
|
|
129
116
|
}
|
|
130
|
-
}, _callee, null, [[0,
|
|
117
|
+
}, _callee, null, [[0, 9]]);
|
|
131
118
|
})));
|
|
132
119
|
});
|
|
133
120
|
(0, _defineProperty2.default)(_this, "handleSubmitShare", function (_ref2) {
|
|
@@ -309,10 +309,7 @@ var UserPickerFieldComponent = exports.UserPickerFieldComponent = /*#__PURE__*/f
|
|
|
309
309
|
inputId: fieldProps.id
|
|
310
310
|
})), helperMessage && !wasValidationOrShareError && !isExtendedShareDialogEnabled && /*#__PURE__*/_react.default.createElement(_form.HelperMessage, {
|
|
311
311
|
testId: "user-picker"
|
|
312
|
-
}, helperMessage), !fieldValid && fieldValidationError === REQUIRED && /*#__PURE__*/_react.default.createElement(_form.ErrorMessage, null, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, requiredMessage)), shareError && shareError.errorCode && /*#__PURE__*/_react.default.createElement(_form.ErrorMessage, null, shareError.message, "\xA0", shareError.helpUrl &&
|
|
313
|
-
/*#__PURE__*/
|
|
314
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
315
|
-
_react.default.createElement(_link.default, {
|
|
312
|
+
}, helperMessage), !fieldValid && fieldValidationError === REQUIRED && /*#__PURE__*/_react.default.createElement(_form.ErrorMessage, null, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, requiredMessage)), shareError && shareError.errorCode && /*#__PURE__*/_react.default.createElement(_form.ErrorMessage, null, shareError.message, "\xA0", shareError.helpUrl && /*#__PURE__*/_react.default.createElement(_link.default, {
|
|
316
313
|
target: "_blank",
|
|
317
314
|
href: shareError.helpUrl,
|
|
318
315
|
rel: "help"
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.shortUrlRequested = exports.shortUrlGenerated = exports.shareTriggerButtonClicked = exports.shareTabClicked = exports.shareSplitButtonEvent = exports.shareMenuItemClicked = exports.shareIntegrationButtonEvent = exports.
|
|
7
|
+
exports.shortUrlRequested = exports.shortUrlGenerated = exports.shareTriggerButtonClicked = exports.shareTabClicked = exports.shareSplitButtonEvent = exports.shareMenuItemClicked = exports.shareIntegrationButtonEvent = exports.screenEvent = exports.jiraPageSharedEvent = exports.formShareSubmitted = exports.errorEncountered = exports.copyLinkButtonClicked = exports.cancelShare = exports.INTEGRATION_MODAL_SOURCE = exports.CHANNEL_ID = exports.ANALYTICS_SOURCE = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _smartUserPicker = require("@atlaskit/smart-user-picker");
|
|
10
10
|
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; }
|
|
@@ -13,7 +13,7 @@ var buildAttributes = function buildAttributes() {
|
|
|
13
13
|
var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
14
14
|
return _objectSpread({
|
|
15
15
|
packageName: "@atlaskit/share",
|
|
16
|
-
packageVersion: "
|
|
16
|
+
packageVersion: "6.18.4"
|
|
17
17
|
}, attributes);
|
|
18
18
|
};
|
|
19
19
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -93,16 +93,6 @@ var shortUrlGenerated = exports.shortUrlGenerated = function shortUrlGenerated(s
|
|
|
93
93
|
tooSlow: tooSlow
|
|
94
94
|
});
|
|
95
95
|
};
|
|
96
|
-
var shareConfigurationLoaded = exports.shareConfigurationLoaded = function shareConfigurationLoaded(attributes) {
|
|
97
|
-
return createEvent('track', ANALYTICS_SOURCE, 'loaded', 'shareConfiguration', undefined, _objectSpread({
|
|
98
|
-
source: ANALYTICS_SOURCE
|
|
99
|
-
}, attributes));
|
|
100
|
-
};
|
|
101
|
-
var shareConfigurationLoadFailed = exports.shareConfigurationLoadFailed = function shareConfigurationLoadFailed(attributes) {
|
|
102
|
-
return createEvent('track', ANALYTICS_SOURCE, 'error', 'shareConfiguration', undefined, _objectSpread({
|
|
103
|
-
source: ANALYTICS_SOURCE
|
|
104
|
-
}, attributes));
|
|
105
|
-
};
|
|
106
96
|
var copyLinkButtonClicked = exports.copyLinkButtonClicked = function copyLinkButtonClicked(_ref2) {
|
|
107
97
|
var start = _ref2.start,
|
|
108
98
|
shareContentType = _ref2.shareContentType,
|
package/dist/cjs/i18n.js
CHANGED
|
@@ -219,9 +219,7 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
219
219
|
},
|
|
220
220
|
shareSuccessMessage: {
|
|
221
221
|
id: 'fabric.elements.share.success.message',
|
|
222
|
-
defaultMessage:
|
|
223
|
-
// eslint-disable-next-line @atlassian/i18n/no-complex-selectors
|
|
224
|
-
'{object, select,' + 'blogpost {Blog post shared}' + 'board {Board shared}' + 'calendar {Calendar shared}' + 'draft {Draft shared}' +
|
|
222
|
+
defaultMessage: '{object, select,' + 'blogpost {Blog post shared}' + 'board {Board shared}' + 'calendar {Calendar shared}' + 'draft {Draft shared}' +
|
|
225
223
|
// this is a placeholder for Invite to edit in Confluence
|
|
226
224
|
'filter {Filter shared}' + 'issue {Issue shared}' + 'summary {Summary shared}' + 'list {List shared}' + 'timeline {Timeline shared}' + 'form {Form shared}' + 'media {Media shared}' + 'page {Page shared}' + 'project {Project shared}' + 'pullrequest {Pull Request shared}' + 'question {Question shared}' + 'report {Report shared}' + 'repository {Repository shared}' + 'request {Request shared}' + 'roadmap {Timeline shared}' + 'site {Site shared}' + 'space {Space shared}' + 'other {Link Shared}' + '}',
|
|
227
225
|
description: 'Default text for share success message displayed in a flag'
|
|
@@ -9,7 +9,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
9
9
|
import { AtlassianUrlShortenerClient } from '../clients/AtlassianUrlShortenerClient';
|
|
10
10
|
import { ShareServiceClient } from '../clients/ShareServiceClient';
|
|
11
11
|
import { messages } from '../i18n';
|
|
12
|
-
import { CHANNEL_ID, copyLinkButtonClicked, errorEncountered,
|
|
12
|
+
import { CHANNEL_ID, copyLinkButtonClicked, errorEncountered, shortUrlGenerated, shortUrlRequested } from './analytics/analytics';
|
|
13
13
|
import { isValidFailedExperience } from './analytics/ufoExperienceHelper';
|
|
14
14
|
import { renderShareDialogExp } from './analytics/ufoExperiences';
|
|
15
15
|
import ErrorBoundary from './ErrorBoundary';
|
|
@@ -48,7 +48,6 @@ export class ShareDialogContainerInternal extends React.Component {
|
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
_defineProperty(this, "fetchConfig", () => {
|
|
51
|
-
const startTime = Date.now();
|
|
52
51
|
this.setState({
|
|
53
52
|
isFetchingConfig: true
|
|
54
53
|
}, async () => {
|
|
@@ -62,12 +61,6 @@ export class ShareDialogContainerInternal extends React.Component {
|
|
|
62
61
|
});
|
|
63
62
|
}
|
|
64
63
|
renderShareDialogExp.success();
|
|
65
|
-
if (fg('jira-warepil-track-sharing-to-email-disabled')) {
|
|
66
|
-
this.createAndFireEvent(shareConfigurationLoaded({
|
|
67
|
-
disableSharingToEmails: config.disableSharingToEmails,
|
|
68
|
-
durationMs: Date.now() - startTime
|
|
69
|
-
}));
|
|
70
|
-
}
|
|
71
64
|
} catch (error) {
|
|
72
65
|
if (this._isMounted) {
|
|
73
66
|
this.setState({
|
|
@@ -85,12 +78,6 @@ export class ShareDialogContainerInternal extends React.Component {
|
|
|
85
78
|
};
|
|
86
79
|
}
|
|
87
80
|
isValidFailedExperience(renderShareDialogExp, errObj);
|
|
88
|
-
if (fg('jira-warepil-track-sharing-to-email-disabled')) {
|
|
89
|
-
this.createAndFireEvent(shareConfigurationLoadFailed({
|
|
90
|
-
statusCode: error.code || error.status || error.statusCode,
|
|
91
|
-
durationMs: Date.now() - startTime
|
|
92
|
-
}));
|
|
93
|
-
}
|
|
94
81
|
}
|
|
95
82
|
});
|
|
96
83
|
});
|
|
@@ -265,10 +265,7 @@ export class UserPickerFieldComponent extends React.Component {
|
|
|
265
265
|
inputId: fieldProps.id
|
|
266
266
|
})), helperMessage && !wasValidationOrShareError && !isExtendedShareDialogEnabled && /*#__PURE__*/React.createElement(HelperMessage, {
|
|
267
267
|
testId: "user-picker"
|
|
268
|
-
}, helperMessage), !fieldValid && fieldValidationError === REQUIRED && /*#__PURE__*/React.createElement(ErrorMessage, null, /*#__PURE__*/React.createElement(FormattedMessage, requiredMessage)), shareError && shareError.errorCode && /*#__PURE__*/React.createElement(ErrorMessage, null, shareError.message, "\xA0", shareError.helpUrl &&
|
|
269
|
-
/*#__PURE__*/
|
|
270
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
271
|
-
React.createElement(Link, {
|
|
268
|
+
}, helperMessage), !fieldValid && fieldValidationError === REQUIRED && /*#__PURE__*/React.createElement(ErrorMessage, null, /*#__PURE__*/React.createElement(FormattedMessage, requiredMessage)), shareError && shareError.errorCode && /*#__PURE__*/React.createElement(ErrorMessage, null, shareError.message, "\xA0", shareError.helpUrl && /*#__PURE__*/React.createElement(Link, {
|
|
272
269
|
target: "_blank",
|
|
273
270
|
href: shareError.helpUrl,
|
|
274
271
|
rel: "help"
|
|
@@ -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: "6.18.4",
|
|
5
5
|
...attributes
|
|
6
6
|
});
|
|
7
7
|
const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
|
|
@@ -54,14 +54,6 @@ export const shortUrlGenerated = (start, tooSlow) => createEvent('operational',
|
|
|
54
54
|
duration: duration(start),
|
|
55
55
|
tooSlow
|
|
56
56
|
});
|
|
57
|
-
export const shareConfigurationLoaded = attributes => createEvent('track', ANALYTICS_SOURCE, 'loaded', 'shareConfiguration', undefined, {
|
|
58
|
-
source: ANALYTICS_SOURCE,
|
|
59
|
-
...attributes
|
|
60
|
-
});
|
|
61
|
-
export const shareConfigurationLoadFailed = attributes => createEvent('track', ANALYTICS_SOURCE, 'error', 'shareConfiguration', undefined, {
|
|
62
|
-
source: ANALYTICS_SOURCE,
|
|
63
|
-
...attributes
|
|
64
|
-
});
|
|
65
57
|
export const copyLinkButtonClicked = ({
|
|
66
58
|
start,
|
|
67
59
|
shareContentType,
|
package/dist/es2019/i18n.js
CHANGED
|
@@ -213,9 +213,7 @@ export const messages = defineMessages({
|
|
|
213
213
|
},
|
|
214
214
|
shareSuccessMessage: {
|
|
215
215
|
id: 'fabric.elements.share.success.message',
|
|
216
|
-
defaultMessage:
|
|
217
|
-
// eslint-disable-next-line @atlassian/i18n/no-complex-selectors
|
|
218
|
-
'{object, select,' + 'blogpost {Blog post shared}' + 'board {Board shared}' + 'calendar {Calendar shared}' + 'draft {Draft shared}' +
|
|
216
|
+
defaultMessage: '{object, select,' + 'blogpost {Blog post shared}' + 'board {Board shared}' + 'calendar {Calendar shared}' + 'draft {Draft shared}' +
|
|
219
217
|
// this is a placeholder for Invite to edit in Confluence
|
|
220
218
|
'filter {Filter shared}' + 'issue {Issue shared}' + 'summary {Summary shared}' + 'list {List shared}' + 'timeline {Timeline shared}' + 'form {Form shared}' + 'media {Media shared}' + 'page {Page shared}' + 'project {Project shared}' + 'pullrequest {Pull Request shared}' + 'question {Question shared}' + 'report {Report shared}' + 'repository {Repository shared}' + 'request {Request shared}' + 'roadmap {Timeline shared}' + 'site {Site shared}' + 'space {Space shared}' + 'other {Link Shared}' + '}',
|
|
221
219
|
description: 'Default text for share success message displayed in a flag'
|
|
@@ -24,7 +24,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
24
24
|
import { AtlassianUrlShortenerClient } from '../clients/AtlassianUrlShortenerClient';
|
|
25
25
|
import { ShareServiceClient } from '../clients/ShareServiceClient';
|
|
26
26
|
import { messages } from '../i18n';
|
|
27
|
-
import { CHANNEL_ID, copyLinkButtonClicked, errorEncountered,
|
|
27
|
+
import { CHANNEL_ID, copyLinkButtonClicked, errorEncountered, shortUrlGenerated, shortUrlRequested } from './analytics/analytics';
|
|
28
28
|
import { isValidFailedExperience } from './analytics/ufoExperienceHelper';
|
|
29
29
|
import { renderShareDialogExp } from './analytics/ufoExperiences';
|
|
30
30
|
import ErrorBoundary from './ErrorBoundary';
|
|
@@ -65,7 +65,6 @@ export var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Componen
|
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
_defineProperty(_this, "fetchConfig", function () {
|
|
68
|
-
var startTime = Date.now();
|
|
69
68
|
_this.setState({
|
|
70
69
|
isFetchingConfig: true
|
|
71
70
|
}, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
@@ -86,16 +85,10 @@ export var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Componen
|
|
|
86
85
|
});
|
|
87
86
|
}
|
|
88
87
|
renderShareDialogExp.success();
|
|
89
|
-
|
|
90
|
-
_this.createAndFireEvent(shareConfigurationLoaded({
|
|
91
|
-
disableSharingToEmails: config.disableSharingToEmails,
|
|
92
|
-
durationMs: Date.now() - startTime
|
|
93
|
-
}));
|
|
94
|
-
}
|
|
95
|
-
_context.next = 17;
|
|
88
|
+
_context.next = 15;
|
|
96
89
|
break;
|
|
97
|
-
case
|
|
98
|
-
_context.prev =
|
|
90
|
+
case 9:
|
|
91
|
+
_context.prev = 9;
|
|
99
92
|
_context.t0 = _context["catch"](0);
|
|
100
93
|
if (_this._isMounted) {
|
|
101
94
|
_this.setState({
|
|
@@ -110,17 +103,11 @@ export var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Componen
|
|
|
110
103
|
});
|
|
111
104
|
}
|
|
112
105
|
isValidFailedExperience(renderShareDialogExp, errObj);
|
|
113
|
-
|
|
114
|
-
_this.createAndFireEvent(shareConfigurationLoadFailed({
|
|
115
|
-
statusCode: _context.t0.code || _context.t0.status || _context.t0.statusCode,
|
|
116
|
-
durationMs: Date.now() - startTime
|
|
117
|
-
}));
|
|
118
|
-
}
|
|
119
|
-
case 17:
|
|
106
|
+
case 15:
|
|
120
107
|
case "end":
|
|
121
108
|
return _context.stop();
|
|
122
109
|
}
|
|
123
|
-
}, _callee, null, [[0,
|
|
110
|
+
}, _callee, null, [[0, 9]]);
|
|
124
111
|
})));
|
|
125
112
|
});
|
|
126
113
|
_defineProperty(_this, "handleSubmitShare", function (_ref2) {
|
|
@@ -300,10 +300,7 @@ export var UserPickerFieldComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
300
300
|
inputId: fieldProps.id
|
|
301
301
|
})), helperMessage && !wasValidationOrShareError && !isExtendedShareDialogEnabled && /*#__PURE__*/React.createElement(HelperMessage, {
|
|
302
302
|
testId: "user-picker"
|
|
303
|
-
}, helperMessage), !fieldValid && fieldValidationError === REQUIRED && /*#__PURE__*/React.createElement(ErrorMessage, null, /*#__PURE__*/React.createElement(FormattedMessage, requiredMessage)), shareError && shareError.errorCode && /*#__PURE__*/React.createElement(ErrorMessage, null, shareError.message, "\xA0", shareError.helpUrl &&
|
|
304
|
-
/*#__PURE__*/
|
|
305
|
-
// eslint-disable-next-line @atlassian/i18n/no-literal-string-in-jsx
|
|
306
|
-
React.createElement(Link, {
|
|
303
|
+
}, helperMessage), !fieldValid && fieldValidationError === REQUIRED && /*#__PURE__*/React.createElement(ErrorMessage, null, /*#__PURE__*/React.createElement(FormattedMessage, requiredMessage)), shareError && shareError.errorCode && /*#__PURE__*/React.createElement(ErrorMessage, null, shareError.message, "\xA0", shareError.helpUrl && /*#__PURE__*/React.createElement(Link, {
|
|
307
304
|
target: "_blank",
|
|
308
305
|
href: shareError.helpUrl,
|
|
309
306
|
rel: "help"
|
|
@@ -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: "6.18.4"
|
|
10
10
|
}, attributes);
|
|
11
11
|
};
|
|
12
12
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -86,16 +86,6 @@ export var shortUrlGenerated = function shortUrlGenerated(start, tooSlow) {
|
|
|
86
86
|
tooSlow: tooSlow
|
|
87
87
|
});
|
|
88
88
|
};
|
|
89
|
-
export var shareConfigurationLoaded = function shareConfigurationLoaded(attributes) {
|
|
90
|
-
return createEvent('track', ANALYTICS_SOURCE, 'loaded', 'shareConfiguration', undefined, _objectSpread({
|
|
91
|
-
source: ANALYTICS_SOURCE
|
|
92
|
-
}, attributes));
|
|
93
|
-
};
|
|
94
|
-
export var shareConfigurationLoadFailed = function shareConfigurationLoadFailed(attributes) {
|
|
95
|
-
return createEvent('track', ANALYTICS_SOURCE, 'error', 'shareConfiguration', undefined, _objectSpread({
|
|
96
|
-
source: ANALYTICS_SOURCE
|
|
97
|
-
}, attributes));
|
|
98
|
-
};
|
|
99
89
|
export var copyLinkButtonClicked = function copyLinkButtonClicked(_ref2) {
|
|
100
90
|
var start = _ref2.start,
|
|
101
91
|
shareContentType = _ref2.shareContentType,
|
package/dist/esm/i18n.js
CHANGED
|
@@ -213,9 +213,7 @@ export var messages = defineMessages({
|
|
|
213
213
|
},
|
|
214
214
|
shareSuccessMessage: {
|
|
215
215
|
id: 'fabric.elements.share.success.message',
|
|
216
|
-
defaultMessage:
|
|
217
|
-
// eslint-disable-next-line @atlassian/i18n/no-complex-selectors
|
|
218
|
-
'{object, select,' + 'blogpost {Blog post shared}' + 'board {Board shared}' + 'calendar {Calendar shared}' + 'draft {Draft shared}' +
|
|
216
|
+
defaultMessage: '{object, select,' + 'blogpost {Blog post shared}' + 'board {Board shared}' + 'calendar {Calendar shared}' + 'draft {Draft shared}' +
|
|
219
217
|
// this is a placeholder for Invite to edit in Confluence
|
|
220
218
|
'filter {Filter shared}' + 'issue {Issue shared}' + 'summary {Summary shared}' + 'list {List shared}' + 'timeline {Timeline shared}' + 'form {Form shared}' + 'media {Media shared}' + 'page {Page shared}' + 'project {Project shared}' + 'pullrequest {Pull Request shared}' + 'question {Question shared}' + 'report {Report shared}' + 'repository {Repository shared}' + 'request {Request shared}' + 'roadmap {Timeline shared}' + 'site {Site shared}' + 'space {Space shared}' + 'other {Link Shared}' + '}',
|
|
221
219
|
description: 'Default text for share success message displayed in a flag'
|
|
@@ -6,7 +6,7 @@ import React, { type ReactElement } from 'react';
|
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import { type TriggerProps } from '@atlaskit/popup';
|
|
8
8
|
export declare const AUTO_DISMISS_MS: number;
|
|
9
|
-
export declare const messageContainerStyle: import("@emotion/
|
|
9
|
+
export declare const messageContainerStyle: import("@emotion/utils").SerializedStyles;
|
|
10
10
|
type InputProps = {
|
|
11
11
|
label: string;
|
|
12
12
|
text: string;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import { type ContentProps } from '../types';
|
|
8
|
-
export declare const formWrapperStyle: import("@emotion/
|
|
8
|
+
export declare const formWrapperStyle: import("@emotion/utils").SerializedStyles;
|
|
9
9
|
export type IntegrationFormProps = {
|
|
10
10
|
changeTab?: (index: number) => void;
|
|
11
11
|
Content: React.ComponentType<ContentProps> | null;
|
|
@@ -54,8 +54,8 @@ export declare class ShareDialogContainerInternal extends React.Component<ShareD
|
|
|
54
54
|
*/
|
|
55
55
|
export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Omit<Pick<Omit<ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, never> & {
|
|
56
56
|
integrationMode?: import("../types/ShareEntities").IntegrationMode | undefined;
|
|
57
|
-
shareIntegrations?: Array<import("
|
|
58
|
-
additionalTabs?: Array<import("
|
|
57
|
+
shareIntegrations?: Array<import("..").Integration> | undefined;
|
|
58
|
+
additionalTabs?: Array<import("..").AdditionalTab> | undefined;
|
|
59
59
|
builtInTabContentWidth?: number | undefined;
|
|
60
60
|
copyTooltipText?: string | undefined;
|
|
61
61
|
isPublicLink?: boolean | undefined;
|
|
@@ -69,12 +69,12 @@ export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Omit<
|
|
|
69
69
|
productAttributes?: import("packages/smart-experiences/smart-user-picker/dist/types/types").ProductAttributes | undefined;
|
|
70
70
|
additionalUserFields?: React.ReactNode;
|
|
71
71
|
isExtendedShareDialogEnabled?: boolean | undefined;
|
|
72
|
-
CustomSubmitButton?: React.FC<import("
|
|
72
|
+
CustomSubmitButton?: React.FC<import("..").RenderCustomSubmitButtonProps> | undefined;
|
|
73
73
|
bottomMessage?: React.ReactNode;
|
|
74
74
|
customFooter?: React.ReactNode;
|
|
75
75
|
customHeader?: React.ReactNode;
|
|
76
76
|
customTriggerButtonIcon?: React.ComponentType<import("@atlaskit/icon").NewCoreIconProps> | undefined;
|
|
77
|
-
dialogPlacement?: import("
|
|
77
|
+
dialogPlacement?: import("..").DialogPlacement | undefined;
|
|
78
78
|
dialogZIndex?: number | undefined;
|
|
79
79
|
formatCopyLink?: ((origin: OriginTracing, link: string) => string) | undefined;
|
|
80
80
|
isAutoOpenDialog?: boolean | undefined;
|
|
@@ -87,9 +87,9 @@ export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Omit<
|
|
|
87
87
|
onSubmit?: ((formValues: ShareData) => void | Promise<void>) | undefined;
|
|
88
88
|
onTriggerButtonClick?: (() => void) | undefined;
|
|
89
89
|
originTracingFactory?: OriginTracingFactory | undefined;
|
|
90
|
-
product?: import("
|
|
91
|
-
productId?: import("
|
|
92
|
-
renderCustomTriggerButton?: import("
|
|
90
|
+
product?: import("..").ProductName | undefined;
|
|
91
|
+
productId?: import("..").ProductId | undefined;
|
|
92
|
+
renderCustomTriggerButton?: import("..").RenderCustomTriggerButton | undefined;
|
|
93
93
|
shareAri?: string | undefined;
|
|
94
94
|
shareClient?: ShareClient | undefined;
|
|
95
95
|
shareContentId?: string | undefined;
|
|
@@ -103,12 +103,12 @@ export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Omit<
|
|
|
103
103
|
shareTitle?: string | undefined;
|
|
104
104
|
shortLinkData?: ShortenRequest | undefined;
|
|
105
105
|
shouldCloseOnEscapePress?: boolean | undefined;
|
|
106
|
-
showFlags?: ((flags: Array<import("
|
|
106
|
+
showFlags?: ((flags: Array<import("..").Flag>) => void) | undefined;
|
|
107
107
|
tabIndex?: number | undefined;
|
|
108
108
|
triggerButtonAppearance?: "default" | "subtle" | "primary" | "discovery" | undefined;
|
|
109
109
|
triggerButtonIcon?: React.ComponentType<import("@atlaskit/icon").NewCoreIconProps> | undefined;
|
|
110
|
-
triggerButtonStyle?: import("
|
|
111
|
-
triggerButtonTooltipPosition?: import("
|
|
110
|
+
triggerButtonStyle?: import("..").ShareButtonStyle | undefined;
|
|
111
|
+
triggerButtonTooltipPosition?: import("..").TooltipPosition | undefined;
|
|
112
112
|
triggerButtonTooltipText?: React.ReactNode;
|
|
113
113
|
urlShortenerClient?: UrlShortenerClient | undefined;
|
|
114
114
|
useUrlShortener?: boolean | undefined;
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { type WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
import { type FormChildrenArgs, type MenuType, type ShareData, type ShareFormProps, TabType } from '../types';
|
|
8
|
-
export declare const formWrapperStyles: import("@emotion/
|
|
9
|
-
export declare const formFooterStyles: import("@emotion/
|
|
8
|
+
export declare const formWrapperStyles: import("@emotion/utils").SerializedStyles;
|
|
9
|
+
export declare const formFooterStyles: import("@emotion/utils").SerializedStyles;
|
|
10
10
|
export type State = {
|
|
11
11
|
selectedMenuItem: MenuType;
|
|
12
12
|
selectedTab: TabType;
|
|
@@ -17,14 +17,6 @@ export declare const shareMenuItemClicked: (subjectId: MenuItemSubjectIdType, sh
|
|
|
17
17
|
export declare const cancelShare: (start: number) => AnalyticsEventPayload;
|
|
18
18
|
export declare const shortUrlRequested: () => AnalyticsEventPayload;
|
|
19
19
|
export declare const shortUrlGenerated: (start: number, tooSlow: boolean) => AnalyticsEventPayload;
|
|
20
|
-
export declare const shareConfigurationLoaded: (attributes: {
|
|
21
|
-
disableSharingToEmails: boolean | undefined;
|
|
22
|
-
durationMs: number;
|
|
23
|
-
}) => AnalyticsEventPayload;
|
|
24
|
-
export declare const shareConfigurationLoadFailed: (attributes: {
|
|
25
|
-
durationMs: number;
|
|
26
|
-
statusCode: string | number | undefined;
|
|
27
|
-
}) => AnalyticsEventPayload;
|
|
28
20
|
export declare const copyLinkButtonClicked: ({ start, shareContentType, shareContentSubType, shareContentId, shareOrigin, isPublicLink, ari, }: {
|
|
29
21
|
ari?: string;
|
|
30
22
|
isPublicLink?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const MAX_PICKER_HEIGHT = 102;
|
|
3
|
-
declare const StyledButton: React.ForwardRefExoticComponent<Omit<import("@atlaskit/button
|
|
3
|
+
declare const StyledButton: React.ForwardRefExoticComponent<Omit<import("@atlaskit/button").BaseProps, "overlay"> & import("@atlaskit/button").CustomThemeButtonOwnProps & React.RefAttributes<HTMLElement>>;
|
|
4
4
|
export default StyledButton;
|
|
@@ -6,7 +6,7 @@ import React, { type ReactElement } from 'react';
|
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import { type TriggerProps } from '@atlaskit/popup';
|
|
8
8
|
export declare const AUTO_DISMISS_MS: number;
|
|
9
|
-
export declare const messageContainerStyle: import("@emotion/
|
|
9
|
+
export declare const messageContainerStyle: import("@emotion/utils").SerializedStyles;
|
|
10
10
|
type InputProps = {
|
|
11
11
|
label: string;
|
|
12
12
|
text: string;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
7
|
import { type ContentProps } from '../types';
|
|
8
|
-
export declare const formWrapperStyle: import("@emotion/
|
|
8
|
+
export declare const formWrapperStyle: import("@emotion/utils").SerializedStyles;
|
|
9
9
|
export type IntegrationFormProps = {
|
|
10
10
|
changeTab?: (index: number) => void;
|
|
11
11
|
Content: React.ComponentType<ContentProps> | null;
|
|
@@ -54,8 +54,8 @@ export declare class ShareDialogContainerInternal extends React.Component<ShareD
|
|
|
54
54
|
*/
|
|
55
55
|
export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Omit<Pick<Omit<ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, never> & {
|
|
56
56
|
integrationMode?: import("../types/ShareEntities").IntegrationMode | undefined;
|
|
57
|
-
shareIntegrations?: Array<import("
|
|
58
|
-
additionalTabs?: Array<import("
|
|
57
|
+
shareIntegrations?: Array<import("..").Integration> | undefined;
|
|
58
|
+
additionalTabs?: Array<import("..").AdditionalTab> | undefined;
|
|
59
59
|
builtInTabContentWidth?: number | undefined;
|
|
60
60
|
copyTooltipText?: string | undefined;
|
|
61
61
|
isPublicLink?: boolean | undefined;
|
|
@@ -69,12 +69,12 @@ export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Omit<
|
|
|
69
69
|
productAttributes?: import("packages/smart-experiences/smart-user-picker/dist/types/types").ProductAttributes | undefined;
|
|
70
70
|
additionalUserFields?: React.ReactNode;
|
|
71
71
|
isExtendedShareDialogEnabled?: boolean | undefined;
|
|
72
|
-
CustomSubmitButton?: React.FC<import("
|
|
72
|
+
CustomSubmitButton?: React.FC<import("..").RenderCustomSubmitButtonProps> | undefined;
|
|
73
73
|
bottomMessage?: React.ReactNode;
|
|
74
74
|
customFooter?: React.ReactNode;
|
|
75
75
|
customHeader?: React.ReactNode;
|
|
76
76
|
customTriggerButtonIcon?: React.ComponentType<import("@atlaskit/icon").NewCoreIconProps> | undefined;
|
|
77
|
-
dialogPlacement?: import("
|
|
77
|
+
dialogPlacement?: import("..").DialogPlacement | undefined;
|
|
78
78
|
dialogZIndex?: number | undefined;
|
|
79
79
|
formatCopyLink?: ((origin: OriginTracing, link: string) => string) | undefined;
|
|
80
80
|
isAutoOpenDialog?: boolean | undefined;
|
|
@@ -87,9 +87,9 @@ export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Omit<
|
|
|
87
87
|
onSubmit?: ((formValues: ShareData) => void | Promise<void>) | undefined;
|
|
88
88
|
onTriggerButtonClick?: (() => void) | undefined;
|
|
89
89
|
originTracingFactory?: OriginTracingFactory | undefined;
|
|
90
|
-
product?: import("
|
|
91
|
-
productId?: import("
|
|
92
|
-
renderCustomTriggerButton?: import("
|
|
90
|
+
product?: import("..").ProductName | undefined;
|
|
91
|
+
productId?: import("..").ProductId | undefined;
|
|
92
|
+
renderCustomTriggerButton?: import("..").RenderCustomTriggerButton | undefined;
|
|
93
93
|
shareAri?: string | undefined;
|
|
94
94
|
shareClient?: ShareClient | undefined;
|
|
95
95
|
shareContentId?: string | undefined;
|
|
@@ -103,12 +103,12 @@ export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Omit<
|
|
|
103
103
|
shareTitle?: string | undefined;
|
|
104
104
|
shortLinkData?: ShortenRequest | undefined;
|
|
105
105
|
shouldCloseOnEscapePress?: boolean | undefined;
|
|
106
|
-
showFlags?: ((flags: Array<import("
|
|
106
|
+
showFlags?: ((flags: Array<import("..").Flag>) => void) | undefined;
|
|
107
107
|
tabIndex?: number | undefined;
|
|
108
108
|
triggerButtonAppearance?: "default" | "subtle" | "primary" | "discovery" | undefined;
|
|
109
109
|
triggerButtonIcon?: React.ComponentType<import("@atlaskit/icon").NewCoreIconProps> | undefined;
|
|
110
|
-
triggerButtonStyle?: import("
|
|
111
|
-
triggerButtonTooltipPosition?: import("
|
|
110
|
+
triggerButtonStyle?: import("..").ShareButtonStyle | undefined;
|
|
111
|
+
triggerButtonTooltipPosition?: import("..").TooltipPosition | undefined;
|
|
112
112
|
triggerButtonTooltipText?: React.ReactNode;
|
|
113
113
|
urlShortenerClient?: UrlShortenerClient | undefined;
|
|
114
114
|
useUrlShortener?: boolean | undefined;
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { type WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
import { type FormChildrenArgs, type MenuType, type ShareData, type ShareFormProps, TabType } from '../types';
|
|
8
|
-
export declare const formWrapperStyles: import("@emotion/
|
|
9
|
-
export declare const formFooterStyles: import("@emotion/
|
|
8
|
+
export declare const formWrapperStyles: import("@emotion/utils").SerializedStyles;
|
|
9
|
+
export declare const formFooterStyles: import("@emotion/utils").SerializedStyles;
|
|
10
10
|
export type State = {
|
|
11
11
|
selectedMenuItem: MenuType;
|
|
12
12
|
selectedTab: TabType;
|
|
@@ -17,14 +17,6 @@ export declare const shareMenuItemClicked: (subjectId: MenuItemSubjectIdType, sh
|
|
|
17
17
|
export declare const cancelShare: (start: number) => AnalyticsEventPayload;
|
|
18
18
|
export declare const shortUrlRequested: () => AnalyticsEventPayload;
|
|
19
19
|
export declare const shortUrlGenerated: (start: number, tooSlow: boolean) => AnalyticsEventPayload;
|
|
20
|
-
export declare const shareConfigurationLoaded: (attributes: {
|
|
21
|
-
disableSharingToEmails: boolean | undefined;
|
|
22
|
-
durationMs: number;
|
|
23
|
-
}) => AnalyticsEventPayload;
|
|
24
|
-
export declare const shareConfigurationLoadFailed: (attributes: {
|
|
25
|
-
durationMs: number;
|
|
26
|
-
statusCode: string | number | undefined;
|
|
27
|
-
}) => AnalyticsEventPayload;
|
|
28
20
|
export declare const copyLinkButtonClicked: ({ start, shareContentType, shareContentSubType, shareContentId, shareOrigin, isPublicLink, ari, }: {
|
|
29
21
|
ari?: string;
|
|
30
22
|
isPublicLink?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare const MAX_PICKER_HEIGHT = 102;
|
|
3
|
-
declare const StyledButton: React.ForwardRefExoticComponent<Omit<import("@atlaskit/button
|
|
3
|
+
declare const StyledButton: React.ForwardRefExoticComponent<Omit<import("@atlaskit/button").BaseProps, "overlay"> & import("@atlaskit/button").CustomThemeButtonOwnProps & React.RefAttributes<HTMLElement>>;
|
|
4
4
|
export default StyledButton;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/share",
|
|
3
|
-
"version": "6.18.
|
|
3
|
+
"version": "6.18.5",
|
|
4
4
|
"description": "Fabric Share Element",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"@atlaskit/css": "^0.19.0",
|
|
44
44
|
"@atlaskit/dropdown-menu": "^16.4.0",
|
|
45
45
|
"@atlaskit/form": "^15.3.0",
|
|
46
|
-
"@atlaskit/heading": "^5.
|
|
47
|
-
"@atlaskit/icon": "^
|
|
46
|
+
"@atlaskit/heading": "^5.3.0",
|
|
47
|
+
"@atlaskit/icon": "^31.0.0",
|
|
48
48
|
"@atlaskit/link": "^3.3.0",
|
|
49
49
|
"@atlaskit/menu": "^8.4.0",
|
|
50
50
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@atlaskit/popup": "^4.13.0",
|
|
53
53
|
"@atlaskit/portal": "^5.2.0",
|
|
54
54
|
"@atlaskit/primitives": "^18.0.0",
|
|
55
|
-
"@atlaskit/smart-user-picker": "^
|
|
55
|
+
"@atlaskit/smart-user-picker": "^9.0.0",
|
|
56
56
|
"@atlaskit/spinner": "^19.0.0",
|
|
57
57
|
"@atlaskit/tabs": "^18.3.0",
|
|
58
58
|
"@atlaskit/textarea": "^8.2.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@atlaskit/tokens": "^11.0.0",
|
|
61
61
|
"@atlaskit/tooltip": "^20.14.0",
|
|
62
62
|
"@atlaskit/ufo": "^0.4.0",
|
|
63
|
-
"@atlaskit/user-picker": "^11.
|
|
63
|
+
"@atlaskit/user-picker": "^11.22.0",
|
|
64
64
|
"@atlaskit/util-service-support": "^6.3.0",
|
|
65
65
|
"@babel/runtime": "^7.0.0",
|
|
66
66
|
"@emotion/react": "^11.7.1",
|
|
@@ -134,9 +134,6 @@
|
|
|
134
134
|
"page_shared_event_from_share_dialogue": {
|
|
135
135
|
"type": "boolean"
|
|
136
136
|
},
|
|
137
|
-
"jira-warepil-track-sharing-to-email-disabled": {
|
|
138
|
-
"type": "boolean"
|
|
139
|
-
},
|
|
140
137
|
"jfind-copy-link-modal-invite-tooltip": {
|
|
141
138
|
"type": "boolean"
|
|
142
139
|
},
|