@atlaskit/share 4.2.2 → 4.2.3

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/share
2
2
 
3
+ ## 4.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`d6d8c718bd8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6d8c718bd8) - Internal change to enforce token usage for spacing properties. There is no expected visual or behaviour change.
8
+
3
9
  ## 4.2.2
4
10
 
5
11
  ### Patch Changes
@@ -19,6 +19,8 @@ var _utils = require("../utils");
19
19
  /** @jsx jsx */
20
20
  /** @jsxFrag */
21
21
 
22
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
23
+
22
24
  /**
23
25
  * A Share form content which is lazy-loaded.
24
26
  * Make sure this component is not exported inside main entry points `src/index.ts`
@@ -64,7 +66,7 @@ function LazyShareForm(props) {
64
66
  }
65
67
  }, bottomMessage) : null, customFooter && selectedIntegration === null && (0, _react2.jsx)("div", {
66
68
  css: {
67
- margin: "0 ".concat(-(0, _constants.gridSize)() * 3, "px ").concat(-(0, _constants.gridSize)() * 2, "px ").concat(-(0, _constants.gridSize)() * 3, "px")
69
+ margin: "0 calc(-1 * ".concat("var(--ds-space-300, 24px)", ") calc(-1 * ", "var(--ds-space-200, 16px)", ") calc(-1 * ", "var(--ds-space-300, 24px)", ")")
68
70
  }
69
71
  }, customFooter));
70
72
  _react.default.useEffect(function () {
@@ -24,7 +24,6 @@ var _form = _interopRequireDefault(require("@atlaskit/form"));
24
24
  var _error = _interopRequireDefault(require("@atlaskit/icon/glyph/error"));
25
25
  var _tabs = _interopRequireWildcard(require("@atlaskit/tabs"));
26
26
  var _colors = require("@atlaskit/theme/colors");
27
- var _constants = require("@atlaskit/theme/constants");
28
27
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
29
28
  var _i18n = require("../i18n");
30
29
  var _types = require("../types");
@@ -44,7 +43,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
44
43
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
45
44
  var submitButtonWrapperStyles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n margin-left: auto;\n"])));
46
45
  var centerAlignedIconWrapperStyles = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-self: center;\n padding: 0 10px;\n\n > div {\n line-height: 1;\n }\n"])));
47
- var formWrapperStyles = (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n margin-top: ", "px;\n width: 100%;\n\n /* jira has a class override font settings on h1 in gh-custom-field-pickers.css */\n #ghx-modes-tools #ghx-share & h1:first-child {\n margin-top: 0;\n }\n"])), (0, _constants.gridSize)());
46
+ var formWrapperStyles = (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n margin-top: ", ";\n width: 100%;\n\n /* jira has a class override font settings on h1 in gh-custom-field-pickers.css */\n #ghx-modes-tools #ghx-share & h1:first-child {\n margin-top: 0;\n }\n"])), "var(--ds-space-100, 8px)");
48
47
  exports.formWrapperStyles = formWrapperStyles;
49
48
  var formFooterStyles = (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: flex-start;\n"])));
50
49
  exports.formFooterStyles = formFooterStyles;
@@ -7,14 +7,13 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.InlineDialogFormWrapper = exports.InlineDialogContentWrapper = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _react2 = require("@emotion/react");
10
- var _constants = require("@atlaskit/theme/constants");
11
10
  /** @jsx jsx */
12
11
 
13
12
  var InlineDialogFormWrapper = function InlineDialogFormWrapper(_ref) {
14
13
  var children = _ref.children;
15
14
  return (0, _react2.jsx)("div", {
16
15
  css: {
17
- width: "".concat((0, _constants.gridSize)() * 44, "px")
16
+ width: "".concat(8 * 44, "px")
18
17
  }
19
18
  }, children);
20
19
  };
@@ -30,7 +29,7 @@ var InlineDialogContentWrapper = function InlineDialogContentWrapper(_ref2) {
30
29
  var children = _ref2.children;
31
30
  return (0, _react2.jsx)("div", {
32
31
  css: {
33
- padding: "".concat((0, _constants.gridSize)() * 2, "px ").concat((0, _constants.gridSize)() * 3, "px")
32
+ padding: "var(--ds-space-200, 16px)".concat(" ", "var(--ds-space-300, 24px)")
34
33
  }
35
34
  }, children);
36
35
  };
@@ -9,14 +9,13 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _react2 = require("@emotion/react");
11
11
  var _reactIntlNext = require("react-intl-next");
12
- var _constants = require("@atlaskit/theme/constants");
13
12
  var _typography = require("@atlaskit/theme/typography");
14
13
  var _i18n = require("../i18n");
15
14
  var _templateObject, _templateObject2;
16
15
  /** @jsx jsx */
17
16
  var headerWrapperStyles = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between;\n"])));
18
17
  var getFormHeaderTitleStyles = function getFormHeaderTitleStyles(theme) {
19
- return (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n line-height: ", "px;\n margin-right: ", "px;\n margin-top: ", "px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n > span {\n font-size: initial;\n }\n"])), (0, _typography.h500)(theme), (0, _constants.gridSize)() * 4, (0, _constants.gridSize)() * 4, (0, _constants.gridSize)() * 4);
18
+ return (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n line-height: ", ";\n margin-right: ", ";\n margin-top: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n > span {\n font-size: initial;\n }\n"])), (0, _typography.h500)(theme), "var(--ds-font-lineHeight-500, 32px)", "var(--ds-space-400, 32px)", "var(--ds-space-400, 32px)");
20
19
  };
21
20
  exports.getFormHeaderTitleStyles = getFormHeaderTitleStyles;
22
21
  var ShareHeader = function ShareHeader(_ref) {
@@ -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.2.2"
16
+ packageVersion: "4.2.3"
17
17
  }, attributes);
18
18
  };
19
19
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "4.2.2"
3
+ "version": "4.2.3"
4
4
  }
@@ -4,6 +4,7 @@ import React from 'react';
4
4
  import { jsx } from '@emotion/react';
5
5
  import { FormattedMessage } from 'react-intl-next';
6
6
  import { AnalyticsContext } from '@atlaskit/analytics-next';
7
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
7
8
  import { gridSize } from '@atlaskit/theme/constants';
8
9
  import { messages } from '../../i18n';
9
10
  import { INTEGRATION_MODAL_SOURCE } from '../analytics/analytics';
@@ -61,7 +62,7 @@ function LazyShareForm(props) {
61
62
  }
62
63
  }, bottomMessage) : null, customFooter && selectedIntegration === null && jsx("div", {
63
64
  css: {
64
- margin: `0 ${-gridSize() * 3}px ${-gridSize() * 2}px ${-gridSize() * 3}px`
65
+ margin: `0 calc(-1 * ${"var(--ds-space-300, 24px)"}) calc(-1 * ${"var(--ds-space-200, 16px)"}) calc(-1 * ${"var(--ds-space-300, 24px)"})`
65
66
  }
66
67
  }, customFooter));
