@atlaskit/page-layout 3.11.8 → 3.12.1

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,23 @@
1
1
  # @atlaskit/page-layout
2
2
 
3
+ ## 3.12.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 3.12.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#109060](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109060)
14
+ [`4660ec858a305`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4660ec858a305) -
15
+ Update `React` from v16 to v18
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 3.11.8
4
22
 
5
23
  ### Patch Changes
@@ -52,11 +52,11 @@ var skipLinkListStyles = (0, _react.css)({
52
52
  var skipLinkListItemStyles = (0, _react.css)({
53
53
  marginBlockStart: 0
54
54
  });
55
- var assignIndex = function assignIndex(num, arr) {
55
+ var _assignIndex = function assignIndex(num, arr) {
56
56
  if (!arr.includes(num)) {
57
57
  return num;
58
58
  }
59
- return assignIndex(num + 1, arr);
59
+ return _assignIndex(num + 1, arr);
60
60
  };
61
61
 
62
62
  /**
@@ -86,7 +86,7 @@ var SkipLinkWrapper = exports.SkipLinkWrapper = function SkipLinkWrapper(_ref) {
86
86
  var regularLinksWithIdx = arr.filter(function (link) {
87
87
  return link.listIndex === undefined;
88
88
  }).map(function (link, idx, currArr) {
89
- var listIndex = assignIndex(idx, usedIndexes);
89
+ var listIndex = _assignIndex(idx, usedIndexes);
90
90
  usedIndexes.push(listIndex);
91
91
  return _objectSpread(_objectSpread({}, link), {}, {
92
92
  listIndex: listIndex
@@ -134,11 +134,11 @@ var SkipLinkWrapper = exports.SkipLinkWrapper = function SkipLinkWrapper(_ref) {
134
134
  })))
135
135
  );
136
136
  };
137
- var handleBlur = function handleBlur(event) {
137
+ var _handleBlur = function handleBlur(event) {
138
138
  // @ts-ignore
139
139
  event.target.removeAttribute('tabindex');
140
140
  // @ts-ignore
141
- event.target.removeEventListener('blur', handleBlur);
141
+ event.target.removeEventListener('blur', _handleBlur);
142
142
  };
143
143
  var focusTargetRef = function focusTargetRef(href) {
144
144
  return function (event) {
@@ -155,7 +155,7 @@ var focusTargetRef = function focusTargetRef(href) {
155
155
  if (targetRef) {
156
156
  targetRef.setAttribute('tabindex', '-1');
157
157
  // @ts-ignore
158
- targetRef.addEventListener('blur', handleBlur);
158
+ targetRef.addEventListener('blur', _handleBlur);
159
159
  // @ts-ignore
160
160
  targetRef.focus();
161
161
  document.activeElement && document.activeElement.scrollIntoView({
@@ -49,11 +49,11 @@ var skipLinkListStyles = css({
49
49
  var skipLinkListItemStyles = css({
50
50
  marginBlockStart: 0
51
51
  });
52
- var assignIndex = function assignIndex(num, arr) {
52
+ var _assignIndex = function assignIndex(num, arr) {
53
53
  if (!arr.includes(num)) {
54
54
  return num;
55
55
  }
56
- return assignIndex(num + 1, arr);
56
+ return _assignIndex(num + 1, arr);
57
57
  };
58
58
 
59
59
  /**
@@ -83,7 +83,7 @@ export var SkipLinkWrapper = function SkipLinkWrapper(_ref) {
83
83
  var regularLinksWithIdx = arr.filter(function (link) {
84
84
  return link.listIndex === undefined;
85
85
  }).map(function (link, idx, currArr) {
86
- var listIndex = assignIndex(idx, usedIndexes);
86
+ var listIndex = _assignIndex(idx, usedIndexes);
87
87
  usedIndexes.push(listIndex);
88
88
  return _objectSpread(_objectSpread({}, link), {}, {
89
89
  listIndex: listIndex
@@ -131,11 +131,11 @@ export var SkipLinkWrapper = function SkipLinkWrapper(_ref) {
131
131
  })))
132
132
  );
133
133
  };
134
- var handleBlur = function handleBlur(event) {
134
+ var _handleBlur = function handleBlur(event) {
135
135
  // @ts-ignore
136
136
  event.target.removeAttribute('tabindex');
137
137
  // @ts-ignore
138
- event.target.removeEventListener('blur', handleBlur);
138
+ event.target.removeEventListener('blur', _handleBlur);
139
139
  };
140
140
  var focusTargetRef = function focusTargetRef(href) {
141
141
  return function (event) {
@@ -152,7 +152,7 @@ var focusTargetRef = function focusTargetRef(href) {
152
152
  if (targetRef) {
153
153
  targetRef.setAttribute('tabindex', '-1');
154
154
  // @ts-ignore
155
- targetRef.addEventListener('blur', handleBlur);
155
+ targetRef.addEventListener('blur', _handleBlur);
156
156
  // @ts-ignore
157
157
  targetRef.focus();
158
158
  document.activeElement && document.activeElement.scrollIntoView({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/page-layout",
3
- "version": "3.11.8",
3
+ "version": "3.12.1",
4
4
  "description": "A collection of components which let you compose an application's page layout.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -41,14 +41,14 @@
41
41
  },
42
42
  "homepage": "https://atlassian.design/components/page-layout/",
43
43
  "dependencies": {
44
- "@atlaskit/ds-lib": "^3.3.0",
45
- "@atlaskit/icon": "^23.4.0",
46
- "@atlaskit/link": "^2.0.0",
47
- "@atlaskit/motion": "^1.9.0",
48
- "@atlaskit/platform-feature-flags": "^0.3.0",
49
- "@atlaskit/primitives": "^13.3.0",
50
- "@atlaskit/theme": "^14.0.0",
51
- "@atlaskit/tokens": "^3.2.0",
44
+ "@atlaskit/ds-lib": "^3.5.0",
45
+ "@atlaskit/icon": "^23.6.0",
46
+ "@atlaskit/link": "^2.1.0",
47
+ "@atlaskit/motion": "^1.10.0",
48
+ "@atlaskit/platform-feature-flags": "^1.0.0",
49
+ "@atlaskit/primitives": "^13.4.0",
50
+ "@atlaskit/theme": "^14.1.0",
51
+ "@atlaskit/tokens": "^3.3.0",
52
52
  "@babel/runtime": "^7.0.0",
53
53
  "@emotion/react": "^11.7.1",
54
54
  "bind-event-listener": "^3.0.0",
@@ -61,21 +61,21 @@
61
61
  "devDependencies": {
62
62
  "@af/accessibility-testing": "*",
63
63
  "@af/integration-testing": "*",
64
- "@atlaskit/atlassian-navigation": "^4.10.0",
65
- "@atlaskit/atlassian-notifications": "^0.5.0",
66
- "@atlaskit/drawer": "^9.3.0",
67
- "@atlaskit/logo": "^15.1.0",
68
- "@atlaskit/menu": "^2.13.0",
69
- "@atlaskit/notification-indicator": "^9.4.0",
70
- "@atlaskit/notification-log-client": "^6.1.0",
71
- "@atlaskit/popup": "^1.30.0",
72
- "@atlaskit/side-navigation": "^4.0.0",
64
+ "@atlaskit/atlassian-navigation": "^4.11.0",
65
+ "@atlaskit/atlassian-notifications": "^0.6.0",
66
+ "@atlaskit/drawer": "^9.4.0",
67
+ "@atlaskit/logo": "^15.2.0",
68
+ "@atlaskit/menu": "^2.14.0",
69
+ "@atlaskit/notification-indicator": "^9.5.0",
70
+ "@atlaskit/notification-log-client": "^6.2.0",
71
+ "@atlaskit/popup": "^1.31.0",
72
+ "@atlaskit/side-navigation": "^4.2.0",
73
73
  "@atlaskit/ssr": "*",
74
- "@atlaskit/toggle": "^14.0.0",
75
- "@atlaskit/tooltip": "^19.0.0",
74
+ "@atlaskit/toggle": "^14.1.0",
75
+ "@atlaskit/tooltip": "^19.1.0",
76
76
  "@atlaskit/visual-regression": "*",
77
77
  "@testing-library/dom": "^10.1.0",
78
- "@testing-library/react": "^12.1.5",
78
+ "@testing-library/react": "^13.4.0",
79
79
  "@testing-library/react-hooks": "^8.0.1",
80
80
  "@types/raf-schd": "^4.0.1",
81
81
  "jest-emotion": "^10.0.32",