@atlaskit/section-message 10.0.0 → 10.1.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,34 @@
1
1
  # @atlaskit/section-message
2
2
 
3
+ ## 10.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`38c7085c92a3a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/38c7085c92a3a) -
8
+ Experimental React 19 peer dependency support. This patch widens the peer range; CI coverage is
9
+ partial.
10
+ - Updated dependencies
11
+
12
+ ## 10.1.0
13
+
14
+ ### Minor Changes
15
+
16
+ - [`d82e6f76528ab`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d82e6f76528ab) -
17
+ Add direct subpath package exports as part of the linking-platform, search, media, and
18
+ design-system barrel-removal (de-barrel) migration.
19
+
20
+ These packages now expose their individual modules via explicit `package.json` `exports` subpaths
21
+ so that consumers can import directly from the leaf module (e.g. `@atlaskit/pkg/thing`) instead of
22
+ the package barrel/index. This adds new public entry points without changing or removing any
23
+ existing exports, so it is a backwards-compatible additive change.
24
+
25
+ No runtime behaviour changes; this is an API-surface (entry-point) addition to support
26
+ tree-shaking and to unblock removal of the barrel index files.
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies
31
+
3
32
  ## 10.0.0
4
33
 
5
34
  ### Major Changes
@@ -13,8 +13,8 @@ var React = _react;
13
13
  var _runtime = require("@compiled/react/runtime");
14
14
  var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
15
15
  var _css = require("@atlaskit/css");
16
- var _link = _interopRequireDefault(require("@atlaskit/link"));
17
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
+ var _link = _interopRequireDefault(require("@atlaskit/link/link"));
17
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
18
18
  var _compiled = require("@atlaskit/primitives/compiled");
19
19
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
20
20
  var styles = {
@@ -56,7 +56,7 @@ var SectionMessageAction = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _reac
56
56
  return /*#__PURE__*/React.createElement(_compiled.Pressable, {
57
57
  testId: testId,
58
58
  onClick: onClick,
59
- xcss: (0, _css.cx)(styles.common, styles.pressable, (0, _platformFeatureFlags.fg)('platform-dst-shape-theme-default') && styles.pressableT26Shape),
59
+ xcss: (0, _css.cx)(styles.common, styles.pressable, (0, _fg.fg)('platform-dst-shape-theme-default') && styles.pressableT26Shape),
60
60
  ref: ref
61
61
  }, children);
62
62
  }
@@ -12,10 +12,10 @@ var _react = _interopRequireWildcard(require("react"));
12
12
  var React = _react;
13
13
  var _runtime = require("@compiled/react/runtime");
14
14
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
15
- var _new = require("@atlaskit/button/new");
16
- var _heading = _interopRequireDefault(require("@atlaskit/heading"));
15
+ var _button = _interopRequireDefault(require("@atlaskit/button/icon/button"));
16
+ var _heading = _interopRequireDefault(require("@atlaskit/heading/heading"));
17
17
  var _cross = _interopRequireDefault(require("@atlaskit/icon/core/cross"));
18
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
19
19
  var _compiled = require("@atlaskit/primitives/compiled");
20
20
  var _appearanceIcon = require("./internal/appearance-icon");
