@atlaskit/popup 1.17.1 → 1.17.2

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/popup
2
2
 
3
+ ## 1.17.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 1.17.1
4
10
 
5
11
  ### Patch Changes
@@ -1,7 +1,7 @@
1
1
  import { findByTestId, fireEvent } from '@testing-library/dom';
2
2
  import {
3
- InteractionTaskArgs,
4
- PublicInteractionTask,
3
+ type InteractionTaskArgs,
4
+ type PublicInteractionTask,
5
5
  } from 'storybook-addon-performance';
6
6
 
7
7
  export const interactionTasks: PublicInteractionTask[] = [
@@ -1,13 +1,14 @@
1
- import core, {
2
- API,
3
- ASTPath,
4
- FileInfo,
5
- JSXElement,
1
+ import {
2
+ type API,
3
+ type ASTPath,
4
+ type default as core,
5
+ type FileInfo,
6
+ type JSXElement,
6
7
  JSXExpressionContainer,
7
- Literal,
8
- Options,
8
+ type Literal,
9
+ type Options,
9
10
  } from 'jscodeshift';
10
- import { Collection } from 'jscodeshift/src/Collection';
11
+ import { type Collection } from 'jscodeshift/src/Collection';
11
12
 
12
13
  import {
13
14
  addCommentToStartOfFile,
@@ -1,12 +1,13 @@
1
- import { NodePath } from 'ast-types/lib/node-path';
2
- import core, {
3
- ASTPath,
4
- ImportDeclaration,
5
- JSXAttribute,
6
- JSXElement,
7
- Node,
1
+ import { type NodePath } from 'ast-types/lib/node-path';
2
+ import {
3
+ type ASTPath,
4
+ type default as core,
5
+ type ImportDeclaration,
6
+ type JSXAttribute,
7
+ type JSXElement,
8
+ type Node,
8
9
  } from 'jscodeshift';
9
- import { Collection } from 'jscodeshift/src/Collection';
10
+ import { type Collection } from 'jscodeshift/src/Collection';
10
11
 
11
12
  export type Nullable<T> = T | null;
12
13
 
@@ -1,4 +1,4 @@
1
1
  import { jsx } from '@emotion/react';
2
- import { PopperWrapperProps } from './types';
2
+ import { type PopperWrapperProps } from './types';
3
3
  declare function PopperWrapper({ isOpen, id, offset, testId, content, fallbackPlacements, onClose, boundary, rootBoundary, shouldFlip, placement, popupComponent: PopupContainer, autoFocus, triggerRef, shouldUseCaptureOnOutsideClick, shouldRenderToParent, shouldDisableFocusLock, strategy, role, label, titleId, }: PopperWrapperProps): jsx.JSX.Element;
4
4
  export default PopperWrapper;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { RepositionOnUpdateProps } from './types';
2
+ import { type RepositionOnUpdateProps } from './types';
3
3
  export declare const RepositionOnUpdate: ({ children, update, }: RepositionOnUpdateProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
- import React, { ComponentType, CSSProperties, Dispatch, PropsWithChildren, ReactNode, Ref, SetStateAction } from 'react';
2
- import { Placement, PopperChildrenProps } from '@atlaskit/popper';
1
+ import { type ComponentType, type CSSProperties, type Dispatch, type PropsWithChildren, type default as React, type ReactNode, type Ref, type SetStateAction } from 'react';
2
+ import { type Placement, type PopperChildrenProps } from '@atlaskit/popper';
3
3
  export interface TriggerProps {
4
4
  ref: Ref<any>;
5
5
  'aria-controls'?: string;
@@ -1,2 +1,2 @@
1
- import { FocusManagerHook } from './types';
1
+ import { type FocusManagerHook } from './types';
2
2
  export declare const useFocusManager: ({ initialFocusRef, popupRef, shouldCloseOnTab, }: FocusManagerHook) => void;
@@ -1,2 +1,2 @@
1
- import { Dispatch, SetStateAction } from 'react';
1
+ import { type Dispatch, type SetStateAction } from 'react';
2
2
  export declare const useGetMemoizedMergedTriggerRef: () => import("memoize-one").MemoizedFn<(ref: React.RefCallback<HTMLElement> | React.MutableRefObject<HTMLElement> | null, setTriggerRef: Dispatch<SetStateAction<HTMLElement | null>>, isOpen: boolean) => (node: HTMLElement | null) => void>;
@@ -1,4 +1,4 @@
1
1
  import { jsx } from '@emotion/react';
2
- import { PopperWrapperProps } from './types';
2
+ import { type PopperWrapperProps } from './types';
3
3
  declare function PopperWrapper({ isOpen, id, offset, testId, content, fallbackPlacements, onClose, boundary, rootBoundary, shouldFlip, placement, popupComponent: PopupContainer, autoFocus, triggerRef, shouldUseCaptureOnOutsideClick, shouldRenderToParent, shouldDisableFocusLock, strategy, role, label, titleId, }: PopperWrapperProps): jsx.JSX.Element;
4
4
  export default PopperWrapper;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { RepositionOnUpdateProps } from './types';
2
+ import { type RepositionOnUpdateProps } from './types';
3
3
  export declare const RepositionOnUpdate: ({ children, update, }: RepositionOnUpdateProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
- import React, { ComponentType, CSSProperties, Dispatch, PropsWithChildren, ReactNode, Ref, SetStateAction } from 'react';
2
- import { Placement, PopperChildrenProps } from '@atlaskit/popper';
1
+ import { type ComponentType, type CSSProperties, type Dispatch, type PropsWithChildren, type default as React, type ReactNode, type Ref, type SetStateAction } from 'react';
2
+ import { type Placement, type PopperChildrenProps } from '@atlaskit/popper';
3
3
  export interface TriggerProps {
4
4
  ref: Ref<any>;
5
5
  'aria-controls'?: string;
@@ -1,2 +1,2 @@
1
- import { FocusManagerHook } from './types';
1
+ import { type FocusManagerHook } from './types';
2
2
  export declare const useFocusManager: ({ initialFocusRef, popupRef, shouldCloseOnTab, }: FocusManagerHook) => void;
@@ -1,2 +1,2 @@
1
- import { Dispatch, SetStateAction } from 'react';
1
+ import { type Dispatch, type SetStateAction } from 'react';
2
2
  export declare const useGetMemoizedMergedTriggerRef: () => import("memoize-one").MemoizedFn<(ref: React.RefCallback<HTMLElement> | React.MutableRefObject<HTMLElement> | null, setTriggerRef: Dispatch<SetStateAction<HTMLElement | null>>, isOpen: boolean) => (node: HTMLElement | null) => void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/popup",
3
- "version": "1.17.1",
3
+ "version": "1.17.2",
4
4
  "description": "A popup displays brief content in an overlay.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/ds-lib": "^2.3.0",
44
44
  "@atlaskit/layering": "^0.3.0",
45
45
  "@atlaskit/platform-feature-flags": "^0.2.0",
46
- "@atlaskit/popper": "^5.6.0",
46
+ "@atlaskit/popper": "^6.0.0",
47
47
  "@atlaskit/portal": "^4.5.0",
48
48
  "@atlaskit/theme": "^12.8.0",
49
49
  "@atlaskit/tokens": "^1.49.0",
@@ -62,7 +62,7 @@
62
62
  "devDependencies": {
63
63
  "@af/accessibility-testing": "*",
64
64
  "@af/visual-regression": "*",
65
- "@atlaskit/button": "^17.15.0",
65
+ "@atlaskit/button": "^17.16.0",
66
66
  "@atlaskit/icon": "^22.3.0",
67
67
  "@atlaskit/ssr": "*",
68
68
  "@atlaskit/textfield": "^6.3.0",