@atlaskit/drawer 7.11.0 → 7.12.0

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.
Files changed (31) hide show
  1. package/CHANGELOG.md +14 -1
  2. package/dist/cjs/components/blanket.js +5 -0
  3. package/dist/cjs/components/index.js +1 -1
  4. package/dist/cjs/components/primitives/content.js +5 -1
  5. package/dist/cjs/components/primitives/drawer-wrapper.js +4 -0
  6. package/dist/cjs/components/primitives/index.js +4 -0
  7. package/dist/cjs/components/primitives/sidebar.js +5 -1
  8. package/dist/es2019/components/blanket.js +5 -0
  9. package/dist/es2019/components/index.js +1 -1
  10. package/dist/es2019/components/primitives/content.js +6 -1
  11. package/dist/es2019/components/primitives/drawer-wrapper.js +5 -0
  12. package/dist/es2019/components/primitives/index.js +5 -0
  13. package/dist/es2019/components/primitives/sidebar.js +5 -1
  14. package/dist/esm/components/blanket.js +5 -0
  15. package/dist/esm/components/index.js +1 -1
  16. package/dist/esm/components/primitives/content.js +6 -1
  17. package/dist/esm/components/primitives/drawer-wrapper.js +5 -0
  18. package/dist/esm/components/primitives/index.js +5 -0
  19. package/dist/esm/components/primitives/sidebar.js +5 -1
  20. package/dist/types/components/blanket.d.ts +3 -0
  21. package/dist/types/components/primitives/content.d.ts +3 -0
  22. package/dist/types/components/primitives/drawer-wrapper.d.ts +3 -0
  23. package/dist/types/components/primitives/index.d.ts +3 -0
  24. package/dist/types/components/primitives/sidebar.d.ts +3 -0
  25. package/dist/types-ts4.5/components/blanket.d.ts +3 -0
  26. package/dist/types-ts4.5/components/primitives/content.d.ts +3 -0
  27. package/dist/types-ts4.5/components/primitives/drawer-wrapper.d.ts +3 -0
  28. package/dist/types-ts4.5/components/primitives/index.d.ts +3 -0
  29. package/dist/types-ts4.5/components/primitives/sidebar.d.ts +3 -0
  30. package/package.json +100 -100
  31. package/report.api.md +117 -128
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/drawer
2
2
 
3
+ ## 7.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#111878](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111878)
8
+ [`223959ef57c80`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/223959ef57c80) -
9
+ Explicitly set jsxRuntime to classic via pragma comments in order to avoid issues where jsxRuntime
10
+ is implicitly set to automatic.
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 7.11.0
4
17
 
5
18
  ### Minor Changes
@@ -23,7 +36,7 @@
23
36
 
