@atlaskit/smart-card 27.12.0 → 27.12.2

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,23 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 27.12.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#125862](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/125862)
8
+ [`6c72c192b5df6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6c72c192b5df6) -
9
+ Small change to improve testability of smart card in editor. No production code changes.
10
+ - Updated dependencies
11
+
12
+ ## 27.12.1
13
+
14
+ ### Patch Changes
15
+
16
+ - [#126553](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/126553)
17
+ [`a8d7e60d3b69d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a8d7e60d3b69d) -
18
+ Updated internals following bump of @atlaskit/icon bump
19
+ - Updated dependencies
20
+
3
21
  ## 27.12.0
4
22
 
5
23
  ### Minor Changes
@@ -22,7 +22,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
22
22
  var context = exports.context = {
23
23
  componentName: 'smart-cards',
24
24
  packageName: "@atlaskit/smart-card",
25
- packageVersion: "27.12.0"
25
+ packageVersion: "27.12.2"
26
26
  };
27
27
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
28
28
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.CardWithURLRenderer = CardWithURLRenderer;
8
+ exports.LazyCardWithUrlContent = void 0;
8
9
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
9
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
11
  var _react = _interopRequireWildcard(require("react"));
@@ -15,9 +16,10 @@ var _analytics = require("../../state/analytics");
15
16
  var _LoadingCardLink = require("./component-lazy/LoadingCardLink");
16
17
  var _utils = require("../../utils");
17
18
  var _flexible = require("../../utils/flexible");
19
+ var _reactMagneticDi = require("react-magnetic-di");
18
20
  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); }
19
21
  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; }
