@atlaskit/popup 1.17.2 → 1.19.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.
package/package.json CHANGED
@@ -1,119 +1,118 @@
1
1
  {
2
- "name": "@atlaskit/popup",
3
- "version": "1.17.2",
4
- "description": "A popup displays brief content in an overlay.",
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
- "./types": "./src/types.tsx",
28
- "./experimental": "./src/entry-points/experimental/compositional.tsx"
29
- },
30
- "atlassian": {
31
- "team": "Design System Team",
32
- "productPushConsumption": [
33
- "jira"
34
- ],
35
- "releaseModel": "continuous",
36
- "runReact18": true,
37
- "website": {
38
- "name": "Popup",
39
- "category": "Components"
40
- }
41
- },
42
- "dependencies": {
43
- "@atlaskit/ds-lib": "^2.3.0",
44
- "@atlaskit/layering": "^0.3.0",
45
- "@atlaskit/platform-feature-flags": "^0.2.0",
46
- "@atlaskit/popper": "^6.0.0",
47
- "@atlaskit/portal": "^4.5.0",
48
- "@atlaskit/theme": "^12.8.0",
49
- "@atlaskit/tokens": "^1.49.0",
50
- "@babel/runtime": "^7.0.0",
51
- "@emotion/react": "^11.7.1",
52
- "bind-event-listener": "^3.0.0",
53
- "focus-trap": "^2.4.5",
54
- "memoize-one": "^6.0.0",
55
- "react-uid": "^2.2.0",
56
- "tiny-invariant": "^1.2.0"
57
- },
58
- "peerDependencies": {
59
- "react": "^16.8.0 || ^17.0.0 || ~18.2.0",
60
- "react-dom": "^16.8.0"
61
- },
62
- "devDependencies": {
63
- "@af/accessibility-testing": "*",
64
- "@af/visual-regression": "*",
65
- "@atlaskit/button": "^17.16.0",
66
- "@atlaskit/icon": "^22.3.0",
67
- "@atlaskit/ssr": "*",
68
- "@atlaskit/textfield": "^6.3.0",
69
- "@atlaskit/toggle": "^13.1.0",
70
- "@atlaskit/visual-regression": "*",
71
- "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
72
- "@atlassian/feature-flags-test-utils": "*",
73
- "@testing-library/dom": "^8.17.1",
74
- "@testing-library/react": "^12.1.5",
75
- "@testing-library/user-event": "^14.4.3",
76
- "ast-types": "^0.13.3",
77
- "jscodeshift": "^0.13.0",
78
- "raf-stub": "^2.0.1",
79
- "react-dom": "^16.8.0",
80
- "storybook-addon-performance": "^0.16.0",
81
- "typescript": "~5.4.2",
82
- "wait-for-expect": "^1.2.0"
83
- },
84
- "keywords": [
85
- "atlaskit",
86
- "react",
87
- "ui"
88
- ],
89
- "techstack": {
90
- "@atlassian/frontend": {
91
- "import-structure": "atlassian-conventions"
92
- },
93
- "@repo/internal": {
94
- "dom-events": "use-bind-event-listener",
95
- "design-system": "v1",
96
- "ui-components": "lite-mode",
97
- "analytics": "analytics-next",
98
- "design-tokens": [
99
- "color",
100
- "spacing"
101
- ],
102
- "deprecation": "no-deprecated-imports",
103
- "styling": [
104
- "static",
105
- "emotion"
106
- ]
107
- }
108
- },
109
- "platform-feature-flags": {
110
- "platform.design-system-team.iframe_gojiv": {
111
- "type": "boolean"
112
- },
113
- "platform.design-system-team.iframe-layering_p3eb8": {
114
- "type": "boolean"
115
- }
116
- },
117
- "homepage": "https://atlassian.design/components/popup/",
118
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
119
- }
2
+ "name": "@atlaskit/popup",
3
+ "version": "1.19.0",
4
+ "description": "A popup displays brief content in an overlay.",
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
+ "./types": "./src/types.tsx",
28
+ "./experimental": "./src/entry-points/experimental/compositional.tsx"
29
+ },
30
+ "atlassian": {
31
+ "team": "Design System Team",
32
+ "productPushConsumption": [
33
+ "jira"
34
+ ],
35
+ "releaseModel": "continuous",
36
+ "runReact18": true,
37
+ "website": {
38
+ "name": "Popup",
39
+ "category": "Components"
40
+ }
41
+ },
42
+ "dependencies": {
43
+ "@atlaskit/ds-lib": "^2.3.0",
44
+ "@atlaskit/layering": "^0.3.0",
45
+ "@atlaskit/platform-feature-flags": "^0.2.0",
46
+ "@atlaskit/popper": "^6.1.0",
47
+ "@atlaskit/portal": "^4.6.0",
48
+ "@atlaskit/primitives": "^7.4.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
+ "focus-trap": "^2.4.5",
55
+ "memoize-one": "^6.0.0",
56
+ "react-uid": "^2.2.0",
57
+ "tiny-invariant": "^1.2.0"
58
+ },
59
+ "peerDependencies": {
60
+ "react": "^16.8.0 || ^17.0.0 || ~18.2.0",
61
+ "react-dom": "^16.8.0"
62
+ },
63
+ "devDependencies": {
64
+ "@af/accessibility-testing": "*",
65
+ "@af/visual-regression": "*",
66
+ "@atlaskit/button": "^17.17.0",
67
+ "@atlaskit/icon": "^22.4.0",
68
+ "@atlaskit/ssr": "*",
69
+ "@atlaskit/textfield": "^6.4.0",
70
+ "@atlaskit/toggle": "^13.2.0",
71
+ "@atlaskit/visual-regression": "*",
72
+ "@atlassian/feature-flags-test-utils": "*",
73
+ "@testing-library/dom": "^8.17.1",
74
+ "@testing-library/react": "^12.1.5",
75
+ "@testing-library/user-event": "^14.4.3",
76
+ "ast-types": "^0.13.3",
77
+ "jscodeshift": "^0.13.0",
78
+ "raf-stub": "^2.0.1",
79
+ "react-dom": "^16.8.0",
80
+ "storybook-addon-performance": "^0.16.0",
81
+ "typescript": "~5.4.2",
82
+ "wait-for-expect": "^1.2.0"
83
+ },
84
+ "keywords": [
85
+ "atlaskit",
86
+ "react",
87
+ "ui"
88
+ ],
89
+ "techstack": {
90
+ "@atlassian/frontend": {
91
+ "import-structure": "atlassian-conventions"
92
+ },
93
+ "@repo/internal": {
94
+ "dom-events": "use-bind-event-listener",
95
+ "design-system": "v1",
96
+ "ui-components": "lite-mode",
97
+ "analytics": "analytics-next",
98
+ "design-tokens": [
99
+ "color",
100
+ "spacing"
101
+ ],
102
+ "deprecation": "no-deprecated-imports",
103
+ "styling": [
104
+ "static",
105
+ "emotion"
106
+ ]
107
+ }
108
+ },
109
+ "platform-feature-flags": {
110
+ "platform.design-system-team.iframe_gojiv": {
111
+ "type": "boolean"
112
+ },
113
+ "platform.design-system-team.iframe-layering_p3eb8": {
114
+ "type": "boolean"
115
+ }
116
+ },
117
+ "homepage": "https://atlassian.design/components/popup/"
118
+ }
package/report.api.md CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  ## API Report File for "@atlaskit/popup"
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
@@ -28,29 +29,29 @@ import { SetStateAction } from 'react';
28
29
 
