@atlaskit/smart-card 45.8.4 → 45.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 45.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`c98e0cf5cc4f6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c98e0cf5cc4f6) -
8
+ Autofix: add explicit package exports (barrel removal)
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 45.8.5
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 45.8.4
4
21
 
5
22
  ### Patch Changes
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.transformSmartLinkSizeToIconTileSize = exports.renderIconTile = exports.renderIconPerSize = void 0;
8
+ var _objectDestructuringEmpty2 = _interopRequireDefault(require("@babel/runtime/helpers/objectDestructuringEmpty"));
8
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
11
  var _react = _interopRequireDefault(require("react"));
@@ -13,8 +14,7 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
14
  var _constants = require("../../../constants");
14
15
  var _utils = require("../../../utils");
15
16
  var _excluded = ["size"],
16
- _excluded2 = ["size", "isTiledIcon"],
17
- _excluded3 = ["shape", "UNSAFE_circleReplacementComponent"];
17
+ _excluded2 = ["size", "isTiledIcon"];
18
18
  /**
19
19
  * Maps IconTile appearance to the icon glyph color token to use when rendering
20
20
  * a standalone icon (without a tile background).
@@ -108,9 +108,7 @@ var renderIconTile = exports.renderIconTile = function renderIconTile(Icon, appe
108
108
  label: ""
109
109
  }));
110
110
  }
111
- var _shape = props.shape,
112
- _unsafe = props.UNSAFE_circleReplacementComponent,
113
- tileProps = (0, _objectWithoutProperties2.default)(props, _excluded3);
111
+ var tileProps = (0, _extends2.default)({}, ((0, _objectDestructuringEmpty2.default)(props), props));
114
112
  return /*#__PURE__*/_react.default.createElement(_icon.IconTile, (0, _extends2.default)({
115
113
  appearance: appearance,
116
114
  icon: isTiledIcon ? function (iconProps) {
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "getObjectAri", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _helpers.getObjectAri;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "getObjectIconUrl", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _helpers.getObjectIconUrl;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "getObjectName", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _helpers.getObjectName;
22
+ }
23
+ });
24
+ var _helpers = require("../state/helpers");
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "HoverCard", {
7
7
  enumerable: true,
8
8
  get: function get() {
9
- return _HoverCard.StandaloneHoverCard;
9
+ return _index.StandaloneHoverCard;
10
10
  }
11
11
  });
12
- var _HoverCard = require("../view/HoverCard");
12
+ var _index = require("../view/HoverCard/index");
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  Object.defineProperty(exports, "LinkUrl", {
8
8
  enumerable: true,
9
9
  get: function get() {
10
- return _LinkUrl.default;
10
+ return _index.default;
11
11
  }
12
12
  });
13
- var _LinkUrl = _interopRequireDefault(require("../view/LinkUrl"));
13
+ var _index = _interopRequireDefault(require("../view/LinkUrl/index"));
@@ -11,7 +11,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
11
11
  var context = exports.context = {
12
12
  componentName: 'smart-cards',
13
13
  packageName: "@atlaskit/smart-card" || '',
14
- packageVersion: "45.8.3" || ''
14
+ packageVersion: "45.8.5" || ''
15
15
  };
16
16
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
17
17
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -19,7 +19,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId", "isLink
19
19
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
20
20
  var PACKAGE_DATA = {
21
21
  packageName: "@atlaskit/smart-card",
22
- packageVersion: "45.8.3",
22
+ packageVersion: "45.8.5",
23
23
  componentName: 'linkUrl'
24
24
  };
25
25
  var LinkUrl = function LinkUrl(_ref) {
@@ -100,8 +100,6 @@ export const renderIconTile = (Icon, appearance) => {
100
100
  }));
101
101
  }
102
102
  const {
103
- shape: _shape,
104
- UNSAFE_circleReplacementComponent: _unsafe,
105
103
  ...tileProps
106
104
  } = props;
107
105
  return /*#__PURE__*/React.createElement(IconTile, _extends({
@@ -0,0 +1 @@
1
+ export { getObjectAri, getObjectName, getObjectIconUrl } from '../state/helpers';
@@ -1 +1 @@
1
- export { StandaloneHoverCard as HoverCard } from '../view/HoverCard';
1
+ export { StandaloneHoverCard as HoverCard } from '../view/HoverCard/index';
@@ -1 +1 @@
1
- export { default as LinkUrl } from '../view/LinkUrl';
1
+ export { default as LinkUrl } from '../view/LinkUrl/index';
@@ -2,7 +2,7 @@ export const ANALYTICS_CHANNEL = 'media';
2
2
  export const context = {
3
3
  componentName: 'smart-cards',
4
4
  packageName: "@atlaskit/smart-card" || '',
5
- packageVersion: "45.8.3" || ''
5
+ packageVersion: "45.8.5" || ''
6
6
  };
7
7
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
8
8
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -9,7 +9,7 @@ import LinkWarningModal from './LinkWarningModal';
9
9
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
10
10
  const PACKAGE_DATA = {
11
11
  packageName: "@atlaskit/smart-card",
12
- packageVersion: "45.8.3",
12
+ packageVersion: "45.8.5",
13
13
  componentName: 'linkUrl'
14
14
  };
15
15
  const LinkUrl = ({
@@ -1,8 +1,8 @@
1
+ import _objectDestructuringEmpty from "@babel/runtime/helpers/objectDestructuringEmpty";
1
2
  import _extends from "@babel/runtime/helpers/extends";
2
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
4
  var _excluded = ["size"],
4
- _excluded2 = ["size", "isTiledIcon"],
5
- _excluded3 = ["shape", "UNSAFE_circleReplacementComponent"];
5
+ _excluded2 = ["size", "isTiledIcon"];
6
6
  import React from 'react';
7
7
  import { IconTile } from '@atlaskit/icon';
8
8
  import { fg } from '@atlaskit/platform-feature-flags';
@@ -101,9 +101,7 @@ export var renderIconTile = function renderIconTile(Icon, appearance) {
101
101
  label: ""
102
102
  }));
103
103
  }
104
- var _shape = props.shape,
105
- _unsafe = props.UNSAFE_circleReplacementComponent,
106
- tileProps = _objectWithoutProperties(props, _excluded3);
104
+ var tileProps = _extends({}, (_objectDestructuringEmpty(props), props));
107
105
  return /*#__PURE__*/React.createElement(IconTile, _extends({
108
106
  appearance: appearance,
109
107
  icon: isTiledIcon ? function (iconProps) {
@@ -0,0 +1 @@
1
+ export { getObjectAri, getObjectName, getObjectIconUrl } from '../state/helpers';
@@ -1 +1 @@
1
- export { StandaloneHoverCard as HoverCard } from '../view/HoverCard';
1
+ export { StandaloneHoverCard as HoverCard } from '../view/HoverCard/index';
@@ -1 +1 @@
1
- export { default as LinkUrl } from '../view/LinkUrl';
1
+ export { default as LinkUrl } from '../view/LinkUrl/index';
@@ -4,7 +4,7 @@ export var ANALYTICS_CHANNEL = 'media';
4
4
  export var context = {
5
5
  componentName: 'smart-cards',
6
6
  packageName: "@atlaskit/smart-card" || '',
7
- packageVersion: "45.8.3" || ''
7
+ packageVersion: "45.8.5" || ''
8
8
  };
9
9
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -12,7 +12,7 @@ import LinkWarningModal from './LinkWarningModal';
12
12
  import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-modal';
13
13
  var PACKAGE_DATA = {
14
14
  packageName: "@atlaskit/smart-card",
15
- packageVersion: "45.8.3",
15
+ packageVersion: "45.8.5",
16
16
  componentName: 'linkUrl'
17
17
  };
18
18
  var LinkUrl = function LinkUrl(_ref) {
@@ -0,0 +1 @@
1
+ export { getObjectAri, getObjectName, getObjectIconUrl } from '../state/helpers';
@@ -1 +1 @@
1
- export { StandaloneHoverCard as HoverCard } from '../view/HoverCard';
1
+ export { StandaloneHoverCard as HoverCard } from '../view/HoverCard/index';
@@ -1 +1 @@
1
- export { default as LinkUrl } from '../view/LinkUrl';
1
+ export { default as LinkUrl } from '../view/LinkUrl/index';
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@atlaskit/smart-card/helpers",
3
+ "main": "../dist/cjs/entry-points/helpers.js",
4
+ "module": "../dist/esm/entry-points/helpers.js",
5
+ "module:es2019": "../dist/es2019/entry-points/helpers.js",
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/entry-points/helpers.d.ts"
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "45.8.4",
3
+ "version": "45.9.0",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/badge": "^19.1.0",
46
46
  "@atlaskit/browser-apis": "^1.1.0",
47
47
  "@atlaskit/button": "^24.3.0",
48
- "@atlaskit/checkbox": "^18.1.0",
48
+ "@atlaskit/checkbox": "^18.2.0",
49
49
  "@atlaskit/css": "^1.0.0",
50
50
  "@atlaskit/dropdown-menu": "^17.1.0",
51
51
  "@atlaskit/embedded-confluence": "^6.2.0",
@@ -54,10 +54,10 @@
54
54
  "@atlaskit/form": "^16.1.0",
55
55
  "@atlaskit/frontend-utilities": "^4.1.0",
56
56
  "@atlaskit/heading": "^6.2.0",
57
- "@atlaskit/icon": "^36.2.0",
57
+ "@atlaskit/icon": "^37.0.0",
58
58
  "@atlaskit/icon-file-type": "^8.1.0",
59
59
  "@atlaskit/icon-lab": "^7.3.0",
60
- "@atlaskit/image": "^4.1.0",
60
+ "@atlaskit/image": "^4.2.0",
61
61
  "@atlaskit/json-ld-types": "^2.0.0",
62
62
  "@atlaskit/link": "^4.1.0",
63
63
  "@atlaskit/link-analytics": "^12.1.0",
@@ -68,28 +68,28 @@
68
68
  "@atlaskit/linking-types": "^15.0.0",
69
69
  "@atlaskit/logo": "^21.4.0",
70
70
  "@atlaskit/lozenge": "^14.1.0",
71
- "@atlaskit/menu": "^9.1.0",
71
+ "@atlaskit/menu": "^9.2.0",
72
72
  "@atlaskit/modal-dialog": "^16.1.0",
73
73
  "@atlaskit/motion": "^7.3.0",
74
74
  "@atlaskit/object": "^2.2.0",
75
- "@atlaskit/outbound-auth-flow-client": "^4.0.0",
75
+ "@atlaskit/outbound-auth-flow-client": "^4.1.0",
76
76
  "@atlaskit/platform-feature-flags": "^2.0.0",
77
77
  "@atlaskit/platform-feature-flags-react": "^1.1.0",
78
78
  "@atlaskit/popup": "^5.1.0",
79
- "@atlaskit/primitives": "^20.5.0",
79
+ "@atlaskit/primitives": "^20.6.0",
80
80
  "@atlaskit/react-compiler-gating": "^0.2.0",
81
81
  "@atlaskit/react-ufo": "^7.3.0",
82
- "@atlaskit/rovo-triggers": "^9.7.0",
82
+ "@atlaskit/rovo-triggers": "^9.8.0",
83
83
  "@atlaskit/section-message": "^9.2.0",
84
- "@atlaskit/select": "^22.4.0",
84
+ "@atlaskit/select": "^22.5.0",
85
85
  "@atlaskit/spinner": "^20.1.0",
86
86
  "@atlaskit/tag": "^15.2.0",
87
87
  "@atlaskit/textarea": "^9.1.0",
88
88
  "@atlaskit/textfield": "^9.1.0",
89
89
  "@atlaskit/theme": "^26.1.0",
90
90
  "@atlaskit/tile": "^2.3.0",
91
- "@atlaskit/tmp-editor-statsig": "^124.0.0",
92
- "@atlaskit/tokens": "^15.5.0",
91
+ "@atlaskit/tmp-editor-statsig": "^124.1.0",
92
+ "@atlaskit/tokens": "^15.6.0",
93
93
  "@atlaskit/tooltip": "^23.1.0",
94
94
  "@atlaskit/ufo": "^1.0.0",
95
95
  "@atlaskit/width-detector": "^6.2.0",
@@ -122,10 +122,10 @@
122
122
  "@atlaskit/ssr": "workspace:^",
123
123
  "@atlassian/a11y-jest-testing": "^0.13.0",
124
124
  "@atlassian/analytics-tooling": "workspace:^",
125
- "@atlassian/feature-flags-test-utils": "^1.1.0",
126
- "@atlassian/gemini": "^1.48.0",
125
+ "@atlassian/feature-flags-test-utils": "^1.2.0",
126
+ "@atlassian/gemini": "^1.49.0",
127
127
  "@atlassian/structured-docs-types": "workspace:^",
128
- "@atlassian/testing-library": "^0.10.0",
128
+ "@atlassian/testing-library": "^0.11.0",
129
129
  "@testing-library/dom": "^10.1.0",
130
130
  "@testing-library/jest-dom": "^6.4.5",
131
131
  "@types/facepaint": "^1.2.1",