@atlaskit/smart-card 28.2.0 → 28.2.1

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
+ ## 28.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#144103](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/144103)
8
+ [`13f839001af02`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/13f839001af02) -
9
+ revert FG platform-hover-card-aria-expanded-a11y-fix
10
+ - [#144103](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/144103)
11
+ [`13f839001af02`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/13f839001af02) -
12
+ reverting FG as it increases violation
13
+ - [#144103](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/144103)
14
+ [`13f839001af02`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/13f839001af02) -
15
+ clean up FG platform-hover-card-aria-expanded-a11y-fix
16
+ - [#144103](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/144103)
17
+ [`13f839001af02`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/13f839001af02) -
18
+ revert FG
19
+
3
20
  ## 28.2.0
4
21
 
5
22
  ### 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: "28.2.0"
25
+ packageVersion: "28.2.1"
26
26
  };
27
27
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
28
28
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -21,7 +21,6 @@ var _SmartLinkAnalyticsContext = require("../../../utils/analytics/SmartLinkAnal
21
21
  var _combineActionOptions = require("../../../utils/actions/combine-action-options");
22
22
  var _actions = require("../../../state/actions");
23
23
  var _analytics = require("../../../state/analytics");
24
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
25
24
  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); }
26
25
  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 && {}.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; }
27
26
  /**
@@ -217,9 +216,7 @@ var HoverCardComponent = exports.HoverCardComponent = function HoverCardComponen
217
216
  var trigger = (0, _react2.useCallback)(function (triggerProps) {
218
217
  return (0, _react.jsx)("span", {
219
218
  ref: parentSpan
220
- }, (0, _react.jsx)("span", (0, _extends2.default)({}, triggerProps, (0, _platformFeatureFlags.fg)('platform-hover-card-aria-expanded-a11y-fix') && {
221
- role: 'button'
222
- }, {
219
+ }, (0, _react.jsx)("span", (0, _extends2.default)({}, triggerProps, {
223
220
  onMouseOver: initShowCard,
224
221
  onMouseLeave: initHideCard,
225
222
  onMouseMove: setMousePosition,
@@ -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: "28.2.0",
20
+ packageVersion: "28.2.1",
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: "28.2.0"
7
+ packageVersion: "28.2.1"
8
8
  };
9
9
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -17,7 +17,6 @@ import { SmartLinkAnalyticsContext } from '../../../utils/analytics/SmartLinkAna
17
17
  import { combineActionOptions } from '../../../utils/actions/combine-action-options';
18
18
  import { useSmartCardActions } from '../../../state/actions';
19
19
  import { useSmartLinkAnalytics } from '../../../state/analytics';
20
- import { fg } from '@atlaskit/platform-feature-flags';
21
20
  const HOVER_CARD_SOURCE = 'smartLinkPreviewHoverCard';
22
21
  const FADE_IN_DELAY = 500;
23
22
  const FADE_OUT_DELAY = 300;
@@ -191,9 +190,7 @@ export const HoverCardComponent = ({
191
190
  }, [initShowCard, initHideCard, linkState, onActionClick, renderers, actionOptions, url, id]);
192
191
  const trigger = useCallback(triggerProps => jsx("span", {
193
192
  ref: parentSpan
194
- }, jsx("span", _extends({}, triggerProps, fg('platform-hover-card-aria-expanded-a11y-fix') && {
195
- role: 'button'
196
- }, {
193
+ }, jsx("span", _extends({}, triggerProps, {
197
194
  onMouseOver: initShowCard,
198
195
  onMouseLeave: initHideCard,
199
196
  onMouseMove: setMousePosition,
@@ -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: "28.2.0",
10
+ packageVersion: "28.2.1",
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: "28.2.0"
18
+ packageVersion: "28.2.1"
19
19
  };
20
20
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
21
21
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -18,7 +18,6 @@ import { SmartLinkAnalyticsContext } from '../../../utils/analytics/SmartLinkAna
18
18
  import { combineActionOptions } from '../../../utils/actions/combine-action-options';
19
19
  import { useSmartCardActions } from '../../../state/actions';
20
20
  import { useSmartLinkAnalytics } from '../../../state/analytics';
21
- import { fg } from '@atlaskit/platform-feature-flags';
22
21
  var HOVER_CARD_SOURCE = 'smartLinkPreviewHoverCard';
23
22
  var FADE_IN_DELAY = 500;
24
23
  var FADE_OUT_DELAY = 300;
@@ -205,9 +204,7 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
205
204
  var trigger = useCallback(function (triggerProps) {
206
205
  return jsx("span", {
207
206
  ref: parentSpan
208
- }, jsx("span", _extends({}, triggerProps, fg('platform-hover-card-aria-expanded-a11y-fix') && {
209
- role: 'button'
210
- }, {
207
+ }, jsx("span", _extends({}, triggerProps, {
211
208
  onMouseOver: initShowCard,
212
209
  onMouseLeave: initHideCard,
213
210
  onMouseMove: setMousePosition,
@@ -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: "28.2.0",
13
+ packageVersion: "28.2.1",
14
14
  componentName: 'linkUrl'
15
15
  };
16
16
  var Link = withLinkClickedEvent('a');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "28.2.0",
3
+ "version": "28.2.1",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -48,7 +48,7 @@
48
48
  "@atlaskit/logo": "^14.3.0",
49
49
  "@atlaskit/lozenge": "^11.10.0",
50
50
  "@atlaskit/menu": "^2.12.0",
51
- "@atlaskit/modal-dialog": "^12.16.0",
51
+ "@atlaskit/modal-dialog": "^12.17.0",
52
52
  "@atlaskit/outbound-auth-flow-client": "^3.4.0",
53
53
  "@atlaskit/platform-feature-flags": "^0.3.0",
54
54
  "@atlaskit/popup": "^1.27.0",
@@ -155,9 +155,6 @@
155
155
  },
156
156
  "linking-platform-increase-inline-card-icon-size": {
157
157
  "type": "boolean"
158
- },
159
- "platform-hover-card-aria-expanded-a11y-fix": {
160
- "type": "boolean"
161
158
  }
162
159
  }
163
160
  }