@atlaskit/share 6.11.2 → 6.13.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 +16 -0
- package/dist/cjs/components/CopyLinkButton.js +21 -3
- package/dist/cjs/components/CopyLinkButtonNext.compiled.css +3 -1
- package/dist/cjs/components/CopyLinkButtonNext.js +18 -3
- package/dist/cjs/components/LazyShareForm/LazyShareForm.js +1 -2
- package/dist/cjs/components/LazyShareForm/LazyShareFormNext.js +1 -2
- package/dist/cjs/components/ShareDialogContainer.js +1 -2
- package/dist/cjs/components/ShareDialogWithTrigger.js +1 -1
- package/dist/cjs/components/ShareDialogWithTriggerNext.js +1 -1
- package/dist/cjs/components/ShareForm.js +1 -0
- package/dist/cjs/components/ShareFormWrapper/ShareFormWrapper.js +3 -2
- package/dist/cjs/components/ShareFormWrapper/compiled.compiled.css +5 -1
- package/dist/cjs/components/ShareFormWrapper/compiled.js +5 -3
- package/dist/cjs/components/ShareFormWrapper/styled.js +6 -2
- package/dist/cjs/components/ShareHeader.js +4 -4
- package/dist/cjs/components/analytics/analytics.js +1 -1
- package/dist/es2019/components/CopyLinkButton.js +18 -3
- package/dist/es2019/components/CopyLinkButtonNext.compiled.css +3 -1
- package/dist/es2019/components/CopyLinkButtonNext.js +15 -3
- package/dist/es2019/components/LazyShareForm/LazyShareForm.js +1 -2
- package/dist/es2019/components/LazyShareForm/LazyShareFormNext.js +1 -2
- package/dist/es2019/components/ShareDialogContainer.js +1 -2
- package/dist/es2019/components/ShareDialogWithTrigger.js +1 -1
- package/dist/es2019/components/ShareDialogWithTriggerNext.js +1 -1
- package/dist/es2019/components/ShareForm.js +1 -0
- package/dist/es2019/components/ShareFormWrapper/ShareFormWrapper.js +3 -2
- package/dist/es2019/components/ShareFormWrapper/compiled.compiled.css +5 -1
- package/dist/es2019/components/ShareFormWrapper/compiled.js +5 -3
- package/dist/es2019/components/ShareFormWrapper/styled.js +6 -2
- package/dist/es2019/components/ShareHeader.js +4 -4
- package/dist/es2019/components/analytics/analytics.js +1 -1
- package/dist/esm/components/CopyLinkButton.js +21 -3
- package/dist/esm/components/CopyLinkButtonNext.compiled.css +3 -1
- package/dist/esm/components/CopyLinkButtonNext.js +18 -3
- package/dist/esm/components/LazyShareForm/LazyShareForm.js +1 -2
- package/dist/esm/components/LazyShareForm/LazyShareFormNext.js +1 -2
- package/dist/esm/components/ShareDialogContainer.js +1 -2
- package/dist/esm/components/ShareDialogWithTrigger.js +1 -1
- package/dist/esm/components/ShareDialogWithTriggerNext.js +1 -1
- package/dist/esm/components/ShareForm.js +1 -0
- package/dist/esm/components/ShareFormWrapper/ShareFormWrapper.js +3 -2
- package/dist/esm/components/ShareFormWrapper/compiled.compiled.css +5 -1
- package/dist/esm/components/ShareFormWrapper/compiled.js +5 -3
- package/dist/esm/components/ShareFormWrapper/styled.js +6 -2
- package/dist/esm/components/ShareHeader.js +4 -4
- package/dist/esm/components/analytics/analytics.js +1 -1
- package/dist/types/components/CopyLinkButton.d.ts +1 -0
- package/dist/types/components/CopyLinkButtonNext.d.ts +1 -0
- package/dist/types/components/ShareFormWrapper/compiled.d.ts +2 -1
- package/dist/types/components/ShareFormWrapper/styled.d.ts +2 -1
- package/dist/types-ts4.5/components/CopyLinkButton.d.ts +1 -0
- package/dist/types-ts4.5/components/CopyLinkButtonNext.d.ts +1 -0
- package/dist/types-ts4.5/components/ShareFormWrapper/compiled.d.ts +2 -1
- package/dist/types-ts4.5/components/ShareFormWrapper/styled.d.ts +2 -1
- package/package.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/share
|
|
2
2
|
|
|
3
|
+
## 6.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#175527](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/175527)
|
|
8
|
+
[`4747c395fd276`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4747c395fd276) -
|
|
9
|
+
[ux] Update compiled migrated button styles for the extended variant
|
|
10
|
+
|
|
11
|
+
## 6.12.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#173236](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/173236)
|
|
16
|
+
[`4cd9daad8befd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4cd9daad8befd) -
|
|
17
|
+
[ux] Update extend share dialog offsets, text colours and more to align with the new design
|
|
18
|
+
|
|
3
19
|
## 6.11.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -24,6 +24,8 @@ var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
|
24
24
|
var _CopyLinkButtonNext = _interopRequireDefault(require("./CopyLinkButtonNext"));
|
|
25
25
|
var _styled = require("./ShareFormWrapper/styled");
|
|
26
26
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
27
|
+
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; }
|
|
28
|
+
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; }
|
|
27
29
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
28
30
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
29
31
|
* @jsxRuntime classic
|
|
@@ -45,6 +47,10 @@ var boxWrapperStyle = (0, _primitives.xcss)({
|
|
|
45
47
|
var messageTextStyle = (0, _primitives.xcss)({
|
|
46
48
|
textIndent: 'space.075'
|
|
47
49
|
});
|
|
50
|
+
var copyIconContainerStyles = (0, _primitives.xcss)({
|
|
51
|
+
minWidth: '28px',
|
|
52
|
+
textAlign: 'left'
|
|
53
|
+
});
|
|
48
54
|
var isSafari = typeof window !== 'undefined' && window.navigator.userAgent.indexOf('Safari');
|
|
49
55
|
var HiddenInput = exports.HiddenInput = /*#__PURE__*/_react.default.forwardRef(
|
|
50
56
|
// we need a hidden input to reliably copy to clipboard across all browsers.
|
|
@@ -110,7 +116,8 @@ var CopyLinkButtonInner = exports.CopyLinkButtonInner = /*#__PURE__*/function (_
|
|
|
110
116
|
isDisabled = _this$props.isDisabled,
|
|
111
117
|
copyLinkButtonText = _this$props.copyLinkButtonText,
|
|
112
118
|
children = _this$props.children,
|
|
113
|
-
iconBefore = _this$props.iconBefore
|
|
119
|
+
iconBefore = _this$props.iconBefore,
|
|
120
|
+
isExtendedShareDialogEnabled = _this$props.isExtendedShareDialogEnabled;
|
|
114
121
|
return (0, _react2.jsx)(_styles.default, {
|
|
115
122
|
"aria-label": copyLinkButtonText,
|
|
116
123
|
isDisabled: isDisabled
|
|
@@ -119,7 +126,7 @@ var CopyLinkButtonInner = exports.CopyLinkButtonInner = /*#__PURE__*/function (_
|
|
|
119
126
|
,
|
|
120
127
|
appearance: "subtle-link",
|
|
121
128
|
iconBefore: iconBefore || (0, _react2.jsx)(_primitives.Box, {
|
|
122
|
-
xcss: boxWrapperStyle
|
|
129
|
+
xcss: isExtendedShareDialogEnabled ? [boxWrapperStyle, copyIconContainerStyles] : boxWrapperStyle
|
|
123
130
|
}, (0, _react2.jsx)(_linkLinkFilled.default, {
|
|
124
131
|
LEGACY_margin: "0 ".concat("var(--ds-space-negative-025, -2px)", " 0 0"),
|
|
125
132
|
color: "currentColor",
|
|
@@ -127,7 +134,18 @@ var CopyLinkButtonInner = exports.CopyLinkButtonInner = /*#__PURE__*/function (_
|
|
|
127
134
|
LEGACY_size: "medium"
|
|
128
135
|
})),
|
|
129
136
|
onClick: _this.handleClick,
|
|
130
|
-
ref: triggerProps.ref
|
|
137
|
+
ref: triggerProps.ref,
|
|
138
|
+
spacing: isExtendedShareDialogEnabled ? 'none' : 'default',
|
|
139
|
+
theme: isExtendedShareDialogEnabled ? function (current, themeProps) {
|
|
140
|
+
return {
|
|
141
|
+
buttonStyles: _objectSpread(_objectSpread({}, current(themeProps).buttonStyles), {}, {
|
|
142
|
+
color: "var(--ds-text-subtle, #44546F)",
|
|
143
|
+
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
144
|
+
alignItems: 'center'
|
|
145
|
+
}),
|
|
146
|
+
spinnerStyles: current(themeProps).spinnerStyles
|
|
147
|
+
};
|
|
148
|
+
} : undefined
|
|
131
149
|
}, children || copyLinkButtonText);
|
|
132
150
|
});
|
|
133
151
|
return _this;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
._18u0mgjw{margin-left:var(--ds-space-negative-200,-1pc)}
|
|
2
2
|
._19pkx0bf{margin-top:var(--ds-space-negative-100,-8px)}
|
|
3
3
|
._1e0c1txw{display:flex}
|
|
4
|
+
._1ul91f4h{min-width:28px}
|
|
4
5
|
._2hwxmgjw{margin-right:var(--ds-space-negative-200,-1pc)}
|
|
5
6
|
._2hwxv77o{margin-right:var(--ds-space-025,2px)}
|
|
6
7
|
._4cvr1h6o{align-items:center}
|
|
7
8
|
._azhw12x7{text-indent:var(--ds-space-075,6px)}
|
|
8
|
-
._otyrx0bf{margin-bottom:var(--ds-space-negative-100,-8px)}
|
|
9
|
+
._otyrx0bf{margin-bottom:var(--ds-space-negative-100,-8px)}
|
|
10
|
+
._y3gn1e5h{text-align:left}
|
|
@@ -26,6 +26,8 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
26
26
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
27
27
|
var _compiled2 = require("./ShareFormWrapper/compiled");
|
|
28
28
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
29
|
+
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; }
|
|
30
|
+
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; }
|
|
29
31
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
30
32
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
31
33
|
var Z_INDEX = _constants.layers.modal();
|
|
@@ -34,6 +36,7 @@ var AUTO_DISMISS_MS = exports.AUTO_DISMISS_MS = AUTO_DISMISS_SECONDS * 1000;
|
|
|
34
36
|
var styles = {
|
|
35
37
|
messageContainer: "_1e0c1txw _4cvr1h6o _19pkx0bf _2hwxmgjw _otyrx0bf _18u0mgjw",
|
|
36
38
|
boxWrapper: "_2hwxv77o",
|
|
39
|
+
copyIconContainerStyles: "_2hwxv77o _1ul91f4h _y3gn1e5h",
|
|
37
40
|
messageText: "_azhw12x7"
|
|
38
41
|
};
|
|
39
42
|
var isSafari = typeof window !== 'undefined' && window.navigator.userAgent.indexOf('Safari');
|
|
@@ -101,7 +104,8 @@ var CopyLinkButton = exports.CopyLinkButton = /*#__PURE__*/function (_React$Comp
|
|
|
101
104
|
isDisabled = _this$props.isDisabled,
|
|
102
105
|
copyLinkButtonText = _this$props.copyLinkButtonText,
|
|
103
106
|
children = _this$props.children,
|
|
104
|
-
iconBefore = _this$props.iconBefore
|
|
107
|
+
iconBefore = _this$props.iconBefore,
|
|
108
|
+
isExtendedShareDialogEnabled = _this$props.isExtendedShareDialogEnabled;
|
|
105
109
|
return /*#__PURE__*/_react.default.createElement(_styles.default, {
|
|
106
110
|
"aria-label": copyLinkButtonText,
|
|
107
111
|
isDisabled: isDisabled
|
|
@@ -110,7 +114,7 @@ var CopyLinkButton = exports.CopyLinkButton = /*#__PURE__*/function (_React$Comp
|
|
|
110
114
|
,
|
|
111
115
|
appearance: "subtle-link",
|
|
112
116
|
iconBefore: iconBefore || /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
113
|
-
xcss: (0, _css.cx)(styles.boxWrapper)
|
|
117
|
+
xcss: (0, _css.cx)(isExtendedShareDialogEnabled ? styles.copyIconContainerStyles : styles.boxWrapper)
|
|
114
118
|
}, /*#__PURE__*/_react.default.createElement(_linkLinkFilled.default, {
|
|
115
119
|
LEGACY_margin: "0 ".concat("var(--ds-space-negative-025, -2px)", " 0 0"),
|
|
116
120
|
color: "currentColor",
|
|
@@ -118,7 +122,18 @@ var CopyLinkButton = exports.CopyLinkButton = /*#__PURE__*/function (_React$Comp
|
|
|
118
122
|
LEGACY_size: "medium"
|
|
119
123
|
})),
|
|
120
124
|
onClick: _this.handleClick,
|
|
121
|
-
ref: triggerProps.ref
|
|
125
|
+
ref: triggerProps.ref,
|
|
126
|
+
spacing: isExtendedShareDialogEnabled ? 'none' : 'default',
|
|
127
|
+
theme: isExtendedShareDialogEnabled ? function (current, themeProps) {
|
|
128
|
+
return {
|
|
129
|
+
buttonStyles: _objectSpread(_objectSpread({}, current(themeProps).buttonStyles), {}, {
|
|
130
|
+
color: "var(--ds-text-subtle, #44546F)",
|
|
131
|
+
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
132
|
+
alignItems: 'center'
|
|
133
|
+
}),
|
|
134
|
+
spinnerStyles: current(themeProps).spinnerStyles
|
|
135
|
+
};
|
|
136
|
+
} : undefined
|
|
122
137
|
}, children || copyLinkButtonText);
|
|
123
138
|
});
|
|
124
139
|
return _this;
|
|
@@ -9,7 +9,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
10
|
var _reactIntlNext = require("react-intl-next");
|
|
11
11
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
14
13
|
var _constants = require("@atlaskit/theme/constants");
|
|
15
14
|
var _i18n = require("../../i18n");
|
|
@@ -102,7 +101,7 @@ function LazyShareForm(props) {
|
|
|
102
101
|
});
|
|
103
102
|
var allowEmail = (0, _utils.allowEmails)(config);
|
|
104
103
|
return (0, _react2.jsx)(_ShareFormWrapper.ShareFormWrapper, {
|
|
105
|
-
header:
|
|
104
|
+
header: header,
|
|
106
105
|
footer: footer
|
|
107
106
|
// form title will be determined by `title` and `showTitle` prop passed to `ShareForm`,
|
|
108
107
|
// so we don't need to show title via ShareFormWrapper
|
|
@@ -12,7 +12,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
12
12
|
var _reactIntlNext = require("react-intl-next");
|
|
13
13
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
14
14
|
var _css = require("@atlaskit/css");
|
|
15
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
15
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
17
16
|
var _i18n = require("../../i18n");
|
|
18
17
|
var _analytics = require("../analytics/analytics");
|
|
@@ -89,7 +88,7 @@ function LazyShareForm(props) {
|
|
|
89
88
|
});
|
|
90
89
|
var allowEmail = (0, _utils.allowEmails)(config);
|
|
91
90
|
return /*#__PURE__*/_react.default.createElement(_ShareFormWrapper.ShareFormWrapper, {
|
|
92
|
-
header:
|
|
91
|
+
header: header,
|
|
93
92
|
footer: footer
|
|
94
93
|
// form title will be determined by `title` and `showTitle` prop passed to `ShareForm`,
|
|
95
94
|
// so we don't need to show title via ShareFormWrapper
|
|
@@ -22,7 +22,6 @@ var _memoizeOne = _interopRequireDefault(require("memoize-one"));
|
|
|
22
22
|
var _reactIntlNext = require("react-intl-next");
|
|
23
23
|
var _tinyInvariant = _interopRequireDefault(require("tiny-invariant"));
|
|
24
24
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
25
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
26
25
|
var _AtlassianUrlShortenerClient = require("../clients/AtlassianUrlShortenerClient");
|
|
27
26
|
var _ShareServiceClient = require("../clients/ShareServiceClient");
|
|
28
27
|
var _i18n = require("../i18n");
|
|
@@ -414,7 +413,7 @@ var ShareDialogContainerInternal = exports.ShareDialogContainerInternal = /*#__P
|
|
|
414
413
|
submitButtonLabel: shareeAction === 'edit' && /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.inviteTriggerButtonText),
|
|
415
414
|
product: product,
|
|
416
415
|
productAttributes: productAttributes,
|
|
417
|
-
customHeader:
|
|
416
|
+
customHeader: customHeader,
|
|
418
417
|
customFooter: customFooter,
|
|
419
418
|
onUserSelectionChange: onUserSelectionChange,
|
|
420
419
|
shareFieldsFooter: shareFieldsFooter,
|
|
@@ -610,7 +610,7 @@ var ShareDialogWithTriggerInternalLegacy = exports.ShareDialogWithTriggerInterna
|
|
|
610
610
|
copyLink: copyLink,
|
|
611
611
|
showIntegrationForm: showIntegrationForm,
|
|
612
612
|
bottomMessage: bottomMessage,
|
|
613
|
-
customHeader:
|
|
613
|
+
customHeader: customHeader,
|
|
614
614
|
customFooter: footer,
|
|
615
615
|
loadOptions: loadUserOptions,
|
|
616
616
|
isSharing: isSharing,
|
|
@@ -585,7 +585,7 @@ var ShareDialogWithTriggerInternal = exports.ShareDialogWithTriggerInternal = /*
|
|
|
585
585
|
copyLink: copyLink,
|
|
586
586
|
showIntegrationForm: showIntegrationForm,
|
|
587
587
|
bottomMessage: bottomMessage,
|
|
588
|
-
customHeader:
|
|
588
|
+
customHeader: customHeader,
|
|
589
589
|
customFooter: footer,
|
|
590
590
|
loadOptions: loadUserOptions,
|
|
591
591
|
isSharing: isSharing,
|
|
@@ -227,6 +227,7 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
227
227
|
css: formFooterStyles,
|
|
228
228
|
"data-testid": "form-footer"
|
|
229
229
|
}, (0, _react2.jsx)(_CopyLinkButton.default, {
|
|
230
|
+
isExtendedShareDialogEnabled: isExtendedShareDialogEnabled,
|
|
230
231
|
isDisabled: isDisabled,
|
|
231
232
|
onLinkCopy: onLinkCopy,
|
|
232
233
|
link: copyLink,
|
|
@@ -32,8 +32,9 @@ var ShareFormWrapper = function ShareFormWrapper(_ref) {
|
|
|
32
32
|
var ContentWrapper = (0, _platformFeatureFlags.fg)('share-compiled-migration') ? _compiled.InlineDialogContentWrapper : _styled.InlineDialogContentWrapper;
|
|
33
33
|
var FormWrapper = (0, _platformFeatureFlags.fg)('share-compiled-migration') ? _compiled.InlineDialogFormWrapper : _styled.InlineDialogFormWrapper;
|
|
34
34
|
return /*#__PURE__*/_react.default.createElement(ContentWrapper, {
|
|
35
|
-
label: formatMessage(_i18n.messages.formTitle)
|
|
36
|
-
|
|
35
|
+
label: formatMessage(_i18n.messages.formTitle),
|
|
36
|
+
isExtendedShareDialogEnabled: isExtendedShareDialogEnabled
|
|
37
|
+
}, header, /*#__PURE__*/_react.default.createElement(FormWrapper, {
|
|
37
38
|
integrationMode: integrationMode,
|
|
38
39
|
isMenuItemSelected: isMenuItemSelected,
|
|
39
40
|
isExtendedShareDialogEnabled: isExtendedShareDialogEnabled
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
._19bv1ejb{padding-left:var(--ds-space-300,24px)}
|
|
2
|
+
._19bvv47k{padding-left:var(--ds-space-250,20px)}
|
|
2
3
|
._1bsb1j89{width:22pc}
|
|
3
4
|
._1bsb1op3{width:452px}
|
|
4
5
|
._1bsb1wug{width:auto}
|
|
5
6
|
._1bsbpk3t{width:102px}
|
|
6
7
|
._ca0qpxbi{padding-top:var(--ds-space-200,1pc)}
|
|
8
|
+
._ca0qv47k{padding-top:var(--ds-space-250,20px)}
|
|
7
9
|
._n3tdpxbi{padding-bottom:var(--ds-space-200,1pc)}
|
|
8
|
-
.
|
|
10
|
+
._n3tdv47k{padding-bottom:var(--ds-space-250,20px)}
|
|
11
|
+
._u5f31ejb{padding-right:var(--ds-space-300,24px)}
|
|
12
|
+
._u5f3v47k{padding-right:var(--ds-space-250,20px)}
|
|
@@ -17,7 +17,8 @@ var styles = {
|
|
|
17
17
|
tabsIntegration: "_1bsb1wug",
|
|
18
18
|
default: "_1bsb1j89",
|
|
19
19
|
extendedDefault: "_1bsb1op3",
|
|
20
|
-
inlineDialogContentWrapper: "_ca0qpxbi _u5f31ejb _n3tdpxbi _19bv1ejb"
|
|
20
|
+
inlineDialogContentWrapper: "_ca0qpxbi _u5f31ejb _n3tdpxbi _19bv1ejb",
|
|
21
|
+
extendedInlineDialogContentWrapper: "_ca0qv47k _u5f3v47k _n3tdv47k _19bvv47k"
|
|
21
22
|
};
|
|
22
23
|
var InlineDialogFormWrapper = exports.InlineDialogFormWrapper = function InlineDialogFormWrapper(_ref) {
|
|
23
24
|
var children = _ref.children,
|
|
@@ -42,9 +43,10 @@ var InlineDialogFormWrapper = exports.InlineDialogFormWrapper = function InlineD
|
|
|
42
43
|
};
|
|
43
44
|
var InlineDialogContentWrapper = exports.InlineDialogContentWrapper = function InlineDialogContentWrapper(_ref2) {
|
|
44
45
|
var children = _ref2.children,
|
|
45
|
-
label = _ref2.label
|
|
46
|
+
label = _ref2.label,
|
|
47
|
+
isExtendedShareDialogEnabled = _ref2.isExtendedShareDialogEnabled;
|
|
46
48
|
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
47
49
|
"aria-label": label,
|
|
48
|
-
xcss: styles.inlineDialogContentWrapper
|
|
50
|
+
xcss: isExtendedShareDialogEnabled ? styles.extendedInlineDialogContentWrapper : styles.inlineDialogContentWrapper
|
|
49
51
|
}, children);
|
|
50
52
|
};
|
|
@@ -54,6 +54,9 @@ var InlineDialogFormWrapper = exports.InlineDialogFormWrapper = function InlineD
|
|
|
54
54
|
var inlineDialogContentWrapperStyles = (0, _react.css)({
|
|
55
55
|
padding: "var(--ds-space-200, 16px)".concat(" ", "var(--ds-space-300, 24px)")
|
|
56
56
|
});
|
|
57
|
+
var extendedInlineDialogContentWrapperStyles = (0, _react.css)({
|
|
58
|
+
padding: "var(--ds-space-250, 20px)"
|
|
59
|
+
});
|
|
57
60
|
|
|
58
61
|
/**
|
|
59
62
|
* Apply the same styling, as previous @atlaskit/inline-dialog had,
|
|
@@ -63,9 +66,10 @@ var inlineDialogContentWrapperStyles = (0, _react.css)({
|
|
|
63
66
|
*/
|
|
64
67
|
var InlineDialogContentWrapper = exports.InlineDialogContentWrapper = function InlineDialogContentWrapper(_ref3) {
|
|
65
68
|
var children = _ref3.children,
|
|
66
|
-
label = _ref3.label
|
|
69
|
+
label = _ref3.label,
|
|
70
|
+
isExtendedShareDialogEnabled = _ref3.isExtendedShareDialogEnabled;
|
|
67
71
|
return (0, _react.jsx)("div", {
|
|
68
|
-
css: inlineDialogContentWrapperStyles,
|
|
72
|
+
css: isExtendedShareDialogEnabled ? extendedInlineDialogContentWrapperStyles : inlineDialogContentWrapperStyles,
|
|
69
73
|
"aria-label": label
|
|
70
74
|
}, children);
|
|
71
75
|
};
|
|
@@ -22,18 +22,18 @@ var headerWrapperStyles = (0, _primitives.xcss)({
|
|
|
22
22
|
lineHeight: 'space.400'
|
|
23
23
|
});
|
|
24
24
|
var headerWrapperExtraSpaceStyles = (0, _primitives.xcss)({
|
|
25
|
-
marginBottom: 'space.200'
|
|
25
|
+
marginBottom: 'space.200',
|
|
26
|
+
color: 'color.text'
|
|
26
27
|
});
|
|
27
28
|
var ShareHeader = exports.ShareHeader = function ShareHeader(_ref) {
|
|
28
29
|
var isExtendedShareDialogEnabled = _ref.isExtendedShareDialogEnabled,
|
|
29
30
|
title = _ref.title;
|
|
30
|
-
var headingSize = isExtendedShareDialogEnabled ? 'medium' : 'small';
|
|
31
31
|
return /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
32
32
|
xcss: [headerWrapperStyles, isExtendedShareDialogEnabled && headerWrapperExtraSpaceStyles]
|
|
33
33
|
}, (0, _platformFeatureFlags.fg)('share-header-accessibility') ? /*#__PURE__*/_react.default.createElement(_heading.default, {
|
|
34
|
-
size:
|
|
34
|
+
size: "small",
|
|
35
35
|
as: "h2"
|
|
36
36
|
}, title || /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.formTitle)) : /*#__PURE__*/_react.default.createElement(_heading.default, {
|
|
37
|
-
size:
|
|
37
|
+
size: "small"
|
|
38
38
|
}, title || /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.formTitle)));
|
|
39
39
|
};
|
|
@@ -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: "6.
|
|
16
|
+
packageVersion: "6.12.0"
|
|
17
17
|
}, attributes);
|
|
18
18
|
};
|
|
19
19
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -35,6 +35,10 @@ const boxWrapperStyle = xcss({
|
|
|
35
35
|
const messageTextStyle = xcss({
|
|
36
36
|
textIndent: 'space.075'
|
|
37
37
|
});
|
|
38
|
+
const copyIconContainerStyles = xcss({
|
|
39
|
+
minWidth: '28px',
|
|
40
|
+
textAlign: 'left'
|
|
41
|
+
});
|
|
38
42
|
const isSafari = typeof window !== 'undefined' && window.navigator.userAgent.indexOf('Safari');
|
|
39
43
|
export const HiddenInput = /*#__PURE__*/React.forwardRef(
|
|
40
44
|
// we need a hidden input to reliably copy to clipboard across all browsers.
|
|
@@ -93,7 +97,8 @@ export class CopyLinkButtonInner extends React.Component {
|
|
|
93
97
|
isDisabled,
|
|
94
98
|
copyLinkButtonText,
|
|
95
99
|
children,
|
|
96
|
-
iconBefore
|
|
100
|
+
iconBefore,
|
|
101
|
+
isExtendedShareDialogEnabled
|
|
97
102
|
} = this.props;
|
|
98
103
|
return jsx(Button, {
|
|
99
104
|
"aria-label": copyLinkButtonText,
|
|
@@ -103,7 +108,7 @@ export class CopyLinkButtonInner extends React.Component {
|
|
|
103
108
|
,
|
|
104
109
|
appearance: "subtle-link",
|
|
105
110
|
iconBefore: iconBefore || jsx(Box, {
|
|
106
|
-
xcss: boxWrapperStyle
|
|
111
|
+
xcss: isExtendedShareDialogEnabled ? [boxWrapperStyle, copyIconContainerStyles] : boxWrapperStyle
|
|
107
112
|
}, jsx(LinkFilledIcon, {
|
|
108
113
|
LEGACY_margin: `0 ${"var(--ds-space-negative-025, -2px)"} 0 0`,
|
|
109
114
|
color: "currentColor",
|
|
@@ -111,7 +116,17 @@ export class CopyLinkButtonInner extends React.Component {
|
|
|
111
116
|
LEGACY_size: "medium"
|
|
112
117
|
})),
|
|
113
118
|
onClick: this.handleClick,
|
|
114
|
-
ref: triggerProps.ref
|
|
119
|
+
ref: triggerProps.ref,
|
|
120
|
+
spacing: isExtendedShareDialogEnabled ? 'none' : 'default',
|
|
121
|
+
theme: isExtendedShareDialogEnabled ? (current, themeProps) => ({
|
|
122
|
+
buttonStyles: {
|
|
123
|
+
...current(themeProps).buttonStyles,
|
|
124
|
+
color: "var(--ds-text-subtle, #44546F)",
|
|
125
|
+
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
126
|
+
alignItems: 'center'
|
|
127
|
+
},
|
|
128
|
+
spinnerStyles: current(themeProps).spinnerStyles
|
|
129
|
+
}) : undefined
|
|
115
130
|
}, children || copyLinkButtonText);
|
|
116
131
|
});
|
|
117
132
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
._18u0mgjw{margin-left:var(--ds-space-negative-200,-1pc)}
|
|
2
2
|
._19pkx0bf{margin-top:var(--ds-space-negative-100,-8px)}
|
|
3
3
|
._1e0c1txw{display:flex}
|
|
4
|
+
._1ul91f4h{min-width:28px}
|
|
4
5
|
._2hwxmgjw{margin-right:var(--ds-space-negative-200,-1pc)}
|
|
5
6
|
._2hwxv77o{margin-right:var(--ds-space-025,2px)}
|
|
6
7
|
._4cvr1h6o{align-items:center}
|
|
7
8
|
._azhw12x7{text-indent:var(--ds-space-075,6px)}
|
|
8
|
-
._otyrx0bf{margin-bottom:var(--ds-space-negative-100,-8px)}
|
|
9
|
+
._otyrx0bf{margin-bottom:var(--ds-space-negative-100,-8px)}
|
|
10
|
+
._y3gn1e5h{text-align:left}
|
|
@@ -20,6 +20,7 @@ export const AUTO_DISMISS_MS = AUTO_DISMISS_SECONDS * 1000;
|
|
|
20
20
|
const styles = {
|
|
21
21
|
messageContainer: "_1e0c1txw _4cvr1h6o _19pkx0bf _2hwxmgjw _otyrx0bf _18u0mgjw",
|
|
22
22
|
boxWrapper: "_2hwxv77o",
|
|
23
|
+
copyIconContainerStyles: "_2hwxv77o _1ul91f4h _y3gn1e5h",
|
|
23
24
|
messageText: "_azhw12x7"
|
|
24
25
|
};
|
|
25
26
|
const isSafari = typeof window !== 'undefined' && window.navigator.userAgent.indexOf('Safari');
|
|
@@ -80,7 +81,8 @@ export class CopyLinkButton extends React.Component {
|
|
|
80
81
|
isDisabled,
|
|
81
82
|
copyLinkButtonText,
|
|
82
83
|
children,
|
|
83
|
-
iconBefore
|
|
84
|
+
iconBefore,
|
|
85
|
+
isExtendedShareDialogEnabled
|
|
84
86
|
} = this.props;
|
|
85
87
|
return /*#__PURE__*/React.createElement(Button, {
|
|
86
88
|
"aria-label": copyLinkButtonText,
|
|
@@ -90,7 +92,7 @@ export class CopyLinkButton extends React.Component {
|
|
|
90
92
|
,
|
|
91
93
|
appearance: "subtle-link",
|
|
92
94
|
iconBefore: iconBefore || /*#__PURE__*/React.createElement(Box, {
|
|
93
|
-
xcss: cx(styles.boxWrapper)
|
|
95
|
+
xcss: cx(isExtendedShareDialogEnabled ? styles.copyIconContainerStyles : styles.boxWrapper)
|
|
94
96
|
}, /*#__PURE__*/React.createElement(LinkFilledIcon, {
|
|
95
97
|
LEGACY_margin: `0 ${"var(--ds-space-negative-025, -2px)"} 0 0`,
|
|
96
98
|
color: "currentColor",
|
|
@@ -98,7 +100,17 @@ export class CopyLinkButton extends React.Component {
|
|
|
98
100
|
LEGACY_size: "medium"
|
|
99
101
|
})),
|
|
100
102
|
onClick: this.handleClick,
|
|
101
|
-
ref: triggerProps.ref
|
|
103
|
+
ref: triggerProps.ref,
|
|
104
|
+
spacing: isExtendedShareDialogEnabled ? 'none' : 'default',
|
|
105
|
+
theme: isExtendedShareDialogEnabled ? (current, themeProps) => ({
|
|
106
|
+
buttonStyles: {
|
|
107
|
+
...current(themeProps).buttonStyles,
|
|
108
|
+
color: "var(--ds-text-subtle, #44546F)",
|
|
109
|
+
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
110
|
+
alignItems: 'center'
|
|
111
|
+
},
|
|
112
|
+
spinnerStyles: current(themeProps).spinnerStyles
|
|
113
|
+
}) : undefined
|
|
102
114
|
}, children || copyLinkButtonText);
|
|
103
115
|
});
|
|
104
116
|
}
|
|
@@ -9,7 +9,6 @@ import React from 'react';
|
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import { FormattedMessage } from 'react-intl-next';
|
|
11
11
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
12
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
14
13
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
15
14
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
@@ -98,7 +97,7 @@ function LazyShareForm(props) {
|
|
|
98
97
|
});
|
|
99
98
|
const allowEmail = allowEmails(config);
|
|
100
99
|
return jsx(ShareFormWrapper, {
|
|
101
|
-
header:
|
|
100
|
+
header: header,
|
|
102
101
|
footer: footer
|
|
103
102
|
// form title will be determined by `title` and `showTitle` prop passed to `ShareForm`,
|
|
104
103
|
// so we don't need to show title via ShareFormWrapper
|
|
@@ -5,7 +5,6 @@ import React from 'react';
|
|
|
5
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
7
7
|
import { cx } from '@atlaskit/css';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { Box, Text } from '@atlaskit/primitives/compiled';
|
|
10
9
|
import { messages } from '../../i18n';
|
|
11
10
|
import { INTEGRATION_MODAL_SOURCE } from '../analytics/analytics';
|
|
@@ -87,7 +86,7 @@ function LazyShareForm(props) {
|
|
|
87
86
|
});
|
|
88
87
|
const allowEmail = allowEmails(config);
|
|
89
88
|
return /*#__PURE__*/React.createElement(ShareFormWrapper, {
|
|
90
|
-
header:
|
|
89
|
+
header: header,
|
|
91
90
|
footer: footer
|
|
92
91
|
// form title will be determined by `title` and `showTitle` prop passed to `ShareForm`,
|
|
93
92
|
// so we don't need to show title via ShareFormWrapper
|
|
@@ -5,7 +5,6 @@ import memoizeOne from 'memoize-one';
|
|
|
5
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import assert from 'tiny-invariant';
|
|
7
7
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { AtlassianUrlShortenerClient } from '../clients/AtlassianUrlShortenerClient';
|
|
10
9
|
import { ShareServiceClient } from '../clients/ShareServiceClient';
|
|
11
10
|
import { messages } from '../i18n';
|
|
@@ -363,7 +362,7 @@ export class ShareDialogContainerInternal extends React.Component {
|
|
|
363
362
|
submitButtonLabel: shareeAction === 'edit' && /*#__PURE__*/React.createElement(FormattedMessage, messages.inviteTriggerButtonText),
|
|
364
363
|
product: product,
|
|
365
364
|
productAttributes: productAttributes,
|
|
366
|
-
customHeader:
|
|
365
|
+
customHeader: customHeader,
|
|
367
366
|
customFooter: customFooter,
|
|
368
367
|
onUserSelectionChange: onUserSelectionChange,
|
|
369
368
|
shareFieldsFooter: shareFieldsFooter,
|
|
@@ -558,7 +558,7 @@ export class ShareDialogWithTriggerInternalLegacy extends React.PureComponent {
|
|
|
558
558
|
copyLink: copyLink,
|
|
559
559
|
showIntegrationForm: showIntegrationForm,
|
|
560
560
|
bottomMessage: bottomMessage,
|
|
561
|
-
customHeader:
|
|
561
|
+
customHeader: customHeader,
|
|
562
562
|
customFooter: footer,
|
|
563
563
|
loadOptions: loadUserOptions,
|
|
564
564
|
isSharing: isSharing,
|
|
@@ -527,7 +527,7 @@ export class ShareDialogWithTriggerInternal extends React.PureComponent {
|
|
|
527
527
|
copyLink: copyLink,
|
|
528
528
|
showIntegrationForm: showIntegrationForm,
|
|
529
529
|
bottomMessage: bottomMessage,
|
|
530
|
-
customHeader:
|
|
530
|
+
customHeader: customHeader,
|
|
531
531
|
customFooter: footer,
|
|
532
532
|
loadOptions: loadUserOptions,
|
|
533
533
|
isSharing: isSharing,
|
|
@@ -207,6 +207,7 @@ class InternalForm extends React.PureComponent {
|
|
|
207
207
|
css: formFooterStyles,
|
|
208
208
|
"data-testid": "form-footer"
|
|
209
209
|
}, jsx(CopyLinkButton, {
|
|
210
|
+
isExtendedShareDialogEnabled: isExtendedShareDialogEnabled,
|
|
210
211
|
isDisabled: isDisabled,
|
|
211
212
|
onLinkCopy: onLinkCopy,
|
|
212
213
|
link: copyLink,
|
|
@@ -21,8 +21,9 @@ const ShareFormWrapper = ({
|
|
|
21
21
|
const ContentWrapper = fg('share-compiled-migration') ? InlineDialogContentWrapperCompiled : InlineDialogContentWrapper;
|
|
22
22
|
const FormWrapper = fg('share-compiled-migration') ? InlineDialogFormWrapperCompiled : InlineDialogFormWrapper;
|
|
23
23
|
return /*#__PURE__*/React.createElement(ContentWrapper, {
|
|
24
|
-
label: formatMessage(messages.formTitle)
|
|
25
|
-
|
|
24
|
+
label: formatMessage(messages.formTitle),
|
|
25
|
+
isExtendedShareDialogEnabled: isExtendedShareDialogEnabled
|
|
26
|
+
}, header, /*#__PURE__*/React.createElement(FormWrapper, {
|
|
26
27
|
integrationMode: integrationMode,
|
|
27
28
|
isMenuItemSelected: isMenuItemSelected,
|
|
28
29
|
isExtendedShareDialogEnabled: isExtendedShareDialogEnabled
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
._19bv1ejb{padding-left:var(--ds-space-300,24px)}
|
|
2
|
+
._19bvv47k{padding-left:var(--ds-space-250,20px)}
|
|
2
3
|
._1bsb1j89{width:22pc}
|
|
3
4
|
._1bsb1op3{width:452px}
|
|
4
5
|
._1bsb1wug{width:auto}
|
|
5
6
|
._1bsbpk3t{width:102px}
|
|
6
7
|
._ca0qpxbi{padding-top:var(--ds-space-200,1pc)}
|
|
8
|
+
._ca0qv47k{padding-top:var(--ds-space-250,20px)}
|
|
7
9
|
._n3tdpxbi{padding-bottom:var(--ds-space-200,1pc)}
|
|
8
|
-
.
|
|
10
|
+
._n3tdv47k{padding-bottom:var(--ds-space-250,20px)}
|
|
11
|
+
._u5f31ejb{padding-right:var(--ds-space-300,24px)}
|
|
12
|
+
._u5f3v47k{padding-right:var(--ds-space-250,20px)}
|
|
@@ -10,7 +10,8 @@ const styles = {
|
|
|
10
10
|
tabsIntegration: "_1bsb1wug",
|
|
11
11
|
default: "_1bsb1j89",
|
|
12
12
|
extendedDefault: "_1bsb1op3",
|
|
13
|
-
inlineDialogContentWrapper: "_ca0qpxbi _u5f31ejb _n3tdpxbi _19bv1ejb"
|
|
13
|
+
inlineDialogContentWrapper: "_ca0qpxbi _u5f31ejb _n3tdpxbi _19bv1ejb",
|
|
14
|
+
extendedInlineDialogContentWrapper: "_ca0qv47k _u5f3v47k _n3tdv47k _19bvv47k"
|
|
14
15
|
};
|
|
15
16
|
export const InlineDialogFormWrapper = ({
|
|
16
17
|
children,
|
|
@@ -36,8 +37,9 @@ export const InlineDialogFormWrapper = ({
|
|
|
36
37
|
};
|
|
37
38
|
export const InlineDialogContentWrapper = ({
|
|
38
39
|
children,
|
|
39
|
-
label
|
|
40
|
+
label,
|
|
41
|
+
isExtendedShareDialogEnabled
|
|
40
42
|
}) => /*#__PURE__*/React.createElement(Box, {
|
|
41
43
|
"aria-label": label,
|
|
42
|
-
xcss: styles.inlineDialogContentWrapper
|
|
44
|
+
xcss: isExtendedShareDialogEnabled ? styles.extendedInlineDialogContentWrapper : styles.inlineDialogContentWrapper
|
|
43
45
|
}, children);
|
|
@@ -50,6 +50,9 @@ export const InlineDialogFormWrapper = ({
|
|
|
50
50
|
const inlineDialogContentWrapperStyles = css({
|
|
51
51
|
padding: `${"var(--ds-space-200, 16px)"} ${"var(--ds-space-300, 24px)"}`
|
|
52
52
|
});
|
|
53
|
+
const extendedInlineDialogContentWrapperStyles = css({
|
|
54
|
+
padding: "var(--ds-space-250, 20px)"
|
|
55
|
+
});
|
|
53
56
|
|
|
54
57
|
/**
|
|
55
58
|
* Apply the same styling, as previous @atlaskit/inline-dialog had,
|
|
@@ -59,10 +62,11 @@ const inlineDialogContentWrapperStyles = css({
|
|
|
59
62
|
*/
|
|
60
63
|
export const InlineDialogContentWrapper = ({
|
|
61
64
|
children,
|
|
62
|
-
label
|
|
65
|
+
label,
|
|
66
|
+
isExtendedShareDialogEnabled
|
|
63
67
|
}) => {
|
|
64
68
|
return jsx("div", {
|
|
65
|
-
css: inlineDialogContentWrapperStyles,
|
|
69
|
+
css: isExtendedShareDialogEnabled ? extendedInlineDialogContentWrapperStyles : inlineDialogContentWrapperStyles,
|
|
66
70
|
"aria-label": label
|
|
67
71
|
}, children);
|
|
68
72
|
};
|
|
@@ -15,19 +15,19 @@ const headerWrapperStyles = xcss({
|
|
|
15
15
|
lineHeight: 'space.400'
|
|
16
16
|
});
|
|
17
17
|
const headerWrapperExtraSpaceStyles = xcss({
|
|
18
|
-
marginBottom: 'space.200'
|
|
18
|
+
marginBottom: 'space.200',
|
|
19
|
+
color: 'color.text'
|
|
19
20
|
});
|
|
20
21
|
export const ShareHeader = ({
|
|
21
22
|
isExtendedShareDialogEnabled,
|
|
22
23
|
title
|
|
23
24
|
}) => {
|
|
24
|
-
const headingSize = isExtendedShareDialogEnabled ? 'medium' : 'small';
|
|
25
25
|
return /*#__PURE__*/React.createElement(Box, {
|
|
26
26
|
xcss: [headerWrapperStyles, isExtendedShareDialogEnabled && headerWrapperExtraSpaceStyles]
|
|
27
27
|
}, fg('share-header-accessibility') ? /*#__PURE__*/React.createElement(Heading, {
|
|
28
|
-
size:
|
|
28
|
+
size: "small",
|
|
29
29
|
as: "h2"
|
|
30
30
|
}, title || /*#__PURE__*/React.createElement(FormattedMessage, messages.formTitle)) : /*#__PURE__*/React.createElement(Heading, {
|
|
31
|
-
size:
|
|
31
|
+
size: "small"
|
|
32
32
|
}, title || /*#__PURE__*/React.createElement(FormattedMessage, messages.formTitle)));
|
|
33
33
|
};
|
|
@@ -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: "6.
|
|
4
|
+
packageVersion: "6.12.0",
|
|
5
5
|
...attributes
|
|
6
6
|
});
|
|
7
7
|
const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
|
|
@@ -4,6 +4,8 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
4
4
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
5
5
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
7
|
+
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; }
|
|
8
|
+
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; }
|
|
7
9
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
11
|
/**
|
|
@@ -41,6 +43,10 @@ var boxWrapperStyle = xcss({
|
|
|
41
43
|
var messageTextStyle = xcss({
|
|
42
44
|
textIndent: 'space.075'
|
|
43
45
|
});
|
|
46
|
+
var copyIconContainerStyles = xcss({
|
|
47
|
+
minWidth: '28px',
|
|
48
|
+
textAlign: 'left'
|
|
49
|
+
});
|
|
44
50
|
var isSafari = typeof window !== 'undefined' && window.navigator.userAgent.indexOf('Safari');
|
|
45
51
|
export var HiddenInput = /*#__PURE__*/React.forwardRef(
|
|
46
52
|
// we need a hidden input to reliably copy to clipboard across all browsers.
|
|
@@ -106,7 +112,8 @@ export var CopyLinkButtonInner = /*#__PURE__*/function (_React$Component) {
|
|
|
106
112
|
isDisabled = _this$props.isDisabled,
|
|
107
113
|
copyLinkButtonText = _this$props.copyLinkButtonText,
|
|
108
114
|
children = _this$props.children,
|
|
109
|
-
iconBefore = _this$props.iconBefore
|
|
115
|
+
iconBefore = _this$props.iconBefore,
|
|
116
|
+
isExtendedShareDialogEnabled = _this$props.isExtendedShareDialogEnabled;
|
|
110
117
|
return jsx(Button, {
|
|
111
118
|
"aria-label": copyLinkButtonText,
|
|
112
119
|
isDisabled: isDisabled
|
|
@@ -115,7 +122,7 @@ export var CopyLinkButtonInner = /*#__PURE__*/function (_React$Component) {
|
|
|
115
122
|
,
|
|
116
123
|
appearance: "subtle-link",
|
|
117
124
|
iconBefore: iconBefore || jsx(Box, {
|
|
118
|
-
xcss: boxWrapperStyle
|
|
125
|
+
xcss: isExtendedShareDialogEnabled ? [boxWrapperStyle, copyIconContainerStyles] : boxWrapperStyle
|
|
119
126
|
}, jsx(LinkFilledIcon, {
|
|
120
127
|
LEGACY_margin: "0 ".concat("var(--ds-space-negative-025, -2px)", " 0 0"),
|
|
121
128
|
color: "currentColor",
|
|
@@ -123,7 +130,18 @@ export var CopyLinkButtonInner = /*#__PURE__*/function (_React$Component) {
|
|
|
123
130
|
LEGACY_size: "medium"
|
|
124
131
|
})),
|
|
125
132
|
onClick: _this.handleClick,
|
|
126
|
-
ref: triggerProps.ref
|
|
133
|
+
ref: triggerProps.ref,
|
|
134
|
+
spacing: isExtendedShareDialogEnabled ? 'none' : 'default',
|
|
135
|
+
theme: isExtendedShareDialogEnabled ? function (current, themeProps) {
|
|
136
|
+
return {
|
|
137
|
+
buttonStyles: _objectSpread(_objectSpread({}, current(themeProps).buttonStyles), {}, {
|
|
138
|
+
color: "var(--ds-text-subtle, #44546F)",
|
|
139
|
+
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
140
|
+
alignItems: 'center'
|
|
141
|
+
}),
|
|
142
|
+
spinnerStyles: current(themeProps).spinnerStyles
|
|
143
|
+
};
|
|
144
|
+
} : undefined
|
|
127
145
|
}, children || copyLinkButtonText);
|
|
128
146
|
});
|
|
129
147
|
return _this;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
._18u0mgjw{margin-left:var(--ds-space-negative-200,-1pc)}
|
|
2
2
|
._19pkx0bf{margin-top:var(--ds-space-negative-100,-8px)}
|
|
3
3
|
._1e0c1txw{display:flex}
|
|
4
|
+
._1ul91f4h{min-width:28px}
|
|
4
5
|
._2hwxmgjw{margin-right:var(--ds-space-negative-200,-1pc)}
|
|
5
6
|
._2hwxv77o{margin-right:var(--ds-space-025,2px)}
|
|
6
7
|
._4cvr1h6o{align-items:center}
|
|
7
8
|
._azhw12x7{text-indent:var(--ds-space-075,6px)}
|
|
8
|
-
._otyrx0bf{margin-bottom:var(--ds-space-negative-100,-8px)}
|
|
9
|
+
._otyrx0bf{margin-bottom:var(--ds-space-negative-100,-8px)}
|
|
10
|
+
._y3gn1e5h{text-align:left}
|
|
@@ -7,6 +7,8 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
import "./CopyLinkButtonNext.compiled.css";
|
|
9
9
|
import { ax, ix } from "@compiled/react/runtime";
|
|
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; }
|
|
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; }
|
|
10
12
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
11
13
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
14
|
import React from 'react';
|
|
@@ -27,6 +29,7 @@ export var AUTO_DISMISS_MS = AUTO_DISMISS_SECONDS * 1000;
|
|
|
27
29
|
var styles = {
|
|
28
30
|
messageContainer: "_1e0c1txw _4cvr1h6o _19pkx0bf _2hwxmgjw _otyrx0bf _18u0mgjw",
|
|
29
31
|
boxWrapper: "_2hwxv77o",
|
|
32
|
+
copyIconContainerStyles: "_2hwxv77o _1ul91f4h _y3gn1e5h",
|
|
30
33
|
messageText: "_azhw12x7"
|
|
31
34
|
};
|
|
32
35
|
var isSafari = typeof window !== 'undefined' && window.navigator.userAgent.indexOf('Safari');
|
|
@@ -94,7 +97,8 @@ export var CopyLinkButton = /*#__PURE__*/function (_React$Component) {
|
|
|
94
97
|
isDisabled = _this$props.isDisabled,
|
|
95
98
|
copyLinkButtonText = _this$props.copyLinkButtonText,
|
|
96
99
|
children = _this$props.children,
|
|
97
|
-
iconBefore = _this$props.iconBefore
|
|
100
|
+
iconBefore = _this$props.iconBefore,
|
|
101
|
+
isExtendedShareDialogEnabled = _this$props.isExtendedShareDialogEnabled;
|
|
98
102
|
return /*#__PURE__*/React.createElement(Button, {
|
|
99
103
|
"aria-label": copyLinkButtonText,
|
|
100
104
|
isDisabled: isDisabled
|
|
@@ -103,7 +107,7 @@ export var CopyLinkButton = /*#__PURE__*/function (_React$Component) {
|
|
|
103
107
|
,
|
|
104
108
|
appearance: "subtle-link",
|
|
105
109
|
iconBefore: iconBefore || /*#__PURE__*/React.createElement(Box, {
|
|
106
|
-
xcss: cx(styles.boxWrapper)
|
|
110
|
+
xcss: cx(isExtendedShareDialogEnabled ? styles.copyIconContainerStyles : styles.boxWrapper)
|
|
107
111
|
}, /*#__PURE__*/React.createElement(LinkFilledIcon, {
|
|
108
112
|
LEGACY_margin: "0 ".concat("var(--ds-space-negative-025, -2px)", " 0 0"),
|
|
109
113
|
color: "currentColor",
|
|
@@ -111,7 +115,18 @@ export var CopyLinkButton = /*#__PURE__*/function (_React$Component) {
|
|
|
111
115
|
LEGACY_size: "medium"
|
|
112
116
|
})),
|
|
113
117
|
onClick: _this.handleClick,
|
|
114
|
-
ref: triggerProps.ref
|
|
118
|
+
ref: triggerProps.ref,
|
|
119
|
+
spacing: isExtendedShareDialogEnabled ? 'none' : 'default',
|
|
120
|
+
theme: isExtendedShareDialogEnabled ? function (current, themeProps) {
|
|
121
|
+
return {
|
|
122
|
+
buttonStyles: _objectSpread(_objectSpread({}, current(themeProps).buttonStyles), {}, {
|
|
123
|
+
color: "var(--ds-text-subtle, #44546F)",
|
|
124
|
+
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
125
|
+
alignItems: 'center'
|
|
126
|
+
}),
|
|
127
|
+
spinnerStyles: current(themeProps).spinnerStyles
|
|
128
|
+
};
|
|
129
|
+
} : undefined
|
|
115
130
|
}, children || copyLinkButtonText);
|
|
116
131
|
});
|
|
117
132
|
return _this;
|
|
@@ -9,7 +9,6 @@ import React from 'react';
|
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import { FormattedMessage } from 'react-intl-next';
|
|
11
11
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
12
|
import { Text } from '@atlaskit/primitives/compiled';
|
|
14
13
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
15
14
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
@@ -93,7 +92,7 @@ function LazyShareForm(props) {
|
|
|
93
92
|
});
|
|
94
93
|
var allowEmail = allowEmails(config);
|
|
95
94
|
return jsx(ShareFormWrapper, {
|
|
96
|
-
header:
|
|
95
|
+
header: header,
|
|
97
96
|
footer: footer
|
|
98
97
|
// form title will be determined by `title` and `showTitle` prop passed to `ShareForm`,
|
|
99
98
|
// so we don't need to show title via ShareFormWrapper
|
|
@@ -5,7 +5,6 @@ import React from 'react';
|
|
|
5
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
7
7
|
import { cx } from '@atlaskit/css';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { Box, Text } from '@atlaskit/primitives/compiled';
|
|
10
9
|
import { messages } from '../../i18n';
|
|
11
10
|
import { INTEGRATION_MODAL_SOURCE } from '../analytics/analytics';
|
|
@@ -82,7 +81,7 @@ function LazyShareForm(props) {
|
|
|
82
81
|
});
|
|
83
82
|
var allowEmail = allowEmails(config);
|
|
84
83
|
return /*#__PURE__*/React.createElement(ShareFormWrapper, {
|
|
85
|
-
header:
|
|
84
|
+
header: header,
|
|
86
85
|
footer: footer
|
|
87
86
|
// form title will be determined by `title` and `showTitle` prop passed to `ShareForm`,
|
|
88
87
|
// so we don't need to show title via ShareFormWrapper
|
|
@@ -20,7 +20,6 @@ import memoizeOne from 'memoize-one';
|
|
|
20
20
|
import { FormattedMessage } from 'react-intl-next';
|
|
21
21
|
import assert from 'tiny-invariant';
|
|
22
22
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
23
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
24
23
|
import { AtlassianUrlShortenerClient } from '../clients/AtlassianUrlShortenerClient';
|
|
25
24
|
import { ShareServiceClient } from '../clients/ShareServiceClient';
|
|
26
25
|
import { messages } from '../i18n';
|
|
@@ -407,7 +406,7 @@ export var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Componen
|
|
|
407
406
|
submitButtonLabel: shareeAction === 'edit' && /*#__PURE__*/React.createElement(FormattedMessage, messages.inviteTriggerButtonText),
|
|
408
407
|
product: product,
|
|
409
408
|
productAttributes: productAttributes,
|
|
410
|
-
customHeader:
|
|
409
|
+
customHeader: customHeader,
|
|
411
410
|
customFooter: customFooter,
|
|
412
411
|
onUserSelectionChange: onUserSelectionChange,
|
|
413
412
|
shareFieldsFooter: shareFieldsFooter,
|
|
@@ -609,7 +609,7 @@ export var ShareDialogWithTriggerInternalLegacy = /*#__PURE__*/function (_React$
|
|
|
609
609
|
copyLink: copyLink,
|
|
610
610
|
showIntegrationForm: showIntegrationForm,
|
|
611
611
|
bottomMessage: bottomMessage,
|
|
612
|
-
customHeader:
|
|
612
|
+
customHeader: customHeader,
|
|
613
613
|
customFooter: footer,
|
|
614
614
|
loadOptions: loadUserOptions,
|
|
615
615
|
isSharing: isSharing,
|
|
@@ -578,7 +578,7 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
578
578
|
copyLink: copyLink,
|
|
579
579
|
showIntegrationForm: showIntegrationForm,
|
|
580
580
|
bottomMessage: bottomMessage,
|
|
581
|
-
customHeader:
|
|
581
|
+
customHeader: customHeader,
|
|
582
582
|
customFooter: footer,
|
|
583
583
|
loadOptions: loadUserOptions,
|
|
584
584
|
isSharing: isSharing,
|
|
@@ -221,6 +221,7 @@ var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
221
221
|
css: formFooterStyles,
|
|
222
222
|
"data-testid": "form-footer"
|
|
223
223
|
}, jsx(CopyLinkButton, {
|
|
224
|
+
isExtendedShareDialogEnabled: isExtendedShareDialogEnabled,
|
|
224
225
|
isDisabled: isDisabled,
|
|
225
226
|
onLinkCopy: onLinkCopy,
|
|
226
227
|
link: copyLink,
|
|
@@ -25,8 +25,9 @@ var ShareFormWrapper = function ShareFormWrapper(_ref) {
|
|
|
25
25
|
var ContentWrapper = fg('share-compiled-migration') ? InlineDialogContentWrapperCompiled : InlineDialogContentWrapper;
|
|
26
26
|
var FormWrapper = fg('share-compiled-migration') ? InlineDialogFormWrapperCompiled : InlineDialogFormWrapper;
|
|
27
27
|
return /*#__PURE__*/React.createElement(ContentWrapper, {
|
|
28
|
-
label: formatMessage(messages.formTitle)
|
|
29
|
-
|
|
28
|
+
label: formatMessage(messages.formTitle),
|
|
29
|
+
isExtendedShareDialogEnabled: isExtendedShareDialogEnabled
|
|
30
|
+
}, header, /*#__PURE__*/React.createElement(FormWrapper, {
|
|
30
31
|
integrationMode: integrationMode,
|
|
31
32
|
isMenuItemSelected: isMenuItemSelected,
|
|
32
33
|
isExtendedShareDialogEnabled: isExtendedShareDialogEnabled
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
._19bv1ejb{padding-left:var(--ds-space-300,24px)}
|
|
2
|
+
._19bvv47k{padding-left:var(--ds-space-250,20px)}
|
|
2
3
|
._1bsb1j89{width:22pc}
|
|
3
4
|
._1bsb1op3{width:452px}
|
|
4
5
|
._1bsb1wug{width:auto}
|
|
5
6
|
._1bsbpk3t{width:102px}
|
|
6
7
|
._ca0qpxbi{padding-top:var(--ds-space-200,1pc)}
|
|
8
|
+
._ca0qv47k{padding-top:var(--ds-space-250,20px)}
|
|
7
9
|
._n3tdpxbi{padding-bottom:var(--ds-space-200,1pc)}
|
|
8
|
-
.
|
|
10
|
+
._n3tdv47k{padding-bottom:var(--ds-space-250,20px)}
|
|
11
|
+
._u5f31ejb{padding-right:var(--ds-space-300,24px)}
|
|
12
|
+
._u5f3v47k{padding-right:var(--ds-space-250,20px)}
|
|
@@ -10,7 +10,8 @@ var styles = {
|
|
|
10
10
|
tabsIntegration: "_1bsb1wug",
|
|
11
11
|
default: "_1bsb1j89",
|
|
12
12
|
extendedDefault: "_1bsb1op3",
|
|
13
|
-
inlineDialogContentWrapper: "_ca0qpxbi _u5f31ejb _n3tdpxbi _19bv1ejb"
|
|
13
|
+
inlineDialogContentWrapper: "_ca0qpxbi _u5f31ejb _n3tdpxbi _19bv1ejb",
|
|
14
|
+
extendedInlineDialogContentWrapper: "_ca0qv47k _u5f3v47k _n3tdv47k _19bvv47k"
|
|
14
15
|
};
|
|
15
16
|
export var InlineDialogFormWrapper = function InlineDialogFormWrapper(_ref) {
|
|
16
17
|
var children = _ref.children,
|
|
@@ -35,9 +36,10 @@ export var InlineDialogFormWrapper = function InlineDialogFormWrapper(_ref) {
|
|
|
35
36
|
};
|
|
36
37
|
export var InlineDialogContentWrapper = function InlineDialogContentWrapper(_ref2) {
|
|
37
38
|
var children = _ref2.children,
|
|
38
|
-
label = _ref2.label
|
|
39
|
+
label = _ref2.label,
|
|
40
|
+
isExtendedShareDialogEnabled = _ref2.isExtendedShareDialogEnabled;
|
|
39
41
|
return /*#__PURE__*/React.createElement(Box, {
|
|
40
42
|
"aria-label": label,
|
|
41
|
-
xcss: styles.inlineDialogContentWrapper
|
|
43
|
+
xcss: isExtendedShareDialogEnabled ? styles.extendedInlineDialogContentWrapper : styles.inlineDialogContentWrapper
|
|
42
44
|
}, children);
|
|
43
45
|
};
|
|
@@ -48,6 +48,9 @@ export var InlineDialogFormWrapper = function InlineDialogFormWrapper(_ref2) {
|
|
|
48
48
|
var inlineDialogContentWrapperStyles = css({
|
|
49
49
|
padding: "var(--ds-space-200, 16px)".concat(" ", "var(--ds-space-300, 24px)")
|
|
50
50
|
});
|
|
51
|
+
var extendedInlineDialogContentWrapperStyles = css({
|
|
52
|
+
padding: "var(--ds-space-250, 20px)"
|
|
53
|
+
});
|
|
51
54
|
|
|
52
55
|
/**
|
|
53
56
|
* Apply the same styling, as previous @atlaskit/inline-dialog had,
|
|
@@ -57,9 +60,10 @@ var inlineDialogContentWrapperStyles = css({
|
|
|
57
60
|
*/
|
|
58
61
|
export var InlineDialogContentWrapper = function InlineDialogContentWrapper(_ref3) {
|
|
59
62
|
var children = _ref3.children,
|
|
60
|
-
label = _ref3.label
|
|
63
|
+
label = _ref3.label,
|
|
64
|
+
isExtendedShareDialogEnabled = _ref3.isExtendedShareDialogEnabled;
|
|
61
65
|
return jsx("div", {
|
|
62
|
-
css: inlineDialogContentWrapperStyles,
|
|
66
|
+
css: isExtendedShareDialogEnabled ? extendedInlineDialogContentWrapperStyles : inlineDialogContentWrapperStyles,
|
|
63
67
|
"aria-label": label
|
|
64
68
|
}, children);
|
|
65
69
|
};
|
|
@@ -15,18 +15,18 @@ var headerWrapperStyles = xcss({
|
|
|
15
15
|
lineHeight: 'space.400'
|
|
16
16
|
});
|
|
17
17
|
var headerWrapperExtraSpaceStyles = xcss({
|
|
18
|
-
marginBottom: 'space.200'
|
|
18
|
+
marginBottom: 'space.200',
|
|
19
|
+
color: 'color.text'
|
|
19
20
|
});
|
|
20
21
|
export var ShareHeader = function ShareHeader(_ref) {
|
|
21
22
|
var isExtendedShareDialogEnabled = _ref.isExtendedShareDialogEnabled,
|
|
22
23
|
title = _ref.title;
|
|
23
|
-
var headingSize = isExtendedShareDialogEnabled ? 'medium' : 'small';
|
|
24
24
|
return /*#__PURE__*/React.createElement(Box, {
|
|
25
25
|
xcss: [headerWrapperStyles, isExtendedShareDialogEnabled && headerWrapperExtraSpaceStyles]
|
|
26
26
|
}, fg('share-header-accessibility') ? /*#__PURE__*/React.createElement(Heading, {
|
|
27
|
-
size:
|
|
27
|
+
size: "small",
|
|
28
28
|
as: "h2"
|
|
29
29
|
}, title || /*#__PURE__*/React.createElement(FormattedMessage, messages.formTitle)) : /*#__PURE__*/React.createElement(Heading, {
|
|
30
|
-
size:
|
|
30
|
+
size: "small"
|
|
31
31
|
}, title || /*#__PURE__*/React.createElement(FormattedMessage, messages.formTitle)));
|
|
32
32
|
};
|
|
@@ -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: "6.
|
|
9
|
+
packageVersion: "6.12.0"
|
|
10
10
|
}, attributes);
|
|
11
11
|
};
|
|
12
12
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -5,7 +5,8 @@ export declare const InlineDialogFormWrapper: ({ children, integrationMode, isMe
|
|
|
5
5
|
isMenuItemSelected?: boolean | undefined;
|
|
6
6
|
isExtendedShareDialogEnabled?: boolean | undefined;
|
|
7
7
|
}>) => React.JSX.Element;
|
|
8
|
-
export declare const InlineDialogContentWrapper: ({ children, label, }: {
|
|
8
|
+
export declare const InlineDialogContentWrapper: ({ children, label, isExtendedShareDialogEnabled, }: {
|
|
9
9
|
children: React.ReactNode;
|
|
10
10
|
label?: string | undefined;
|
|
11
|
+
isExtendedShareDialogEnabled?: boolean | undefined;
|
|
11
12
|
}) => React.JSX.Element;
|
|
@@ -16,6 +16,7 @@ export declare const InlineDialogFormWrapper: ({ children, integrationMode, isMe
|
|
|
16
16
|
*
|
|
17
17
|
* packages/design-system/inline-dialog/src/InlineDialog/styled.ts:20:3
|
|
18
18
|
*/
|
|
19
|
-
export declare const InlineDialogContentWrapper: ({ children, label, }: PropsWithChildren<{
|
|
19
|
+
export declare const InlineDialogContentWrapper: ({ children, label, isExtendedShareDialogEnabled, }: PropsWithChildren<{
|
|
20
20
|
label?: string | undefined;
|
|
21
|
+
isExtendedShareDialogEnabled?: boolean | undefined;
|
|
21
22
|
}>) => jsx.JSX.Element;
|
|
@@ -5,7 +5,8 @@ export declare const InlineDialogFormWrapper: ({ children, integrationMode, isMe
|
|
|
5
5
|
isMenuItemSelected?: boolean | undefined;
|
|
6
6
|
isExtendedShareDialogEnabled?: boolean | undefined;
|
|
7
7
|
}>) => React.JSX.Element;
|
|
8
|
-
export declare const InlineDialogContentWrapper: ({ children, label, }: {
|
|
8
|
+
export declare const InlineDialogContentWrapper: ({ children, label, isExtendedShareDialogEnabled, }: {
|
|
9
9
|
children: React.ReactNode;
|
|
10
10
|
label?: string | undefined;
|
|
11
|
+
isExtendedShareDialogEnabled?: boolean | undefined;
|
|
11
12
|
}) => React.JSX.Element;
|
|
@@ -16,6 +16,7 @@ export declare const InlineDialogFormWrapper: ({ children, integrationMode, isMe
|
|
|
16
16
|
*
|
|
17
17
|
* packages/design-system/inline-dialog/src/InlineDialog/styled.ts:20:3
|
|
18
18
|
*/
|
|
19
|
-
export declare const InlineDialogContentWrapper: ({ children, label, }: PropsWithChildren<{
|
|
19
|
+
export declare const InlineDialogContentWrapper: ({ children, label, isExtendedShareDialogEnabled, }: PropsWithChildren<{
|
|
20
20
|
label?: string | undefined;
|
|
21
|
+
isExtendedShareDialogEnabled?: boolean | undefined;
|
|
21
22
|
}>) => jsx.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/share",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.13.0",
|
|
4
4
|
"description": "Fabric Share Element",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/dropdown-menu": "^16.1.0",
|
|
45
45
|
"@atlaskit/form": "^12.0.0",
|
|
46
46
|
"@atlaskit/heading": "^5.2.0",
|
|
47
|
-
"@atlaskit/icon": "^27.
|
|
47
|
+
"@atlaskit/icon": "^27.1.0",
|
|
48
48
|
"@atlaskit/link": "^3.2.0",
|
|
49
49
|
"@atlaskit/menu": "^8.0.0",
|
|
50
50
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
"@atlaskit/tabs": "^18.1.0",
|
|
58
58
|
"@atlaskit/textarea": "^8.0.0",
|
|
59
59
|
"@atlaskit/theme": "^18.0.0",
|
|
60
|
-
"@atlaskit/tokens": "^5.
|
|
60
|
+
"@atlaskit/tokens": "^5.4.0",
|
|
61
61
|
"@atlaskit/tooltip": "^20.3.0",
|
|
62
62
|
"@atlaskit/ufo": "^0.4.0",
|
|
63
|
-
"@atlaskit/user-picker": "^11.
|
|
63
|
+
"@atlaskit/user-picker": "^11.3.0",
|
|
64
64
|
"@atlaskit/util-service-support": "^6.3.0",
|
|
65
65
|
"@babel/runtime": "^7.0.0",
|
|
66
66
|
"@emotion/react": "^11.7.1",
|
|
@@ -131,9 +131,6 @@
|
|
|
131
131
|
"share-compiled-migration": {
|
|
132
132
|
"type": "boolean"
|
|
133
133
|
},
|
|
134
|
-
"platform_share_custom_header_prop": {
|
|
135
|
-
"type": "boolean"
|
|
136
|
-
},
|
|
137
134
|
"share-header-accessibility": {
|
|
138
135
|
"type": "boolean"
|
|
139
136
|
},
|