@atlaskit/inline-dialog 13.4.2 → 13.4.3

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/inline-dialog
2
2
 
3
+ ## 13.4.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 13.4.2
4
10
 
5
11
  ### Patch Changes
@@ -31,7 +31,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
31
31
 
32
32
  /** @jsx jsx */
33
33
  var packageName = "@atlaskit/inline-dialog";
34
- var packageVersion = "13.4.2";
34
+ var packageVersion = "13.4.3";
35
35
 
36
36
  var checkIsChildOfPortal = function checkIsChildOfPortal(node) {
37
37
  if (!node) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/inline-dialog",
3
- "version": "13.4.2",
3
+ "version": "13.4.3",
4
4
  "sideEffects": false
5
5
  }
@@ -8,7 +8,7 @@ import noop from '@atlaskit/ds-lib/noop';
8
8
  import { Manager, Popper, Reference } from '@atlaskit/popper';
9
9
  import { Container } from './styled/container';
10
10
  const packageName = "@atlaskit/inline-dialog";
11
- const packageVersion = "13.4.2";
11
+ const packageVersion = "13.4.3";
12
12
 
13
13
  const checkIsChildOfPortal = node => {
14
14
  if (!node) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/inline-dialog",
3
- "version": "13.4.2",
3
+ "version": "13.4.3",
4
4
  "sideEffects": false
5
5
  }
@@ -8,7 +8,7 @@ import noop from '@atlaskit/ds-lib/noop';
8
8
  import { Manager, Popper, Reference } from '@atlaskit/popper';
9
9
  import { Container } from './styled/container';
10
10
  var packageName = "@atlaskit/inline-dialog";
11
- var packageVersion = "13.4.2";
11
+ var packageVersion = "13.4.3";
12
12
 
