@atlaskit/smart-card 28.1.4 → 28.1.5

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,13 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 28.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#141715](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/141715)
8
+ [`d2037bfc8439b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d2037bfc8439b) -
9
+ aria allowed attr
10
+
3
11
  ## 28.1.4
4
12
 
5
13
  ### Patch 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.1.4"
25
+ packageVersion: "28.1.5"
26
26
  };
27
27
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
28
28
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -21,6 +21,7 @@ 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");
24
25
  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); }
25
26
  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; }
26
27
  /**
@@ -218,7 +219,9 @@ var HoverCardComponent = exports.HoverCardComponent = function HoverCardComponen
218
219
  var trigger = (0, _react2.useCallback)(function (triggerProps) {
219
220
  return (0, _react.jsx)("span", {
220
221
  ref: parentSpan
221
- }, (0, _react.jsx)("span", (0, _extends2.default)({}, triggerProps, {
222
+ }, (0, _react.jsx)("span", (0, _extends2.default)({}, triggerProps, (0, _platformFeatureFlags.fg)('platform-hover-card-aria-expanded-a11y-fix') && {
223
+ role: 'button'
224
+ }, {
222
225
  onMouseOver: initShowCard,
223
226
  onMouseLeave: initHideCard,
224
227
  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.1.4",
20
+ packageVersion: "28.1.5",
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.1.4"
7
+ packageVersion: "28.1.5"
8
8
  };
9
9
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -17,6 +17,7 @@ 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';
20
21
  const HOVER_CARD_SOURCE = 'smartLinkPreviewHoverCard';
21
22
  const FADE_IN_DELAY = 500;
22
23
  const FADE_OUT_DELAY = 300;
@@ -192,7 +193,9 @@ export const HoverCardComponent = ({
192
193
  }, [initShowCard, initHideCard, linkState, onActionClick, renderers, actionOptions, url, id]);
193
194
  const trigger = useCallback(triggerProps => jsx("span", {
194
195
  ref: parentSpan
195
- }, jsx("span", _extends({}, triggerProps, {
196
+ }, jsx("span", _extends({}, triggerProps, fg('platform-hover-card-aria-expanded-a11y-fix') && {
197
+ role: 'button'
198
+ }, {
196
199
  onMouseOver: initShowCard,
197
200
  onMouseLeave: initHideCard,
198
201
  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.1.4",
10
+ packageVersion: "28.1.5",
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.1.4"
18
+ packageVersion: "28.1.5"
19
19
  };
20
20
  export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
21
21
  TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
@@ -18,6 +18,7 @@ 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';
21
22
  var HOVER_CARD_SOURCE = 'smartLinkPreviewHoverCard';
22
23
  var FADE_IN_DELAY = 500;
23
24
  var FADE_OUT_DELAY = 300;
@@ -206,7 +207,9 @@ export var HoverCardComponent = function HoverCardComponent(_ref) {
206
207
  var trigger = useCallback(function (triggerProps) {
207
208
  return jsx("span", {
208
209
  ref: parentSpan
209
- }, jsx("span", _extends({}, triggerProps, {
210
+ }, jsx("span", _extends({}, triggerProps, fg('platform-hover-card-aria-expanded-a11y-fix') && {
211
+ role: 'button'
212
+ }, {
210
213
  onMouseOver: initShowCard,
211
214
  onMouseLeave: initHideCard,
212
215
  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.1.4",
13
+ packageVersion: "28.1.5",
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.1.4",
3
+ "version": "28.1.5",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -41,7 +41,7 @@
41
41
  "@atlaskit/icon-object": "^6.5.0",
42
42
  "@atlaskit/icon-priority": "^6.3.0",
43
43
  "@atlaskit/link-analytics": "^8.5.0",
44
- "@atlaskit/link-client-extension": "^2.3.0",
44
+ "@atlaskit/link-client-extension": "^2.4.0",
45
45
  "@atlaskit/link-extractors": "^1.9.0",
46
46
  "@atlaskit/linking-common": "^5.11.0",
47
47
  "@atlaskit/linking-types": "^9.0.0",
@@ -54,12 +54,12 @@
54
54
  "@atlaskit/popup": "^1.25.0",
55
55
  "@atlaskit/primitives": "^12.1.0",
56
56
  "@atlaskit/section-message": "^6.6.0",
57
- "@atlaskit/select": "^17.18.0",
57
+ "@atlaskit/select": "^17.19.0",
58
58
  "@atlaskit/spinner": "^16.3.0",
59
59
  "@atlaskit/textarea": "^5.6.0",
60
60
  "@atlaskit/textfield": "^6.5.0",
61
61
  "@atlaskit/theme": "^13.0.0",
62
- "@atlaskit/tokens": "^1.59.0",
62
+ "@atlaskit/tokens": "^1.60.0",
63
63
  "@atlaskit/tooltip": "^18.7.0",
64
64
  "@atlaskit/ufo": "^0.3.0",
65
65
  "@babel/runtime": "^7.0.0",
@@ -79,7 +79,7 @@
79
79
  "uuid": "^3.1.0"
80
80
  },
81
81
  "peerDependencies": {
82
- "@atlaskit/link-provider": "^1.14.0",
82
+ "@atlaskit/link-provider": "^1.16.0",
83
83
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
84
84
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
85
85
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -88,9 +88,9 @@
88
88
  "@af/integration-testing": "*",
89
89
  "@af/visual-regression": "*",
90
90
  "@atlaskit/analytics-listeners": "^8.11.0",
91
- "@atlaskit/css-reset": "^6.10.0",
91
+ "@atlaskit/css-reset": "^6.11.0",
92
92
  "@atlaskit/link-test-helpers": "^7.5.0",
93
- "@atlaskit/media-test-helpers": "^34.2.0",
93
+ "@atlaskit/media-test-helpers": "^34.3.0",
94
94
  "@atlaskit/ssr": "*",
95
95
  "@atlaskit/visual-regression": "*",
96
96
  "@atlassian/analytics-tooling": "*",
@@ -155,6 +155,9 @@
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"
158
161
  }
159
162
  }
160
163
  }