@atlaskit/pragmatic-drag-and-drop-react-accessibility 2.2.7 → 2.2.8

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,11 @@
1
1
  # @atlaskit/pragmatic-drag-and-drop-react-accessibility
2
2
 
3
+ ## 2.2.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 2.2.7
4
10
 
5
11
  ### Patch Changes
@@ -2,6 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
+ import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
5
6
  import type { DragHandleButtonProps } from './types';
6
7
  export type DragHandleButtonAppearance = 'default' | 'subtle' | 'selected';
7
8
  /**
@@ -10,4 +11,4 @@ export type DragHandleButtonAppearance = 'default' | 'subtle' | 'selected';
10
11
  * This component uses a native button because the `@atlaskit/button`
11
12
  * cancels `mouseDown` events, which prevents dragging.
12
13
  */
13
- export declare const DragHandleButtonBase: import("react").ForwardRefExoticComponent<Omit<DragHandleButtonProps, "label"> & import("react").RefAttributes<HTMLButtonElement>>;
14
+ export declare const DragHandleButtonBase: ForwardRefExoticComponent<Omit<DragHandleButtonProps, 'label'> & RefAttributes<HTMLButtonElement>>;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import type { DragHandleButtonAppearance } from './types';
2
3
  /**
3
4
  * A button with pre-configured styling to look like a drag handle.
4
5
  *
@@ -16,7 +17,7 @@ import React from 'react';
16
17
  * minimum hit target size for accessibility. [More details](https://www.w3.org/WAI/WCAG22/Understanding/target-size-minimum.html)
17
18
  */
18
19
  export declare const DragHandleButtonSmall: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
19
- appearance?: import("./types").DragHandleButtonAppearance;
20
+ appearance?: DragHandleButtonAppearance;
20
21
  label: string;
21
22
  isSelected?: boolean;
22
23
  testId?: string;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import type { DragHandleButtonAppearance } from './types';
2
3
  /**
3
4
  * A button with pre-configured styling to look like a drag handle.
4
5
  *
@@ -6,7 +7,7 @@ import React from 'react';
6
7
  * cancels `mouseDown` events, which prevents dragging.
7
8
  */
8
9
  export declare const DragHandleButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
9
- appearance?: import("./types").DragHandleButtonAppearance;
10
+ appearance?: DragHandleButtonAppearance;
10
11
  label: string;
11
12
  isSelected?: boolean;
12
13
  testId?: string;
@@ -2,6 +2,7 @@
2
2
  * @jsxRuntime classic
3
3
  * @jsx jsx
4
4
  */
5
+ import { type ForwardRefExoticComponent, type RefAttributes } from 'react';
5
6
  import type { DragHandleButtonProps } from './types';
6
7
  export type DragHandleButtonAppearance = 'default' | 'subtle' | 'selected';
7
8
  /**
@@ -10,4 +11,4 @@ export type DragHandleButtonAppearance = 'default' | 'subtle' | 'selected';
10
11
  * This component uses a native button because the `@atlaskit/button`
11
12
  * cancels `mouseDown` events, which prevents dragging.
12
13
  */
13
- export declare const DragHandleButtonBase: import("react").ForwardRefExoticComponent<Omit<DragHandleButtonProps, "label"> & import("react").RefAttributes<HTMLButtonElement>>;
14
+ export declare const DragHandleButtonBase: ForwardRefExoticComponent<Omit<DragHandleButtonProps, 'label'> & RefAttributes<HTMLButtonElement>>;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import type { DragHandleButtonAppearance } from './types';
2
3
  /**
3
4
  * A button with pre-configured styling to look like a drag handle.
4
5
  *
@@ -16,7 +17,7 @@ import React from 'react';
16
17
  * minimum hit target size for accessibility. [More details](https://www.w3.org/WAI/WCAG22/Understanding/target-size-minimum.html)
17
18
  */
18
19
  export declare const DragHandleButtonSmall: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
19
- appearance?: import("./types").DragHandleButtonAppearance;
20
+ appearance?: DragHandleButtonAppearance;
20
21
  label: string;
21
22
  isSelected?: boolean;
22
23
  testId?: string;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import type { DragHandleButtonAppearance } from './types';
2
3
  /**
3
4
  * A button with pre-configured styling to look like a drag handle.
4
5
  *
@@ -6,7 +7,7 @@ import React from 'react';
6
7
  * cancels `mouseDown` events, which prevents dragging.
7
8
  */
8
9
  export declare const DragHandleButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
9
- appearance?: import("./types").DragHandleButtonAppearance;
10
+ appearance?: DragHandleButtonAppearance;
10
11
  label: string;
11
12
  isSelected?: boolean;
12
13
  testId?: string;
@@ -1,3 +1,3 @@
1
1
  import type { DragHandleButtonProps } from '../src/types';
2
2
 
3
- export default function ({}: DragHandleButtonProps) {}
3
+ export default function ({}: DragHandleButtonProps): void {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/pragmatic-drag-and-drop-react-accessibility",
3
- "version": "2.2.7",
3
+ "version": "2.2.8",
4
4
  "description": "An optional package for Pragmatic drag and drop containing react components to assist with setting up accessible experiences",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -37,7 +37,7 @@
37
37
  "@atlaskit/icon": "^34.0.0",
38
38
  "@atlaskit/platform-feature-flags": "^1.1.0",
39
39
  "@atlaskit/primitives": "^18.1.0",
40
- "@atlaskit/tokens": "^11.4.0",
40
+ "@atlaskit/tokens": "^12.0.0",
41
41
  "@babel/runtime": "^7.0.0",
42
42
  "@emotion/react": "^11.7.1"
43
43
  },
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "devDependencies": {
48
48
  "@af/visual-regression": "workspace:^",
49
- "@atlaskit/ds-lib": "^6.0.0",
49
+ "@atlaskit/ds-lib": "^7.0.0",
50
50
  "@atlassian/ssr-tests": "workspace:^",
51
51
  "@testing-library/react": "^16.3.0",
52
52
  "react-dom": "^18.2.0",