@atlaskit/share 4.18.3 → 4.18.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/afm-cc/tsconfig.json +3 -0
- package/compass.yml +0 -1
- package/dist/cjs/components/CopyLinkButton.js +6 -2
- package/dist/cjs/components/IntegrationButton.js +4 -0
- package/dist/cjs/components/IntegrationForm.js +2 -0
- package/dist/cjs/components/LazyShareForm/LazyShareForm.js +12 -6
- package/dist/cjs/components/LazyShareForm/lazy.js +9 -8
- package/dist/cjs/components/ShareDialogWithTrigger.js +5 -2
- package/dist/cjs/components/ShareForm.js +7 -1
- package/dist/cjs/components/ShareFormWrapper/styled.js +7 -3
- package/dist/cjs/components/ShareHeader.js +17 -11
- package/dist/cjs/components/SplitButton.js +1 -0
- package/dist/cjs/components/analytics/analytics.js +1 -1
- package/dist/es2019/components/CopyLinkButton.js +7 -1
- package/dist/es2019/components/IntegrationButton.js +5 -0
- package/dist/es2019/components/IntegrationForm.js +3 -0
- package/dist/es2019/components/LazyShareForm/LazyShareForm.js +13 -7
- package/dist/es2019/components/LazyShareForm/lazy.js +11 -8
- package/dist/es2019/components/ShareDialogWithTrigger.js +5 -1
- package/dist/es2019/components/ShareForm.js +8 -0
- package/dist/es2019/components/ShareFormWrapper/styled.js +7 -4
- package/dist/es2019/components/ShareHeader.js +6 -1
- package/dist/es2019/components/SplitButton.js +3 -0
- package/dist/es2019/components/analytics/analytics.js +1 -1
- package/dist/esm/components/CopyLinkButton.js +7 -1
- package/dist/esm/components/IntegrationButton.js +5 -0
- package/dist/esm/components/IntegrationForm.js +3 -0
- package/dist/esm/components/LazyShareForm/LazyShareForm.js +13 -7
- package/dist/esm/components/LazyShareForm/lazy.js +11 -8
- package/dist/esm/components/ShareDialogWithTrigger.js +5 -1
- package/dist/esm/components/ShareForm.js +8 -0
- package/dist/esm/components/ShareFormWrapper/styled.js +7 -4
- package/dist/esm/components/ShareHeader.js +17 -11
- package/dist/esm/components/SplitButton.js +2 -0
- package/dist/esm/components/analytics/analytics.js +1 -1
- package/package.json +126 -120
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/share
|
|
2
2
|
|
|
3
|
+
## 4.18.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#111756](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111756)
|
|
8
|
+
[`c2d33a4c17472`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c2d33a4c17472) -
|
|
9
|
+
PTC-9281 Fix reading order in Share Dialog
|
|
10
|
+
|
|
11
|
+
## 4.18.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 4.18.3
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
package/compass.yml
CHANGED
|
@@ -16,6 +16,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
16
16
|
var _react2 = require("@emotion/react");
|
|
17
17
|
var _checkCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/check-circle"));
|
|
18
18
|
var _linkFilled = _interopRequireDefault(require("@atlaskit/icon/glyph/link-filled"));
|
|
19
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
20
|
var _popup = _interopRequireDefault(require("@atlaskit/popup"));
|
|
20
21
|
var _primitives = require("@atlaskit/primitives");
|
|
21
22
|
var _colors = require("@atlaskit/theme/colors");
|
|
@@ -24,10 +25,12 @@ var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
|
24
25
|
var _styled = require("./ShareFormWrapper/styled");
|
|
25
26
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
26
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); }; }
|
|
27
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
28
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
28
29
|
var Z_INDEX = _constants.layers.modal();
|
|
29
30
|
var AUTO_DISMISS_SECONDS = 8;
|
|
30
31
|
var AUTO_DISMISS_MS = exports.AUTO_DISMISS_MS = AUTO_DISMISS_SECONDS * 1000;
|
|
32
|
+
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
31
34
|
var messageContainerStyle = exports.messageContainerStyle = (0, _react2.css)({
|
|
32
35
|
display: 'flex',
|
|
33
36
|
alignItems: 'center',
|
|
@@ -163,7 +166,8 @@ var CopyLinkButton = exports.CopyLinkButton = /*#__PURE__*/function (_React$Comp
|
|
|
163
166
|
content: copyTooltipText,
|
|
164
167
|
position: "bottom-start"
|
|
165
168
|
}, _this2.renderTriggerButton(triggerProps)) : _this2.renderTriggerButton(triggerProps);
|
|
166
|
-
}
|
|
169
|
+
},
|
|
170
|
+
shouldRenderToParent: (0, _platformFeatureFlags.getBooleanFF)('platform.enable-appropriate-reading-order-in-share-dialog_fu49') ? true : false
|
|
167
171
|
}));
|
|
168
172
|
}
|
|
169
173
|
}]);
|
|
@@ -14,7 +14,11 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
14
14
|
var _excluded = ["text", "textColor", "IntegrationIcon"];
|
|
15
15
|
var _templateObject, _templateObject2;
|
|
16
16
|
/** @jsx jsx */
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/design-system/no-css-tagged-template-expression -- Ignored via go/DSP-18766
|
|
17
19
|
var integrationButtonCopyWrapperStyle = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tdisplay: flex;\n\tjustify-content: left;\n"])));
|
|
20
|
+
|
|
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
|
|
18
22
|
var integrationIconWrapperStyle = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\tmargin: ", " ", " ", "\n\t\t", ";\n"])), "var(--ds-space-025, 2px)", "var(--ds-space-100, 8px)", "var(--ds-space-0, 0px)", "var(--ds-space-0, 0px)");
|
|
19
23
|
var IntegrationButton = function IntegrationButton(props) {
|
|
20
24
|
var text = props.text,
|
|
@@ -11,6 +11,8 @@ var _react2 = require("@emotion/react");
|
|
|
11
11
|
var _typography = require("@atlaskit/theme/typography");
|
|
12
12
|
var _templateObject;
|
|
13
13
|
/** @jsx jsx */
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css, @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/design-system/no-css-tagged-template-expression -- Ignored via go/DSP-18766
|
|
14
16
|
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)");
|
|
15
17
|
var IntegrationForm = exports.IntegrationForm = function IntegrationForm(_ref) {
|
|
16
18
|
var Content = _ref.Content,
|
|
@@ -19,8 +19,18 @@ var _utils = require("../utils");
|
|
|
19
19
|
/** @jsx jsx */
|
|
20
20
|
/** @jsxFrag */
|
|
21
21
|
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
|
+
|
|
22
24
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
23
25
|
|
|
26
|
+
var footerBottomMessageStyles = (0, _react2.css)({
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
28
|
+
width: "".concat((0, _constants.gridSize)() * 44, "px")
|
|
29
|
+
});
|
|
30
|
+
var footerCustomStyles = (0, _react2.css)({
|
|
31
|
+
margin: "0 ".concat("var(--ds-space-negative-300, -24px)", " ", "var(--ds-space-negative-200, -16px)", " ", "var(--ds-space-negative-300, -24px)")
|
|
32
|
+
});
|
|
33
|
+
|
|
24
34
|
/**
|
|
25
35
|
* A Share form content which is lazy-loaded.
|
|
26
36
|
* Make sure this component is not exported inside main entry points `src/index.ts`
|
|
@@ -64,13 +74,9 @@ function LazyShareForm(props) {
|
|
|
64
74
|
isBrowseUsersDisabled = props.isBrowseUsersDisabled,
|
|
65
75
|
userPickerOptions = props.userPickerOptions;
|
|
66
76
|
var footer = (0, _react2.jsx)("div", null, bottomMessage ? (0, _react2.jsx)("div", {
|
|
67
|
-
css:
|
|
68
|
-
width: "".concat((0, _constants.gridSize)() * 44, "px")
|
|
69
|
-
}
|
|
77
|
+
css: footerBottomMessageStyles
|
|
70
78
|
}, bottomMessage) : null, customFooter && selectedIntegration === null && (0, _react2.jsx)("div", {
|
|
71
|
-
css:
|
|
72
|
-
margin: "0 ".concat("var(--ds-space-negative-300, -24px)", " ", "var(--ds-space-negative-200, -16px)", " ", "var(--ds-space-negative-300, -24px)")
|
|
73
|
-
}
|
|
79
|
+
css: footerCustomStyles
|
|
74
80
|
}, customFooter));
|
|
75
81
|
_react.default.useEffect(function () {
|
|
76
82
|
setIsLoading(false);
|
|
@@ -12,7 +12,14 @@ 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; } /** @jsx jsx */
|
|
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; } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
|
+
var spinnerWrapperStyles = (0, _react2.css)({
|
|
17
|
+
width: '100%',
|
|
18
|
+
height: '100%',
|
|
19
|
+
display: 'flex',
|
|
20
|
+
justifyContent: 'center',
|
|
21
|
+
alignContent: 'center'
|
|
22
|
+
});
|
|
16
23
|
var LazyShareFormLazy = (0, _reactLooselyLazy.lazyForPaint)(function () {
|
|
17
24
|
return Promise.resolve().then(function () {
|
|
18
25
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_share-form" */
|
|
@@ -38,13 +45,7 @@ var LoadingDialog = function LoadingDialog(_ref) {
|
|
|
38
45
|
,
|
|
39
46
|
shouldShowTitle: typeof showTitle === 'boolean' ? showTitle : true
|
|
40
47
|
}, (0, _react2.jsx)("div", {
|
|
41
|
-
css:
|
|
42
|
-
width: '100%',
|
|
43
|
-
height: '100%',
|
|
44
|
-
display: 'flex',
|
|
45
|
-
justifyContent: 'center',
|
|
46
|
-
alignContent: 'center'
|
|
47
|
-
}
|
|
48
|
+
css: spinnerWrapperStyles
|
|
48
49
|
}, (0, _react2.jsx)(_spinner.default, null)));
|
|
49
50
|
};
|
|
50
51
|
var _default = exports.default = function _default(props) {
|
|
@@ -19,6 +19,7 @@ var _react2 = require("@emotion/react");
|
|
|
19
19
|
var _reactIntlNext = require("react-intl-next");
|
|
20
20
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
21
21
|
var _share = _interopRequireDefault(require("@atlaskit/icon/glyph/share"));
|
|
22
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
23
|
var _popup = _interopRequireDefault(require("@atlaskit/popup"));
|
|
23
24
|
var _portal = _interopRequireDefault(require("@atlaskit/portal"));
|
|
24
25
|
var _constants = require("@atlaskit/theme/constants");
|
|
@@ -35,7 +36,8 @@ var _utils = require("./utils");
|
|
|
35
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; }
|
|
36
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; }
|
|
37
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); }; }
|
|
38
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line
|
|
39
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
40
|
+
// eslint-disable-next-line no-duplicate-imports
|
|
39
41
|
var shareButtonWrapperStyles = (0, _react2.css)({
|
|
40
42
|
display: 'inline-flex',
|
|
41
43
|
outline: 'none'
|
|
@@ -618,7 +620,8 @@ var ShareDialogWithTriggerInternal = exports.ShareDialogWithTriggerInternal = /*
|
|
|
618
620
|
offset: this.calculatePopupOffset({
|
|
619
621
|
isMenuItemSelected: isMenuItemSelected,
|
|
620
622
|
dialogPlacement: dialogPlacement
|
|
621
|
-
})
|
|
623
|
+
}),
|
|
624
|
+
shouldRenderToParent: (0, _platformFeatureFlags.getBooleanFF)('platform.enable-appropriate-reading-order-in-share-dialog_fu49') ? true : false
|
|
622
625
|
}), (0, _react2.jsx)(_portal.default, {
|
|
623
626
|
zIndex: (0, _utils.generateSelectZIndex)(dialogZIndex)
|
|
624
627
|
}, (0, _react2.jsx)("div", {
|
|
@@ -42,7 +42,7 @@ 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; })(); } /** @jsx jsx */
|
|
45
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
46
46
|
var submitButtonWrapperStyles = (0, _react2.css)({
|
|
47
47
|
display: 'flex',
|
|
48
48
|
marginLeft: 'auto'
|
|
@@ -51,17 +51,23 @@ var centerAlignedIconWrapperStyles = (0, _react2.css)({
|
|
|
51
51
|
display: 'flex',
|
|
52
52
|
alignSelf: 'center',
|
|
53
53
|
padding: "var(--ds-space-0, 0px)".concat(" ", "var(--ds-space-150, 12px)"),
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
54
55
|
'> div': {
|
|
55
56
|
lineHeight: 1
|
|
56
57
|
}
|
|
57
58
|
});
|
|
59
|
+
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
58
61
|
var formWrapperStyles = exports.formWrapperStyles = (0, _react2.css)({
|
|
59
62
|
marginTop: "var(--ds-space-100, 8px)",
|
|
60
63
|
width: '100%',
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
61
65
|
'#ghx-modes-tools #ghx-share & h1:first-child': {
|
|
62
66
|
marginTop: 0
|
|
63
67
|
}
|
|
64
68
|
});
|
|
69
|
+
|
|
70
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
65
71
|
var formFooterStyles = exports.formFooterStyles = (0, _react2.css)({
|
|
66
72
|
display: 'flex',
|
|
67
73
|
justifyContent: 'flex-start'
|
|
@@ -8,6 +8,8 @@ var _react = require("@emotion/react");
|
|
|
8
8
|
var _ShareMenuItem = require("../ShareMenuItem");
|
|
9
9
|
/** @jsx jsx */
|
|
10
10
|
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
|
+
|
|
11
13
|
/**
|
|
12
14
|
* Set fixed width considering full form width and full menu width in order
|
|
13
15
|
* to prevent dialog form from bouncing when isLoading prop is set to true.
|
|
@@ -27,6 +29,7 @@ var InlineDialogFormWrapper = exports.InlineDialogFormWrapper = function InlineD
|
|
|
27
29
|
integrationMode = _ref2.integrationMode,
|
|
28
30
|
isMenuItemSelected = _ref2.isMenuItemSelected;
|
|
29
31
|
return (0, _react.jsx)("div", {
|
|
32
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
30
33
|
css: {
|
|
31
34
|
width: calculateFormWrapperWidth({
|
|
32
35
|
integrationMode: integrationMode,
|
|
@@ -35,6 +38,9 @@ var InlineDialogFormWrapper = exports.InlineDialogFormWrapper = function InlineD
|
|
|
35
38
|
}
|
|
36
39
|
}, children);
|
|
37
40
|
};
|
|
41
|
+
var inlineDialogContentWrapperStyles = (0, _react.css)({
|
|
42
|
+
padding: "var(--ds-space-200, 16px)".concat(" ", "var(--ds-space-300, 24px)")
|
|
43
|
+
});
|
|
38
44
|
|
|
39
45
|
/**
|
|
40
46
|
* Apply the same styling, as previous @atlaskit/inline-dialog had,
|
|
@@ -46,9 +52,7 @@ var InlineDialogContentWrapper = exports.InlineDialogContentWrapper = function I
|
|
|
46
52
|
var children = _ref3.children,
|
|
47
53
|
label = _ref3.label;
|
|
48
54
|
return (0, _react.jsx)("div", {
|
|
49
|
-
css:
|
|
50
|
-
padding: "var(--ds-space-200, 16px)".concat(" ", "var(--ds-space-300, 24px)")
|
|
51
|
-
},
|
|
55
|
+
css: inlineDialogContentWrapperStyles,
|
|
52
56
|
"aria-label": label
|
|
53
57
|
}, children);
|
|
54
58
|
};
|
|
@@ -12,22 +12,28 @@ var _typography = require("@atlaskit/theme/typography");
|
|
|
12
12
|
var _i18n = require("../i18n");
|
|
13
13
|
/** @jsx jsx */
|
|
14
14
|
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
|
+
|
|
15
17
|
var headerWrapperStyles = (0, _react2.css)({
|
|
16
18
|
display: 'flex',
|
|
17
19
|
justifyContent: 'space-between'
|
|
18
20
|
});
|
|
19
21
|
var getFormHeaderTitleStyles = exports.getFormHeaderTitleStyles = function getFormHeaderTitleStyles(theme) {
|
|
20
|
-
return (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
22
|
+
return (
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
24
|
+
(0, _react2.css)((0, _typography.h500)(theme), {
|
|
25
|
+
lineHeight: "var(--ds-space-400, 32px)",
|
|
26
|
+
marginRight: "var(--ds-space-400, 32px)",
|
|
27
|
+
marginTop: "var(--ds-space-400, 32px)",
|
|
28
|
+
overflow: 'hidden',
|
|
29
|
+
textOverflow: 'ellipsis',
|
|
30
|
+
whiteSpace: 'nowrap',
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
32
|
+
'> span': {
|
|
33
|
+
fontSize: 'initial'
|
|
34
|
+
}
|
|
35
|
+
})
|
|
36
|
+
);
|
|
31
37
|
};
|
|
32
38
|
var ShareHeader = exports.ShareHeader = function ShareHeader(_ref) {
|
|
33
39
|
var title = _ref.title;
|
|
@@ -21,6 +21,7 @@ var _analytics = require("./analytics/analytics");
|
|
|
21
21
|
var _IntegrationButton = _interopRequireDefault(require("./IntegrationButton"));
|
|
22
22
|
var _excluded = ["triggerRef"];
|
|
23
23
|
/** @jsx jsx */
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
24
25
|
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); }
|
|
25
26
|
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; }
|
|
26
27
|
// span
|
|
@@ -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.18.
|
|
16
|
+
packageVersion: "4.18.5"
|
|
17
17
|
}, attributes);
|
|
18
18
|
};
|
|
19
19
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import React from 'react';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import { css, jsx } from '@emotion/react';
|
|
5
7
|
import CheckCircleIcon from '@atlaskit/icon/glyph/check-circle';
|
|
6
8
|
import LinkFilledIcon from '@atlaskit/icon/glyph/link-filled';
|
|
9
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
7
10
|
import Popup from '@atlaskit/popup';
|
|
8
11
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
9
12
|
import { G300 } from '@atlaskit/theme/colors';
|
|
@@ -14,6 +17,8 @@ import Button from './styles';
|
|
|
14
17
|
const Z_INDEX = layers.modal();
|
|
15
18
|
const AUTO_DISMISS_SECONDS = 8;
|
|
16
19
|
export const AUTO_DISMISS_MS = AUTO_DISMISS_SECONDS * 1000;
|
|
20
|
+
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
17
22
|
export const messageContainerStyle = css({
|
|
18
23
|
display: 'flex',
|
|
19
24
|
alignItems: 'center',
|
|
@@ -135,7 +140,8 @@ export class CopyLinkButton extends React.Component {
|
|
|
135
140
|
trigger: triggerProps => copyTooltipText ? jsx(Tooltip, {
|
|
136
141
|
content: copyTooltipText,
|
|
137
142
|
position: "bottom-start"
|
|
138
|
-
}, this.renderTriggerButton(triggerProps)) : this.renderTriggerButton(triggerProps)
|
|
143
|
+
}, this.renderTriggerButton(triggerProps)) : this.renderTriggerButton(triggerProps),
|
|
144
|
+
shouldRenderToParent: getBooleanFF('platform.enable-appropriate-reading-order-in-share-dialog_fu49') ? true : false
|
|
139
145
|
}));
|
|
140
146
|
}
|
|
141
147
|
}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { css, jsx } from '@emotion/react';
|
|
4
6
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
5
7
|
import { N500 } from '@atlaskit/theme/colors';
|
|
8
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/design-system/no-css-tagged-template-expression -- Ignored via go/DSP-18766
|
|
6
9
|
const integrationButtonCopyWrapperStyle = css`
|
|
7
10
|
display: flex;
|
|
8
11
|
justify-content: left;
|
|
9
12
|
`;
|
|
13
|
+
|
|
14
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/design-system/no-css-tagged-template-expression -- Ignored via go/DSP-18766
|
|
10
15
|
const integrationIconWrapperStyle = css`
|
|
11
16
|
margin: ${"var(--ds-space-025, 2px)"} ${"var(--ds-space-100, 8px)"} ${"var(--ds-space-0, 0px)"}
|
|
12
17
|
${"var(--ds-space-0, 0px)"};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { css, jsx } from '@emotion/react';
|
|
4
6
|
import { h500 } from '@atlaskit/theme/typography';
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css, @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/design-system/no-css-tagged-template-expression -- Ignored via go/DSP-18766
|
|
5
8
|
export const formWrapperStyle = css`
|
|
6
9
|
[class^='FormHeader__FormHeaderWrapper'] {
|
|
7
10
|
h1:first-child {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
/** @jsxFrag */
|
|
3
3
|
import React from 'react';
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
5
7
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
8
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
7
9
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
@@ -12,6 +14,14 @@ import { IntegrationForm } from '../IntegrationForm';
|
|
|
12
14
|
import { ShareForm } from '../ShareForm';
|
|
13
15
|
import { ShareFormWrapper } from '../ShareFormWrapper';
|
|
14
16
|
import { allowEmails } from '../utils';
|
|
17
|
+
const footerBottomMessageStyles = css({
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
|
+
width: `${gridSize() * 44}px`
|
|
20
|
+
});
|
|
21
|
+
const footerCustomStyles = css({
|
|
22
|
+
margin: `0 ${"var(--ds-space-negative-300, -24px)"} ${"var(--ds-space-negative-200, -16px)"} ${"var(--ds-space-negative-300, -24px)"}`
|
|
23
|
+
});
|
|
24
|
+
|
|
15
25
|
/**
|
|
16
26
|
* A Share form content which is lazy-loaded.
|
|
17
27
|
* Make sure this component is not exported inside main entry points `src/index.ts`
|
|
@@ -60,13 +70,9 @@ function LazyShareForm(props) {
|
|
|
60
70
|
userPickerOptions
|
|
61
71
|
} = props;
|
|
62
72
|
const footer = jsx("div", null, bottomMessage ? jsx("div", {
|
|
63
|
-
css:
|
|
64
|
-
width: `${gridSize() * 44}px`
|
|
65
|
-
}
|
|
73
|
+
css: footerBottomMessageStyles
|
|
66
74
|
}, bottomMessage) : null, customFooter && selectedIntegration === null && jsx("div", {
|
|
67
|
-
css:
|
|
68
|
-
margin: `0 ${"var(--ds-space-negative-300, -24px)"} ${"var(--ds-space-negative-200, -16px)"} ${"var(--ds-space-negative-300, -24px)"}`
|
|
69
|
-
}
|
|
75
|
+
css: footerCustomStyles
|
|
70
76
|
}, customFooter));
|
|
71
77
|
React.useEffect(() => {
|
|
72
78
|
setIsLoading(false);
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
4
6
|
import { lazyForPaint, LazySuspense } from 'react-loosely-lazy';
|
|
5
7
|
import Spinner from '@atlaskit/spinner';
|
|
6
8
|
import { ShareFormWrapper } from '../ShareFormWrapper';
|
|
9
|
+
const spinnerWrapperStyles = css({
|
|
10
|
+
width: '100%',
|
|
11
|
+
height: '100%',
|
|
12
|
+
display: 'flex',
|
|
13
|
+
justifyContent: 'center',
|
|
14
|
+
alignContent: 'center'
|
|
15
|
+
});
|
|
7
16
|
const LazyShareFormLazy = lazyForPaint(() => import( /* webpackChunkName: "@atlaskit-internal_share-form" */
|
|
8
17
|
'./LazyShareForm'), {
|
|
9
18
|
ssr: false
|
|
@@ -26,13 +35,7 @@ const LoadingDialog = ({
|
|
|
26
35
|
,
|
|
27
36
|
shouldShowTitle: typeof showTitle === 'boolean' ? showTitle : true
|
|
28
37
|
}, jsx("div", {
|
|
29
|
-
css:
|
|
30
|
-
width: '100%',
|
|
31
|
-
height: '100%',
|
|
32
|
-
display: 'flex',
|
|
33
|
-
justifyContent: 'center',
|
|
34
|
-
alignContent: 'center'
|
|
35
|
-
}
|
|
38
|
+
css: spinnerWrapperStyles
|
|
36
39
|
}, jsx(Spinner, null)));
|
|
37
40
|
};
|
|
38
41
|
export default (props => jsx(LazySuspense, {
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import React from 'react';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import { css, jsx } from '@emotion/react';
|
|
5
7
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
6
8
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
7
9
|
import ShareIcon from '@atlaskit/icon/glyph/share';
|
|
10
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
8
11
|
import Popup from '@atlaskit/popup';
|
|
9
12
|
import Portal from '@atlaskit/portal';
|
|
10
13
|
import { layers } from '@atlaskit/theme/constants';
|
|
@@ -564,7 +567,8 @@ export class ShareDialogWithTriggerInternal extends React.PureComponent {
|
|
|
564
567
|
offset: this.calculatePopupOffset({
|
|
565
568
|
isMenuItemSelected,
|
|
566
569
|
dialogPlacement
|
|
567
|
-
})
|
|
570
|
+
}),
|
|
571
|
+
shouldRenderToParent: getBooleanFF('platform.enable-appropriate-reading-order-in-share-dialog_fu49') ? true : false
|
|
568
572
|
}), jsx(Portal, {
|
|
569
573
|
zIndex: generateSelectZIndex(dialogZIndex)
|
|
570
574
|
}, jsx("div", {
|
|
@@ -2,6 +2,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import React from 'react';
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
7
|
import { css, jsx } from '@emotion/react';
|
|
6
8
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
7
9
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
@@ -32,17 +34,23 @@ const centerAlignedIconWrapperStyles = css({
|
|
|
32
34
|
display: 'flex',
|
|
33
35
|
alignSelf: 'center',
|
|
34
36
|
padding: `${"var(--ds-space-0, 0px)"} ${"var(--ds-space-150, 12px)"}`,
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
35
38
|
'> div': {
|
|
36
39
|
lineHeight: 1
|
|
37
40
|
}
|
|
38
41
|
});
|
|
42
|
+
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
39
44
|
export const formWrapperStyles = css({
|
|
40
45
|
marginTop: "var(--ds-space-100, 8px)",
|
|
41
46
|
width: '100%',
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
42
48
|
'#ghx-modes-tools #ghx-share & h1:first-child': {
|
|
43
49
|
marginTop: 0
|
|
44
50
|
}
|
|
45
51
|
});
|
|
52
|
+
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
46
54
|
export const formFooterStyles = css({
|
|
47
55
|
display: 'flex',
|
|
48
56
|
justifyContent: 'flex-start'
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
4
5
|
import { menuWrapperWidth } from '../ShareMenuItem';
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -24,6 +25,7 @@ export const InlineDialogFormWrapper = ({
|
|
|
24
25
|
isMenuItemSelected
|
|
25
26
|
}) => {
|
|
26
27
|
return jsx("div", {
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
27
29
|
css: {
|
|
28
30
|
width: calculateFormWrapperWidth({
|
|
29
31
|
integrationMode,
|
|
@@ -32,6 +34,9 @@ export const InlineDialogFormWrapper = ({
|
|
|
32
34
|
}
|
|
33
35
|
}, children);
|
|
34
36
|
};
|
|
37
|
+
const inlineDialogContentWrapperStyles = css({
|
|
38
|
+
padding: `${"var(--ds-space-200, 16px)"} ${"var(--ds-space-300, 24px)"}`
|
|
39
|
+
});
|
|
35
40
|
|
|
36
41
|
/**
|
|
37
42
|
* Apply the same styling, as previous @atlaskit/inline-dialog had,
|
|
@@ -44,9 +49,7 @@ export const InlineDialogContentWrapper = ({
|
|
|
44
49
|
label
|
|
45
50
|
}) => {
|
|
46
51
|
return jsx("div", {
|
|
47
|
-
css:
|
|
48
|
-
padding: `${"var(--ds-space-200, 16px)"} ${"var(--ds-space-300, 24px)"}`
|
|
49
|
-
},
|
|
52
|
+
css: inlineDialogContentWrapperStyles,
|
|
50
53
|
"aria-label": label
|
|
51
54
|
}, children);
|
|
52
55
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { css, jsx, useTheme } from '@emotion/react';
|
|
4
6
|
import { FormattedMessage } from 'react-intl-next';
|
|
5
7
|
import { h500 } from '@atlaskit/theme/typography';
|
|
@@ -8,13 +10,16 @@ const headerWrapperStyles = css({
|
|
|
8
10
|
display: 'flex',
|
|
9
11
|
justifyContent: 'space-between'
|
|
10
12
|
});
|
|
11
|
-
export const getFormHeaderTitleStyles = theme =>
|
|
13
|
+
export const getFormHeaderTitleStyles = theme =>
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
|
+
css(h500(theme), {
|
|
12
16
|
lineHeight: "var(--ds-space-400, 32px)",
|
|
13
17
|
marginRight: "var(--ds-space-400, 32px)",
|
|
14
18
|
marginTop: "var(--ds-space-400, 32px)",
|
|
15
19
|
overflow: 'hidden',
|
|
16
20
|
textOverflow: 'ellipsis',
|
|
17
21
|
whiteSpace: 'nowrap',
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
18
23
|
'> span': {
|
|
19
24
|
fontSize: 'initial'
|
|
20
25
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import React, { useCallback } from 'react';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import { css, jsx } from '@emotion/react';
|
|
5
7
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
8
|
import { SplitButton as AKSplitButton, IconButton } from '@atlaskit/button/new';
|
|
@@ -13,6 +15,7 @@ import IntegrationButton from './IntegrationButton';
|
|
|
13
15
|
|
|
14
16
|
// span
|
|
15
17
|
const dropDownIntegrationButtonWrapperStyles = css({
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
16
19
|
['button:hover']: {
|
|
17
20
|
background: 'transparent'
|
|
18
21
|
}
|
|
@@ -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.18.
|
|
4
|
+
packageVersion: "4.18.5",
|
|
5
5
|
...attributes
|
|
6
6
|
});
|
|
7
7
|
const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
|
|
@@ -9,9 +9,12 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
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
|
/** @jsx jsx */
|
|
11
11
|
import React from 'react';
|
|
12
|
+
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
14
|
import { css, jsx } from '@emotion/react';
|
|
13
15
|
import CheckCircleIcon from '@atlaskit/icon/glyph/check-circle';
|
|
14
16
|
import LinkFilledIcon from '@atlaskit/icon/glyph/link-filled';
|
|
17
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
15
18
|
import Popup from '@atlaskit/popup';
|
|
16
19
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
17
20
|
import { G300 } from '@atlaskit/theme/colors';
|
|
@@ -22,6 +25,8 @@ import Button from './styles';
|
|
|
22
25
|
var Z_INDEX = layers.modal();
|
|
23
26
|
var AUTO_DISMISS_SECONDS = 8;
|
|
24
27
|
export var AUTO_DISMISS_MS = AUTO_DISMISS_SECONDS * 1000;
|
|
28
|
+
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
25
30
|
export var messageContainerStyle = css({
|
|
26
31
|
display: 'flex',
|
|
27
32
|
alignItems: 'center',
|
|
@@ -157,7 +162,8 @@ export var CopyLinkButton = /*#__PURE__*/function (_React$Component) {
|
|
|
157
162
|
content: copyTooltipText,
|
|
158
163
|
position: "bottom-start"
|
|
159
164
|
}, _this2.renderTriggerButton(triggerProps)) : _this2.renderTriggerButton(triggerProps);
|
|
160
|
-
}
|
|
165
|
+
},
|
|
166
|
+
shouldRenderToParent: getBooleanFF('platform.enable-appropriate-reading-order-in-share-dialog_fu49') ? true : false
|
|
161
167
|
}));
|
|
162
168
|
}
|
|
163
169
|
}]);
|
|
@@ -4,10 +4,15 @@ var _excluded = ["text", "textColor", "IntegrationIcon"];
|
|
|
4
4
|
var _templateObject, _templateObject2;
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import React from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
9
|
import { css, jsx } from '@emotion/react';
|
|
8
10
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
9
11
|
import { N500 } from '@atlaskit/theme/colors';
|
|
12
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/design-system/no-css-tagged-template-expression -- Ignored via go/DSP-18766
|
|
10
13
|
var integrationButtonCopyWrapperStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tdisplay: flex;\n\tjustify-content: left;\n"])));
|
|
14
|
+
|
|
15
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/design-system/no-css-tagged-template-expression -- Ignored via go/DSP-18766
|
|
11
16
|
var integrationIconWrapperStyle = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\tmargin: ", " ", " ", "\n\t\t", ";\n"])), "var(--ds-space-025, 2px)", "var(--ds-space-100, 8px)", "var(--ds-space-0, 0px)", "var(--ds-space-0, 0px)");
|
|
12
17
|
var IntegrationButton = function IntegrationButton(props) {
|
|
13
18
|
var text = props.text,
|
|
@@ -2,8 +2,11 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
var _templateObject;
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import React from 'react';
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
7
|
import { css, jsx } from '@emotion/react';
|
|
6
8
|
import { h500 } from '@atlaskit/theme/typography';
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css, @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/design-system/no-css-tagged-template-expression -- Ignored via go/DSP-18766
|
|
7
10
|
export var formWrapperStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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"])), h500(), "var(--ds-space-0, 0px)", "var(--ds-space-150, 12px)", "var(--ds-space-300, 24px)", "var(--ds-space-150, 12px)");
|
|
8
11
|
export var IntegrationForm = function IntegrationForm(_ref) {
|
|
9
12
|
var Content = _ref.Content,
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
/** @jsxFrag */
|
|
3
3
|
import React from 'react';
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
5
7
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
8
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
7
9
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
@@ -12,6 +14,14 @@ import { IntegrationForm } from '../IntegrationForm';
|
|
|
12
14
|
import { ShareForm } from '../ShareForm';
|
|
13
15
|
import { ShareFormWrapper } from '../ShareFormWrapper';
|
|
14
16
|
import { allowEmails } from '../utils';
|
|
17
|
+
var footerBottomMessageStyles = css({
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
|
+
width: "".concat(gridSize() * 44, "px")
|
|
20
|
+
});
|
|
21
|
+
var footerCustomStyles = css({
|
|
22
|
+
margin: "0 ".concat("var(--ds-space-negative-300, -24px)", " ", "var(--ds-space-negative-200, -16px)", " ", "var(--ds-space-negative-300, -24px)")
|
|
23
|
+
});
|
|
24
|
+
|
|
15
25
|
/**
|
|
16
26
|
* A Share form content which is lazy-loaded.
|
|
17
27
|
* Make sure this component is not exported inside main entry points `src/index.ts`
|
|
@@ -55,13 +65,9 @@ function LazyShareForm(props) {
|
|
|
55
65
|
isBrowseUsersDisabled = props.isBrowseUsersDisabled,
|
|
56
66
|
userPickerOptions = props.userPickerOptions;
|
|
57
67
|
var footer = jsx("div", null, bottomMessage ? jsx("div", {
|
|
58
|
-
css:
|
|
59
|
-
width: "".concat(gridSize() * 44, "px")
|
|
60
|
-
}
|
|
68
|
+
css: footerBottomMessageStyles
|
|
61
69
|
}, bottomMessage) : null, customFooter && selectedIntegration === null && jsx("div", {
|
|
62
|
-
css:
|
|
63
|
-
margin: "0 ".concat("var(--ds-space-negative-300, -24px)", " ", "var(--ds-space-negative-200, -16px)", " ", "var(--ds-space-negative-300, -24px)")
|
|
64
|
-
}
|
|
70
|
+
css: footerCustomStyles
|
|
65
71
|
}, customFooter));
|
|
66
72
|
React.useEffect(function () {
|
|
67
73
|
setIsLoading(false);
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
4
6
|
import { lazyForPaint, LazySuspense } from 'react-loosely-lazy';
|
|
5
7
|
import Spinner from '@atlaskit/spinner';
|
|
6
8
|
import { ShareFormWrapper } from '../ShareFormWrapper';
|
|
9
|
+
var spinnerWrapperStyles = css({
|
|
10
|
+
width: '100%',
|
|
11
|
+
height: '100%',
|
|
12
|
+
display: 'flex',
|
|
13
|
+
justifyContent: 'center',
|
|
14
|
+
alignContent: 'center'
|
|
15
|
+
});
|
|
7
16
|
var LazyShareFormLazy = lazyForPaint(function () {
|
|
8
17
|
return import( /* webpackChunkName: "@atlaskit-internal_share-form" */
|
|
9
18
|
'./LazyShareForm');
|
|
@@ -27,13 +36,7 @@ var LoadingDialog = function LoadingDialog(_ref) {
|
|
|
27
36
|
,
|
|
28
37
|
shouldShowTitle: typeof showTitle === 'boolean' ? showTitle : true
|
|
29
38
|
}, jsx("div", {
|
|
30
|
-
css:
|
|
31
|
-
width: '100%',
|
|
32
|
-
height: '100%',
|
|
33
|
-
display: 'flex',
|
|
34
|
-
justifyContent: 'center',
|
|
35
|
-
alignContent: 'center'
|
|
36
|
-
}
|
|
39
|
+
css: spinnerWrapperStyles
|
|
37
40
|
}, jsx(Spinner, null)));
|
|
38
41
|
};
|
|
39
42
|
export default (function (props) {
|
|
@@ -13,10 +13,13 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
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
|
/** @jsx jsx */
|
|
15
15
|
import React from 'react';
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
18
|
import { css, jsx } from '@emotion/react';
|
|
17
19
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
18
20
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
19
21
|
import ShareIcon from '@atlaskit/icon/glyph/share';
|
|
22
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
20
23
|
import Popup from '@atlaskit/popup';
|
|
21
24
|
import Portal from '@atlaskit/portal';
|
|
22
25
|
import { layers } from '@atlaskit/theme/constants';
|
|
@@ -616,7 +619,8 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
616
619
|
offset: this.calculatePopupOffset({
|
|
617
620
|
isMenuItemSelected: isMenuItemSelected,
|
|
618
621
|
dialogPlacement: dialogPlacement
|
|
619
|
-
})
|
|
622
|
+
}),
|
|
623
|
+
shouldRenderToParent: getBooleanFF('platform.enable-appropriate-reading-order-in-share-dialog_fu49') ? true : false
|
|
620
624
|
}), jsx(Portal, {
|
|
621
625
|
zIndex: generateSelectZIndex(dialogZIndex)
|
|
622
626
|
}, jsx("div", {
|
|
@@ -12,6 +12,8 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
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
|
/** @jsx jsx */
|
|
14
14
|
import React from 'react';
|
|
15
|
+
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
17
|
import { css, jsx } from '@emotion/react';
|
|
16
18
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
17
19
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
@@ -42,17 +44,23 @@ var centerAlignedIconWrapperStyles = css({
|
|
|
42
44
|
display: 'flex',
|
|
43
45
|
alignSelf: 'center',
|
|
44
46
|
padding: "var(--ds-space-0, 0px)".concat(" ", "var(--ds-space-150, 12px)"),
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
45
48
|
'> div': {
|
|
46
49
|
lineHeight: 1
|
|
47
50
|
}
|
|
48
51
|
});
|
|
52
|
+
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
49
54
|
export var formWrapperStyles = css({
|
|
50
55
|
marginTop: "var(--ds-space-100, 8px)",
|
|
51
56
|
width: '100%',
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
52
58
|
'#ghx-modes-tools #ghx-share & h1:first-child': {
|
|
53
59
|
marginTop: 0
|
|
54
60
|
}
|
|
55
61
|
});
|
|
62
|
+
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
56
64
|
export var formFooterStyles = css({
|
|
57
65
|
display: 'flex',
|
|
58
66
|
justifyContent: 'flex-start'
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
4
5
|
import { menuWrapperWidth } from '../ShareMenuItem';
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -22,6 +23,7 @@ export var InlineDialogFormWrapper = function InlineDialogFormWrapper(_ref2) {
|
|
|
22
23
|
integrationMode = _ref2.integrationMode,
|
|
23
24
|
isMenuItemSelected = _ref2.isMenuItemSelected;
|
|
24
25
|
return jsx("div", {
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
25
27
|
css: {
|
|
26
28
|
width: calculateFormWrapperWidth({
|
|
27
29
|
integrationMode: integrationMode,
|
|
@@ -30,6 +32,9 @@ export var InlineDialogFormWrapper = function InlineDialogFormWrapper(_ref2) {
|
|
|
30
32
|
}
|
|
31
33
|
}, children);
|
|
32
34
|
};
|
|
35
|
+
var inlineDialogContentWrapperStyles = css({
|
|
36
|
+
padding: "var(--ds-space-200, 16px)".concat(" ", "var(--ds-space-300, 24px)")
|
|
37
|
+
});
|
|
33
38
|
|
|
34
39
|
/**
|
|
35
40
|
* Apply the same styling, as previous @atlaskit/inline-dialog had,
|
|
@@ -41,9 +46,7 @@ export var InlineDialogContentWrapper = function InlineDialogContentWrapper(_ref
|
|
|
41
46
|
var children = _ref3.children,
|
|
42
47
|
label = _ref3.label;
|
|
43
48
|
return jsx("div", {
|
|
44
|
-
css:
|
|
45
|
-
padding: "var(--ds-space-200, 16px)".concat(" ", "var(--ds-space-300, 24px)")
|
|
46
|
-
},
|
|
49
|
+
css: inlineDialogContentWrapperStyles,
|
|
47
50
|
"aria-label": label
|
|
48
51
|
}, children);
|
|
49
52
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { css, jsx, useTheme } from '@emotion/react';
|
|
4
6
|
import { FormattedMessage } from 'react-intl-next';
|
|
5
7
|
import { h500 } from '@atlaskit/theme/typography';
|
|
@@ -9,17 +11,21 @@ var headerWrapperStyles = css({
|
|
|
9
11
|
justifyContent: 'space-between'
|
|
10
12
|
});
|
|
11
13
|
export var getFormHeaderTitleStyles = function getFormHeaderTitleStyles(theme) {
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
return (
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
16
|
+
css(h500(theme), {
|
|
17
|
+
lineHeight: "var(--ds-space-400, 32px)",
|
|
18
|
+
marginRight: "var(--ds-space-400, 32px)",
|
|
19
|
+
marginTop: "var(--ds-space-400, 32px)",
|
|
20
|
+
overflow: 'hidden',
|
|
21
|
+
textOverflow: 'ellipsis',
|
|
22
|
+
whiteSpace: 'nowrap',
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
24
|
+
'> span': {
|
|
25
|
+
fontSize: 'initial'
|
|
26
|
+
}
|
|
27
|
+
})
|
|
28
|
+
);
|
|
23
29
|
};
|
|
24
30
|
export var ShareHeader = function ShareHeader(_ref) {
|
|
25
31
|
var title = _ref.title;
|
|
@@ -4,6 +4,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
4
4
|
var _excluded = ["triggerRef"];
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import React, { useCallback } from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
9
|
import { css, jsx } from '@emotion/react';
|
|
8
10
|
import { FormattedMessage } from 'react-intl-next';
|
|
9
11
|
import { SplitButton as AKSplitButton, IconButton } from '@atlaskit/button/new';
|
|
@@ -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.18.
|
|
9
|
+
packageVersion: "4.18.5"
|
|
10
10
|
}, attributes);
|
|
11
11
|
};
|
|
12
12
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
package/package.json
CHANGED
|
@@ -1,121 +1,127 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
2
|
+
"name": "@atlaskit/share",
|
|
3
|
+
"version": "4.18.5",
|
|
4
|
+
"description": "Fabric Share Element",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"registry": "https://registry.npmjs.org/"
|
|
7
|
+
},
|
|
8
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
9
|
+
"author": "Atlassian Pty Ltd",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"main": "dist/cjs/index.js",
|
|
12
|
+
"module": "dist/esm/index.js",
|
|
13
|
+
"module:es2019": "dist/es2019/index.js",
|
|
14
|
+
"types": "dist/types/index.d.ts",
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
">=4.5 <4.9": {
|
|
17
|
+
"*": [
|
|
18
|
+
"dist/types-ts4.5/*",
|
|
19
|
+
"dist/types-ts4.5/index.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"atlaskit:src": "src/index.ts",
|
|
24
|
+
"atlassian": {
|
|
25
|
+
"team": "People and Teams Collective",
|
|
26
|
+
"releaseModel": "continuous",
|
|
27
|
+
"productPushConsumption": [
|
|
28
|
+
"jira"
|
|
29
|
+
],
|
|
30
|
+
"website": {
|
|
31
|
+
"name": "Share"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"lint:fix": "(cd ../../.. && yarn workspace @atlaskit/codeshifts format-package-jsons && yarn eslint --fix 'packages/elements/share/**/*.{ts,tsx,ts}')",
|
|
36
|
+
"lint": "(cd ../../.. && yarn eslint 'packages/elements/share/**/*.{ts,tsx,ts}')",
|
|
37
|
+
"typecheck": "NODE_OPTIONS=--max-old-space-size=4096 tsc --noEmit --project ./tsconfig.json",
|
|
38
|
+
"test": "(cd ../../.. && yarn test 'packages/elements/share')"
|
|
39
|
+
},
|
|
40
|
+
"config": {
|
|
41
|
+
"access": "private"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@atlaskit/analytics-next": "^9.3.0",
|
|
45
|
+
"@atlaskit/button": "^17.22.0",
|
|
46
|
+
"@atlaskit/dropdown-menu": "^12.13.0",
|
|
47
|
+
"@atlaskit/form": "^10.4.0",
|
|
48
|
+
"@atlaskit/icon": "^22.4.0",
|
|
49
|
+
"@atlaskit/menu": "^2.5.0",
|
|
50
|
+
"@atlaskit/platform-feature-flags": "^0.2.4",
|
|
51
|
+
"@atlaskit/popper": "^6.1.0",
|
|
52
|
+
"@atlaskit/popup": "^1.19.0",
|
|
53
|
+
"@atlaskit/portal": "^4.6.0",
|
|
54
|
+
"@atlaskit/primitives": "^8.0.0",
|
|
55
|
+
"@atlaskit/smart-user-picker": "^6.9.0",
|
|
56
|
+
"@atlaskit/spinner": "^16.2.0",
|
|
57
|
+
"@atlaskit/tabs": "^16.2.0",
|
|
58
|
+
"@atlaskit/textarea": "^5.5.0",
|
|
59
|
+
"@atlaskit/theme": "^12.10.0",
|
|
60
|
+
"@atlaskit/tokens": "^1.51.0",
|
|
61
|
+
"@atlaskit/tooltip": "^18.5.0",
|
|
62
|
+
"@atlaskit/ufo": "^0.2.0",
|
|
63
|
+
"@atlaskit/user-picker": "^10.21.0",
|
|
64
|
+
"@atlaskit/util-service-support": "^6.2.0",
|
|
65
|
+
"@babel/runtime": "^7.0.0",
|
|
66
|
+
"@emotion/react": "^11.7.1",
|
|
67
|
+
"@react-loosely-lazy/manifest": "^1.0.0",
|
|
68
|
+
"fast-deep-equal": "^3.1.1",
|
|
69
|
+
"memoize-one": "^6.0.0",
|
|
70
|
+
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
71
|
+
"react-loosely-lazy": "^1.0.0",
|
|
72
|
+
"tiny-invariant": "^1.2.0"
|
|
73
|
+
},
|
|
74
|
+
"peerDependencies": {
|
|
75
|
+
"react": "^16.8.0"
|
|
76
|
+
},
|
|
77
|
+
"devDependencies": {
|
|
78
|
+
"@atlaskit/editor-test-helpers": "^18.23.0",
|
|
79
|
+
"@atlaskit/flag": "^15.6.0",
|
|
80
|
+
"@testing-library/react": "^12.1.5",
|
|
81
|
+
"@testing-library/user-event": "^14.4.3",
|
|
82
|
+
"enzyme": "^3.10.0",
|
|
83
|
+
"enzyme-adapter-react-16": "^1.15.1",
|
|
84
|
+
"react": "^16.8.0",
|
|
85
|
+
"typescript": "~5.4.2"
|
|
86
|
+
},
|
|
87
|
+
"keywords": [
|
|
88
|
+
"ui",
|
|
89
|
+
"share",
|
|
90
|
+
"fabric",
|
|
91
|
+
"teams"
|
|
92
|
+
],
|
|
93
|
+
"techstack": {
|
|
94
|
+
"@atlassian/frontend": {
|
|
95
|
+
"package-boundaries": [
|
|
96
|
+
"linting"
|
|
97
|
+
],
|
|
98
|
+
"tree-shaking": [
|
|
99
|
+
"atlassian-conventions"
|
|
100
|
+
],
|
|
101
|
+
"import-structure": [
|
|
102
|
+
"atlassian-conventions"
|
|
103
|
+
],
|
|
104
|
+
"circular-dependencies": [
|
|
105
|
+
"file-and-folder-level"
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
"@repo/internal": {
|
|
109
|
+
"ui-components": "lite-mode",
|
|
110
|
+
"analytics": "analytics-next",
|
|
111
|
+
"deprecation": "no-deprecated-imports",
|
|
112
|
+
"design-tokens": [
|
|
113
|
+
"color"
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"af:exports": {
|
|
118
|
+
".": "./src/index.ts",
|
|
119
|
+
"./clients": "./src/clients/index.ts",
|
|
120
|
+
"./copy-link-button": "./src/components/CopyLinkButton.tsx"
|
|
121
|
+
},
|
|
122
|
+
"platform-feature-flags": {
|
|
123
|
+
"platform.enable-appropriate-reading-order-in-share-dialog_fu49": {
|
|
124
|
+
"type": "boolean"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|