@atlaskit/share 4.18.3 → 4.18.4
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 +6 -0
- package/compass.yml +0 -1
- package/dist/cjs/components/CopyLinkButton.js +3 -1
- 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 +2 -1
- 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 +4 -0
- 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 +2 -0
- 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 +4 -0
- 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 +2 -0
- 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 +120 -120
package/CHANGELOG.md
CHANGED
package/compass.yml
CHANGED
|
@@ -24,10 +24,12 @@ var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
|
24
24
|
var _styled = require("./ShareFormWrapper/styled");
|
|
25
25
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
26
26
|
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 */
|
|
27
|
+
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
28
|
var Z_INDEX = _constants.layers.modal();
|
|
29
29
|
var AUTO_DISMISS_SECONDS = 8;
|
|
30
30
|
var AUTO_DISMISS_MS = exports.AUTO_DISMISS_MS = AUTO_DISMISS_SECONDS * 1000;
|
|
31
|
+
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
31
33
|
var messageContainerStyle = exports.messageContainerStyle = (0, _react2.css)({
|
|
32
34
|
display: 'flex',
|
|
33
35
|
alignItems: 'center',
|
|
@@ -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) {
|
|
@@ -35,7 +35,8 @@ var _utils = require("./utils");
|
|
|
35
35
|
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
36
|
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
37
|
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
|
|
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 @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
39
|
+
// eslint-disable-next-line no-duplicate-imports
|
|
39
40
|
var shareButtonWrapperStyles = (0, _react2.css)({
|
|
40
41
|
display: 'inline-flex',
|
|
41
42
|
outline: 'none'
|
|
@@ -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.4"
|
|
17
17
|
}, attributes);
|
|
18
18
|
};
|
|
19
19
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -1,6 +1,8 @@
|
|
|
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';
|
|
@@ -14,6 +16,8 @@ import Button from './styles';
|
|
|
14
16
|
const Z_INDEX = layers.modal();
|
|
15
17
|
const AUTO_DISMISS_SECONDS = 8;
|
|
16
18
|
export const AUTO_DISMISS_MS = AUTO_DISMISS_SECONDS * 1000;
|
|
19
|
+
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
17
21
|
export const messageContainerStyle = css({
|
|
18
22
|
display: 'flex',
|
|
19
23
|
alignItems: 'center',
|
|
@@ -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,6 +1,8 @@
|
|
|
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';
|
|
@@ -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.4",
|
|
5
5
|
...attributes
|
|
6
6
|
});
|
|
7
7
|
const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
|
|
@@ -9,6 +9,8 @@ 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';
|
|
@@ -22,6 +24,8 @@ import Button from './styles';
|
|
|
22
24
|
var Z_INDEX = layers.modal();
|
|
23
25
|
var AUTO_DISMISS_SECONDS = 8;
|
|
24
26
|
export var AUTO_DISMISS_MS = AUTO_DISMISS_SECONDS * 1000;
|
|
27
|
+
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
25
29
|
export var messageContainerStyle = css({
|
|
26
30
|
display: 'flex',
|
|
27
31
|
alignItems: 'center',
|
|
@@ -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,6 +13,8 @@ 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';
|
|
@@ -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.4"
|
|
10
10
|
}, attributes);
|
|
11
11
|
};
|
|
12
12
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
package/package.json
CHANGED
|
@@ -1,121 +1,121 @@
|
|
|
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.4",
|
|
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/popper": "^6.1.0",
|
|
51
|
+
"@atlaskit/popup": "^1.19.0",
|
|
52
|
+
"@atlaskit/portal": "^4.6.0",
|
|
53
|
+
"@atlaskit/primitives": "^8.0.0",
|
|
54
|
+
"@atlaskit/smart-user-picker": "^6.9.0",
|
|
55
|
+
"@atlaskit/spinner": "^16.2.0",
|
|
56
|
+
"@atlaskit/tabs": "^16.2.0",
|
|
57
|
+
"@atlaskit/textarea": "^5.5.0",
|
|
58
|
+
"@atlaskit/theme": "^12.10.0",
|
|
59
|
+
"@atlaskit/tokens": "^1.51.0",
|
|
60
|
+
"@atlaskit/tooltip": "^18.5.0",
|
|
61
|
+
"@atlaskit/ufo": "^0.2.0",
|
|
62
|
+
"@atlaskit/user-picker": "^10.21.0",
|
|
63
|
+
"@atlaskit/util-service-support": "^6.2.0",
|
|
64
|
+
"@babel/runtime": "^7.0.0",
|
|
65
|
+
"@emotion/react": "^11.7.1",
|
|
66
|
+
"@react-loosely-lazy/manifest": "^1.0.0",
|
|
67
|
+
"fast-deep-equal": "^3.1.1",
|
|
68
|
+
"memoize-one": "^6.0.0",
|
|
69
|
+
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
70
|
+
"react-loosely-lazy": "^1.0.0",
|
|
71
|
+
"tiny-invariant": "^1.2.0"
|
|
72
|
+
},
|
|
73
|
+
"peerDependencies": {
|
|
74
|
+
"react": "^16.8.0"
|
|
75
|
+
},
|
|
76
|
+
"devDependencies": {
|
|
77
|
+
"@atlaskit/editor-test-helpers": "^18.23.0",
|
|
78
|
+
"@atlaskit/flag": "^15.6.0",
|
|
79
|
+
"@testing-library/react": "^12.1.5",
|
|
80
|
+
"@testing-library/user-event": "^14.4.3",
|
|
81
|
+
"enzyme": "^3.10.0",
|
|
82
|
+
"enzyme-adapter-react-16": "^1.15.1",
|
|
83
|
+
"react": "^16.8.0",
|
|
84
|
+
"typescript": "~5.4.2"
|
|
85
|
+
},
|
|
86
|
+
"keywords": [
|
|
87
|
+
"ui",
|
|
88
|
+
"share",
|
|
89
|
+
"fabric",
|
|
90
|
+
"teams"
|
|
91
|
+
],
|
|
92
|
+
"techstack": {
|
|
93
|
+
"@atlassian/frontend": {
|
|
94
|
+
"package-boundaries": [
|
|
95
|
+
"linting"
|
|
96
|
+
],
|
|
97
|
+
"tree-shaking": [
|
|
98
|
+
"atlassian-conventions"
|
|
99
|
+
],
|
|
100
|
+
"import-structure": [
|
|
101
|
+
"atlassian-conventions"
|
|
102
|
+
],
|
|
103
|
+
"circular-dependencies": [
|
|
104
|
+
"file-and-folder-level"
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"@repo/internal": {
|
|
108
|
+
"ui-components": "lite-mode",
|
|
109
|
+
"analytics": "analytics-next",
|
|
110
|
+
"deprecation": "no-deprecated-imports",
|
|
111
|
+
"design-tokens": [
|
|
112
|
+
"color"
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"af:exports": {
|
|
117
|
+
".": "./src/index.ts",
|
|
118
|
+
"./clients": "./src/clients/index.ts",
|
|
119
|
+
"./copy-link-button": "./src/components/CopyLinkButton.tsx"
|
|
120
|
+
}
|
|
121
|
+
}
|