20
- var LazyCardWithUrlContent = /*#__PURE__*/(0, _react.lazy)(function () {
22
+ var LazyCardWithUrlContent = exports.LazyCardWithUrlContent = /*#__PURE__*/(0, _react.lazy)(function () {
21
23
  return (0, _utils.importWithRetry)(function () {
22
24
  return Promise.resolve().then(function () {
23
25
  return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_smartcard-urlcardcontent" */'./component-lazy/index'));
@@ -15,7 +15,8 @@ var _download = _interopRequireDefault(require("@atlaskit/icon/glyph/download"))
15
15
  var _download2 = _interopRequireDefault(require("@atlaskit/icon/core/download"));
16
16
  var _linkExternalShortcut = _interopRequireDefault(require("@atlaskit/icon/core/migration/link-external--shortcut"));
17
17
  var _fullscreenEnterVidFullScreenOn = _interopRequireDefault(require("@atlaskit/icon/core/migration/fullscreen-enter--vid-full-screen-on"));
18
- var _fullscreenExitVidFullScreenOff = _interopRequireDefault(require("@atlaskit/icon/core/migration/fullscreen-exit--vid-full-screen-off"));
18
+ var _fullscreenExit = _interopRequireDefault(require("@atlaskit/icon/core/fullscreen-exit"));
19
+ var _vidFullScreenOff = _interopRequireDefault(require("@atlaskit/icon/glyph/vid-full-screen-off"));
19
20
  var _Icon = require("../../../common/Icon");
20
21
  var _messages = require("../../../../messages");
21
22
  var _constants = require("../../constants");
@@ -73,7 +74,8 @@ var LinkInfo = function LinkInfo(_ref) {
73
74
  var sizeButton = (0, _react2.useMemo)(function () {
74
75
  var isFullScreen = size === _constants.MAX_MODAL_SIZE;
75
76
  var message = isFullScreen ? _messages.messages.preview_min_size : _messages.messages.preview_max_size;
76
- var icon = isFullScreen ? (0, _react.jsx)(_fullscreenExitVidFullScreenOff.default, {
77
+ var icon = isFullScreen ? (0, _react.jsx)(_fullscreenExit.default, {
78
+ LEGACY_fallbackIcon: _vidFullScreenOff.default,
77
79
  label: message.defaultMessage,
78
80
  spacing: "spacious",
79
81
  color: "currentColor"
@@ -17,7 +17,7 @@ var _excluded = ["href", "children", "checkSafety", "onClick", "testId"],
17
17
  _excluded2 = ["isLinkSafe", "showSafetyWarningModal"];
18
18
  var PACKAGE_DATA = {
19
19
  packageName: "@atlaskit/smart-card",
20
- packageVersion: "27.12.0",
20
+ packageVersion: "27.12.2",
21
21
  componentName: 'linkUrl'
22
22
  };
23
23
  var Link = (0, _click.withLinkClickedEvent)('a');
@@ -4,7 +4,7 @@ export const ANALYTICS_CHANNEL = 'media';
4
4
  export const context = {
5
5
  componentName: 'smart-cards',
6
6
  packageName: "@atlaskit/smart-card",
7
- packageVersion: "27.12.0"
7
+ packageVersion: "27.12.2"
8
8
  };
9
9
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -6,7 +6,8 @@ import { useSmartLinkAnalytics } from '../../state/analytics';
6
6
  import { LoadingCardLink } from './component-lazy/LoadingCardLink';
7
7
  import { importWithRetry } from '../../utils';
8
8
  import { isFlexibleUiCard } from '../../utils/flexible';
9
- const LazyCardWithUrlContent = /*#__PURE__*/lazy(() => importWithRetry(() => import( /* webpackChunkName: "@atlaskit-internal_smartcard-urlcardcontent" */'./component-lazy/index')));
9
+ import { di } from 'react-magnetic-di';
10
+ export const LazyCardWithUrlContent = /*#__PURE__*/lazy(() => importWithRetry(() => import( /* webpackChunkName: "@atlaskit-internal_smartcard-urlcardcontent" */'./component-lazy/index')));
10
11
  export function CardWithURLRenderer(props) {
11
12
  const [id] = useState(() => props.id ? props.id : uuid());
12
13
  useEffect(() => {
@@ -12,7 +12,8 @@ import DownloadIconLegacy from '@atlaskit/icon/glyph/download';
12
12
  import DownloadIcon from '@atlaskit/icon/core/download';
13
13
  import ShortcutIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
14
14
  import VidFullScreenOnIcon from '@atlaskit/icon/core/migration/fullscreen-enter--vid-full-screen-on';
15
- import VidFullScreenOffIcon from '@atlaskit/icon/core/migration/fullscreen-exit--vid-full-screen-off';
15
+ import FullscreenExitIcon from '@atlaskit/icon/core/fullscreen-exit';
16
+ import VidFullScreenOffIcon from '@atlaskit/icon/glyph/vid-full-screen-off';
16
17
  import { Icon } from '../../../common/Icon';
17
18
  import { messages } from '../../../../messages';
18
19
  import { MAX_MODAL_SIZE } from '../../constants';
@@ -64,7 +65,8 @@ const LinkInfo = ({
64
65
  const sizeButton = useMemo(() => {
65
66
  const isFullScreen = size === MAX_MODAL_SIZE;
66
67
  const message = isFullScreen ? messages.preview_min_size : messages.preview_max_size;
67
- const icon = isFullScreen ? jsx(VidFullScreenOffIcon, {
68
+ const icon = isFullScreen ? jsx(FullscreenExitIcon, {
69
+ LEGACY_fallbackIcon: VidFullScreenOffIcon,
68
70
  label: message.defaultMessage,
69
71
  spacing: "spacious",
70
72
  color: "currentColor"
@@ -7,7 +7,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
7
7
  import LinkWarningModal from './LinkWarningModal';
8
8
  const PACKAGE_DATA = {
9
9
  packageName: "@atlaskit/smart-card",
10
- packageVersion: "27.12.0",
10
+ packageVersion: "27.12.2",
11
11
  componentName: 'linkUrl'
12
12
  };
13
13
  const Link = withLinkClickedEvent('a');
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
15
15
  export var context = {
16
16
  componentName: 'smart-cards',
17
17
  packageName: "@atlaskit/smart-card",
18
- packageVersion: "27.12.0"
18
+ packageVersion: "27.12.2"
19
19
  };
20
20
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
21
21
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -7,7 +7,8 @@ import { useSmartLinkAnalytics } from '../../state/analytics';
7
7
  import { LoadingCardLink } from './component-lazy/LoadingCardLink';
8
8
  import { importWithRetry } from '../../utils';
9
9
  import { isFlexibleUiCard } from '../../utils/flexible';
10
- var LazyCardWithUrlContent = /*#__PURE__*/lazy(function () {
10
+ import { di } from 'react-magnetic-di';
11
+ export var LazyCardWithUrlContent = /*#__PURE__*/lazy(function () {
11
12
  return importWithRetry(function () {
12
13
  return import( /* webpackChunkName: "@atlaskit-internal_smartcard-urlcardcontent" */'./component-lazy/index');
13
14
  });
@@ -12,7 +12,8 @@ import DownloadIconLegacy from '@atlaskit/icon/glyph/download';
12
12
  import DownloadIcon from '@atlaskit/icon/core/download';
13
13
  import ShortcutIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
14
14
  import VidFullScreenOnIcon from '@atlaskit/icon/core/migration/fullscreen-enter--vid-full-screen-on';
15
- import VidFullScreenOffIcon from '@atlaskit/icon/core/migration/fullscreen-exit--vid-full-screen-off';
15
+ import FullscreenExitIcon from '@atlaskit/icon/core/fullscreen-exit';
16
+ import VidFullScreenOffIcon from '@atlaskit/icon/glyph/vid-full-screen-off';
16
17
  import { Icon } from '../../../common/Icon';
17
18
  import { messages } from '../../../../messages';
18
19
  import { MAX_MODAL_SIZE } from '../../constants';
@@ -62,7 +63,8 @@ var LinkInfo = function LinkInfo(_ref) {
62
63
  var sizeButton = useMemo(function () {
63
64
  var isFullScreen = size === MAX_MODAL_SIZE;
64
65
  var message = isFullScreen ? messages.preview_min_size : messages.preview_max_size;
65
- var icon = isFullScreen ? jsx(VidFullScreenOffIcon, {
66
+ var icon = isFullScreen ? jsx(FullscreenExitIcon, {
67
+ LEGACY_fallbackIcon: VidFullScreenOffIcon,
66
68
  label: message.defaultMessage,
67
69
  spacing: "spacious",
68
70
  color: "currentColor"
@@ -10,7 +10,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
10
10
  import LinkWarningModal from './LinkWarningModal';
11
11
  var PACKAGE_DATA = {
12
12
  packageName: "@atlaskit/smart-card",
13
- packageVersion: "27.12.0",
13
+ packageVersion: "27.12.2",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  var Link = withLinkClickedEvent('a');
@@ -1,3 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type CardProps } from '../Card/types';
3
+ export declare const LazyCardWithUrlContent: React.LazyExoticComponent<typeof import("./component-lazy/index").default>;
3
4
  export declare function CardWithURLRenderer(props: CardProps): JSX.Element;
@@ -1,3 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type CardProps } from '../Card/types';
3
+ export declare const LazyCardWithUrlContent: React.LazyExoticComponent<typeof import("./component-lazy/index").default>;
3
4
  export declare function CardWithURLRenderer(props: CardProps): JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "27.12.0",
3
+ "version": "27.12.2",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -40,7 +40,7 @@
40
40
  "@atlaskit/form": "^10.4.0",
41
41
  "@atlaskit/frontend-utilities": "^2.7.0",
42
42
  "@atlaskit/heading": "^2.4.0",
43
- "@atlaskit/icon": "^22.9.0",
43
+ "@atlaskit/icon": "^22.10.0",
44
44
  "@atlaskit/icon-file-type": "^6.4.0",
45
45
  "@atlaskit/icon-object": "^6.4.0",
46
46
  "@atlaskit/icon-priority": "^6.3.0",
@@ -63,7 +63,7 @@
63
63
  "@atlaskit/textarea": "^5.5.0",
64
64
  "@atlaskit/textfield": "^6.4.0",
65
65
  "@atlaskit/theme": "^12.11.0",
66
- "@atlaskit/tokens": "^1.56.0",
66
+ "@atlaskit/tokens": "^1.57.0",
67
67
  "@atlaskit/tooltip": "^18.5.0",
68
68
  "@atlaskit/ufo": "^0.2.0",
69
69
  "@babel/runtime": "^7.0.0",