@atlaskit/modal-dialog 14.7.1 → 14.7.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,19 @@
1
1
  # @atlaskit/modal-dialog
2
2
 
3
+ ## 14.7.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a60a82196851a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a60a82196851a) -
8
+ Internal refactors to remove unused variables. No functional or public changes.
9
+ - Updated dependencies
10
+
11
+ ## 14.7.2
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 14.7.1
4
18
 
5
19
  ### Patch Changes
@@ -88,7 +88,7 @@ var InternalModalWrapper = function InternalModalWrapper(props) {
88
88
  action: 'closed',
89
89
  componentName: 'modalDialog',
90
90
  packageName: "@atlaskit/modal-dialog",
91
- packageVersion: "0.0.0-development"
91
+ packageVersion: "14.7.2"
92
92
  });
93
93
  var onBlanketClicked = (0, _react.useCallback)(function (e) {
94
94
  if (shouldCloseOnOverlayClick) {
@@ -30,7 +30,7 @@ function hasSameOrigin(href1, href2) {
30
30
  try {
31
31
  url1 = new URL(href1);
32
32
  url2 = new URL(href2);
33
- } catch (error) {
33
+ } catch (_unused) {
34
34
  // failed to parse a href
35
35
  return false;
36
36
  }
@@ -75,7 +75,7 @@ const InternalModalWrapper = props => {
75
75
  action: 'closed',
76
76
  componentName: 'modalDialog',
77
77
  packageName: "@atlaskit/modal-dialog",
78
- packageVersion: "0.0.0-development"
78
+ packageVersion: "14.7.2"
79
79
  });
80
80
  const onBlanketClicked = useCallback(e => {
81
81
  if (shouldCloseOnOverlayClick) {
@@ -22,7 +22,7 @@ function hasSameOrigin(href1, href2) {
22
22
  try {
23
23
  url1 = new URL(href1);
24
24
  url2 = new URL(href2);
25
- } catch (error) {
25
+ } catch {
26
26
  // failed to parse a href
27
27
  return false;
28
28
  }
@@ -79,7 +79,7 @@ var InternalModalWrapper = function InternalModalWrapper(props) {
79
79
  action: 'closed',
80
80
  componentName: 'modalDialog',
81
81
  packageName: "@atlaskit/modal-dialog",
82
- packageVersion: "0.0.0-development"
82
+ packageVersion: "14.7.2"
83
83
  });
84
84
  var onBlanketClicked = useCallback(function (e) {
85
85
  if (shouldCloseOnOverlayClick) {
@@ -23,7 +23,7 @@ function hasSameOrigin(href1, href2) {
23
23
  try {
24
24
  url1 = new URL(href1);
25
25
  url2 = new URL(href2);
26
- } catch (error) {
26
+ } catch (_unused) {
27
27
  // failed to parse a href
28
28
  return false;
29
29
  }
@@ -30,5 +30,5 @@ type CloseButtonProps = {
30
30
  * using a `Flex` primitive as the custom header's container with a flex
31
31
  * direction of `row-reverse`.
32
32
  */
33
- export declare const CloseButton: ({ label, onBlur, onClick, testId }: CloseButtonProps) => React.JSX.Element;
33
+ export declare const CloseButton: ({ label, onBlur, onClick, testId, }: CloseButtonProps) => React.JSX.Element;
34
34
  export {};
@@ -19,6 +19,8 @@ export interface ModalDialogProps {
19
19
  * accessibility regressions. Pass an element `ref` to focus on a specific element.
20
20
  *
21
21
  * Default value is `true`.
22
+ *
23
+ * @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-28588 Learn more about why `false` should not be used and will be removed.}
22
24
  */
23
25
  autoFocus?: boolean | RefObject<HTMLElement | null | undefined>;
24
26
  /**
@@ -30,5 +30,5 @@ type CloseButtonProps = {
30
30
  * using a `Flex` primitive as the custom header's container with a flex
31
31
  * direction of `row-reverse`.
32
32
  */
33
- export declare const CloseButton: ({ label, onBlur, onClick, testId }: CloseButtonProps) => React.JSX.Element;
33
+ export declare const CloseButton: ({ label, onBlur, onClick, testId, }: CloseButtonProps) => React.JSX.Element;
34
34
  export {};
@@ -19,6 +19,8 @@ export interface ModalDialogProps {
19
19
  * accessibility regressions. Pass an element `ref` to focus on a specific element.
20
20
  *
21
21
  * Default value is `true`.
22
+ *
23
+ * @deprecated {@link https://hello.jira.atlassian.cloud/browse/ENGHEALTH-28588 Learn more about why `false` should not be used and will be removed.}
22
24
  */
23
25
  autoFocus?: boolean | RefObject<HTMLElement | null | undefined>;
24
26
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/modal-dialog",
3
- "version": "14.7.1",
3
+ "version": "14.7.3",
4
4
  "description": "A modal dialog displays content that requires user interaction, in a layer above the page.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -30,18 +30,17 @@
30
30
  "@atlaskit/analytics-next": "^11.1.0",
31
31
  "@atlaskit/blanket": "^15.0.0",
32
32
  "@atlaskit/button": "^23.6.0",
33
- "@atlaskit/css": "^0.16.0",
34
- "@atlaskit/ds-lib": "^5.2.0",
35
- "@atlaskit/focus-ring": "^3.0.0",
33
+ "@atlaskit/css": "^0.17.0",
34
+ "@atlaskit/ds-lib": "^5.3.0",
36
35
  "@atlaskit/icon": "^29.0.0",
37
36
  "@atlaskit/layering": "^3.4.0",
38
37
  "@atlaskit/motion": "^5.3.0",
39
38
  "@atlaskit/platform-feature-flags": "^1.1.0",
40
39
  "@atlaskit/portal": "^5.1.0",
41
40
  "@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
42
- "@atlaskit/primitives": "^16.2.0",
41
+ "@atlaskit/primitives": "^16.4.0",
43
42
  "@atlaskit/theme": "^21.0.0",
44
- "@atlaskit/tokens": "^8.1.0",
43
+ "@atlaskit/tokens": "^8.4.0",
45
44
  "@babel/runtime": "^7.0.0",
46
45
  "@compiled/react": "^0.18.6",
47
46
  "bind-event-listener": "^3.0.0",
@@ -66,17 +65,15 @@
66
65
  "@atlaskit/docs": "^11.2.0",
67
66
  "@atlaskit/dropdown-menu": "^16.3.0",
68
67
  "@atlaskit/flag": "^17.5.0",
69
- "@atlaskit/form": "^14.2.0",
68
+ "@atlaskit/form": "^14.3.0",
70
69
  "@atlaskit/heading": "^5.2.0",
71
70
  "@atlaskit/link": "^3.2.0",
72
71
  "@atlaskit/popup": "^4.6.0",
73
72
  "@atlaskit/radio": "^8.3.0",
74
73
  "@atlaskit/section-message": "^8.9.0",
75
74
  "@atlaskit/select": "^21.4.0",
76
- "@atlaskit/ssr": "workspace:^",
77
75
  "@atlaskit/textfield": "^8.1.0",
78
- "@atlaskit/tooltip": "^20.10.0",
79
- "@atlassian/feature-flags-test-utils": "^1.0.0",
76
+ "@atlaskit/tooltip": "^20.11.0",
80
77
  "@atlassian/ssr-tests": "workspace:^",
81
78
  "@testing-library/dom": "^10.1.0",
82
79
  "@testing-library/react": "^13.4.0",