24
37
  - [#102398](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102398)
25
38
  [`872ce80f5ef9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/872ce80f5ef9) -
26
- Add support for React 18.
39
+ Add support for React 18 in non-strict mode.
27
40
 
28
41
  ## 7.8.0
29
42
 
@@ -10,8 +10,13 @@ var _react2 = require("@emotion/react");
10
10
  var _blanket = _interopRequireDefault(require("@atlaskit/blanket"));
11
11
  var _motion = require("@atlaskit/motion");
12
12
  var _constants = require("../constants");
13
+ /**
14
+ * @jsxRuntime classic
15
+ */
13
16
  /** @jsx jsx */
14
17
 
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
+
15
20
  var blanketStyles = (0, _react2.css)({
16
21
  position: 'relative'
17
22
  });
@@ -27,7 +27,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
27
27
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
28
28
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /* eslint-disable @repo/internal/dom-events/no-unsafe-event-listeners */
29
29
  var packageName = "@atlaskit/drawer";
30
- var packageVersion = "7.11.0";
30
+ var packageVersion = "7.12.0";
31
31
  var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
32
32
  var createAndFireOnClick = function createAndFireOnClick(createAnalyticsEvent, trigger) {
33
33
  return createAndFireEventOnAtlaskit({
@@ -11,7 +11,11 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
11
11
  var _react = require("react");
12
12
  var _react2 = require("@emotion/react");
13
13
  var _excluded = ["cssFn", "scrollContentLabel"];
14
+ /**
15
+ * @jsxRuntime classic
16
+ */
14
17
  /** @jsx jsx */
18
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
15
19
  var defaultStyles = {
16
20
  flex: 1,
17
21
  overflow: 'auto',
@@ -45,7 +49,7 @@ var Content = function Content(_ref) {
45
49
  * a complete override with no chance of partially changing styles.
46
50
  */
47
51
  return (0, _react2.jsx)("div", (0, _extends2.default)({
48
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
52
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
49
53
  css: (0, _react2.css)(cssFn(defaultStyles)),
50
54
  ref: scrollableRef
51
55
  // tabindex is allowed here so that keyboard users can scroll content
@@ -13,7 +13,11 @@ var _colors = require("@atlaskit/theme/colors");
13
13
  var _tokens = require("@atlaskit/tokens");
14
14
  var _usePreventProgrammaticScroll = _interopRequireDefault(require("./hooks/use-prevent-programmatic-scroll"));
15
15
  var _css;
16
+ /**
17
+ * @jsxRuntime classic
18
+ */
16
19
  /** @jsx jsx */
20
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
17
21
  var wrapperWidth = exports.wrapperWidth = {
18
22
  full: {
19
23
  width: '100vw'
@@ -20,7 +20,11 @@ var _focusLock = _interopRequireDefault(require("./focus-lock"));
20
20
  var _sidebar = _interopRequireDefault(require("./sidebar"));
21
21
  var _excluded = ["component"],
22
22
  _excluded2 = ["component"];
23
+ /**
24
+ * @jsxRuntime classic
25
+ */
23
26
  /** @jsx jsx */
27
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
24
28
  // Misc.
25
29
  // ------------------------------
26
30
 
@@ -10,7 +10,11 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
10
10
  var _react = require("@emotion/react");
11
11
  var _colors = require("@atlaskit/theme/colors");
12
12
  var _excluded = ["cssFn"];
13
+ /**
14
+ * @jsxRuntime classic
15
+ */
13
16
  /** @jsx jsx */
17
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
14
18
  var defaultStyle = {
15
19
  alignItems: 'center',
16
20
  boxSizing: 'border-box',
@@ -29,7 +33,7 @@ var sidebarCSS = function sidebarCSS() {
29
33
  var Sidebar = function Sidebar(_ref) {
30
34
  var cssFn = _ref.cssFn,
31
35
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
32
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @repo/internal/react/no-unsafe-spread-props
36
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @repo/internal/react/no-unsafe-spread-props, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
33
37
  return (0, _react.jsx)("div", (0, _extends2.default)({
34
38
  css: (0, _react.css)(cssFn(defaultStyle))
35
39
  }, props));
@@ -1,5 +1,10 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import React from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
8
  import { css, jsx } from '@emotion/react';
4
9
  import AkBlanket from '@atlaskit/blanket';
5
10
  import { ExitingPersistence, FadeIn } from '@atlaskit/motion';
@@ -8,7 +8,7 @@ import { defaultFocusLockSettings } from '../constants';
8
8
  import Blanket from './blanket';
9
9
  import DrawerPrimitive from './primitives';
10
10
  const packageName = "@atlaskit/drawer";
11
- const packageVersion = "7.11.0";
11
+ const packageVersion = "7.12.0";
12
12
  const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
13
13
  const createAndFireOnClick = (createAnalyticsEvent, trigger) => createAndFireEventOnAtlaskit({
14
14
  action: 'dismissed',
@@ -1,7 +1,12 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ /**
3
+ * @jsxRuntime classic
4
+ */
2
5
  /** @jsx jsx */
3
6
 
4
7
  import { useEffect, useRef, useState } from 'react';
8
+
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
10
  import { css, jsx } from '@emotion/react';
6
11
  const defaultStyles = {
7
12
  flex: 1,
@@ -31,7 +36,7 @@ const Content = ({
31
36
  * a complete override with no chance of partially changing styles.
32
37
  */
33
38
  return jsx("div", _extends({
34
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
39
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
35
40
  css: css(cssFn(defaultStyles)),
36
41
  ref: scrollableRef
37
42
  // tabindex is allowed here so that keyboard users can scroll content
@@ -1,5 +1,10 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { forwardRef, useCallback } from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
8
  import { css, jsx } from '@emotion/react';
4
9
  import { useMergeRefs } from 'use-callback-ref';
5
10
  import { N0 } from '@atlaskit/theme/colors';
@@ -1,7 +1,12 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ /**
3
+ * @jsxRuntime classic
4
+ */
2
5
  /** @jsx jsx */
3
6
 
4
7
  import { useCallback, useRef } from 'react';
8
+
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
10
  import { jsx } from '@emotion/react';
6
11
  import { IconButton } from '@atlaskit/button/new';
7
12
  import ArrowLeft from '@atlaskit/icon/glyph/arrow-left';
@@ -1,6 +1,10 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ /**
3
+ * @jsxRuntime classic
4
+ */
2
5
  /** @jsx jsx */
3
6
 
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
8
  import { css, jsx } from '@emotion/react';
5
9
  import { N500 } from '@atlaskit/theme/colors';
6
10
  const defaultStyle = {
@@ -20,7 +24,7 @@ const Sidebar = ({
20
24
  cssFn,
21
25
  ...props
22
26
  }) => {
23
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @repo/internal/react/no-unsafe-spread-props
27
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @repo/internal/react/no-unsafe-spread-props, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
24
28
  return jsx("div", _extends({
25
29
  css: css(cssFn(defaultStyle))
26
30
  }, props));
@@ -1,5 +1,10 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import React from 'react';
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
8
  import { css, jsx } from '@emotion/react';
4
9
  import AkBlanket from '@atlaskit/blanket';
5
10
  import { ExitingPersistence, FadeIn } from '@atlaskit/motion';
@@ -18,7 +18,7 @@ import { defaultFocusLockSettings } from '../constants';
18
18
  import Blanket from './blanket';
19
19
  import DrawerPrimitive from './primitives';
20
20
  var packageName = "@atlaskit/drawer";
21
- var packageVersion = "7.11.0";
21
+ var packageVersion = "7.12.0";
22
22
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
23
23
  var createAndFireOnClick = function createAndFireOnClick(createAnalyticsEvent, trigger) {
24
24
  return createAndFireEventOnAtlaskit({
@@ -2,9 +2,14 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["cssFn", "scrollContentLabel"];
5
+ /**
6
+ * @jsxRuntime classic
7
+ */
5
8
  /** @jsx jsx */
6
9
 
7
10
  import { useEffect, useRef, useState } from 'react';
11
+
12
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
13
  import { css, jsx } from '@emotion/react';
9
14
  var defaultStyles = {
10
15
  flex: 1,
@@ -39,7 +44,7 @@ var Content = function Content(_ref) {
39
44
  * a complete override with no chance of partially changing styles.
40
45
  */
41
46
  return jsx("div", _extends({
42
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
47
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
43
48
  css: css(cssFn(defaultStyles)),
44
49
  ref: scrollableRef
45
50
  // tabindex is allowed here so that keyboard users can scroll content
@@ -1,7 +1,12 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  var _css;
3
+ /**
4
+ * @jsxRuntime classic
5
+ */
3
6
  /** @jsx jsx */
4
7
  import { forwardRef, useCallback } from 'react';
8
+
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
10
  import { css, jsx } from '@emotion/react';
6
11
  import { useMergeRefs } from 'use-callback-ref';
7
12
  import { N0 } from '@atlaskit/theme/colors';
@@ -2,9 +2,14 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["component"],
4
4
  _excluded2 = ["component"];
5
+ /**
6
+ * @jsxRuntime classic
7
+ */
5
8
  /** @jsx jsx */
6
9
 
7
10
  import { useCallback, useRef } from 'react';
11
+
12
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
13
  import { jsx } from '@emotion/react';
9
14
  import { IconButton } from '@atlaskit/button/new';
10
15
  import ArrowLeft from '@atlaskit/icon/glyph/arrow-left';
@@ -1,8 +1,12 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["cssFn"];
4
+ /**
5
+ * @jsxRuntime classic
6
+ */
4
7
  /** @jsx jsx */
5
8
 
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
10
  import { css, jsx } from '@emotion/react';
7
11
  import { N500 } from '@atlaskit/theme/colors';
8
12
  var defaultStyle = {
@@ -23,7 +27,7 @@ var sidebarCSS = function sidebarCSS() {
23
27
  var Sidebar = function Sidebar(_ref) {
24
28
  var cssFn = _ref.cssFn,
25
29
  props = _objectWithoutProperties(_ref, _excluded);
26
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @repo/internal/react/no-unsafe-spread-props
30
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @repo/internal/react/no-unsafe-spread-props, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
27
31
  return jsx("div", _extends({
28
32
  css: css(cssFn(defaultStyle))
29
33
  }, props));
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import React from 'react';
3
6
  import { jsx } from '@emotion/react';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type CSSObject, jsx } from '@emotion/react';
3
6
  import { type ContentProps } from '../types';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type ReactElement, type Ref } from 'react';
3
6
  import { type DrawerPrimitiveProps, type Widths } from '../types';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { jsx } from '@emotion/react';
3
6
  import { type DrawerPrimitiveProps } from '../types';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type FC } from 'react';
3
6
  import { type CSSObject } from '@emotion/react';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import React from 'react';
3
6
  import { jsx } from '@emotion/react';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type CSSObject, jsx } from '@emotion/react';
3
6
  import { type ContentProps } from '../types';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type ReactElement, type Ref } from 'react';
3
6
  import { type DrawerPrimitiveProps, type Widths } from '../types';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { jsx } from '@emotion/react';
3
6
  import { type DrawerPrimitiveProps } from '../types';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
5
  import { type FC } from 'react';
3
6
  import { type CSSObject } from '@emotion/react';
package/package.json CHANGED
@@ -1,101 +1,101 @@
1
1
  {
2
- "name": "@atlaskit/drawer",
3
- "version": "7.11.0",
4
- "description": "A drawer is a panel that slides in from the left side of the screen.",
5
- "publishConfig": {
6
- "registry": "https://registry.npmjs.org/"
7
- },
8
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
- "author": "Atlassian Pty Ltd",
10
- "license": "Apache-2.0",
11
- "main": "dist/cjs/index.js",
12
- "module": "dist/esm/index.js",
13
- "module:es2019": "dist/es2019/index.js",
14
- "types": "dist/types/index.d.ts",
15
- "typesVersions": {
16
- ">=4.5 <4.9": {
17
- "*": [
18
- "dist/types-ts4.5/*",
19
- "dist/types-ts4.5/index.d.ts"
20
- ]
21
- }
22
- },
23
- "sideEffects": false,
24
- "atlaskit:src": "src/index.tsx",
25
- "af:exports": {
26
- ".": "./src/index.tsx",
27
- "./constants": "./src/constants.tsx"
28
- },
29
- "homepage": "https://atlassian.design/components/drawer",
30
- "atlassian": {
31
- "team": "Design System Team",
32
- "releaseModel": "continuous",
33
- "productPushConsumption": [
34
- "jira"
35
- ],
36
- "website": {
37
- "name": "Drawer",
38
- "category": "Components"
39
- },
40
- "runReact18": true
41
- },
42
- "dependencies": {
43
- "@atlaskit/analytics-next": "^9.3.0",
44
- "@atlaskit/blanket": "^13.1.0",
45
- "@atlaskit/button": "^17.17.0",
46
- "@atlaskit/icon": "^22.3.0",
47
- "@atlaskit/motion": "^1.6.0",
48
- "@atlaskit/portal": "^4.5.0",
49
- "@atlaskit/theme": "^12.8.0",
50
- "@atlaskit/tokens": "^1.49.0",
51
- "@babel/runtime": "^7.0.0",
52
- "@emotion/react": "^11.7.1",
53
- "bind-event-listener": "^3.0.0",
54
- "exenv": "^1.2.2",
55
- "react-focus-lock": "^2.9.5",
56
- "react-scrolllock": "^5.0.1",
57
- "tiny-invariant": "^1.2.0",
58
- "use-callback-ref": "^1.2.3"
59
- },
60
- "peerDependencies": {
61
- "react": "^16.8.0 || ^17.0.0 || ~18.2.0"
62
- },
63
- "devDependencies": {
64
- "@af/accessibility-testing": "*",
65
- "@af/integration-testing": "*",
66
- "@af/visual-regression": "*",
67
- "@atlaskit/ds-lib": "^2.3.0",
68
- "@atlaskit/ssr": "*",
69
- "@atlaskit/visual-regression": "*",
70
- "@testing-library/react": "^12.1.5",
71
- "@testing-library/user-event": "^14.4.3",
72
- "@types/exenv": "^1.2.0",
73
- "lodash": "^4.17.21",
74
- "react-dom": "^16.8.0",
75
- "react-lorem-component": "^0.13.0",
76
- "typescript": "~5.4.2",
77
- "wait-for-expect": "^1.2.0"
78
- },
79
- "techstack": {
80
- "@atlassian/frontend": {
81
- "import-structure": "atlassian-conventions"
82
- },
83
- "@repo/internal": {
84
- "dom-events": "use-bind-event-listener",
85
- "design-system": "v1",
86
- "analytics": "analytics-next",
87
- "design-tokens": [
88
- "color",
89
- "spacing"
90
- ],
91
- "styling": [
92
- "static",
93
- "emotion"
94
- ],
95
- "deprecation": "no-deprecated-imports",
96
- "ui-components": [
97
- "primitives"
98
- ]
99
- }
100
- }
101
- }
2
+ "name": "@atlaskit/drawer",
3
+ "version": "7.12.0",
4
+ "description": "A drawer is a panel that slides in from the left side of the screen.",
5
+ "publishConfig": {
6
+ "registry": "https://registry.npmjs.org/"
7
+ },
8
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
+ "author": "Atlassian Pty Ltd",
10
+ "license": "Apache-2.0",
11
+ "main": "dist/cjs/index.js",
12
+ "module": "dist/esm/index.js",
13
+ "module:es2019": "dist/es2019/index.js",
14
+ "types": "dist/types/index.d.ts",
15
+ "typesVersions": {
16
+ ">=4.5 <4.9": {
17
+ "*": [
18
+ "dist/types-ts4.5/*",
19
+ "dist/types-ts4.5/index.d.ts"
20
+ ]
21
+ }
22
+ },
23
+ "sideEffects": false,
24
+ "atlaskit:src": "src/index.tsx",
25
+ "af:exports": {
26
+ ".": "./src/index.tsx",
27
+ "./constants": "./src/constants.tsx"
28
+ },
29
+ "homepage": "https://atlassian.design/components/drawer",
30
+ "atlassian": {
31
+ "team": "Design System Team",
32
+ "releaseModel": "continuous",
33
+ "productPushConsumption": [
34
+ "jira"
35
+ ],
36
+ "website": {
37
+ "name": "Drawer",
38
+ "category": "Components"
39
+ },
40
+ "runReact18": true
41
+ },
42
+ "dependencies": {
43
+ "@atlaskit/analytics-next": "^9.3.0",
44
+ "@atlaskit/blanket": "^13.2.0",
45
+ "@atlaskit/button": "^17.19.0",
46
+ "@atlaskit/icon": "^22.4.0",
47
+ "@atlaskit/motion": "^1.7.0",
48
+ "@atlaskit/portal": "^4.6.0",
49
+ "@atlaskit/theme": "^12.10.0",
50
+ "@atlaskit/tokens": "^1.51.0",
51
+ "@babel/runtime": "^7.0.0",
52
+ "@emotion/react": "^11.7.1",
53
+ "bind-event-listener": "^3.0.0",
54
+ "exenv": "^1.2.2",
55
+ "react-focus-lock": "^2.9.5",
56
+ "react-scrolllock": "^5.0.1",
57
+ "tiny-invariant": "^1.2.0",
58
+ "use-callback-ref": "^1.2.3"
59
+ },
60
+ "peerDependencies": {
61
+ "react": "^16.8.0 || ^17.0.0 || ~18.2.0"
62
+ },
63
+ "devDependencies": {
64
+ "@af/accessibility-testing": "*",
65
+ "@af/integration-testing": "*",
66
+ "@af/visual-regression": "*",
67
+ "@atlaskit/ds-lib": "^2.3.0",
68
+ "@atlaskit/ssr": "*",
69
+ "@atlaskit/visual-regression": "*",
70
+ "@testing-library/react": "^12.1.5",
71
+ "@testing-library/user-event": "^14.4.3",
72
+ "@types/exenv": "^1.2.0",
73
+ "lodash": "^4.17.21",
74
+ "react-dom": "^16.8.0",
75
+ "react-lorem-component": "^0.13.0",
76
+ "typescript": "~5.4.2",
77
+ "wait-for-expect": "^1.2.0"
78
+ },
79
+ "techstack": {
80
+ "@atlassian/frontend": {
81
+ "import-structure": "atlassian-conventions"
82
+ },
83
+ "@repo/internal": {
84
+ "dom-events": "use-bind-event-listener",
85
+ "design-system": "v1",
86
+ "analytics": "analytics-next",
87
+ "design-tokens": [
88
+ "color",
89
+ "spacing"
90
+ ],
91
+ "styling": [
92
+ "static",
93
+ "emotion"
94
+ ],
95
+ "deprecation": "no-deprecated-imports",
96
+ "ui-components": [
97
+ "primitives"
98
+ ]
99
+ }
100
+ }
101
+ }
package/report.api.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  ## API Report File for "@atlaskit/drawer"
4
4
 
5
- > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
5
+ > Do not edit this file. This report is auto-generated using
6
+ > [API Extractor](https://api-extractor.com/).
6
7
  > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
8
 
8
9
  ### Table of contents
@@ -26,15 +27,15 @@ import { WithContextProps } from '@atlaskit/analytics-next';
26
27
 
27
28
  // @public (undocumented)
28
29
  export interface BaseProps {
29
- children?: ReactNode;
30
- icon?: ComponentType<any>;
31
- onCloseComplete?: (node: HTMLElement | null) => void;
32
- onOpenComplete?: (node: HTMLElement | null) => void;
33
- overrides?: OverridesType;
34
- // @deprecated (undocumented)
35
- shouldUnmountOnExit?: boolean;
36
- testId?: string;
37
- width?: DrawerWidth;
30
+ children?: ReactNode;
31
+ icon?: ComponentType<any>;
32
+ onCloseComplete?: (node: HTMLElement | null) => void;
33
+ onOpenComplete?: (node: HTMLElement | null) => void;
34
+ overrides?: OverridesType;
35
+ // @deprecated (undocumented)
36
+ shouldUnmountOnExit?: boolean;
37
+ testId?: string;
38
+ width?: DrawerWidth;
38
39
  }
39
40
 
40
41
  // @public
@@ -45,145 +46,133 @@ export type ContentCSSProps = Omit<ContentProps, 'cssFn'>;
45
46
 
46
47
  // @public (undocumented)
47
48
  export interface ContentProps extends React.HTMLProps<HTMLDivElement> {
48
- // @deprecated (undocumented)
49
- cssFn: (defaultStyles: CSSObject) => CSSObject;
49
+ // @deprecated (undocumented)
50
+ cssFn: (defaultStyles: CSSObject) => CSSObject;
50
51
  }
51
52
 
52
53
  // @public (undocumented)
53
54
  const _default: React_2.ForwardRefExoticComponent<
54
- Pick<
55
- Pick<
56
- Omit<DrawerProps, keyof WithAnalyticsEventsProps>,
57
- | 'children'
58
- | 'icon'
59
- | 'isOpen'
60
- | 'onClose'
61
- | 'onCloseComplete'
62
- | 'onKeyDown'
63
- | 'onOpenComplete'
64
- | 'overrides'
65
- | 'shouldUnmountOnExit'
66
- | 'testId'
67
- | 'zIndex'
68
- | keyof DrawerLabel
69
- > &
70
- Partial<
71
- Pick<
72
- Omit<DrawerProps, keyof WithAnalyticsEventsProps>,
73
- 'width' | keyof FocusLockSettings
74
- >
75
- > &
76
- Partial<
77
- Pick<
78
- {
79
- autoFocusFirstElem?:
80
- | (() => HTMLElement | null)
81
- | boolean
82
- | undefined;
83
- isFocusLockEnabled?: boolean | undefined;
84
- shouldReturnFocus?: boolean | undefined;
85
- width: DrawerWidth;
86
- },
87
- never
88
- >
89
- > &
90
- React_2.RefAttributes<any> &
91
- WithContextProps,
92
- | 'analyticsContext'
93
- | 'children'
94
- | 'icon'
95
- | 'isOpen'
96
- | 'key'
97
- | 'onClose'
98
- | 'onCloseComplete'
99
- | 'onKeyDown'
100
- | 'onOpenComplete'
101
- | 'overrides'
102
- | 'shouldUnmountOnExit'
103
- | 'testId'
104
- | 'width'
105
- | 'zIndex'
106
- | keyof DrawerLabel
107
- | keyof FocusLockSettings
108
- > &
109
- React_2.RefAttributes<any>
55
+ Pick<
56
+ Pick<
57
+ Omit<DrawerProps, keyof WithAnalyticsEventsProps>,
58
+ | 'children'
59
+ | 'icon'
60
+ | 'isOpen'
61
+ | 'onClose'
62
+ | 'onCloseComplete'
63
+ | 'onKeyDown'
64
+ | 'onOpenComplete'
65
+ | 'overrides'
66
+ | 'shouldUnmountOnExit'
67
+ | 'testId'
68
+ | 'zIndex'
69
+ | keyof DrawerLabel
70
+ > &
71
+ Partial<
72
+ Pick<Omit<DrawerProps, keyof WithAnalyticsEventsProps>, 'width' | keyof FocusLockSettings>
73
+ > &
74
+ Partial<
75
+ Pick<
76
+ {
77
+ autoFocusFirstElem?: (() => HTMLElement | null) | boolean | undefined;
78
+ isFocusLockEnabled?: boolean | undefined;
79
+ shouldReturnFocus?: boolean | undefined;
80
+ width: DrawerWidth;
81
+ },
82
+ never
83
+ >
84
+ > &
85
+ React_2.RefAttributes<any> &
86
+ WithContextProps,
87
+ | 'analyticsContext'
88
+ | 'children'
89
+ | 'icon'
90
+ | 'isOpen'
91
+ | 'key'
92
+ | 'onClose'
93
+ | 'onCloseComplete'
94
+ | 'onKeyDown'
95
+ | 'onOpenComplete'
96
+ | 'overrides'
97
+ | 'shouldUnmountOnExit'
98
+ | 'testId'
99
+ | 'width'
100
+ | 'zIndex'
101
+ | keyof DrawerLabel
102
+ | keyof FocusLockSettings
103
+ > &
104
+ React_2.RefAttributes<any>
110
105
  >;
111
106
  export default _default;
112
107
 
113
108
  // @public (undocumented)
114
109
  export type DefaultsType = {
115
- Sidebar: {
116
- component: React.ComponentType<SidebarProps>;
117
- cssFn: (defaultStyles: CSSObject) => CSSObject;
118
- };
119
- Content: {
120
- component: React.ComponentType<ContentProps>;
121
- cssFn: (defaultStyles: CSSObject) => CSSObject;
122
- };
110
+ Sidebar: {
111
+ component: React.ComponentType<SidebarProps>;
112
+ cssFn: (defaultStyles: CSSObject) => CSSObject;
113
+ };
114
+ Content: {
115
+ component: React.ComponentType<ContentProps>;
116
+ cssFn: (defaultStyles: CSSObject) => CSSObject;
117
+ };
123
118
  };
124
119
 
125
120
  // @public (undocumented)
126
121
  interface DrawerLabel {
127
- label?: string;
128
- titleId?: string;
122
+ label?: string;
123
+ titleId?: string;
129
124
  }
130
125
 
131
126
  // @public (undocumented)
132
127
  export type DrawerPrimitiveDefaults = Pick<DefaultsType, 'Content' | 'Sidebar'>;
133
128
 
134
129
  // @public (undocumented)
135
- export type DrawerPrimitiveOverrides = Pick<
136
- OverridesType,
137
- 'Content' | 'Sidebar'
138
- >;
130
+ export type DrawerPrimitiveOverrides = Pick<OverridesType, 'Content' | 'Sidebar'>;
139
131
 
140
132
  // @public (undocumented)
141
- export interface DrawerPrimitiveProps
142
- extends BaseProps,
143
- FocusLockSettings,
144
- DrawerLabel {
145
- // (undocumented)
146
- in: boolean;
147
- // (undocumented)
148
- onClose: (event: SyntheticEvent<HTMLElement>) => void;
133
+ export interface DrawerPrimitiveProps extends BaseProps, FocusLockSettings, DrawerLabel {
134
+ // (undocumented)
135
+ in: boolean;
136
+ // (undocumented)
137
+ onClose: (event: SyntheticEvent<HTMLElement>) => void;
149
138
  }
150
139
 
151
140
  // @public (undocumented)
152
141
  export type DrawerProps = BaseProps &
153
- FocusLockSettings &
154
- WithAnalyticsEventsProps &
155
- DrawerLabel & {
156
- onKeyDown?: (event: SyntheticEvent) => void;
157
- onClose?: (event: SyntheticEvent<HTMLElement>, analyticsEvent: any) => void;
158
- isOpen: boolean;
159
- zIndex?: number;
160
- };
142
+ FocusLockSettings &
143
+ WithAnalyticsEventsProps &
144
+ DrawerLabel & {
145
+ onKeyDown?: (event: SyntheticEvent) => void;
146
+ onClose?: (event: SyntheticEvent<HTMLElement>, analyticsEvent: any) => void;
147
+ isOpen: boolean;
148
+ zIndex?: number;
149
+ };
161
150
 
162
151
  // @public (undocumented)
163
152
  export type DrawerWidth = 'extended' | 'full' | 'medium' | 'narrow' | 'wide';
164
153
 
165
154
  // @public (undocumented)
166
155
  export interface FocusLockProps extends FocusLockSettings {
167
- children?: ReactElement;
156
+ children?: ReactElement;
168
157
  }
169
158
 
170
159
  // @public (undocumented)
171
160
  interface FocusLockSettings {
172
- autoFocusFirstElem?: (() => HTMLElement | null) | boolean;
173
- isFocusLockEnabled?: boolean;
174
- shouldReturnFocus?: boolean;
161
+ autoFocusFirstElem?: (() => HTMLElement | null) | boolean;
162
+ isFocusLockEnabled?: boolean;
163
+ shouldReturnFocus?: boolean;
175
164
  }
176
165
 
177
166
  // @public (undocumented)
178
167
  export type OverridesType = {
179
- Sidebar?: {
180
- component?: React.ComponentType<SidebarProps>;
181
- cssFn?: (defaultStyles: CSSObject) => CSSObject;
182
- };
183
- Content?: {
184
- component?: React.ComponentType<ContentProps>;
185
- cssFn?: (defaultStyles: CSSObject) => CSSObject;
186
- };
168
+ Sidebar?: {
169
+ component?: React.ComponentType<SidebarProps>;
170
+ cssFn?: (defaultStyles: CSSObject) => CSSObject;
171
+ };
172
+ Content?: {
173
+ component?: React.ComponentType<ContentProps>;
174
+ cssFn?: (defaultStyles: CSSObject) => CSSObject;
175
+ };
187
176
  };
188
177
 
189
178
  // @public (undocumented)
@@ -191,27 +180,27 @@ export type SidebarCSSProps = Omit<SidebarProps, 'cssFn'>;
191
180
 
192
181
  // @public (undocumented)
193
182
  export interface SidebarProps extends React.HTMLProps<HTMLDivElement> {
194
- // @deprecated (undocumented)
195
- cssFn: (defaultStyles: CSSObject) => CSSObject;
183
+ // @deprecated (undocumented)
184
+ cssFn: (defaultStyles: CSSObject) => CSSObject;
196
185
  }
197
186
 
198
187
  // @public (undocumented)
199
188
  export type Widths = {
200
- extended: {
201
- width: string;
202
- };
203
- full: {
204
- width: string;
205
- };
206
- medium: {
207
- width: number;
208
- };
209
- narrow: {
210
- width: number;
211
- };
212
- wide: {
213
- width: number;
214
- };
189
+ extended: {
190
+ width: string;
191
+ };
192
+ full: {
193
+ width: string;
194
+ };
195
+ medium: {
196
+ width: number;
197
+ };
198
+ narrow: {
199
+ width: number;
200
+ };
201
+ wide: {
202
+ width: number;
203
+ };
215
204
  };
216
205
 
217
206
  // (No @packageDocumentation comment for this package)
@@ -225,7 +214,7 @@ export type Widths = {
225
214
 
226
215
  ```json
227
216
  {
228
- "react": "^16.8.0"
217
+ "react": "^16.8.0"
229
218
  }
230
219
  ```
231
220