13
13
  var checkIsChildOfPortal = function checkIsChildOfPortal(node) {
14
14
  if (!node) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/inline-dialog",
3
- "version": "13.4.2",
3
+ "version": "13.4.3",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/inline-dialog",
3
- "version": "13.4.2",
3
+ "version": "13.4.3",
4
4
  "description": "An inline dialog is a pop-up container for small amounts of information. It can also contain controls.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -12,14 +12,6 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
- "typesVersions": {
16
- ">=4.0 <4.5": {
17
- "*": [
18
- "dist/types-ts4.0/*",
19
- "dist/types-ts4.0/index.d.ts"
20
- ]
21
- }
22
- },
23
15
  "sideEffects": false,
24
16
  "atlaskit:src": "src/index.tsx",
25
17
  "atlassian": {
@@ -45,7 +37,7 @@
45
37
  "@atlaskit/ds-lib": "^2.1.0",
46
38
  "@atlaskit/popper": "^5.0.0",
47
39
  "@atlaskit/theme": "^12.2.0",
48
- "@atlaskit/tokens": "^0.10.0",
40
+ "@atlaskit/tokens": "^0.11.0",
49
41
  "@babel/runtime": "^7.0.0",
50
42
  "@emotion/react": "^11.7.1",
51
43
  "bind-event-listener": "^2.1.1",
@@ -55,7 +47,7 @@
55
47
  "react": "^16.8.0"
56
48
  },
57
49
  "devDependencies": {
58
- "@atlaskit/button": "^16.3.0",
50
+ "@atlaskit/button": "^16.4.0",
59
51
  "@atlaskit/datetime-picker": "^12.3.0",
60
52
  "@atlaskit/docs": "*",
61
53
  "@atlaskit/icon": "^21.11.0",
package/report.api.md CHANGED
@@ -1,6 +1,10 @@
1
- ## API Report File for "@atlaskit/inline-dialog".
1
+ ## API Report File for "@atlaskit/inline-dialog"
2
2
 
3
- > Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ <!--
6
+ Generated API Report version: 2.0
7
+ -->
4
8
 
5
9
  [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
6
10
 
@@ -10,7 +14,8 @@ import { ReactNode } from 'react';
10
14
  import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
11
15
  import { WithContextProps } from '@atlaskit/analytics-next';
12
16
 
13
- declare const _default: React_2.ForwardRefExoticComponent<
17
+ // @public (undocumented)
18
+ const _default: React_2.ForwardRefExoticComponent<
14
19
  Pick<
15
20
  Omit<
16
21
  React_2.PropsWithChildren<InlineDialogProps>,
@@ -35,51 +40,22 @@ declare const _default: React_2.ForwardRefExoticComponent<
35
40
  >;
36
41
  export default _default;
37
42
 
38
- declare interface InlineDialogProps extends WithAnalyticsEventsProps {
39
- /**
40
- * The elements that the InlineDialog will be positioned relative to.
41
- */
43
+ // @public (undocumented)
44
+ interface InlineDialogProps extends WithAnalyticsEventsProps {
42
45
  children: ReactNode;
43
- /**
44
- * The elements to be displayed within the InlineDialog.
45
- */
46
46
  content: ReactNode;
47
- /**
48
- * Sets whether to show or hide the dialog.
49
- */
50
47
  isOpen?: boolean;
51
- /**
52
- * Function called when you lose focus on the object.
53
- */
48
+ onClose?: (obj: { isOpen: boolean; event: Event }) => void;
54
49
  onContentBlur?: () => void;
55
- /**
56
- * Function called when user clicks on the open dialog.
57
- */
58
50
  onContentClick?: () => void;
59
- /**
60
- * Function called when user focuses on the open dialog.
61
- */
62
51
  onContentFocus?: () => void;
63
- /**
64
- * Function called when the dialog is open and a click occurs anywhere outside
65
- * the dialog.
66
- */
67
- onClose?: (obj: { isOpen: boolean; event: Event }) => void;
68
- /**
69
- * Where the dialog should appear, relative to the contents of the children.
70
- */
71
52
  placement?: Placement;
72
- /**
73
- * Placement strategy used. Can be 'fixed' or 'absolute'. Defaults to 'fixed'.
74
- */
75
53
  strategy?: 'fixed' | 'absolute';
76
- /**
77
- * A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests
78
- */
79
54
  testId?: string;
80
55
  }
81
56
 
82
- export declare type Placement =
57
+ // @public (undocumented)
58
+ export type Placement =
83
59
  | 'auto-start'
84
60
  | 'auto'
85
61
  | 'auto-end'
@@ -96,5 +72,5 @@ export declare type Placement =
96
72
  | 'left'
97
73
  | 'left-start';
98
74
 
99
- export {};
75
+ // (No @packageDocumentation comment for this package)
100
76
  ```
@@ -1,7 +0,0 @@
1
- /** @jsx jsx */
2
- import React, { FC } from 'react';
3
- import type { InlineDialogProps } from '../types';
4
- declare const InlineDialog: FC<InlineDialogProps>;
5
- export { InlineDialog as InlineDialogWithoutAnalytics };
6
- declare const _default: React.ForwardRefExoticComponent<Pick<Omit<React.PropsWithChildren<InlineDialogProps>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "children" | "content" | "isOpen" | "onContentBlur" | "onContentClick" | "onContentFocus" | "onClose" | "placement" | "strategy" | "testId" | "key" | "analyticsContext"> & React.RefAttributes<any>>;
7
- export default _default;
@@ -1,19 +0,0 @@
1
- /** @jsx jsx */
2
- import React from 'react';
3
- interface ContainerProps {
4
- children: React.ReactNode;
5
- onBlur?: React.FocusEventHandler<HTMLElement>;
6
- onClick?: React.MouseEventHandler<HTMLElement>;
7
- onFocus?: React.FocusEventHandler<HTMLElement>;
8
- style: React.CSSProperties;
9
- testId?: string;
10
- }
11
- /**
12
- * __Container__
13
- *
14
- * A container is used as a styled wrapper around the contents of an inline dialog.
15
- * Note that the styles here are merged with the style prop that comes from the popper.js library.
16
- *
17
- */
18
- export declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
19
- export {};
@@ -1,2 +0,0 @@
1
- export { default } from './InlineDialog';
2
- export type { Placement } from './types';
@@ -1,49 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
- export declare type Placement = 'auto-start' | 'auto' | 'auto-end' | 'top-start' | 'top' | 'top-end' | 'right-start' | 'right' | 'right-end' | 'bottom-end' | 'bottom' | 'bottom-start' | 'left-end' | 'left' | 'left-start';
4
- export interface InlineDialogProps extends WithAnalyticsEventsProps {
5
- /**
6
- * The elements that the InlineDialog will be positioned relative to.
7
- */
8
- children: ReactNode;
9
- /**
10
- * The elements to be displayed within the InlineDialog.
11
- */
12
- content: ReactNode;
13
- /**
14
- * Sets whether to show or hide the dialog.
15
- */
16
- isOpen?: boolean;
17
- /**
18
- * Function called when you lose focus on the object.
19
- */
20
- onContentBlur?: () => void;
21
- /**
22
- * Function called when user clicks on the open dialog.
23
- */
24
- onContentClick?: () => void;
25
- /**
26
- * Function called when user focuses on the open dialog.
27
- */
28
- onContentFocus?: () => void;
29
- /**
30
- * Function called when the dialog is open and a click occurs anywhere outside
31
- * the dialog.
32
- */
33
- onClose?: (obj: {
34
- isOpen: boolean;
35
- event: Event;
36
- }) => void;
37
- /**
38
- * Where the dialog should appear, relative to the contents of the children.
39
- */
40
- placement?: Placement;
41
- /**
42
- * Placement strategy used. Can be 'fixed' or 'absolute'. Defaults to 'fixed'.
43
- */
44
- strategy?: 'fixed' | 'absolute';
45
- /**
46
- * A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests
47
- */
48
- testId?: string;
49
- }