@atlaskit/share 6.16.6 → 6.16.8

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.
Files changed (29) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/components/LazyShareForm/LazyShareForm.js +1 -5
  3. package/dist/cjs/components/ShareDialogContainer.js +5 -0
  4. package/dist/cjs/components/ShareForm.js +1 -1
  5. package/dist/cjs/components/ShareFormNext.compiled.css +1 -1
  6. package/dist/cjs/components/ShareFormNext.js +1 -1
  7. package/dist/cjs/components/ShareMenuItem.js +1 -1
  8. package/dist/cjs/components/analytics/analytics.js +1 -1
  9. package/dist/es2019/components/LazyShareForm/LazyShareForm.js +1 -4
  10. package/dist/es2019/components/ShareDialogContainer.js +6 -0
  11. package/dist/es2019/components/ShareForm.js +1 -1
  12. package/dist/es2019/components/ShareFormNext.compiled.css +1 -1
  13. package/dist/es2019/components/ShareFormNext.js +1 -1
  14. package/dist/es2019/components/ShareMenuItem.js +1 -1
  15. package/dist/es2019/components/analytics/analytics.js +1 -1
  16. package/dist/es2019/index.js +5 -0
  17. package/dist/esm/components/LazyShareForm/LazyShareForm.js +1 -4
  18. package/dist/esm/components/ShareDialogContainer.js +6 -0
  19. package/dist/esm/components/ShareForm.js +1 -1
  20. package/dist/esm/components/ShareFormNext.compiled.css +1 -1
  21. package/dist/esm/components/ShareFormNext.js +1 -1
  22. package/dist/esm/components/ShareMenuItem.js +1 -1
  23. package/dist/esm/components/analytics/analytics.js +1 -1
  24. package/dist/esm/index.js +5 -0
  25. package/dist/types/components/ShareDialogContainer.d.ts +5 -0
  26. package/dist/types/index.d.ts +5 -0
  27. package/dist/types-ts4.5/components/ShareDialogContainer.d.ts +5 -0
  28. package/dist/types-ts4.5/index.d.ts +5 -0
  29. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/share
2
2
 