67
68
  React.useEffect(() => {
@@ -10,7 +10,6 @@ import Form from '@atlaskit/form';
10
10
  import ErrorIcon from '@atlaskit/icon/glyph/error';
11
11
  import Tabs, { Tab, TabList, TabPanel } from '@atlaskit/tabs';
12
12
  import { R400 } from '@atlaskit/theme/colors';
13
- import { gridSize } from '@atlaskit/theme/constants';
14
13
  import Tooltip from '@atlaskit/tooltip';
15
14
  import { messages } from '../i18n';
16
15
  import { TabType } from '../types';
@@ -34,7 +33,7 @@ const centerAlignedIconWrapperStyles = css`
34
33
  }
35
34
  `;
36
35
  export const formWrapperStyles = css`
37
- margin-top: ${gridSize()}px;
36
+ margin-top: ${"var(--ds-space-100, 8px)"};
38
37
  width: 100%;
39
38
 
40
39
  /* jira has a class override font settings on h1 in gh-custom-field-pickers.css */
@@ -2,12 +2,11 @@
2
2
 
3
3
  import React from 'react';
4
4
  import { jsx } from '@emotion/react';
5
- import { gridSize } from '@atlaskit/theme/constants';
6
5
  export const InlineDialogFormWrapper = ({
7
6
  children
8
7
  }) => jsx("div", {
9
8
  css: {
10
- width: `${gridSize() * 44}px`
9
+ width: `${8 * 44}px`
11
10
  }
12
11
  }, children);
13
12
 
@@ -21,6 +20,6 @@ export const InlineDialogContentWrapper = ({
21
20
  children
22
21
  }) => jsx("div", {
23
22
  css: {
24
- padding: `${gridSize() * 2}px ${gridSize() * 3}px`
23
+ padding: `${"var(--ds-space-200, 16px)"} ${"var(--ds-space-300, 24px)"}`
25
24
  }
26
25
  }, children);
@@ -2,7 +2,6 @@
2
2
  import React from 'react';
3
3
  import { css, jsx, useTheme } from '@emotion/react';
4
4
  import { FormattedMessage } from 'react-intl-next';
5
- import { gridSize } from '@atlaskit/theme/constants';
6
5
  import { h500 } from '@atlaskit/theme/typography';
7
6
  import { messages } from '../i18n';
8
7
  const headerWrapperStyles = css`
@@ -11,9 +10,9 @@ const headerWrapperStyles = css`
11
10
  `;
12
11
  export const getFormHeaderTitleStyles = theme => css`
13
12
  ${h500(theme)}
14
- line-height: ${gridSize() * 4}px;
15
- margin-right: ${gridSize() * 4}px;
16
- margin-top: ${gridSize() * 4}px;
13
+ line-height: ${"var(--ds-font-lineHeight-500, 32px)"};
14
+ margin-right: ${"var(--ds-space-400, 32px)"};
15
+ margin-top: ${"var(--ds-space-400, 32px)"};
17
16
  overflow: hidden;
18
17
  text-overflow: ellipsis;
19
18
  white-space: nowrap;
@@ -1,7 +1,7 @@
1
1
  import { isEmail, isTeam, isUser } from '@atlaskit/smart-user-picker';
2
2
  const buildAttributes = (attributes = {}) => ({
3
3
  packageName: "@atlaskit/share",
4
- packageVersion: "4.2.2",
4
+ packageVersion: "4.2.3",
5
5
  ...attributes
6
6
  });
7
7
  const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "4.2.2"
3
+ "version": "4.2.3"
4
4
  }
@@ -4,6 +4,7 @@ import React from 'react';
4
4
  import { jsx } from '@emotion/react';
5
5
  import { FormattedMessage } from 'react-intl-next';
6
6
  import { AnalyticsContext } from '@atlaskit/analytics-next';
7
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
7
8
  import { gridSize } from '@atlaskit/theme/constants';
8
9
  import { messages } from '../../i18n';
9
10
  import { INTEGRATION_MODAL_SOURCE } from '../analytics/analytics';
@@ -56,7 +57,7 @@ function LazyShareForm(props) {
56
57
  }
57
58
  }, bottomMessage) : null, customFooter && selectedIntegration === null && jsx("div", {
58
59
  css: {
59
- margin: "0 ".concat(-gridSize() * 3, "px ").concat(-gridSize() * 2, "px ").concat(-gridSize() * 3, "px")
60
+ margin: "0 calc(-1 * ".concat("var(--ds-space-300, 24px)", ") calc(-1 * ", "var(--ds-space-200, 16px)", ") calc(-1 * ", "var(--ds-space-300, 24px)", ")")
60
61
  }
61
62
  }, customFooter));
62
63
  React.useEffect(function () {
@@ -22,7 +22,6 @@ import Form from '@atlaskit/form';
22
22
  import ErrorIcon from '@atlaskit/icon/glyph/error';
23
23
  import Tabs, { Tab, TabList, TabPanel } from '@atlaskit/tabs';
24
24
  import { R400 } from '@atlaskit/theme/colors';
25
- import { gridSize } from '@atlaskit/theme/constants';
26
25
  import Tooltip from '@atlaskit/tooltip';
27
26
  import { messages } from '../i18n';
28
27
  import { TabType } from '../types';
@@ -34,7 +33,7 @@ import { ShareHeader } from './ShareHeader';
34
33
  import { UserPickerField } from './UserPickerField';
35
34
  var submitButtonWrapperStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n margin-left: auto;\n"])));
36
35
  var centerAlignedIconWrapperStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-self: center;\n padding: 0 10px;\n\n > div {\n line-height: 1;\n }\n"])));
37
- export var formWrapperStyles = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-top: ", "px;\n width: 100%;\n\n /* jira has a class override font settings on h1 in gh-custom-field-pickers.css */\n #ghx-modes-tools #ghx-share & h1:first-child {\n margin-top: 0;\n }\n"])), gridSize());
36
+ export var formWrapperStyles = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-top: ", ";\n width: 100%;\n\n /* jira has a class override font settings on h1 in gh-custom-field-pickers.css */\n #ghx-modes-tools #ghx-share & h1:first-child {\n margin-top: 0;\n }\n"])), "var(--ds-space-100, 8px)");
38
37
  export var formFooterStyles = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: flex-start;\n"])));
39
38
  var formFieldStyles = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-bottom: 12px;\n"])));
40
39
  var integrationWrapperStyles = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n"])));
@@ -2,12 +2,11 @@
2
2
 
3
3
  import React from 'react';
4
4
  import { jsx } from '@emotion/react';
5
- import { gridSize } from '@atlaskit/theme/constants';
6
5
  export var InlineDialogFormWrapper = function InlineDialogFormWrapper(_ref) {
7
6
  var children = _ref.children;
8
7
  return jsx("div", {
9
8
  css: {
10
- width: "".concat(gridSize() * 44, "px")
9
+ width: "".concat(8 * 44, "px")
11
10
  }
12
11
  }, children);
13
12
  };
@@ -22,7 +21,7 @@ export var InlineDialogContentWrapper = function InlineDialogContentWrapper(_ref
22
21
  var children = _ref2.children;
23
22
  return jsx("div", {
24
23
  css: {
25
- padding: "".concat(gridSize() * 2, "px ").concat(gridSize() * 3, "px")
24
+ padding: "var(--ds-space-200, 16px)".concat(" ", "var(--ds-space-300, 24px)")
26
25
  }
27
26
  }, children);
28
27
  };
@@ -4,12 +4,11 @@ var _templateObject, _templateObject2;
4
4
  import React from 'react';
5
5
  import { css, jsx, useTheme } from '@emotion/react';
6
6
  import { FormattedMessage } from 'react-intl-next';
7
- import { gridSize } from '@atlaskit/theme/constants';
8
7
  import { h500 } from '@atlaskit/theme/typography';
9
8
  import { messages } from '../i18n';
10
9
  var headerWrapperStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n"])));
11
10
  export var getFormHeaderTitleStyles = function getFormHeaderTitleStyles(theme) {
12
- return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n line-height: ", "px;\n margin-right: ", "px;\n margin-top: ", "px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n > span {\n font-size: initial;\n }\n"])), h500(theme), gridSize() * 4, gridSize() * 4, gridSize() * 4);
11
+ return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n line-height: ", ";\n margin-right: ", ";\n margin-top: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n > span {\n font-size: initial;\n }\n"])), h500(theme), "var(--ds-font-lineHeight-500, 32px)", "var(--ds-space-400, 32px)", "var(--ds-space-400, 32px)");
13
12
  };
14
13
  export var ShareHeader = function ShareHeader(_ref) {
15
14
  var title = _ref.title;
@@ -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.2.2"
9
+ packageVersion: "4.2.3"
10
10
  }, attributes);
11
11
  };
12
12
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "4.2.2"
3
+ "version": "4.2.3"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "4.2.2",
3
+ "version": "4.2.3",
4
4
  "description": "Fabric Share Element",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -48,7 +48,7 @@
48
48
  "@atlaskit/smart-user-picker": "^6.1.0",
49
49
  "@atlaskit/spinner": "^15.5.0",
50
50
  "@atlaskit/tabs": "^13.4.0",
51
- "@atlaskit/textarea": "^4.6.0",
51
+ "@atlaskit/textarea": "^4.7.0",
52
52
  "@atlaskit/theme": "^12.5.0",
53
53
  "@atlaskit/tokens": "^1.4.0",
54
54
  "@atlaskit/tooltip": "^17.8.0",
@@ -69,10 +69,10 @@
69
69
  },
70
70
  "devDependencies": {
71
71
  "@atlaskit/docs": "^9.1.0",
72
- "@atlaskit/editor-test-helpers": "^18.3.0",
72
+ "@atlaskit/editor-test-helpers": "^18.5.0",
73
73
  "@atlaskit/flag": "^15.2.0",
74
74
  "@atlaskit/section-message": "^6.4.0",
75
- "@atlaskit/select": "^16.2.0",
75
+ "@atlaskit/select": "^16.4.0",
76
76
  "@atlaskit/toggle": "^12.6.0",
77
77
  "@atlaskit/util-data-test": "^17.8.0",
78
78
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",