29
30
  // @public (undocumented)
30
31
  interface BaseProps {
31
- autoFocus?: boolean;
32
- boundary?: 'clippingParents' | HTMLElement;
33
- content: (props: ContentProps) => React_2.ReactNode;
34
- fallbackPlacements?: Placement[];
35
- id?: string;
36
- isOpen: boolean;
37
- offset?: [number, number];
38
- onClose?(event: Event | React_2.KeyboardEvent | React_2.MouseEvent): void;
39
- placement?: Placement;
40
- popupComponent?: ComponentType<PopupComponentProps>;
41
- rootBoundary?: 'document' | 'viewport';
42
- shouldFlip?: boolean;
43
- shouldRenderToParent?: boolean;
44
- shouldUseCaptureOnOutsideClick?: boolean;
45
- testId?: string;
32
+ autoFocus?: boolean;
33
+ boundary?: 'clippingParents' | HTMLElement;
34
+ content: (props: ContentProps) => React_2.ReactNode;
35
+ fallbackPlacements?: Placement[];
36
+ id?: string;
37
+ isOpen: boolean;
38
+ offset?: [number, number];
39
+ onClose?(event: Event | React_2.KeyboardEvent | React_2.MouseEvent): void;
40
+ placement?: Placement;
41
+ popupComponent?: ComponentType<PopupComponentProps>;
42
+ rootBoundary?: 'document' | 'viewport';
43
+ shouldFlip?: boolean;
44
+ shouldRenderToParent?: boolean;
45
+ shouldUseCaptureOnOutsideClick?: boolean;
46
+ testId?: string;
46
47
  }