3
+ ## 6.16.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`beaa6ee463aa8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/beaa6ee463aa8) -
8
+ Internal changes to how border radius is applied.
9
+ - Updated dependencies
10
+
11
+ ## 6.16.7
12
+
13
+ ### Patch Changes
14
+
15
+ - [`20a5aa8c4e7a0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/20a5aa8c4e7a0) -
16
+ Removed gridSize import. No visual changes.
17
+ - Updated dependencies
18
+
3
19
  ## 6.16.6
4
20
 
5
21
  ### Patch Changes
@@ -10,7 +10,6 @@ var _react2 = require("@emotion/react");
10
10
  var _reactIntlNext = require("react-intl-next");
11
11
  var _analyticsNext = require("@atlaskit/analytics-next");
12
12
  var _compiled = require("@atlaskit/primitives/compiled");
13
- var _constants = require("@atlaskit/theme/constants");
14
13
  var _i18n = require("../../i18n");
15
14
  var _analytics = require("../analytics/analytics");
16
15
  var _IntegrationForm = require("../IntegrationForm");
@@ -25,11 +24,8 @@ var _utils = require("../utils");
25
24
 
26
25
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
27
26
 
28
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
29
-
30
27
  var footerBottomMessageStyles = (0, _react2.css)({
31
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
32
- width: "".concat((0, _constants.gridSize)() * 44, "px")
28
+ width: '352px'
33
29
  });
34
30
  var footerCustomStyles = (0, _react2.css)({
35
31
  margin: "0 ".concat("var(--ds-space-negative-300, -24px)", " ", "var(--ds-space-negative-200, -16px)", " ", "var(--ds-space-negative-300, -24px)")
@@ -459,6 +459,11 @@ var ShareDialogContainerInternal = exports.ShareDialogContainerInternal = /*#__P
459
459
  }
460
460
  }]);
461
461
  }(_react.default.Component);
462
+ /**
463
+ * @deprecated
464
+ * ⚠️ DO NOT USE — This component has been replaced by @atlassian/jira-share-dialog.
465
+ * It will be removed once the switch-over is complete.
466
+ */
462
467
  (0, _defineProperty2.default)(ShareDialogContainerInternal, "defaultProps", {
463
468
  enableSmartUserPicker: false,
464
469
  shareeAction: 'view',
@@ -101,7 +101,7 @@ var requiredFieldInfoStyles = (0, _react2.css)({
101
101
  });
102
102
  var menuGroupContainerStyles = (0, _primitives.xcss)({
103
103
  color: 'color.text',
104
- borderRadius: 'border.radius',
104
+ borderRadius: 'radius.small',
105
105
  backgroundColor: 'elevation.surface.overlay',
106
106
  alignItems: 'flex-start',
107
107
  width: '150px',
@@ -1,5 +1,5 @@
1
1
  ._11c81o8v{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
- ._2rkoglpi{border-radius:var(--ds-border-radius,4px)}
2
+ ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
3
  ._18zrutpp{padding-inline:var(--ds-space-150,9pt)}
4
4
  ._195g10v4{margin-inline:var(--ds-space-negative-300,-24px)}
5
5
  ._1moux0bf{margin-block:var(--ds-space-negative-100,-8px)}
@@ -52,7 +52,7 @@ var styles = {
52
52
  integrationWrapperStyles: "_1e0c1txw _4cvr1h6o",
53
53
  integrationIconWrapperStyles: "_otyr196n _2hwx1b66",
54
54
  requiredFieldInfoStyles: "_11c81o8v _otyrpxbi _syaz1n3s",
55
- menuGroupContainerStyles: "_2rkoglpi _1moux0bf _195g10v4 _syaz1fxt _4cvr1y6m _1bsb1w81"
55
+ menuGroupContainerStyles: "_2rko12b0 _1moux0bf _195g10v4 _syaz1fxt _4cvr1y6m _1bsb1w81"
56
56
  };
57
57
  var integrationTabText = function integrationTabText(integrationName) {
58
58
  return /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.shareInIntegrationButtonText, {
@@ -17,7 +17,7 @@ var iconContainerStyles = (0, _primitives.xcss)({
17
17
  justifyContent: 'center',
18
18
  height: 'size.200',
19
19
  width: 'size.200',
20
- borderRadius: 'border.radius'
20
+ borderRadius: 'radius.small'
21
21
  });
22
22
  var ShareMenuItem = exports.ShareMenuItem = function ShareMenuItem(_ref) {
23
23
  var iconName = _ref.iconName,
@@ -13,7 +13,7 @@ var buildAttributes = function buildAttributes() {
13
13
  var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
14
14
  return _objectSpread({
15
15
  packageName: "@atlaskit/share",
16
- packageVersion: "6.16.5"
16
+ packageVersion: "0.0.0-development"
17
17
  }, attributes);
18
18
  };
19
19
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
@@ -10,8 +10,6 @@ import { css, jsx } from '@emotion/react';
10
10
  import { FormattedMessage } from 'react-intl-next';
11
11
  import { AnalyticsContext } from '@atlaskit/analytics-next';
12
12
  import { Text } from '@atlaskit/primitives/compiled';
13
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
14
- import { gridSize } from '@atlaskit/theme/constants';
15
13
  import { messages } from '../../i18n';
16
14
  import { INTEGRATION_MODAL_SOURCE } from '../analytics/analytics';
17
15
  import { IntegrationForm } from '../IntegrationForm';
@@ -19,8 +17,7 @@ import { ShareForm } from '../ShareForm';
19
17
  import { ShareFormWrapper } from '../ShareFormWrapper';
20
18
  import { allowEmails } from '../utils';
21
19
  const footerBottomMessageStyles = css({
22
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
23
- width: `${gridSize() * 44}px`
20
+ width: '352px'
24
21
  });
25
22
  const footerCustomStyles = css({
26
23
  margin: `0 ${"var(--ds-space-negative-300, -24px)"} ${"var(--ds-space-negative-200, -16px)"} ${"var(--ds-space-negative-300, -24px)"}`
@@ -407,6 +407,12 @@ export class ShareDialogContainerInternal extends React.Component {
407
407
  })));
408
408
  }
409
409
  }
410
+
411
+ /**
412
+ * @deprecated
413
+ * ⚠️ DO NOT USE — This component has been replaced by @atlassian/jira-share-dialog.
414
+ * It will be removed once the switch-over is complete.
415
+ */
410
416
  _defineProperty(ShareDialogContainerInternal, "defaultProps", {
411
417
  enableSmartUserPicker: false,
412
418
  shareeAction: 'view',
@@ -86,7 +86,7 @@ const requiredFieldInfoStyles = css({
86
86
  });
87
87
  const menuGroupContainerStyles = xcss({
88
88
  color: 'color.text',
89
- borderRadius: 'border.radius',
89
+ borderRadius: 'radius.small',
90
90
  backgroundColor: 'elevation.surface.overlay',
91
91
  alignItems: 'flex-start',
92
92
  width: '150px',
@@ -1,5 +1,5 @@
1
1
  ._11c81o8v{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
- ._2rkoglpi{border-radius:var(--ds-border-radius,4px)}
2
+ ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
3
  ._18zrutpp{padding-inline:var(--ds-space-150,9pt)}
4
4
  ._195g10v4{margin-inline:var(--ds-space-negative-300,-24px)}
5
5
  ._1moux0bf{margin-block:var(--ds-space-negative-100,-8px)}
@@ -34,7 +34,7 @@ const styles = {
34
34
  integrationWrapperStyles: "_1e0c1txw _4cvr1h6o",
35
35
  integrationIconWrapperStyles: "_otyr196n _2hwx1b66",
36
36
  requiredFieldInfoStyles: "_11c81o8v _otyrpxbi _syaz1n3s",
37
- menuGroupContainerStyles: "_2rkoglpi _1moux0bf _195g10v4 _syaz1fxt _4cvr1y6m _1bsb1w81"
37
+ menuGroupContainerStyles: "_2rko12b0 _1moux0bf _195g10v4 _syaz1fxt _4cvr1y6m _1bsb1w81"
38
38
  };
39
39
  const integrationTabText = integrationName => /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.shareInIntegrationButtonText, {
40
40
  values: {
@@ -9,7 +9,7 @@ const iconContainerStyles = xcss({
9
9
  justifyContent: 'center',
10
10
  height: 'size.200',
11
11
  width: 'size.200',
12
- borderRadius: 'border.radius'
12
+ borderRadius: 'radius.small'
13
13
  });
14
14
  export const ShareMenuItem = ({
15
15
  iconName,
@@ -1,7 +1,7 @@
1
1
  import { isEmail, isExternalUser, isGroup, isTeam, isUser } from '@atlaskit/smart-user-picker';
2
2
  const buildAttributes = (attributes = {}) => ({
3
3
  packageName: "@atlaskit/share",
4
- packageVersion: "6.16.5",
4
+ packageVersion: "0.0.0-development",
5
5
  ...attributes
6
6
  });
7
7
  const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @deprecated
3
+ * ⚠️ DO NOT USE — This package has been replaced by @atlassian/jira-share-dialog.
4
+ * It will be removed once the switch-over is complete.
5
+ */
1
6
  export { ShareDialogContainer } from './components/ShareDialogContainer';
2
7
  export { CopyLinkButton } from './components/CopyLinkButton';
3
8
  export {
@@ -10,8 +10,6 @@ import { css, jsx } from '@emotion/react';
10
10
  import { FormattedMessage } from 'react-intl-next';
11
11
  import { AnalyticsContext } from '@atlaskit/analytics-next';
12
12
  import { Text } from '@atlaskit/primitives/compiled';
13
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
14
- import { gridSize } from '@atlaskit/theme/constants';
15
13
  import { messages } from '../../i18n';
16
14
  import { INTEGRATION_MODAL_SOURCE } from '../analytics/analytics';
17
15
  import { IntegrationForm } from '../IntegrationForm';
@@ -19,8 +17,7 @@ import { ShareForm } from '../ShareForm';
19
17
  import { ShareFormWrapper } from '../ShareFormWrapper';
20
18
  import { allowEmails } from '../utils';
21
19
  var footerBottomMessageStyles = css({
22
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
23
- width: "".concat(gridSize() * 44, "px")
20
+ width: '352px'
24
21
  });
25
22
  var footerCustomStyles = css({
26
23
  margin: "0 ".concat("var(--ds-space-negative-300, -24px)", " ", "var(--ds-space-negative-200, -16px)", " ", "var(--ds-space-negative-300, -24px)")
@@ -452,6 +452,12 @@ export var ShareDialogContainerInternal = /*#__PURE__*/function (_React$Componen
452
452
  }
453
453
  }]);
454
454
  }(React.Component);
455
+
456
+ /**
457
+ * @deprecated
458
+ * ⚠️ DO NOT USE — This component has been replaced by @atlassian/jira-share-dialog.
459
+ * It will be removed once the switch-over is complete.
460
+ */
455
461
  _defineProperty(ShareDialogContainerInternal, "defaultProps", {
456
462
  enableSmartUserPicker: false,
457
463
  shareeAction: 'view',
@@ -95,7 +95,7 @@ var requiredFieldInfoStyles = css({
95
95
  });
96
96
  var menuGroupContainerStyles = xcss({
97
97
  color: 'color.text',
98
- borderRadius: 'border.radius',
98
+ borderRadius: 'radius.small',
99
99
  backgroundColor: 'elevation.surface.overlay',
100
100
  alignItems: 'flex-start',
101
101
  width: '150px',
@@ -1,5 +1,5 @@
1
1
  ._11c81o8v{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
- ._2rkoglpi{border-radius:var(--ds-border-radius,4px)}
2
+ ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
3
3
  ._18zrutpp{padding-inline:var(--ds-space-150,9pt)}
4
4
  ._195g10v4{margin-inline:var(--ds-space-negative-300,-24px)}
5
5
  ._1moux0bf{margin-block:var(--ds-space-negative-100,-8px)}
@@ -43,7 +43,7 @@ var styles = {
43
43
  integrationWrapperStyles: "_1e0c1txw _4cvr1h6o",
44
44
  integrationIconWrapperStyles: "_otyr196n _2hwx1b66",
45
45
  requiredFieldInfoStyles: "_11c81o8v _otyrpxbi _syaz1n3s",
46
- menuGroupContainerStyles: "_2rkoglpi _1moux0bf _195g10v4 _syaz1fxt _4cvr1y6m _1bsb1w81"
46
+ menuGroupContainerStyles: "_2rko12b0 _1moux0bf _195g10v4 _syaz1fxt _4cvr1y6m _1bsb1w81"
47
47
  };
48
48
  var integrationTabText = function integrationTabText(integrationName) {
49
49
  return /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.shareInIntegrationButtonText, {
@@ -9,7 +9,7 @@ var iconContainerStyles = xcss({
9
9
  justifyContent: 'center',
10
10
  height: 'size.200',
11
11
  width: 'size.200',
12
- borderRadius: 'border.radius'
12
+ borderRadius: 'radius.small'
13
13
  });
14
14
  export var ShareMenuItem = function ShareMenuItem(_ref) {
15
15
  var iconName = _ref.iconName,
@@ -6,7 +6,7 @@ var buildAttributes = function buildAttributes() {
6
6
  var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
7
7
  return _objectSpread({
8
8
  packageName: "@atlaskit/share",
9
- packageVersion: "6.16.5"
9
+ packageVersion: "0.0.0-development"
10
10
  }, attributes);
11
11
  };
12
12
  var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
package/dist/esm/index.js CHANGED
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @deprecated
3
+ * ⚠️ DO NOT USE — This package has been replaced by @atlassian/jira-share-dialog.
4
+ * It will be removed once the switch-over is complete.
5
+ */
1
6
  export { ShareDialogContainer } from './components/ShareDialogContainer';
2
7
  export { CopyLinkButton } from './components/CopyLinkButton';
3
8
  export {
@@ -47,6 +47,11 @@ export declare class ShareDialogContainerInternal extends React.Component<ShareD
47
47
  getFormShareLink: () => string;
48
48
  render(): React.JSX.Element;
49
49
  }
50
+ /**
51
+ * @deprecated
52
+ * ⚠️ DO NOT USE — This component has been replaced by @atlassian/jira-share-dialog.
53
+ * It will be removed once the switch-over is complete.
54
+ */
50
55
  export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Omit<Pick<Omit<ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, never> & {
51
56
  integrationMode?: import("../types/ShareEntities").IntegrationMode | undefined;
52
57
  shareIntegrations?: Array<import("../types").Integration> | undefined;
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @deprecated
3
+ * ⚠️ DO NOT USE — This package has been replaced by @atlassian/jira-share-dialog.
4
+ * It will be removed once the switch-over is complete.
5
+ */
1
6
  export { ShareDialogContainer } from './components/ShareDialogContainer';
2
7
  export { CopyLinkButton } from './components/CopyLinkButton';
3
8
  export { ADMIN_NOTIFIED, OBJECT_SHARED, } from './types';
@@ -47,6 +47,11 @@ export declare class ShareDialogContainerInternal extends React.Component<ShareD
47
47
  getFormShareLink: () => string;
48
48
  render(): React.JSX.Element;
49
49
  }
50
+ /**
51
+ * @deprecated
52
+ * ⚠️ DO NOT USE — This component has been replaced by @atlassian/jira-share-dialog.
53
+ * It will be removed once the switch-over is complete.
54
+ */
50
55
  export declare const ShareDialogContainer: React.ForwardRefExoticComponent<Omit<Pick<Omit<ShareDialogContainerProps, keyof WithAnalyticsEventsProps>, never> & {
51
56
  integrationMode?: import("../types/ShareEntities").IntegrationMode | undefined;
52
57
  shareIntegrations?: Array<import("../types").Integration> | undefined;
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @deprecated
3
+ * ⚠️ DO NOT USE — This package has been replaced by @atlassian/jira-share-dialog.
4
+ * It will be removed once the switch-over is complete.
5
+ */
1
6
  export { ShareDialogContainer } from './components/ShareDialogContainer';
2
7
  export { CopyLinkButton } from './components/CopyLinkButton';
3
8
  export { ADMIN_NOTIFIED, OBJECT_SHARED, } from './types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "6.16.6",
3
+ "version": "6.16.8",
4
4
  "description": "Fabric Share Element",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -39,24 +39,24 @@
39
39
  "dependencies": {
40
40
  "@atlaskit/analytics-next": "^11.1.0",
41
41
  "@atlaskit/button": "^23.4.0",
42
- "@atlaskit/css": "^0.12.0",
42
+ "@atlaskit/css": "^0.13.0",
43
43
  "@atlaskit/dropdown-menu": "^16.3.0",
44
- "@atlaskit/form": "^12.2.0",
44
+ "@atlaskit/form": "^12.4.0",
45
45
  "@atlaskit/heading": "^5.2.0",
46
46
  "@atlaskit/icon": "^28.1.0",
47
47
  "@atlaskit/link": "^3.2.0",
48
- "@atlaskit/menu": "^8.3.0",
48
+ "@atlaskit/menu": "^8.4.0",
49
49
  "@atlaskit/platform-feature-flags": "^1.1.0",
50
50
  "@atlaskit/popper": "^7.1.0",
51
51
  "@atlaskit/popup": "^4.3.0",
52
52
  "@atlaskit/portal": "^5.1.0",
53
- "@atlaskit/primitives": "^14.12.0",
53
+ "@atlaskit/primitives": "^14.13.0",
54
54
  "@atlaskit/smart-user-picker": "^8.2.0",
55
55
  "@atlaskit/spinner": "^19.0.0",
56
56
  "@atlaskit/tabs": "^18.1.0",
57
57
  "@atlaskit/textarea": "^8.0.0",
58
58
  "@atlaskit/theme": "^20.0.0",
59
- "@atlaskit/tokens": "^6.1.0",
59
+ "@atlaskit/tokens": "^6.2.0",
60
60
  "@atlaskit/tooltip": "^20.4.0",
61
61
  "@atlaskit/ufo": "^0.4.0",
62
62
  "@atlaskit/user-picker": "^11.6.0",
@@ -73,7 +73,7 @@
73
73
  },
74
74
  "devDependencies": {
75
75
  "@atlaskit/editor-test-helpers": "workspace:^",
76
- "@atlaskit/flag": "^17.3.0",
76
+ "@atlaskit/flag": "^17.4.0",
77
77
  "@atlassian/feature-flags-test-utils": "^0.3.0",
78
78
  "@testing-library/react": "^13.4.0",
79
79
  "@testing-library/user-event": "^14.4.3",