@atlaskit/share 4.18.10 → 4.19.0
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 +20 -0
- package/dist/cjs/components/CopyLinkButton.js +10 -4
- package/dist/cjs/components/IntegrationButton.js +4 -1
- package/dist/cjs/components/IntegrationForm.js +4 -1
- package/dist/cjs/components/LazyShareForm/LazyShareForm.js +6 -1
- package/dist/cjs/components/LazyShareForm/lazy.js +4 -1
- package/dist/cjs/components/ShareDialogContainer.js +2 -0
- package/dist/cjs/components/ShareDialogWithTrigger.js +6 -1
- package/dist/cjs/components/ShareForm.js +8 -3
- package/dist/cjs/components/ShareFormWrapper/styled.js +4 -1
- package/dist/cjs/components/ShareHeader.js +4 -1
- package/dist/cjs/components/SplitButton.js +4 -1
- package/dist/cjs/components/UserPickerField.js +4 -2
- package/dist/cjs/components/analytics/analytics.js +1 -1
- package/dist/es2019/components/CopyLinkButton.js +11 -5
- package/dist/es2019/components/IntegrationButton.js +4 -1
- package/dist/es2019/components/IntegrationForm.js +4 -1
- package/dist/es2019/components/LazyShareForm/LazyShareForm.js +6 -1
- package/dist/es2019/components/LazyShareForm/lazy.js +4 -1
- package/dist/es2019/components/ShareDialogContainer.js +2 -0
- package/dist/es2019/components/ShareDialogWithTrigger.js +6 -1
- package/dist/es2019/components/ShareForm.js +8 -3
- package/dist/es2019/components/ShareFormWrapper/styled.js +4 -1
- package/dist/es2019/components/ShareHeader.js +4 -1
- package/dist/es2019/components/SplitButton.js +4 -1
- package/dist/es2019/components/UserPickerField.js +4 -2
- package/dist/es2019/components/analytics/analytics.js +1 -1
- package/dist/esm/components/CopyLinkButton.js +11 -5
- package/dist/esm/components/IntegrationButton.js +4 -1
- package/dist/esm/components/IntegrationForm.js +4 -1
- package/dist/esm/components/LazyShareForm/LazyShareForm.js +6 -1
- package/dist/esm/components/LazyShareForm/lazy.js +4 -1
- package/dist/esm/components/ShareDialogContainer.js +2 -0
- package/dist/esm/components/ShareDialogWithTrigger.js +6 -1
- package/dist/esm/components/ShareForm.js +8 -3
- package/dist/esm/components/ShareFormWrapper/styled.js +4 -1
- package/dist/esm/components/ShareHeader.js +4 -1
- package/dist/esm/components/SplitButton.js +4 -1
- package/dist/esm/components/UserPickerField.js +4 -2
- package/dist/esm/components/analytics/analytics.js +1 -1
- package/dist/types/components/CopyLinkButton.d.ts +5 -1
- package/dist/types/components/IntegrationButton.d.ts +4 -1
- package/dist/types/components/IntegrationForm.d.ts +4 -1
- package/dist/types/components/LazyShareForm/LazyShareForm.d.ts +1 -1
- package/dist/types/components/ShareDialogWithTrigger.d.ts +4 -1
- package/dist/types/components/ShareForm.d.ts +4 -1
- package/dist/types/components/ShareFormWrapper/styled.d.ts +4 -1
- package/dist/types/components/ShareHeader.d.ts +4 -1
- package/dist/types/components/SplitButton.d.ts +4 -1
- package/dist/types/components/UserPickerField.d.ts +2 -1
- package/dist/types/types/ShareDialogContainer.d.ts +2 -1
- package/dist/types/types/ShareDialogWithTrigger.d.ts +1 -1
- package/dist/types/types/ShareForm.d.ts +1 -1
- package/dist/types-ts4.5/components/CopyLinkButton.d.ts +5 -1
- package/dist/types-ts4.5/components/IntegrationButton.d.ts +4 -1
- package/dist/types-ts4.5/components/IntegrationForm.d.ts +4 -1
- package/dist/types-ts4.5/components/LazyShareForm/LazyShareForm.d.ts +1 -1
- package/dist/types-ts4.5/components/ShareDialogWithTrigger.d.ts +4 -1
- package/dist/types-ts4.5/components/ShareForm.d.ts +4 -1
- package/dist/types-ts4.5/components/ShareFormWrapper/styled.d.ts +4 -1
- package/dist/types-ts4.5/components/ShareHeader.d.ts +4 -1
- package/dist/types-ts4.5/components/SplitButton.d.ts +4 -1
- package/dist/types-ts4.5/components/UserPickerField.d.ts +2 -1
- package/dist/types-ts4.5/types/ShareDialogContainer.d.ts +2 -1
- package/dist/types-ts4.5/types/ShareDialogWithTrigger.d.ts +1 -1
- package/dist/types-ts4.5/types/ShareForm.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/share
|
|
2
2
|
|
|
3
|
+
## 4.19.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#121686](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/121686)
|
|
8
|
+
[`806f67cf6655e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/806f67cf6655e) -
|
|
9
|
+
[ux] passing an optional productAttributes
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 4.18.11
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#121516](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/121516)
|
|
20
|
+
[`d2d28eeaef085`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d2d28eeaef085) -
|
|
21
|
+
[ux] Announce copied to clipboard text when copy link button is clicked for screen readers
|
|
22
|
+
|
|
3
23
|
## 4.18.10
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -25,7 +25,10 @@ var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
|
25
25
|
var _styled = require("./ShareFormWrapper/styled");
|
|
26
26
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
27
27
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
28
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
28
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
29
|
+
* @jsxRuntime classic
|
|
30
|
+
* @jsx jsx
|
|
31
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
29
32
|
var Z_INDEX = _constants.layers.modal();
|
|
30
33
|
var AUTO_DISMISS_SECONDS = 8;
|
|
31
34
|
var AUTO_DISMISS_MS = exports.AUTO_DISMISS_MS = AUTO_DISMISS_SECONDS * 1000;
|
|
@@ -53,6 +56,7 @@ function (props, ref) {
|
|
|
53
56
|
"aria-hidden": true,
|
|
54
57
|
ref: ref,
|
|
55
58
|
value: props.text,
|
|
59
|
+
"aria-label": props.label,
|
|
56
60
|
readOnly: true
|
|
57
61
|
});
|
|
58
62
|
});
|
|
@@ -143,14 +147,16 @@ var CopyLinkButton = exports.CopyLinkButton = /*#__PURE__*/function (_React$Comp
|
|
|
143
147
|
"aria-live": "assertive"
|
|
144
148
|
}, shouldShowCopiedMessage && copiedToClipboardText), (0, _react2.jsx)(HiddenInput, {
|
|
145
149
|
ref: this.inputRef,
|
|
146
|
-
text: this.props.link
|
|
150
|
+
text: this.props.link,
|
|
151
|
+
label: copiedToClipboardText
|
|
147
152
|
}), (0, _react2.jsx)(_popup.default, {
|
|
148
153
|
zIndex: Z_INDEX,
|
|
149
154
|
autoFocus: false,
|
|
150
155
|
content: function content() {
|
|
151
156
|
return (0, _react2.jsx)(_styled.InlineDialogContentWrapper, null, (0, _react2.jsx)("div", {
|
|
152
157
|
css: messageContainerStyle,
|
|
153
|
-
"data-testid": "message-container"
|
|
158
|
+
"data-testid": "message-container",
|
|
159
|
+
"aria-hidden": true
|
|
154
160
|
}, (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(_checkCircle.default, {
|
|
155
161
|
label: "",
|
|
156
162
|
primaryColor: "var(--ds-icon-success, ".concat(_colors.G300, ")")
|
|
@@ -167,7 +173,7 @@ var CopyLinkButton = exports.CopyLinkButton = /*#__PURE__*/function (_React$Comp
|
|
|
167
173
|
position: "bottom-start"
|
|
168
174
|
}, _this2.renderTriggerButton(triggerProps)) : _this2.renderTriggerButton(triggerProps);
|
|
169
175
|
},
|
|
170
|
-
shouldRenderToParent: (0, _platformFeatureFlags.
|
|
176
|
+
shouldRenderToParent: (0, _platformFeatureFlags.fg)('platform.enable-appropriate-reading-order-in-share-dialog_fu49') ? true : false
|
|
171
177
|
}));
|
|
172
178
|
}
|
|
173
179
|
}]);
|
|
@@ -13,7 +13,10 @@ var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom
|
|
|
13
13
|
var _colors = require("@atlaskit/theme/colors");
|
|
14
14
|
var _excluded = ["text", "textColor", "IntegrationIcon"];
|
|
15
15
|
var _templateObject, _templateObject2;
|
|
16
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* @jsxRuntime classic
|
|
18
|
+
* @jsx jsx
|
|
19
|
+
*/
|
|
17
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
21
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/design-system/no-css-tagged-template-expression -- Ignored via go/DSP-18766
|
|
19
22
|
var integrationButtonCopyWrapperStyle = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tdisplay: flex;\n\tjustify-content: left;\n"])));
|
|
@@ -10,7 +10,10 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
var _typography = require("@atlaskit/theme/typography");
|
|
12
12
|
var _templateObject;
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* @jsxRuntime classic
|
|
15
|
+
* @jsx jsx
|
|
16
|
+
*/
|
|
14
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/design-system/no-css-tagged-template-expression -- Ignored via go/DSP-18766
|
|
16
19
|
var formWrapperStyle = exports.formWrapperStyle = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t[class^='FormHeader__FormHeaderWrapper'] {\n\t\th1:first-child {\n\t\t\t", "\n\n\t\t\t> span {\n\t\t\t\t/* jira has a class override font settings on h1 > span in gh-custom-field-pickers.css */\n\t\t\t\tfont-size: inherit !important;\n\t\t\t\tline-height: inherit !important;\n\t\t\t\tletter-spacing: inherit !important;\n\t\t\t}\n\t\t}\n\t}\n\n\t[class^='FormSection__FormSectionWrapper'] {\n\t\tmargin-top: ", ";\n\t}\n\n\t[class^='FormFooter__FormFooterWrapper'] {\n\t\tjustify-content: space-between;\n\t\tmargin-top: ", ";\n\t\tmargin-bottom: ", ";\n\t}\n\n\t[class^='Field__FieldWrapper']:not(:first-child) {\n\t\tmargin-top: ", ";\n\t}\n"])), (0, _typography.h500)(), "var(--ds-space-0, 0px)", "var(--ds-space-150, 12px)", "var(--ds-space-300, 24px)", "var(--ds-space-150, 12px)");
|
|
@@ -16,7 +16,10 @@ var _IntegrationForm = require("../IntegrationForm");
|
|
|
16
16
|
var _ShareForm = require("../ShareForm");
|
|
17
17
|
var _ShareFormWrapper = require("../ShareFormWrapper");
|
|
18
18
|
var _utils = require("../utils");
|
|
19
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* @jsxRuntime classic
|
|
21
|
+
* @jsx jsx
|
|
22
|
+
*/
|
|
20
23
|
/** @jsxFrag */
|
|
21
24
|
|
|
22
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -46,6 +49,7 @@ function LazyShareForm(props) {
|
|
|
46
49
|
bottomMessage = props.bottomMessage,
|
|
47
50
|
submitButtonLabel = props.submitButtonLabel,
|
|
48
51
|
product = props.product,
|
|
52
|
+
productAttributes = props.productAttributes,
|
|
49
53
|
customFooter = props.customFooter,
|
|
50
54
|
enableSmartUserPicker = props.enableSmartUserPicker,
|
|
51
55
|
loggedInAccountId = props.loggedInAccountId,
|
|
@@ -108,6 +112,7 @@ function LazyShareForm(props) {
|
|
|
108
112
|
config: config,
|
|
109
113
|
submitButtonLabel: submitButtonLabel,
|
|
110
114
|
product: product,
|
|
115
|
+
productAttributes: productAttributes,
|
|
111
116
|
enableSmartUserPicker: enableSmartUserPicker,
|
|
112
117
|
loggedInAccountId: loggedInAccountId,
|
|
113
118
|
cloudId: cloudId,
|
|
@@ -12,7 +12,10 @@ var _reactLooselyLazy = require("react-loosely-lazy");
|
|
|
12
12
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
13
13
|
var _ShareFormWrapper = require("../ShareFormWrapper");
|
|
14
14
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
15
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } /**
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2.default)(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; } /**
|
|
16
|
+
* @jsxRuntime classic
|
|
17
|
+
* @jsx jsx
|
|
18
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
19
|
var spinnerWrapperStyles = (0, _react2.css)({
|
|
17
20
|
width: '100%',
|
|
18
21
|
height: '100%',
|
|
@@ -344,6 +344,7 @@ var ShareDialogContainerInternal = exports.ShareDialogContainerInternal = /*#__P
|
|
|
344
344
|
bottomMessage = _this$props2.bottomMessage,
|
|
345
345
|
shareeAction = _this$props2.shareeAction,
|
|
346
346
|
product = _this$props2.product,
|
|
347
|
+
productAttributes = _this$props2.productAttributes,
|
|
347
348
|
customFooter = _this$props2.customFooter,
|
|
348
349
|
onTriggerButtonClick = _this$props2.onTriggerButtonClick,
|
|
349
350
|
onUserSelectionChange = _this$props2.onUserSelectionChange,
|
|
@@ -394,6 +395,7 @@ var ShareDialogContainerInternal = exports.ShareDialogContainerInternal = /*#__P
|
|
|
394
395
|
bottomMessage: bottomMessage,
|
|
395
396
|
submitButtonLabel: shareeAction === 'edit' && /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.inviteTriggerButtonText),
|
|
396
397
|
product: product,
|
|
398
|
+
productAttributes: productAttributes,
|
|
397
399
|
customFooter: customFooter,
|
|
398
400
|
onUserSelectionChange: onUserSelectionChange,
|
|
399
401
|
shareFieldsFooter: shareFieldsFooter,
|
|
@@ -36,7 +36,10 @@ var _utils = require("./utils");
|
|
|
36
36
|
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; }
|
|
37
37
|
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) { (0, _defineProperty2.default)(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; }
|
|
38
38
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
39
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
39
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
40
|
+
* @jsxRuntime classic
|
|
41
|
+
* @jsx jsx
|
|
42
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
40
43
|
// eslint-disable-next-line no-duplicate-imports
|
|
41
44
|
var shareButtonWrapperStyles = (0, _react2.css)({
|
|
42
45
|
display: 'inline-flex',
|
|
@@ -532,6 +535,7 @@ var ShareDialogWithTriggerInternal = exports.ShareDialogWithTriggerInternal = /*
|
|
|
532
535
|
bottomMessage = _this$props7.bottomMessage,
|
|
533
536
|
submitButtonLabel = _this$props7.submitButtonLabel,
|
|
534
537
|
product = _this$props7.product,
|
|
538
|
+
productAttributes = _this$props7.productAttributes,
|
|
535
539
|
customFooter = _this$props7.customFooter,
|
|
536
540
|
enableSmartUserPicker = _this$props7.enableSmartUserPicker,
|
|
537
541
|
loggedInAccountId = _this$props7.loggedInAccountId,
|
|
@@ -582,6 +586,7 @@ var ShareDialogWithTriggerInternal = exports.ShareDialogWithTriggerInternal = /*
|
|
|
582
586
|
setIsLoading: _this2.setIsLoading,
|
|
583
587
|
submitButtonLabel: submitButtonLabel,
|
|
584
588
|
product: product,
|
|
589
|
+
productAttributes: productAttributes,
|
|
585
590
|
enableSmartUserPicker: enableSmartUserPicker,
|
|
586
591
|
loggedInAccountId: loggedInAccountId,
|
|
587
592
|
cloudId: cloudId,
|
|
@@ -42,7 +42,10 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
42
42
|
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; }
|
|
43
43
|
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) { (0, _defineProperty2.default)(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; }
|
|
44
44
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
45
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
45
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
46
|
+
* @jsxRuntime classic
|
|
47
|
+
* @jsx jsx
|
|
48
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
46
49
|
var submitButtonWrapperStyles = (0, _react2.css)({
|
|
47
50
|
display: 'flex',
|
|
48
51
|
marginLeft: 'auto'
|
|
@@ -148,7 +151,8 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
148
151
|
isBrowseUsersDisabled = _this$props.isBrowseUsersDisabled,
|
|
149
152
|
formatMessage = _this$props.intl.formatMessage,
|
|
150
153
|
shareError = _this$props.shareError,
|
|
151
|
-
userPickerOptions = _this$props.userPickerOptions
|
|
154
|
+
userPickerOptions = _this$props.userPickerOptions,
|
|
155
|
+
productAttributes = _this$props.productAttributes;
|
|
152
156
|
return (0, _react2.jsx)(_analyticsNext.AnalyticsContext, {
|
|
153
157
|
data: {
|
|
154
158
|
source: _analytics.ANALYTICS_SOURCE
|
|
@@ -176,7 +180,8 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
176
180
|
orgId: orgId,
|
|
177
181
|
isBrowseUsersDisabled: isBrowseUsersDisabled,
|
|
178
182
|
shareError: shareError,
|
|
179
|
-
userPickerOptions: userPickerOptions
|
|
183
|
+
userPickerOptions: userPickerOptions,
|
|
184
|
+
productAttributes: productAttributes
|
|
180
185
|
})), (0, _react2.jsx)("div", {
|
|
181
186
|
css: formFieldStyles
|
|
182
187
|
}, (0, _react2.jsx)(_CommentField.CommentField, {
|
|
@@ -6,7 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.InlineDialogFormWrapper = exports.InlineDialogContentWrapper = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _ShareMenuItem = require("../ShareMenuItem");
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* @jsxRuntime classic
|
|
11
|
+
* @jsx jsx
|
|
12
|
+
*/
|
|
10
13
|
|
|
11
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
15
|
|
|
@@ -10,7 +10,10 @@ var _react2 = require("@emotion/react");
|
|
|
10
10
|
var _reactIntlNext = require("react-intl-next");
|
|
11
11
|
var _typography = require("@atlaskit/theme/typography");
|
|
12
12
|
var _i18n = require("../i18n");
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* @jsxRuntime classic
|
|
15
|
+
* @jsx jsx
|
|
16
|
+
*/
|
|
14
17
|
|
|
15
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
19
|
|
|
@@ -20,7 +20,10 @@ var _i18n = require("../i18n");
|
|
|
20
20
|
var _analytics = require("./analytics/analytics");
|
|
21
21
|
var _IntegrationButton = _interopRequireDefault(require("./IntegrationButton"));
|
|
22
22
|
var _excluded = ["triggerRef"];
|
|
23
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* @jsxRuntime classic
|
|
25
|
+
* @jsx jsx
|
|
26
|
+
*/
|
|
24
27
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
28
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
26
29
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -171,7 +171,8 @@ var UserPickerFieldComponent = exports.UserPickerFieldComponent = /*#__PURE__*/f
|
|
|
171
171
|
orgId = _this$props2.orgId,
|
|
172
172
|
enableSmartUserPicker = _this$props2.enableSmartUserPicker,
|
|
173
173
|
isBrowseUsersDisabled = _this$props2.isBrowseUsersDisabled,
|
|
174
|
-
userPickerOptions = _this$props2.userPickerOptions
|
|
174
|
+
userPickerOptions = _this$props2.userPickerOptions,
|
|
175
|
+
productAttributes = _this$props2.productAttributes;
|
|
175
176
|
if (!enableSmartUserPicker || isBrowseUsersDisabled) {
|
|
176
177
|
return {};
|
|
177
178
|
}
|
|
@@ -182,7 +183,8 @@ var UserPickerFieldComponent = exports.UserPickerFieldComponent = /*#__PURE__*/f
|
|
|
182
183
|
includeTeams: true,
|
|
183
184
|
includeGroups: true,
|
|
184
185
|
debounceTime: DEBOUNCE_MS,
|
|
185
|
-
orgId: orgId
|
|
186
|
+
orgId: orgId,
|
|
187
|
+
productAttributes: productAttributes
|
|
186
188
|
};
|
|
187
189
|
var externalUserBylineByProduct = {
|
|
188
190
|
confluence: intl.formatMessage(_i18n.messages.inviteToConfluence),
|
|
@@ -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: "4.
|
|
16
|
+
packageVersion: "4.19.0"
|
|
17
17
|
}, attributes);
|
|
18
18
|
};
|
|
19
19
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
import React from 'react';
|
|
4
7
|
|
|
5
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
9
|
import { css, jsx } from '@emotion/react';
|
|
7
10
|
import CheckCircleIcon from '@atlaskit/icon/glyph/check-circle';
|
|
8
11
|
import LinkFilledIcon from '@atlaskit/icon/glyph/link-filled';
|
|
9
|
-
import {
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
13
|
import Popup from '@atlaskit/popup';
|
|
11
14
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
12
15
|
import { G300 } from '@atlaskit/theme/colors';
|
|
@@ -41,6 +44,7 @@ export const HiddenInput = /*#__PURE__*/React.forwardRef(
|
|
|
41
44
|
"aria-hidden": true,
|
|
42
45
|
ref: ref,
|
|
43
46
|
value: props.text,
|
|
47
|
+
"aria-label": props.label,
|
|
44
48
|
readOnly: true
|
|
45
49
|
}));
|
|
46
50
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
@@ -121,13 +125,15 @@ export class CopyLinkButton extends React.Component {
|
|
|
121
125
|
"aria-live": "assertive"
|
|
122
126
|
}, shouldShowCopiedMessage && copiedToClipboardText), jsx(HiddenInput, {
|
|
123
127
|
ref: this.inputRef,
|
|
124
|
-
text: this.props.link
|
|
128
|
+
text: this.props.link,
|
|
129
|
+
label: copiedToClipboardText
|
|
125
130
|
}), jsx(Popup, {
|
|
126
131
|
zIndex: Z_INDEX,
|
|
127
132
|
autoFocus: false,
|
|
128
133
|
content: () => jsx(InlineDialogContentWrapper, null, jsx("div", {
|
|
129
134
|
css: messageContainerStyle,
|
|
130
|
-
"data-testid": "message-container"
|
|
135
|
+
"data-testid": "message-container",
|
|
136
|
+
"aria-hidden": true
|
|
131
137
|
}, jsx(React.Fragment, null, jsx(CheckCircleIcon, {
|
|
132
138
|
label: "",
|
|
133
139
|
primaryColor: `var(--ds-icon-success, ${G300})`
|
|
@@ -141,7 +147,7 @@ export class CopyLinkButton extends React.Component {
|
|
|
141
147
|
content: copyTooltipText,
|
|
142
148
|
position: "bottom-start"
|
|
143
149
|
}, this.renderTriggerButton(triggerProps)) : this.renderTriggerButton(triggerProps),
|
|
144
|
-
shouldRenderToParent:
|
|
150
|
+
shouldRenderToParent: fg('platform.enable-appropriate-reading-order-in-share-dialog_fu49') ? true : false
|
|
145
151
|
}));
|
|
146
152
|
}
|
|
147
153
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
2
5
|
/** @jsxFrag */
|
|
3
6
|
import React from 'react';
|
|
4
7
|
|
|
@@ -38,6 +41,7 @@ function LazyShareForm(props) {
|
|
|
38
41
|
bottomMessage,
|
|
39
42
|
submitButtonLabel,
|
|
40
43
|
product,
|
|
44
|
+
productAttributes,
|
|
41
45
|
customFooter,
|
|
42
46
|
enableSmartUserPicker,
|
|
43
47
|
loggedInAccountId,
|
|
@@ -104,6 +108,7 @@ function LazyShareForm(props) {
|
|
|
104
108
|
config: config,
|
|
105
109
|
submitButtonLabel: submitButtonLabel,
|
|
106
110
|
product: product,
|
|
111
|
+
productAttributes: productAttributes,
|
|
107
112
|
enableSmartUserPicker: enableSmartUserPicker,
|
|
108
113
|
loggedInAccountId: loggedInAccountId,
|
|
109
114
|
cloudId: cloudId,
|
|
@@ -290,6 +290,7 @@ export class ShareDialogContainerInternal extends React.Component {
|
|
|
290
290
|
bottomMessage,
|
|
291
291
|
shareeAction,
|
|
292
292
|
product,
|
|
293
|
+
productAttributes,
|
|
293
294
|
customFooter,
|
|
294
295
|
onTriggerButtonClick,
|
|
295
296
|
onUserSelectionChange,
|
|
@@ -342,6 +343,7 @@ export class ShareDialogContainerInternal extends React.Component {
|
|
|
342
343
|
bottomMessage: bottomMessage,
|
|
343
344
|
submitButtonLabel: shareeAction === 'edit' && /*#__PURE__*/React.createElement(FormattedMessage, messages.inviteTriggerButtonText),
|
|
344
345
|
product: product,
|
|
346
|
+
productAttributes: productAttributes,
|
|
345
347
|
customFooter: customFooter,
|
|
346
348
|
onUserSelectionChange: onUserSelectionChange,
|
|
347
349
|
shareFieldsFooter: shareFieldsFooter,
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
import React from 'react';
|
|
4
7
|
|
|
5
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -480,6 +483,7 @@ export class ShareDialogWithTriggerInternal extends React.PureComponent {
|
|
|
480
483
|
bottomMessage,
|
|
481
484
|
submitButtonLabel,
|
|
482
485
|
product,
|
|
486
|
+
productAttributes,
|
|
483
487
|
customFooter,
|
|
484
488
|
enableSmartUserPicker,
|
|
485
489
|
loggedInAccountId,
|
|
@@ -530,6 +534,7 @@ export class ShareDialogWithTriggerInternal extends React.PureComponent {
|
|
|
530
534
|
setIsLoading: this.setIsLoading,
|
|
531
535
|
submitButtonLabel: submitButtonLabel,
|
|
532
536
|
product: product,
|
|
537
|
+
productAttributes: productAttributes,
|
|
533
538
|
enableSmartUserPicker: enableSmartUserPicker,
|
|
534
539
|
loggedInAccountId: loggedInAccountId,
|
|
535
540
|
cloudId: cloudId,
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* @jsxRuntime classic
|
|
5
|
+
* @jsx jsx
|
|
6
|
+
*/
|
|
4
7
|
import React from 'react';
|
|
5
8
|
|
|
6
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -123,7 +126,8 @@ class InternalForm extends React.PureComponent {
|
|
|
123
126
|
formatMessage
|
|
124
127
|
},
|
|
125
128
|
shareError,
|
|
126
|
-
userPickerOptions
|
|
129
|
+
userPickerOptions,
|
|
130
|
+
productAttributes
|
|
127
131
|
} = this.props;
|
|
128
132
|
return jsx(AnalyticsContext, {
|
|
129
133
|
data: {
|
|
@@ -152,7 +156,8 @@ class InternalForm extends React.PureComponent {
|
|
|
152
156
|
orgId: orgId,
|
|
153
157
|
isBrowseUsersDisabled: isBrowseUsersDisabled,
|
|
154
158
|
shareError: shareError,
|
|
155
|
-
userPickerOptions: userPickerOptions
|
|
159
|
+
userPickerOptions: userPickerOptions,
|
|
160
|
+
productAttributes: productAttributes
|
|
156
161
|
})), jsx("div", {
|
|
157
162
|
css: formFieldStyles
|
|
158
163
|
}, jsx(CommentField, {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
3
6
|
import React, { useCallback } from 'react';
|
|
4
7
|
|
|
5
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -138,7 +138,8 @@ export class UserPickerFieldComponent extends React.Component {
|
|
|
138
138
|
orgId,
|
|
139
139
|
enableSmartUserPicker,
|
|
140
140
|
isBrowseUsersDisabled,
|
|
141
|
-
userPickerOptions
|
|
141
|
+
userPickerOptions,
|
|
142
|
+
productAttributes
|
|
142
143
|
} = this.props;
|
|
143
144
|
if (!enableSmartUserPicker || isBrowseUsersDisabled) {
|
|
144
145
|
return {};
|
|
@@ -150,7 +151,8 @@ export class UserPickerFieldComponent extends React.Component {
|
|
|
150
151
|
includeTeams: true,
|
|
151
152
|
includeGroups: true,
|
|
152
153
|
debounceTime: DEBOUNCE_MS,
|
|
153
|
-
orgId
|
|
154
|
+
orgId,
|
|
155
|
+
productAttributes
|
|
154
156
|
};
|
|
155
157
|
const externalUserBylineByProduct = {
|
|
156
158
|
confluence: intl.formatMessage(messages.inviteToConfluence),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isEmail, isExternalUser, isTeam, isUser } from '@atlaskit/smart-user-picker';
|
|
2
2
|
const buildAttributes = (attributes = {}) => ({
|
|
3
3
|
packageName: "@atlaskit/share",
|
|
4
|
-
packageVersion: "4.
|
|
4
|
+
packageVersion: "4.19.0",
|
|
5
5
|
...attributes
|
|
6
6
|
});
|
|
7
7
|
const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
|
|
@@ -7,14 +7,17 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* @jsxRuntime classic
|
|
12
|
+
* @jsx jsx
|
|
13
|
+
*/
|
|
11
14
|
import React from 'react';
|
|
12
15
|
|
|
13
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
17
|
import { css, jsx } from '@emotion/react';
|
|
15
18
|
import CheckCircleIcon from '@atlaskit/icon/glyph/check-circle';
|
|
16
19
|
import LinkFilledIcon from '@atlaskit/icon/glyph/link-filled';
|
|
17
|
-
import {
|
|
20
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
21
|
import Popup from '@atlaskit/popup';
|
|
19
22
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
20
23
|
import { G300 } from '@atlaskit/theme/colors';
|
|
@@ -49,6 +52,7 @@ function (props, ref) {
|
|
|
49
52
|
"aria-hidden": true,
|
|
50
53
|
ref: ref,
|
|
51
54
|
value: props.text,
|
|
55
|
+
"aria-label": props.label,
|
|
52
56
|
readOnly: true
|
|
53
57
|
});
|
|
54
58
|
});
|
|
@@ -139,14 +143,16 @@ export var CopyLinkButton = /*#__PURE__*/function (_React$Component) {
|
|
|
139
143
|
"aria-live": "assertive"
|
|
140
144
|
}, shouldShowCopiedMessage && copiedToClipboardText), jsx(HiddenInput, {
|
|
141
145
|
ref: this.inputRef,
|
|
142
|
-
text: this.props.link
|
|
146
|
+
text: this.props.link,
|
|
147
|
+
label: copiedToClipboardText
|
|
143
148
|
}), jsx(Popup, {
|
|
144
149
|
zIndex: Z_INDEX,
|
|
145
150
|
autoFocus: false,
|
|
146
151
|
content: function content() {
|
|
147
152
|
return jsx(InlineDialogContentWrapper, null, jsx("div", {
|
|
148
153
|
css: messageContainerStyle,
|
|
149
|
-
"data-testid": "message-container"
|
|
154
|
+
"data-testid": "message-container",
|
|
155
|
+
"aria-hidden": true
|
|
150
156
|
}, jsx(React.Fragment, null, jsx(CheckCircleIcon, {
|
|
151
157
|
label: "",
|
|
152
158
|
primaryColor: "var(--ds-icon-success, ".concat(G300, ")")
|
|
@@ -163,7 +169,7 @@ export var CopyLinkButton = /*#__PURE__*/function (_React$Component) {
|
|
|
163
169
|
position: "bottom-start"
|
|
164
170
|
}, _this2.renderTriggerButton(triggerProps)) : _this2.renderTriggerButton(triggerProps);
|
|
165
171
|
},
|
|
166
|
-
shouldRenderToParent:
|
|
172
|
+
shouldRenderToParent: fg('platform.enable-appropriate-reading-order-in-share-dialog_fu49') ? true : false
|
|
167
173
|
}));
|
|
168
174
|
}
|
|
169
175
|
}]);
|
|
@@ -2,7 +2,10 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
2
2
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
3
|
var _excluded = ["text", "textColor", "IntegrationIcon"];
|
|
4
4
|
var _templateObject, _templateObject2;
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* @jsxRuntime classic
|
|
7
|
+
* @jsx jsx
|
|
8
|
+
*/
|
|
6
9
|
import React from 'react';
|
|
7
10
|
|
|
8
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* @jsxRuntime classic
|
|
5
|
+
* @jsx jsx
|
|
6
|
+
*/
|
|
4
7
|
import React from 'react';
|
|
5
8
|
|
|
6
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
2
5
|
/** @jsxFrag */
|
|
3
6
|
import React from 'react';
|
|
4
7
|
|
|
@@ -37,6 +40,7 @@ function LazyShareForm(props) {
|
|
|
37
40
|
bottomMessage = props.bottomMessage,
|
|
38
41
|
submitButtonLabel = props.submitButtonLabel,
|
|
39
42
|
product = props.product,
|
|
43
|
+
productAttributes = props.productAttributes,
|
|
40
44
|
customFooter = props.customFooter,
|
|
41
45
|
enableSmartUserPicker = props.enableSmartUserPicker,
|
|
42
46
|
loggedInAccountId = props.loggedInAccountId,
|
|
@@ -99,6 +103,7 @@ function LazyShareForm(props) {
|
|
|
99
103
|
config: config,
|
|
100
104
|
submitButtonLabel: submitButtonLabel,
|
|
101
105
|
product: product,
|
|
106
|
+
productAttributes: productAttributes,
|
|
102
107
|
enableSmartUserPicker: enableSmartUserPicker,
|
|
103
108
|
loggedInAccountId: loggedInAccountId,
|
|
104
109
|
cloudId: cloudId,
|
|
@@ -337,6 +337,7 @@ export var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Componen
|
|
|
337
337
|
bottomMessage = _this$props2.bottomMessage,
|
|
338
338
|
shareeAction = _this$props2.shareeAction,
|
|
339
339
|
product = _this$props2.product,
|
|
340
|
+
productAttributes = _this$props2.productAttributes,
|
|
340
341
|
customFooter = _this$props2.customFooter,
|
|
341
342
|
onTriggerButtonClick = _this$props2.onTriggerButtonClick,
|
|
342
343
|
onUserSelectionChange = _this$props2.onUserSelectionChange,
|
|
@@ -387,6 +388,7 @@ export var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Componen
|
|
|
387
388
|
bottomMessage: bottomMessage,
|
|
388
389
|
submitButtonLabel: shareeAction === 'edit' && /*#__PURE__*/React.createElement(FormattedMessage, messages.inviteTriggerButtonText),
|
|
389
390
|
product: product,
|
|
391
|
+
productAttributes: productAttributes,
|
|
390
392
|
customFooter: customFooter,
|
|
391
393
|
onUserSelectionChange: onUserSelectionChange,
|
|
392
394
|
shareFieldsFooter: shareFieldsFooter,
|
|
@@ -11,7 +11,10 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
11
11
|
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; }
|
|
12
12
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
13
13
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* @jsxRuntime classic
|
|
16
|
+
* @jsx jsx
|
|
17
|
+
*/
|
|
15
18
|
import React from 'react';
|
|
16
19
|
|
|
17
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -531,6 +534,7 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
531
534
|
bottomMessage = _this$props7.bottomMessage,
|
|
532
535
|
submitButtonLabel = _this$props7.submitButtonLabel,
|
|
533
536
|
product = _this$props7.product,
|
|
537
|
+
productAttributes = _this$props7.productAttributes,
|
|
534
538
|
customFooter = _this$props7.customFooter,
|
|
535
539
|
enableSmartUserPicker = _this$props7.enableSmartUserPicker,
|
|
536
540
|
loggedInAccountId = _this$props7.loggedInAccountId,
|
|
@@ -581,6 +585,7 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
581
585
|
setIsLoading: _this2.setIsLoading,
|
|
582
586
|
submitButtonLabel: submitButtonLabel,
|
|
583
587
|
product: product,
|
|
588
|
+
productAttributes: productAttributes,
|
|
584
589
|
enableSmartUserPicker: enableSmartUserPicker,
|
|
585
590
|
loggedInAccountId: loggedInAccountId,
|
|
586
591
|
cloudId: cloudId,
|
|
@@ -10,7 +10,10 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
10
10
|
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; }
|
|
11
11
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
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
|
+
/**
|
|
14
|
+
* @jsxRuntime classic
|
|
15
|
+
* @jsx jsx
|
|
16
|
+
*/
|
|
14
17
|
import React from 'react';
|
|
15
18
|
|
|
16
19
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -141,7 +144,8 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
141
144
|
isBrowseUsersDisabled = _this$props.isBrowseUsersDisabled,
|
|
142
145
|
formatMessage = _this$props.intl.formatMessage,
|
|
143
146
|
shareError = _this$props.shareError,
|
|
144
|
-
userPickerOptions = _this$props.userPickerOptions
|
|
147
|
+
userPickerOptions = _this$props.userPickerOptions,
|
|
148
|
+
productAttributes = _this$props.productAttributes;
|
|
145
149
|
return jsx(AnalyticsContext, {
|
|
146
150
|
data: {
|
|
147
151
|
source: ANALYTICS_SOURCE
|
|
@@ -169,7 +173,8 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
169
173
|
orgId: orgId,
|
|
170
174
|
isBrowseUsersDisabled: isBrowseUsersDisabled,
|
|
171
175
|
shareError: shareError,
|
|
172
|
-
userPickerOptions: userPickerOptions
|
|
176
|
+
userPickerOptions: userPickerOptions,
|
|
177
|
+
productAttributes: productAttributes
|
|
173
178
|
})), jsx("div", {
|
|
174
179
|
css: formFieldStyles
|
|
175
180
|
}, jsx(CommentField, {
|
|
@@ -2,7 +2,10 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
var _excluded = ["triggerRef"];
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* @jsxRuntime classic
|
|
7
|
+
* @jsx jsx
|
|
8
|
+
*/
|
|
6
9
|
import React, { useCallback } from 'react';
|
|
7
10
|
|
|
8
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -161,7 +161,8 @@ export var UserPickerFieldComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
161
161
|
orgId = _this$props2.orgId,
|
|
162
162
|
enableSmartUserPicker = _this$props2.enableSmartUserPicker,
|
|
163
163
|
isBrowseUsersDisabled = _this$props2.isBrowseUsersDisabled,
|
|
164
|
-
userPickerOptions = _this$props2.userPickerOptions
|
|
164
|
+
userPickerOptions = _this$props2.userPickerOptions,
|
|
165
|
+
productAttributes = _this$props2.productAttributes;
|
|
165
166
|
if (!enableSmartUserPicker || isBrowseUsersDisabled) {
|
|
166
167
|
return {};
|
|
167
168
|
}
|
|
@@ -172,7 +173,8 @@ export var UserPickerFieldComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
172
173
|
includeTeams: true,
|
|
173
174
|
includeGroups: true,
|
|
174
175
|
debounceTime: DEBOUNCE_MS,
|
|
175
|
-
orgId: orgId
|
|
176
|
+
orgId: orgId,
|
|
177
|
+
productAttributes: productAttributes
|
|
176
178
|
};
|
|
177
179
|
var externalUserBylineByProduct = {
|
|
178
180
|
confluence: intl.formatMessage(messages.inviteToConfluence),
|
|
@@ -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: "4.
|
|
9
|
+
packageVersion: "4.19.0"
|
|
10
10
|
}, attributes);
|
|
11
11
|
};
|
|
12
12
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
2
5
|
import React, { type ReactElement } from 'react';
|
|
3
6
|
import { jsx } from '@emotion/react';
|
|
4
7
|
import { type TriggerProps } from '@atlaskit/popup';
|
|
@@ -6,6 +9,7 @@ export declare const AUTO_DISMISS_MS: number;
|
|
|
6
9
|
export declare const messageContainerStyle: import("@emotion/react").SerializedStyles;
|
|
7
10
|
type InputProps = {
|
|
8
11
|
text: string;
|
|
12
|
+
label: string;
|
|
9
13
|
};
|
|
10
14
|
export declare const HiddenInput: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
11
15
|
export type Props = {
|
|
@@ -2,7 +2,7 @@ import { jsx } from '@emotion/react';
|
|
|
2
2
|
import type { LoadOptions } from '@atlaskit/smart-user-picker';
|
|
3
3
|
import type { MenuType, ShareData, ShareDialogWithTriggerProps, ShareDialogWithTriggerStates } from '../../types';
|
|
4
4
|
import { type IntegrationFormProps } from '../IntegrationForm';
|
|
5
|
-
export type LazyShareFormProps = Pick<ShareDialogWithTriggerProps, 'copyLink' | 'config' | 'isFetchingConfig' | 'loadUserOptions' | 'shareFormTitle' | 'shareFormHelperMessage' | 'bottomMessage' | 'submitButtonLabel' | 'product' | 'customFooter' | 'enableSmartUserPicker' | 'loggedInAccountId' | 'cloudId' | 'shareFieldsFooter' | 'onUserSelectionChange' | 'isPublicLink' | 'copyTooltipText' | 'shareIntegrations' | 'integrationMode' | 'onDialogClose' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions' | 'isMenuItemSelected'> & Pick<ShareDialogWithTriggerStates, 'showIntegrationForm' | 'selectedIntegration' | 'isSharing' | 'shareError' | 'defaultValue'> & Pick<IntegrationFormProps, 'Content'> & {
|
|
5
|
+
export type LazyShareFormProps = Pick<ShareDialogWithTriggerProps, 'copyLink' | 'config' | 'isFetchingConfig' | 'loadUserOptions' | 'shareFormTitle' | 'shareFormHelperMessage' | 'bottomMessage' | 'submitButtonLabel' | 'product' | 'productAttributes' | 'customFooter' | 'enableSmartUserPicker' | 'loggedInAccountId' | 'cloudId' | 'shareFieldsFooter' | 'onUserSelectionChange' | 'isPublicLink' | 'copyTooltipText' | 'shareIntegrations' | 'integrationMode' | 'onDialogClose' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions' | 'isMenuItemSelected'> & Pick<ShareDialogWithTriggerStates, 'showIntegrationForm' | 'selectedIntegration' | 'isSharing' | 'shareError' | 'defaultValue'> & Pick<IntegrationFormProps, 'Content'> & {
|
|
6
6
|
onLinkCopy: () => void;
|
|
7
7
|
onDismiss: (data: ShareData) => void;
|
|
8
8
|
onSubmit: (data: ShareData) => void;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
2
5
|
import React from 'react';
|
|
3
6
|
import { type WrappedComponentProps } from 'react-intl-next';
|
|
4
7
|
import { type FormChildrenArgs, type MenuType, type ShareData, type ShareFormProps, TabType } from '../types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type WrappedComponentProps } from 'react-intl-next';
|
|
3
|
-
import { type LoadOptions, type OptionData, type Value } from '@atlaskit/smart-user-picker';
|
|
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";
|
|
6
6
|
export type Props = {
|
|
@@ -21,6 +21,7 @@ export type Props = {
|
|
|
21
21
|
isBrowseUsersDisabled?: boolean;
|
|
22
22
|
shareError?: ShareError;
|
|
23
23
|
userPickerOptions?: UserPickerOptions;
|
|
24
|
+
productAttributes?: SmartUserPickerProps['productAttributes'];
|
|
24
25
|
};
|
|
25
26
|
export declare class UserPickerFieldComponent extends React.Component<WrappedComponentProps & Props> {
|
|
26
27
|
private loadOptions;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { IconButtonProps } from '@atlaskit/button/new';
|
|
3
3
|
import type { IconProps } from '@atlaskit/icon';
|
|
4
|
-
import type { LoadOptions, Value } from '@atlaskit/smart-user-picker';
|
|
4
|
+
import type { LoadOptions, Props as SmartUserPickerProps, Value } from '@atlaskit/smart-user-picker';
|
|
5
5
|
import type { ShortenRequest, UrlShortenerClient } from '../clients/AtlassianUrlShortenerClient';
|
|
6
6
|
import type { ShareClient } from '../clients/ShareServiceClient';
|
|
7
7
|
import type { Flag } from './Flag';
|
|
@@ -134,6 +134,7 @@ export type ShareDialogContainerProps = {
|
|
|
134
134
|
* We use this prop to control different text messages in UI.
|
|
135
135
|
*/
|
|
136
136
|
product?: ProductName;
|
|
137
|
+
productAttributes?: SmartUserPickerProps['productAttributes'];
|
|
137
138
|
/**
|
|
138
139
|
* Footer for the share dialog.
|
|
139
140
|
*/
|
|
@@ -19,7 +19,7 @@ export type DialogPlacement = Placement;
|
|
|
19
19
|
* with the demo page and clearly visible options on that page.
|
|
20
20
|
*/
|
|
21
21
|
export type DialogBoundariesElement = 'viewport' | 'window' | 'scrollParent';
|
|
22
|
-
export type ShareDialogWithTriggerProps = Pick<ShareDialogContainerProps, 'onTriggerButtonClick' | 'isAutoOpenDialog' | 'shouldCloseOnEscapePress' | 'dialogPlacement' | 'loadUserOptions' | 'onDialogOpen' | 'onDialogClose' | 'onUserSelectionChange' | 'renderCustomTriggerButton' | 'shareContentType' | 'shareContentSubType' | 'shareContentId' | 'shareFormTitle' | 'shareFormHelperMessage' | 'showFlags' | 'enableSmartUserPicker' | 'loggedInAccountId' | 'triggerButtonAppearance' | 'triggerButtonIcon' | 'triggerButtonStyle' | 'triggerButtonTooltipPosition' | 'triggerButtonTooltipText' | 'cloudId' | 'bottomMessage' | 'product' | 'customFooter' | 'isCopyDisabled' | 'isPublicLink' | 'integrationMode' | 'isMenuItemSelected' | 'shareFieldsFooter' | 'shareIntegrations' | 'shareAri' | 'tabIndex' | 'copyTooltipText' | 'dialogZIndex' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions'> & {
|
|
22
|
+
export type ShareDialogWithTriggerProps = Pick<ShareDialogContainerProps, 'onTriggerButtonClick' | 'isAutoOpenDialog' | 'shouldCloseOnEscapePress' | 'dialogPlacement' | 'loadUserOptions' | 'onDialogOpen' | 'onDialogClose' | 'onUserSelectionChange' | 'renderCustomTriggerButton' | 'shareContentType' | 'shareContentSubType' | 'shareContentId' | 'shareFormTitle' | 'shareFormHelperMessage' | 'showFlags' | 'enableSmartUserPicker' | 'loggedInAccountId' | 'triggerButtonAppearance' | 'triggerButtonIcon' | 'triggerButtonStyle' | 'triggerButtonTooltipPosition' | 'triggerButtonTooltipText' | 'cloudId' | 'bottomMessage' | 'product' | 'productAttributes' | 'customFooter' | 'isCopyDisabled' | 'isPublicLink' | 'integrationMode' | 'isMenuItemSelected' | 'shareFieldsFooter' | 'shareIntegrations' | 'shareAri' | 'tabIndex' | 'copyTooltipText' | 'dialogZIndex' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions'> & {
|
|
23
23
|
config?: ConfigResponse;
|
|
24
24
|
isFetchingConfig?: boolean;
|
|
25
25
|
children?: RenderCustomTriggerButton;
|
|
@@ -5,7 +5,7 @@ import type { ProductName } from './Products';
|
|
|
5
5
|
import type { ShareData, ShareError } from './ShareContentState';
|
|
6
6
|
import type { ShareDialogContainerProps } from './ShareDialogContainer';
|
|
7
7
|
import { type MenuType } from './ShareEntities';
|
|
8
|
-
export type ShareFormProps = Pick<ShareDialogContainerProps, 'integrationMode' | 'shareIntegrations' | 'copyTooltipText' | 'isPublicLink' | 'onUserSelectionChange' | 'cloudId' | 'loggedInAccountId' | 'enableSmartUserPicker' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions'> & {
|
|
8
|
+
export type ShareFormProps = Pick<ShareDialogContainerProps, 'integrationMode' | 'shareIntegrations' | 'copyTooltipText' | 'isPublicLink' | 'onUserSelectionChange' | 'cloudId' | 'loggedInAccountId' | 'enableSmartUserPicker' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions' | 'productAttributes'> & {
|
|
9
9
|
config?: ConfigResponse;
|
|
10
10
|
isFetchingConfig?: boolean;
|
|
11
11
|
copyLink: string;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
2
5
|
import React, { type ReactElement } from 'react';
|
|
3
6
|
import { jsx } from '@emotion/react';
|
|
4
7
|
import { type TriggerProps } from '@atlaskit/popup';
|
|
@@ -6,6 +9,7 @@ export declare const AUTO_DISMISS_MS: number;
|
|
|
6
9
|
export declare const messageContainerStyle: import("@emotion/react").SerializedStyles;
|
|
7
10
|
type InputProps = {
|
|
8
11
|
text: string;
|
|
12
|
+
label: string;
|
|
9
13
|
};
|
|
10
14
|
export declare const HiddenInput: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
11
15
|
export type Props = {
|
|
@@ -2,7 +2,7 @@ import { jsx } from '@emotion/react';
|
|
|
2
2
|
import type { LoadOptions } from '@atlaskit/smart-user-picker';
|
|
3
3
|
import type { MenuType, ShareData, ShareDialogWithTriggerProps, ShareDialogWithTriggerStates } from '../../types';
|
|
4
4
|
import { type IntegrationFormProps } from '../IntegrationForm';
|
|
5
|
-
export type LazyShareFormProps = Pick<ShareDialogWithTriggerProps, 'copyLink' | 'config' | 'isFetchingConfig' | 'loadUserOptions' | 'shareFormTitle' | 'shareFormHelperMessage' | 'bottomMessage' | 'submitButtonLabel' | 'product' | 'customFooter' | 'enableSmartUserPicker' | 'loggedInAccountId' | 'cloudId' | 'shareFieldsFooter' | 'onUserSelectionChange' | 'isPublicLink' | 'copyTooltipText' | 'shareIntegrations' | 'integrationMode' | 'onDialogClose' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions' | 'isMenuItemSelected'> & Pick<ShareDialogWithTriggerStates, 'showIntegrationForm' | 'selectedIntegration' | 'isSharing' | 'shareError' | 'defaultValue'> & Pick<IntegrationFormProps, 'Content'> & {
|
|
5
|
+
export type LazyShareFormProps = Pick<ShareDialogWithTriggerProps, 'copyLink' | 'config' | 'isFetchingConfig' | 'loadUserOptions' | 'shareFormTitle' | 'shareFormHelperMessage' | 'bottomMessage' | 'submitButtonLabel' | 'product' | 'productAttributes' | 'customFooter' | 'enableSmartUserPicker' | 'loggedInAccountId' | 'cloudId' | 'shareFieldsFooter' | 'onUserSelectionChange' | 'isPublicLink' | 'copyTooltipText' | 'shareIntegrations' | 'integrationMode' | 'onDialogClose' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions' | 'isMenuItemSelected'> & Pick<ShareDialogWithTriggerStates, 'showIntegrationForm' | 'selectedIntegration' | 'isSharing' | 'shareError' | 'defaultValue'> & Pick<IntegrationFormProps, 'Content'> & {
|
|
6
6
|
onLinkCopy: () => void;
|
|
7
7
|
onDismiss: (data: ShareData) => void;
|
|
8
8
|
onSubmit: (data: ShareData) => void;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
2
5
|
import React from 'react';
|
|
3
6
|
import { type WrappedComponentProps } from 'react-intl-next';
|
|
4
7
|
import { type FormChildrenArgs, type MenuType, type ShareData, type ShareFormProps, TabType } from '../types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type WrappedComponentProps } from 'react-intl-next';
|
|
3
|
-
import { type LoadOptions, type OptionData, type Value } from '@atlaskit/smart-user-picker';
|
|
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";
|
|
6
6
|
export type Props = {
|
|
@@ -21,6 +21,7 @@ export type Props = {
|
|
|
21
21
|
isBrowseUsersDisabled?: boolean;
|
|
22
22
|
shareError?: ShareError;
|
|
23
23
|
userPickerOptions?: UserPickerOptions;
|
|
24
|
+
productAttributes?: SmartUserPickerProps['productAttributes'];
|
|
24
25
|
};
|
|
25
26
|
export declare class UserPickerFieldComponent extends React.Component<WrappedComponentProps & Props> {
|
|
26
27
|
private loadOptions;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { IconButtonProps } from '@atlaskit/button/new';
|
|
3
3
|
import type { IconProps } from '@atlaskit/icon';
|
|
4
|
-
import type { LoadOptions, Value } from '@atlaskit/smart-user-picker';
|
|
4
|
+
import type { LoadOptions, Props as SmartUserPickerProps, Value } from '@atlaskit/smart-user-picker';
|
|
5
5
|
import type { ShortenRequest, UrlShortenerClient } from '../clients/AtlassianUrlShortenerClient';
|
|
6
6
|
import type { ShareClient } from '../clients/ShareServiceClient';
|
|
7
7
|
import type { Flag } from './Flag';
|
|
@@ -134,6 +134,7 @@ export type ShareDialogContainerProps = {
|
|
|
134
134
|
* We use this prop to control different text messages in UI.
|
|
135
135
|
*/
|
|
136
136
|
product?: ProductName;
|
|
137
|
+
productAttributes?: SmartUserPickerProps['productAttributes'];
|
|
137
138
|
/**
|
|
138
139
|
* Footer for the share dialog.
|
|
139
140
|
*/
|
|
@@ -19,7 +19,7 @@ export type DialogPlacement = Placement;
|
|
|
19
19
|
* with the demo page and clearly visible options on that page.
|
|
20
20
|
*/
|
|
21
21
|
export type DialogBoundariesElement = 'viewport' | 'window' | 'scrollParent';
|
|
22
|
-
export type ShareDialogWithTriggerProps = Pick<ShareDialogContainerProps, 'onTriggerButtonClick' | 'isAutoOpenDialog' | 'shouldCloseOnEscapePress' | 'dialogPlacement' | 'loadUserOptions' | 'onDialogOpen' | 'onDialogClose' | 'onUserSelectionChange' | 'renderCustomTriggerButton' | 'shareContentType' | 'shareContentSubType' | 'shareContentId' | 'shareFormTitle' | 'shareFormHelperMessage' | 'showFlags' | 'enableSmartUserPicker' | 'loggedInAccountId' | 'triggerButtonAppearance' | 'triggerButtonIcon' | 'triggerButtonStyle' | 'triggerButtonTooltipPosition' | 'triggerButtonTooltipText' | 'cloudId' | 'bottomMessage' | 'product' | 'customFooter' | 'isCopyDisabled' | 'isPublicLink' | 'integrationMode' | 'isMenuItemSelected' | 'shareFieldsFooter' | 'shareIntegrations' | 'shareAri' | 'tabIndex' | 'copyTooltipText' | 'dialogZIndex' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions'> & {
|
|
22
|
+
export type ShareDialogWithTriggerProps = Pick<ShareDialogContainerProps, 'onTriggerButtonClick' | 'isAutoOpenDialog' | 'shouldCloseOnEscapePress' | 'dialogPlacement' | 'loadUserOptions' | 'onDialogOpen' | 'onDialogClose' | 'onUserSelectionChange' | 'renderCustomTriggerButton' | 'shareContentType' | 'shareContentSubType' | 'shareContentId' | 'shareFormTitle' | 'shareFormHelperMessage' | 'showFlags' | 'enableSmartUserPicker' | 'loggedInAccountId' | 'triggerButtonAppearance' | 'triggerButtonIcon' | 'triggerButtonStyle' | 'triggerButtonTooltipPosition' | 'triggerButtonTooltipText' | 'cloudId' | 'bottomMessage' | 'product' | 'productAttributes' | 'customFooter' | 'isCopyDisabled' | 'isPublicLink' | 'integrationMode' | 'isMenuItemSelected' | 'shareFieldsFooter' | 'shareIntegrations' | 'shareAri' | 'tabIndex' | 'copyTooltipText' | 'dialogZIndex' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions'> & {
|
|
23
23
|
config?: ConfigResponse;
|
|
24
24
|
isFetchingConfig?: boolean;
|
|
25
25
|
children?: RenderCustomTriggerButton;
|
|
@@ -5,7 +5,7 @@ import type { ProductName } from './Products';
|
|
|
5
5
|
import type { ShareData, ShareError } from './ShareContentState';
|
|
6
6
|
import type { ShareDialogContainerProps } from './ShareDialogContainer';
|
|
7
7
|
import { type MenuType } from './ShareEntities';
|
|
8
|
-
export type ShareFormProps = Pick<ShareDialogContainerProps, 'integrationMode' | 'shareIntegrations' | 'copyTooltipText' | 'isPublicLink' | 'onUserSelectionChange' | 'cloudId' | 'loggedInAccountId' | 'enableSmartUserPicker' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions'> & {
|
|
8
|
+
export type ShareFormProps = Pick<ShareDialogContainerProps, 'integrationMode' | 'shareIntegrations' | 'copyTooltipText' | 'isPublicLink' | 'onUserSelectionChange' | 'cloudId' | 'loggedInAccountId' | 'enableSmartUserPicker' | 'orgId' | 'isBrowseUsersDisabled' | 'userPickerOptions' | 'productAttributes'> & {
|
|
9
9
|
config?: ConfigResponse;
|
|
10
10
|
isFetchingConfig?: boolean;
|
|
11
11
|
copyLink: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/share",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.19.0",
|
|
4
4
|
"description": "Fabric Share Element",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
"@atlaskit/button": "^19.0.0",
|
|
46
46
|
"@atlaskit/dropdown-menu": "^12.14.0",
|
|
47
47
|
"@atlaskit/form": "^10.4.0",
|
|
48
|
-
"@atlaskit/icon": "^22.
|
|
48
|
+
"@atlaskit/icon": "^22.7.0",
|
|
49
49
|
"@atlaskit/menu": "^2.8.0",
|
|
50
50
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
51
51
|
"@atlaskit/popper": "^6.1.0",
|
|
52
52
|
"@atlaskit/popup": "^1.20.0",
|
|
53
53
|
"@atlaskit/portal": "^4.6.0",
|
|
54
54
|
"@atlaskit/primitives": "^11.0.0",
|
|
55
|
-
"@atlaskit/smart-user-picker": "^6.
|
|
55
|
+
"@atlaskit/smart-user-picker": "^6.10.0",
|
|
56
56
|
"@atlaskit/spinner": "^16.2.0",
|
|
57
57
|
"@atlaskit/tabs": "^16.3.0",
|
|
58
58
|
"@atlaskit/textarea": "^5.5.0",
|