47
48
 
48
49
  // @public (undocumented)
49
50
  export interface ContentProps {
50
- isOpen: boolean;
51
- onClose?: BaseProps['onClose'];
52
- setInitialFocusRef: Dispatch<SetStateAction<HTMLElement | null>>;
53
- update: PopperChildrenProps['update'];
51
+ isOpen: boolean;
52
+ onClose?: BaseProps['onClose'];
53
+ setInitialFocusRef: Dispatch<SetStateAction<HTMLElement | null>>;
54
+ update: PopperChildrenProps['update'];
54
55
  }
55
56
 
56
57
  // @public (undocumented)
@@ -60,32 +61,32 @@ export default Popup;
60
61
 
61
62
  // @public (undocumented)
62
63
  export interface PopupComponentProps {
63
- 'data-placement': Placement;
64
- 'data-testid'?: string;
65
- children: ReactNode;
66
- id?: string;
67
- ref: Ref<HTMLDivElement>;
68
- shouldRenderToParent?: boolean;
69
- style: CSSProperties;
70
- tabIndex: number | undefined;
64
+ 'data-placement': Placement;
65
+ 'data-testid'?: string;
66
+ children: ReactNode;
67
+ id?: string;
68
+ ref: Ref<HTMLDivElement>;
69
+ shouldRenderToParent?: boolean;
70
+ style: CSSProperties;
71
+ tabIndex: number | undefined;
71
72
  }
72
73
 
73
74
  // @public (undocumented)
74
75
  export interface PopupProps extends BaseProps {
75
- trigger: (props: TriggerProps) => React_2.ReactNode;
76
- zIndex?: number;
76
+ trigger: (props: TriggerProps) => React_2.ReactNode;
77
+ zIndex?: number;
77
78
  }
78
79
 
79
80
  // @public (undocumented)
80
81
  export interface TriggerProps {
81
- // (undocumented)
82
- 'aria-controls'?: string;
83
- // (undocumented)
84
- 'aria-expanded': boolean;
85
- // (undocumented)
86
- 'aria-haspopup': boolean;
87
- // (undocumented)
88
- ref: Ref<any>;
82
+ // (undocumented)
83
+ 'aria-controls'?: string;
84
+ // (undocumented)
85
+ 'aria-expanded': boolean;
86
+ // (undocumented)
87
+ 'aria-haspopup': boolean;
88
+ // (undocumented)
89
+ ref: Ref<any>;
89
90
  }
90
91
 
91
92
  // (No @packageDocumentation comment for this package)
@@ -99,8 +100,8 @@ export interface TriggerProps {
99
100
 
100
101
  ```json
101
102
  {
102
- "react": "^16.8.0",
103
- "react-dom": "^16.8.0"
103
+ "react": "^16.8.0",
104
+ "react-dom": "^16.8.0"
104
105
  }
105
106
  ```
106
107