@atlaskit/drawer 12.1.0 → 12.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,12 @@
1
1
  # @atlaskit/drawer
2
2
 
3
+ ## 12.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`cfe3aecafd8ba`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cfe3aecafd8ba) -
8
+ [ux] React 19 migration - RefObject no longer makes current nullable by default
9
+
3
10
  ## 12.1.0
4
11
 
5
12
  ### Minor Changes
@@ -67,7 +67,7 @@ var Drawer = exports.Drawer = function Drawer(_ref2) {
67
67
  action: 'dismissed',
68
68
  componentName: 'drawer',
69
69
  packageName: "@atlaskit/drawer",
70
- packageVersion: "12.1.0",
70
+ packageVersion: "0.0.0-development",
71
71
  analyticsData: {
72
72
  trigger: 'escKey'
73
73
  }
@@ -90,7 +90,7 @@ var Drawer = exports.Drawer = function Drawer(_ref2) {
90
90
  action: 'dismissed',
91
91
  componentName: 'drawer',
92
92
  packageName: "@atlaskit/drawer",
93
- packageVersion: "12.1.0",
93
+ packageVersion: "0.0.0-development",
94
94
  analyticsData: {
95
95
  trigger: 'blanket'
96
96
  }
@@ -102,7 +102,7 @@ var Drawer = exports.Drawer = function Drawer(_ref2) {
102
102
  action: 'dismissed',
103
103
  componentName: 'drawer',
104
104
  packageName: "@atlaskit/drawer",
105
- packageVersion: "12.1.0",
105
+ packageVersion: "0.0.0-development",
106
106
  analyticsData: {
107
107
  trigger: 'backButton'
108
108
  }
@@ -52,7 +52,7 @@ export const Drawer = ({
52
52
  action: 'dismissed',
53
53
  componentName: 'drawer',
54
54
  packageName: "@atlaskit/drawer",
55
- packageVersion: "12.1.0",
55
+ packageVersion: "0.0.0-development",
56
56
  analyticsData: {
57
57
  trigger: 'escKey'
58
58
  }
@@ -73,7 +73,7 @@ export const Drawer = ({
73
73
  action: 'dismissed',
74
74
  componentName: 'drawer',
75
75
  packageName: "@atlaskit/drawer",
76
- packageVersion: "12.1.0",
76
+ packageVersion: "0.0.0-development",
77
77
  analyticsData: {
78
78
  trigger: 'blanket'
79
79
  }
@@ -83,7 +83,7 @@ export const Drawer = ({
83
83
  action: 'dismissed',
84
84
  componentName: 'drawer',
85
85
  packageName: "@atlaskit/drawer",
86
- packageVersion: "12.1.0",
86
+ packageVersion: "0.0.0-development",
87
87
  analyticsData: {
88
88
  trigger: 'backButton'
89
89
  }
@@ -57,7 +57,7 @@ export var Drawer = function Drawer(_ref2) {
57
57
  action: 'dismissed',
58
58
  componentName: 'drawer',
59
59
  packageName: "@atlaskit/drawer",
60
- packageVersion: "12.1.0",
60
+ packageVersion: "0.0.0-development",
61
61
  analyticsData: {
62
62
  trigger: 'escKey'
63
63
  }
@@ -80,7 +80,7 @@ export var Drawer = function Drawer(_ref2) {
80
80
  action: 'dismissed',
81
81
  componentName: 'drawer',
82
82
  packageName: "@atlaskit/drawer",
83
- packageVersion: "12.1.0",
83
+ packageVersion: "0.0.0-development",
84
84
  analyticsData: {
85
85
  trigger: 'blanket'
86
86
  }
@@ -92,7 +92,7 @@ export var Drawer = function Drawer(_ref2) {
92
92
  action: 'dismissed',
93
93
  componentName: 'drawer',
94
94
  packageName: "@atlaskit/drawer",
95
- packageVersion: "12.1.0",
95
+ packageVersion: "0.0.0-development",
96
96
  analyticsData: {
97
97
  trigger: 'backButton'
98
98
  }
@@ -109,7 +109,7 @@ export interface FocusLockSettings {
109
109
  * If true, focus returns to the trigger element . If false, focus remains where it was when the FocusLock was deactivated.
110
110
  * If ref is passed, focus returns to that specific ref element.
111
111
  */
112
- shouldReturnFocus?: boolean | RefObject<HTMLElement>;
112
+ shouldReturnFocus?: boolean | RefObject<HTMLElement | null>;
113
113
  }
114
114
  export interface FocusLockProps extends FocusLockSettings {
115
115
  /**
@@ -109,7 +109,7 @@ export interface FocusLockSettings {
109
109
  * If true, focus returns to the trigger element . If false, focus remains where it was when the FocusLock was deactivated.
110
110
  * If ref is passed, focus returns to that specific ref element.
111
111
  */
112
- shouldReturnFocus?: boolean | RefObject<HTMLElement>;
112
+ shouldReturnFocus?: boolean | RefObject<HTMLElement | null>;
113
113
  }
114
114
  export interface FocusLockProps extends FocusLockSettings {
115
115
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/drawer",
3
- "version": "12.1.0",
3
+ "version": "12.1.1",
4
4
  "description": "A drawer is a panel that slides in from the left side of the screen.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -48,9 +48,9 @@
48
48
  "@atlaskit/blanket": "^15.0.0",
49
49
  "@atlaskit/button": "^23.11.0",
50
50
  "@atlaskit/css": "^0.19.0",
51
- "@atlaskit/icon": "^34.3.0",
51
+ "@atlaskit/icon": "^34.5.0",
52
52
  "@atlaskit/layering": "^3.7.0",
53
- "@atlaskit/motion": "^6.1.0",
53
+ "@atlaskit/motion": "^6.2.0",
54
54
  "@atlaskit/portal": "^5.5.0",
55
55
  "@atlaskit/theme": "^23.2.0",
56
56
  "@atlaskit/tokens": "^13.0.0",
@@ -70,7 +70,7 @@
70
70
  "@af/accessibility-testing": "workspace:^",
71
71
  "@af/integration-testing": "workspace:^",
72
72
  "@af/visual-regression": "workspace:^",
73
- "@atlaskit/code": "^17.4.0",
73
+ "@atlaskit/code": "^17.5.0",
74
74
  "@atlaskit/docs": "^11.8.0",
75
75
  "@atlaskit/dropdown-menu": "^16.8.0",
76
76
  "@atlaskit/ds-lib": "^7.0.0",
@@ -78,7 +78,7 @@
78
78
  "@atlaskit/inline-message": "^15.6.0",
79
79
  "@atlaskit/link": "^3.4.0",
80
80
  "@atlaskit/menu": "^8.5.0",
81
- "@atlaskit/modal-dialog": "^14.18.0",
81
+ "@atlaskit/modal-dialog": "^15.0.0",
82
82
  "@atlaskit/primitives": "^19.0.0",
83
83
  "@atlaskit/section-message": "^8.12.0",
84
84
  "@atlassian/react-compiler-gating": "workspace:^",
package/offerings.json DELETED
@@ -1,108 +0,0 @@
1
- [
2
- {
3
- "name": "Drawer",
4
- "package": "@atlaskit/drawer",
5
- "import": {
6
- "name": "Drawer",
7
- "package": "@atlaskit/drawer",
8
- "type": "default"
9
- },
10
- "keywords": ["drawer", "panel", "slide", "overlay", "navigation", "sidebar"],
11
- "categories": ["overlays-and-layering"],
12
- "shortDescription": "A drawer is a panel that slides in from the left side of the screen for navigation or additional content.",
13
- "status": "intent-to-deprecate",
14
- "accessibilityGuidelines": [
15
- "Ensure proper focus management when drawer opens/closes",
16
- "Provide keyboard navigation support",
17
- "Use appropriate ARIA attributes for drawer state",
18
- "Ensure content is accessible when drawer is open",
19
- "Provide clear close mechanisms"
20
- ],
21
- "usageGuidelines": [
22
- "Use for navigation or secondary content",
23
- "Provide clear open/close mechanisms",
24
- "Consider screen size and drawer width",
25
- "Use appropriate backdrop behavior",
26
- "Consider alternative patterns like Modal for better UX"
27
- ],
28
- "contentGuidelines": [
29
- "Organize content logically within the drawer",
30
- "Use clear navigation labels",
31
- "Provide appropriate close actions",
32
- "Consider content hierarchy and grouping"
33
- ],
34
- "examples": ["./examples/ai/drawer.tsx"]
35
- },
36
- {
37
- "name": "DrawerContent",
38
- "package": "@atlaskit/drawer",
39
- "import": {
40
- "name": "DrawerContent",
41
- "package": "@atlaskit/drawer",
42
- "type": "named"
43
- },
44
- "keywords": ["drawer", "content", "panel", "body"],
45
- "categories": ["overlays-and-layering"],
46
- "shortDescription": "The main content area of a drawer panel.",
47
- "status": "intent-to-deprecate",
48
- "usageGuidelines": [
49
- "Use as the main content container within a drawer",
50
- "Place primary content and actions here",
51
- "Ensure proper scrolling behavior for long content"
52
- ],
53
- "contentGuidelines": [
54
- "Organize content logically",
55
- "Use appropriate spacing and layout",
56
- "Consider content hierarchy"
57
- ],
58
- "examples": ["./examples/ai/drawer-content.tsx"]
59
- },
60
- {
61
- "name": "DrawerSidebar",
62
- "package": "@atlaskit/drawer",
63
- "import": {
64
- "name": "DrawerSidebar",
65
- "package": "@atlaskit/drawer",
66
- "type": "named"
67
- },
68
- "keywords": ["drawer", "sidebar", "navigation", "panel"],
69
- "categories": ["overlays-and-layering"],
70
- "shortDescription": "A sidebar component within a drawer for navigation or secondary content.",
71
- "status": "intent-to-deprecate",
72
- "usageGuidelines": [
73
- "Use for navigation or secondary content in a drawer",
74
- "Keep sidebar content focused and organized",
75
- "Consider responsive behavior"
76
- ],
77
- "contentGuidelines": [
78
- "Use clear navigation labels",
79
- "Organize content hierarchically",
80
- "Keep sidebar content concise"
81
- ],
82
- "examples": ["./examples/ai/drawer-sidebar.tsx"]
83
- },
84
- {
85
- "name": "DrawerCloseButton",
86
- "package": "@atlaskit/drawer",
87
- "import": {
88
- "name": "DrawerCloseButton",
89
- "package": "@atlaskit/drawer",
90
- "type": "named"
91
- },
92
- "keywords": ["drawer", "close", "button", "action"],
93
- "categories": ["overlays-and-layering"],
94
- "shortDescription": "A close button specifically designed for drawer components.",
95
- "status": "intent-to-deprecate",
96
- "usageGuidelines": [
97
- "Use to provide clear close functionality for drawers",
98
- "Position prominently for easy access",
99
- "Ensure keyboard accessibility"
100
- ],
101
- "contentGuidelines": [
102
- "Use clear close icon or text",
103
- "Ensure button is easily discoverable",
104
- "Provide appropriate hover/focus states"
105
- ],
106
- "examples": ["./examples/ai/drawer-close-button.tsx"]
107
- }
108
- ]