@atlaskit/smart-card 46.20.3 → 46.20.4

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,14 @@
1
1
  # @atlaskit/smart-card
2
2
 
3
+ ## 46.20.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`84acac046680f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/84acac046680f) -
8
+ Add optional ariaLabel to flexible card ActionItem so callers can provide a unique accessible name
9
+ for icon-only actions
10
+ - Updated dependencies
11
+
3
12
  ## 46.20.3
4
13
 
5
14
  ### Patch Changes
@@ -25,7 +25,7 @@ var ANALYTICS_CHANNEL = exports.ANALYTICS_CHANNEL = 'media';
25
25
  var context = exports.context = {
26
26
  componentName: 'smart-cards',
27
27
  packageName: "@atlaskit/smart-card" || '',
28
- packageVersion: "46.20.2" || ''
28
+ packageVersion: "46.20.3" || ''
29
29
  };
30
30
  var TrackQuickActionType = exports.TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
31
31
  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: "46.20.2",
22
+ packageVersion: "46.20.3",
23
23
  componentName: 'linkUrl'
24
24
  };
25
25
  var LinkUrl = function LinkUrl(_ref) {
@@ -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: "46.20.2" || ''
7
+ packageVersion: "46.20.3" || ''
8
8
  };
9
9
  export let TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
10
10
  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: "46.20.2",
12
+ packageVersion: "46.20.3",
13
13
  componentName: 'linkUrl'
14
14
  };
15
15
  const LinkUrl = ({
@@ -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: "46.20.2" || ''
7
+ packageVersion: "46.20.3" || ''
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: "46.20.2",
15
+ packageVersion: "46.20.3",
16
16
  componentName: 'linkUrl'
17
17
  };
18
18
  var LinkUrl = function LinkUrl(_ref) {
@@ -81,6 +81,11 @@ export type ElementItem = {
81
81
  * Used to represent an Action when passing props into Flexible UI.
82
82
  */
83
83
  export type BaseActionItem = {
84
+ /**
85
+ * Additional text providing an accessible name for the Action, used when the
86
+ * visible content is hidden or not unique (e.g. icon-only actions).
87
+ */
88
+ ariaLabel?: string;
84
89
  /**
85
90
  * Determines the text content of the Action.
86
91
  */
@@ -184,7 +189,6 @@ export type NamedActionItem = BaseActionItem & {
184
189
  * This represents an action where either Icon or label must be provided.
185
190
  */
186
191
  export type CustomActionItem = BaseActionItem & {
187
- ariaLabel?: string;
188
192
  href?: string;
189
193
  name: ActionName.CustomAction;
190
194
  } & ((Required<Pick<ActionProps, 'icon' | 'iconPosition'>> & Pick<ActionProps, 'content'>) | ((Required<Pick<ActionProps, 'content'>> & Pick<ActionProps, 'icon' | 'iconPosition'>) & Pick<ActionProps, 'tooltipMessage'>));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/smart-card",
3
- "version": "46.20.3",
3
+ "version": "46.20.4",
4
4
  "description": "Smart card component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -82,7 +82,7 @@
82
82
  "@atlaskit/platform-feature-flags": "^2.2.0",
83
83
  "@atlaskit/platform-feature-flags-react": "^1.2.0",
84
84
  "@atlaskit/popup": "^10.2.0",
85
- "@atlaskit/primitives": "^22.8.0",
85
+ "@atlaskit/primitives": "^22.9.0",
86
86
  "@atlaskit/react-compiler-gating": "^0.2.0",
87
87
  "@atlaskit/react-ufo": "^8.5.0",
88
88
  "@atlaskit/rovo-triggers": "^12.19.0",
@@ -95,8 +95,8 @@
95
95
  "@atlaskit/textfield": "^11.0.0",
96
96
  "@atlaskit/theme": "^28.2.0",
97
97
  "@atlaskit/tile": "^5.0.0",
98
- "@atlaskit/tmp-editor-statsig": "^273.0.0",
99
- "@atlaskit/tokens": "^20.14.0",
98
+ "@atlaskit/tmp-editor-statsig": "^274.0.0",
99
+ "@atlaskit/tokens": "^20.15.0",
100
100
  "@atlaskit/tooltip": "^24.4.0",
101
101
  "@atlaskit/top-layer": "^8.2.0",
102
102
  "@atlaskit/ufo": "^2.0.0",