@atlaskit/page-layout 3.4.4 → 3.4.5
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,13 @@
|
|
|
1
1
|
# @atlaskit/page-layout
|
|
2
2
|
|
|
3
|
+
## 3.4.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#116999](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116999)
|
|
8
|
+
[`797e07674ed7c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/797e07674ed7c) -
|
|
9
|
+
Remove it has been rolled out platform.remove-newline-in-style-tag-in-platform-page-layout_7gts1
|
|
10
|
+
|
|
3
11
|
## 3.4.4
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -6,38 +6,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
10
9
|
var _responsive = require("@atlaskit/primitives/responsive");
|
|
11
10
|
var _default = exports.default = function _default(_ref) {
|
|
12
11
|
var variableName = _ref.variableName,
|
|
13
12
|
value = _ref.value,
|
|
14
13
|
mobileValue = _ref.mobileValue;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
style += " ".concat(_responsive.UNSAFE_media.below.sm, " { :root{--").concat(variableName, ":").concat(mobileValue, "px;} }");
|
|
30
|
-
}
|
|
31
|
-
return (
|
|
32
|
-
/*#__PURE__*/
|
|
33
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles -- Ignored via go/DSP-18766
|
|
34
|
-
_react.default.createElement("style", null, style)
|
|
35
|
-
);
|
|
36
|
-
} else {
|
|
37
|
-
return (
|
|
38
|
-
/*#__PURE__*/
|
|
39
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles -- Ignored via go/DSP-18766
|
|
40
|
-
_react.default.createElement("style", null, ":root{--".concat(variableName, ":").concat(value, "px;}"), mobileValue && "".concat(_responsive.UNSAFE_media.below.sm, " { :root{--").concat(variableName, ":").concat(mobileValue, "px;} }"))
|
|
41
|
-
);
|
|
14
|
+
/**
|
|
15
|
+
* Note don't put multiple variables in multiple lines. eg
|
|
16
|
+
* <style>
|
|
17
|
+
* {css1}
|
|
18
|
+
* {css2}
|
|
19
|
+
* </style>
|
|
20
|
+
*
|
|
21
|
+
* React will insert an empty HTML comment in between the text in SSR.
|
|
22
|
+
* This is not a valid tag and will break the page.
|
|
23
|
+
* <style>foo<!-- -->bar</style>
|
|
24
|
+
*/
|
|
25
|
+
var style = ":root{--".concat(variableName, ":").concat(value, "px;}");
|
|
26
|
+
if (mobileValue) {
|
|
27
|
+
style += " ".concat(_responsive.UNSAFE_media.below.sm, " { :root{--").concat(variableName, ":").concat(mobileValue, "px;} }");
|
|
42
28
|
}
|
|
29
|
+
return (
|
|
30
|
+
/*#__PURE__*/
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles -- Ignored via go/DSP-18766
|
|
32
|
+
_react.default.createElement("style", null, style)
|
|
33
|
+
);
|
|
43
34
|
};
|
|
@@ -1,37 +1,28 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
import { UNSAFE_media } from '@atlaskit/primitives/responsive';
|
|
4
3
|
export default (({
|
|
5
4
|
variableName,
|
|
6
5
|
value,
|
|
7
6
|
mobileValue
|
|
8
7
|
}) => {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
style += ` ${UNSAFE_media.below.sm} { :root{--${variableName}:${mobileValue}px;} }`;
|
|
24
|
-
}
|
|
25
|
-
return (
|
|
26
|
-
/*#__PURE__*/
|
|
27
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles -- Ignored via go/DSP-18766
|
|
28
|
-
React.createElement("style", null, style)
|
|
29
|
-
);
|
|
30
|
-
} else {
|
|
31
|
-
return (
|
|
32
|
-
/*#__PURE__*/
|
|
33
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles -- Ignored via go/DSP-18766
|
|
34
|
-
React.createElement("style", null, `:root{--${variableName}:${value}px;}`, mobileValue && `${UNSAFE_media.below.sm} { :root{--${variableName}:${mobileValue}px;} }`)
|
|
35
|
-
);
|
|
8
|
+
/**
|
|
9
|
+
* Note don't put multiple variables in multiple lines. eg
|
|
10
|
+
* <style>
|
|
11
|
+
* {css1}
|
|
12
|
+
* {css2}
|
|
13
|
+
* </style>
|
|
14
|
+
*
|
|
15
|
+
* React will insert an empty HTML comment in between the text in SSR.
|
|
16
|
+
* This is not a valid tag and will break the page.
|
|
17
|
+
* <style>foo<!-- -->bar</style>
|
|
18
|
+
*/
|
|
19
|
+
let style = `:root{--${variableName}:${value}px;}`;
|
|
20
|
+
if (mobileValue) {
|
|
21
|
+
style += ` ${UNSAFE_media.below.sm} { :root{--${variableName}:${mobileValue}px;} }`;
|
|
36
22
|
}
|
|
23
|
+
return (
|
|
24
|
+
/*#__PURE__*/
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles -- Ignored via go/DSP-18766
|
|
26
|
+
React.createElement("style", null, style)
|
|
27
|
+
);
|
|
37
28
|
});
|
|
@@ -1,36 +1,27 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
import { UNSAFE_media } from '@atlaskit/primitives/responsive';
|
|
4
3
|
export default (function (_ref) {
|
|
5
4
|
var variableName = _ref.variableName,
|
|
6
5
|
value = _ref.value,
|
|
7
6
|
mobileValue = _ref.mobileValue;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
style += " ".concat(UNSAFE_media.below.sm, " { :root{--").concat(variableName, ":").concat(mobileValue, "px;} }");
|
|
23
|
-
}
|
|
24
|
-
return (
|
|
25
|
-
/*#__PURE__*/
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles -- Ignored via go/DSP-18766
|
|
27
|
-
React.createElement("style", null, style)
|
|
28
|
-
);
|
|
29
|
-
} else {
|
|
30
|
-
return (
|
|
31
|
-
/*#__PURE__*/
|
|
32
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles -- Ignored via go/DSP-18766
|
|
33
|
-
React.createElement("style", null, ":root{--".concat(variableName, ":").concat(value, "px;}"), mobileValue && "".concat(UNSAFE_media.below.sm, " { :root{--").concat(variableName, ":").concat(mobileValue, "px;} }"))
|
|
34
|
-
);
|
|
7
|
+
/**
|
|
8
|
+
* Note don't put multiple variables in multiple lines. eg
|
|
9
|
+
* <style>
|
|
10
|
+
* {css1}
|
|
11
|
+
* {css2}
|
|
12
|
+
* </style>
|
|
13
|
+
*
|
|
14
|
+
* React will insert an empty HTML comment in between the text in SSR.
|
|
15
|
+
* This is not a valid tag and will break the page.
|
|
16
|
+
* <style>foo<!-- -->bar</style>
|
|
17
|
+
*/
|
|
18
|
+
var style = ":root{--".concat(variableName, ":").concat(value, "px;}");
|
|
19
|
+
if (mobileValue) {
|
|
20
|
+
style += " ".concat(UNSAFE_media.below.sm, " { :root{--").concat(variableName, ":").concat(mobileValue, "px;} }");
|
|
35
21
|
}
|
|
22
|
+
return (
|
|
23
|
+
/*#__PURE__*/
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles -- Ignored via go/DSP-18766
|
|
25
|
+
React.createElement("style", null, style)
|
|
26
|
+
);
|
|
36
27
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/page-layout",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.5",
|
|
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/"
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"@af/integration-testing": "*",
|
|
62
62
|
"@atlaskit/atlassian-navigation": "^4.2.0",
|
|
63
63
|
"@atlaskit/atlassian-notifications": "^0.4.0",
|
|
64
|
-
"@atlaskit/drawer": "^7.
|
|
64
|
+
"@atlaskit/drawer": "^7.13.0",
|
|
65
65
|
"@atlaskit/logo": "^14.1.0",
|
|
66
|
-
"@atlaskit/menu": "^2.
|
|
66
|
+
"@atlaskit/menu": "^2.7.0",
|
|
67
67
|
"@atlaskit/notification-indicator": "^9.2.0",
|
|
68
68
|
"@atlaskit/notification-log-client": "^6.1.0",
|
|
69
69
|
"@atlaskit/popup": "^1.20.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@atlaskit/toggle": "^13.2.0",
|
|
73
73
|
"@atlaskit/tooltip": "^18.5.0",
|
|
74
74
|
"@atlaskit/visual-regression": "*",
|
|
75
|
-
"@testing-library/dom": "^
|
|
75
|
+
"@testing-library/dom": "^10.1.0",
|
|
76
76
|
"@testing-library/react": "^12.1.5",
|
|
77
77
|
"@testing-library/react-hooks": "^8.0.1",
|
|
78
78
|
"@types/raf-schd": "^4.0.1",
|
|
@@ -119,9 +119,6 @@
|
|
|
119
119
|
},
|
|
120
120
|
"platform.atlassian.griffin-navigation-redesign": {
|
|
121
121
|
"type": "boolean"
|
|
122
|
-
},
|
|
123
|
-
"platform.remove-newline-in-style-tag-in-platform-page-layout_7gts1": {
|
|
124
|
-
"type": "boolean"
|
|
125
122
|
}
|
|
126
123
|
}
|
|
127
124
|
}
|