21
21
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
@@ -74,7 +74,7 @@ var SectionMessage = /*#__PURE__*/(0, _react.forwardRef)(function SectionMessage
74
74
  return isDismissible && dismissed ? null : /*#__PURE__*/React.createElement("section", {
75
75
  "data-testid": testId,
76
76
  ref: ref,
77
- className: (0, _runtime.ax)([sectionMessageStyles.container, (0, _platformFeatureFlags.fg)('platform-dst-shape-theme-default') && sectionMessageStyles.containerT26Shape, appearanceStyles[appearance]])
77
+ className: (0, _runtime.ax)([sectionMessageStyles.container, (0, _fg.fg)('platform-dst-shape-theme-default') && sectionMessageStyles.containerT26Shape, appearanceStyles[appearance]])
78
78
  }, /*#__PURE__*/React.createElement(_compiled.Inline, {
79
79
  space: "space.200",
80
80
  alignBlock: "stretch"
@@ -118,7 +118,7 @@ var SectionMessage = /*#__PURE__*/(0, _react.forwardRef)(function SectionMessage
118
118
  );
119
119
  }))), isDismissible && /*#__PURE__*/React.createElement("div", {
120
120
  className: (0, _runtime.ax)([sectionMessageStyles.dismissButtonContainer])
121
- }, /*#__PURE__*/React.createElement(_new.IconButton, {
121
+ }, /*#__PURE__*/React.createElement(_button.default, {
122
122
  testId: testId && "".concat(testId, "--dismiss-button"),
123
123
  label: "Dismiss",
124
124
  icon: _cross.default,
@@ -1,12 +1,2 @@
1
- /* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
2
- /**
3
- * @deprecated Use `import SectionMessage from '@atlaskit/section-message/src/section-message'` instead.
4
- */
5
1
  export { default } from './section-message';
6
- /**
7
- * @deprecated Use `import { SectionMessageAction } from '@atlaskit/section-message/src/section-message-action'` instead.
8
- */
9
- export { default as SectionMessageAction } from './section-message-action';
10
- /**
11
- * @deprecated Use `import type { Appearance, SectionMessageProps, SectionMessageActionProps } from '@atlaskit/section-message/types'` instead.
12
- */
2
+ export { default as SectionMessageAction } from './section-message-action';
@@ -5,8 +5,8 @@ import { ax, ix } from "@compiled/react/runtime";
5
5
  import { forwardRef, Fragment, memo } from 'react';
6
6
  import Button from '@atlaskit/button/standard-button';
7
7
  import { cx } from '@atlaskit/css';
8
- import Link from '@atlaskit/link';
9
- import { fg } from '@atlaskit/platform-feature-flags';
8
+ import Link from '@atlaskit/link/link';
9
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
10
10
  import { Box, Pressable } from '@atlaskit/primitives/compiled';
11
11
  const styles = {
12
12
  common: "_11c8fhey",
@@ -3,10 +3,10 @@ import "./section-message.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
5
5
  import { Children, forwardRef, Fragment, useCallback, useState } from 'react';
6
- import { IconButton } from '@atlaskit/button/new';
7
- import Heading from '@atlaskit/heading';
6
+ import IconButton from '@atlaskit/button/icon/button';
7
+ import Heading from '@atlaskit/heading/heading';
8
8
  import CrossIcon from '@atlaskit/icon/core/cross';
9
- import { fg } from '@atlaskit/platform-feature-flags';
9
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
10
10
  import { Inline, Stack } from '@atlaskit/primitives/compiled';
11
11
  import { getAppearanceIconStyles } from './internal/appearance-icon';
12
12
  const sectionMessageStyles = {
package/dist/esm/index.js CHANGED
@@ -1,12 +1,2 @@
1
- /* eslint-disable @repo/internal/deprecations/deprecation-ticket-required -- VOLTC-139 tracks removal of these deprecated re-export shims. */
2
- /**
3
- * @deprecated Use `import SectionMessage from '@atlaskit/section-message/src/section-message'` instead.
4
- */
5
1
  export { default } from './section-message';
6
- /**
7
- * @deprecated Use `import { SectionMessageAction } from '@atlaskit/section-message/src/section-message-action'` instead.
8
- */
9
- export { default as SectionMessageAction } from './section-message-action';
10
- /**
11
- * @deprecated Use `import type { Appearance, SectionMessageProps, SectionMessageActionProps } from '@atlaskit/section-message/types'` instead.
12
- */
2
+ export { default as SectionMessageAction } from './section-message-action';
@@ -5,8 +5,8 @@ import { ax, ix } from "@compiled/react/runtime";
5
5
  import { forwardRef, Fragment, memo } from 'react';
6
6
  import Button from '@atlaskit/button/standard-button';
7
7
  import { cx } from '@atlaskit/css';
8
- import Link from '@atlaskit/link';
9
- import { fg } from '@atlaskit/platform-feature-flags';
8
+ import Link from '@atlaskit/link/link';
9
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
10
10
  import { Box, Pressable } from '@atlaskit/primitives/compiled';
11
11
  var styles = {
12
12
  common: "_11c8fhey",
@@ -4,10 +4,10 @@ import "./section-message.compiled.css";
4
4
  import * as React from 'react';
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
6
  import { Children, forwardRef, Fragment, useCallback, useState } from 'react';
7
- import { IconButton } from '@atlaskit/button/new';
8
- import Heading from '@atlaskit/heading';
7
+ import IconButton from '@atlaskit/button/icon/button';
8
+ import Heading from '@atlaskit/heading/heading';
9
9
  import CrossIcon from '@atlaskit/icon/core/cross';
10
- import { fg } from '@atlaskit/platform-feature-flags';
10
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
11
11
  import { Inline, Stack } from '@atlaskit/primitives/compiled';
12
12
  import { getAppearanceIconStyles } from './internal/appearance-icon';
13
13
  var sectionMessageStyles = {
@@ -1,12 +1,3 @@
1
- /**
2
- * @deprecated Use `import SectionMessage from '@atlaskit/section-message/src/section-message'` instead.
3
- */
4
1
  export { default } from './section-message';
5
- /**
6
- * @deprecated Use `import { SectionMessageAction } from '@atlaskit/section-message/src/section-message-action'` instead.
7
- */
8
2
  export { default as SectionMessageAction } from './section-message-action';
9
- /**
10
- * @deprecated Use `import type { Appearance, SectionMessageProps, SectionMessageActionProps } from '@atlaskit/section-message/types'` instead.
11
- */
12
3
  export type { Appearance, SectionMessageProps, SectionMessageActionProps } from './types';
@@ -1,5 +1,5 @@
1
1
  import type { ReactElement } from 'react';
2
- import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
2
+ import type UIAnalyticsEvent from '@atlaskit/analytics-next/UIAnalyticsEvent';
3
3
  /**
4
4
  * Appearance determines the icon and background color pairing indicating the message type
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/section-message",
3
- "version": "10.0.0",
3
+ "version": "10.1.1",
4
4
  "description": "A section message is used to alert users to a particular section of the screen.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -31,58 +31,36 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/button": "^25.0.0",
35
- "@atlaskit/css": "^1.0.0",
36
- "@atlaskit/heading": "^7.0.0",
37
- "@atlaskit/icon": "^37.2.0",
38
- "@atlaskit/link": "^5.0.0",
34
+ "@atlaskit/button": "^25.2.0",
35
+ "@atlaskit/css": "^1.1.0",
36
+ "@atlaskit/heading": "^7.1.0",
37
+ "@atlaskit/icon": "^37.5.0",
38
+ "@atlaskit/link": "^5.1.0",
39
39
  "@atlaskit/platform-feature-flags": "^2.1.0",
40
- "@atlaskit/primitives": "^22.2.0",
40
+ "@atlaskit/primitives": "^22.4.0",
41
41
  "@atlaskit/react-compiler-gating": "^0.2.0",
42
- "@atlaskit/tokens": "^16.3.0",
42
+ "@atlaskit/tokens": "^16.9.0",
43
43
  "@babel/runtime": "^7.0.0"
44
44
  },
45
45
  "peerDependencies": {
46
- "react": "^18.2.0"
46
+ "react": "^18.2.0 || ^19.0.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@af/accessibility-testing": "workspace:^",
50
50
  "@af/integration-testing": "workspace:^",
51
51
  "@af/visual-regression": "workspace:^",
52
- "@atlaskit/analytics-next": "^12.3.0",
53
- "@atlaskit/code": "^18.2.0",
54
- "@atlaskit/docs": "^12.1.0",
52
+ "@atlaskit/analytics-next": "^12.4.0",
53
+ "@atlaskit/code": "^19.1.0",
54
+ "@atlaskit/docs": "^12.2.0",
55
55
  "@atlaskit/ds-lib": "^8.0.0",
56
- "@atlaskit/form": "^16.1.0",
57
- "@atlaskit/range": "^11.1.0",
56
+ "@atlaskit/form": "^17.1.0",
57
+ "@atlaskit/range": "^12.1.0",
58
58
  "@atlassian/ssr-tests": "workspace:^",
59
59
  "@atlassian/structured-docs-types": "workspace:^",
60
60
  "@testing-library/react": "^16.3.0",
61
61
  "@testing-library/user-event": "^14.4.3",
62
- "react": "^18.2.0",
63
- "react-dom": "^18.2.0"
64
- },
65
- "techstack": {
66
- "@atlassian/frontend": {
67
- "import-structure": "atlassian-conventions"
68
- },
69
- "@repo/internal": {
70
- "design-system": "v1",
71
- "dom-events": "use-bind-event-listener",
72
- "ui-components": [
73
- "primitives",
74
- "lite-mode"
75
- ],
76
- "analytics": "analytics-next",
77
- "styling": [
78
- "emotion"
79
- ],
80
- "design-tokens": [
81
- "color",
82
- "spacing"
83
- ],
84
- "deprecation": "no-deprecated-imports"
85
- }
62
+ "react": "^19.0.0",
63
+ "react-dom": "^19.2.0"
86
64
  },
87
65
  "platform-feature-flags": {
88
66
  "platform-dst-shape-theme-default": {
@@ -1,55 +0,0 @@
1
- import path from 'path';
2
-
3
- import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
4
-
5
- const documentation: StructuredContentSource = {
6
- components: [
7
- {
8
- name: 'SectionMessage',
9
- description: 'A component for section-level messages.',
10
- status: 'general-availability',
11
- designSource: {
12
- figmaUrl: 'https://go.atlassian.com/figma-library-ads-82088-101069',
13
- },
14
- import: {
15
- name: 'SectionMessage',
16
- package: '@atlaskit/section-message/section-message',
17
- type: 'default',
18
- packagePath: path.resolve(__dirname),
19
- packageJson: require('./package.json'),
20
- },
21
- usageGuidelines: [
22
- 'Use for section-level important info that persists until action or resolution',
23
- 'Use when: destructive consequences, action needed to proceed, connectivity or auth issues',
24
- 'Anatomy: icon+color, title (optional), description, actions (optional)',
25
- 'Use Banner for site-wide; Flag after an event; Inline message for smaller context',
26
- ],
27
- contentGuidelines: [
28
- 'Title: state the issue or reason',
29
- 'Description: clear, concise, empathetic; use active verbs',
30
- 'Avoid blame—use "we\'re having trouble" not "you\'re having issues"',
31
- 'Provide clear next steps when needed',
32
- ],
33
- accessibilityGuidelines: [
34
- 'Do not rely on color alone for severity',
35
- 'Avoid dead ends—always indicate how to proceed',
36
- 'Use descriptive link text that describes the destination',
37
- 'Ensure section message content is announced by screen readers',
38
- 'Use appropriate color contrast for text readability',
39
- 'Provide clear, actionable messaging',
40
- 'Consider keyboard navigation for interactive section messages',
41
- ],
42
- examples: [
43
- {
44
- name: 'Section Message',
45
- description: 'Section Message example',
46
- source: path.resolve(__dirname, './examples/ai/section-message.tsx'),
47
- },
48
- ],
49
- keywords: ['section', 'message', 'alert', 'notification', 'contextual', 'information'],
50
- categories: ['feedback'],
51
- },
52
- ],
53
- };
54
-
55
- export default documentation;