@atlaskit/media-test-helpers 33.0.6 → 33.0.8

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,17 @@
1
1
  # @atlaskit/media-test-helpers
2
2
 
3
+ ## 33.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3fb20c4aeba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3fb20c4aeba) - Add postinstall check to enforce internal peer dependencies
8
+
9
+ ## 33.0.7
10
+
11
+ ### Patch Changes
12
+
13
+ - [`48e4a655534`](https://bitbucket.org/atlassian/atlassian-frontend/commits/48e4a655534) - Internal change to enforce token usage for spacing properties. There is no expected visual or behaviour change.
14
+
3
15
  ## 33.0.6
4
16
 
5
17
  ### Patch Changes
@@ -28,7 +28,7 @@ var camelCaseToSentenceCase = function camelCaseToSentenceCase(text) {
28
28
  var result = text.replace(/([A-Z])/g, ' $1');
29
29
  return result.charAt(0).toUpperCase() + result.slice(1);
30
30
  };
31
- var Container = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n margin: 20px auto;\n"])));
31
+ var Container = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n margin: ", " auto;\n"])), "var(--ds-space-250, 20px)");
32
32
  var ItemWrapper = function ItemWrapper(_ref) {
33
33
  var children = _ref.children;
34
34
  return /*#__PURE__*/_react.default.createElement("div", {
@@ -8,5 +8,6 @@ exports.Matrix = void 0;
8
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
9
  var _styled = _interopRequireDefault(require("@emotion/styled"));
10
10
  var _templateObject;
11
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
11
12
  var Matrix = _styled.default.table(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n thead {\n td {\n text-align: center;\n font-weight: bold;\n font-size: 20px;\n }\n }\n\n tbody {\n td {\n padding: 25px 10px;\n }\n }\n\n td {\n margin: auto;\n text-align: center;\n vertical-align: middle;\n\n &:first-child {\n font-weight: bold;\n font-size: 20px;\n }\n\n > div {\n display: flex;\n justify-content: center;\n text-align: left;\n }\n }\n"])));
12
13
  exports.Matrix = Matrix;
@@ -8,5 +8,6 @@ exports.LocaleSelectorWrapper = void 0;
8
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
9
  var _styled = _interopRequireDefault(require("@emotion/styled"));
10
10
  var _templateObject;
11
- var LocaleSelectorWrapper = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: fixed;\n right: 20px;\n top: 20px;\n width: 200px;\n border: 1px solid ", ";\n padding: 10px;\n border-radius: 3px;\n background-color: ", ";\n\n h2 {\n margin-bottom: 10px;\n }\n"])), "var(--ds-border, #ccc)", "var(--ds-surface, white)");
11
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
12
+ var LocaleSelectorWrapper = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: fixed;\n right: ", ";\n top: ", ";\n width: 200px;\n border: 1px solid ", ";\n padding: 10px;\n border-radius: 3px;\n background-color: ", ";\n\n h2 {\n margin-bottom: 10px;\n }\n"])), "var(--ds-space-250, 20px)", "var(--ds-space-250, 20px)", "var(--ds-border, #ccc)", "var(--ds-surface, white)");
12
13
  exports.LocaleSelectorWrapper = LocaleSelectorWrapper;
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/media-test-helpers",
3
- "version": "33.0.6"
3
+ "version": "33.0.8"
4
4
  }
@@ -17,7 +17,7 @@ const camelCaseToSentenceCase = text => {
17
17
  const Container = styled.div`
18
18
  display: flex;
19
19
  flex-direction: row;
20
- margin: 20px auto;
20
+ margin: ${"var(--ds-space-250, 20px)"} auto;
21
21
  `;
22
22
  const ItemWrapper = ({
23
23
  children
@@ -1,4 +1,6 @@
1
1
  import styled from '@emotion/styled';
2
+
3
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
2
4
  export const Matrix = styled.table`
3
5
  thead {
4
6
  td {
@@ -1,8 +1,9 @@
1
1
  import styled from '@emotion/styled';
2
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
2
3
  export const LocaleSelectorWrapper = styled.div`
3
4
  position: fixed;
4
- right: 20px;
5
- top: 20px;
5
+ right: ${"var(--ds-space-250, 20px)"};
6
+ top: ${"var(--ds-space-250, 20px)"};
6
7
  width: 200px;
7
8
  border: 1px solid ${"var(--ds-border, #ccc)"};
8
9
  padding: 10px;
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/media-test-helpers",
3
- "version": "33.0.6"
3
+ "version": "33.0.8"
4
4
  }
@@ -18,7 +18,7 @@ var camelCaseToSentenceCase = function camelCaseToSentenceCase(text) {
18
18
  var result = text.replace(/([A-Z])/g, ' $1');
19
19
  return result.charAt(0).toUpperCase() + result.slice(1);
20
20
  };
21
- var Container = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n margin: 20px auto;\n"])));
21
+ var Container = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n margin: ", " auto;\n"])), "var(--ds-space-250, 20px)");
22
22
  var ItemWrapper = function ItemWrapper(_ref) {
23
23
  var children = _ref.children;
24
24
  return /*#__PURE__*/React.createElement("div", {
@@ -1,4 +1,6 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
2
  var _templateObject;
3
3
  import styled from '@emotion/styled';
4
+
5
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
4
6
  export var Matrix = styled.table(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n thead {\n td {\n text-align: center;\n font-weight: bold;\n font-size: 20px;\n }\n }\n\n tbody {\n td {\n padding: 25px 10px;\n }\n }\n\n td {\n margin: auto;\n text-align: center;\n vertical-align: middle;\n\n &:first-child {\n font-weight: bold;\n font-size: 20px;\n }\n\n > div {\n display: flex;\n justify-content: center;\n text-align: left;\n }\n }\n"])));
@@ -1,4 +1,5 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
2
  var _templateObject;
3
3
  import styled from '@emotion/styled';
4
- export var LocaleSelectorWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: fixed;\n right: 20px;\n top: 20px;\n width: 200px;\n border: 1px solid ", ";\n padding: 10px;\n border-radius: 3px;\n background-color: ", ";\n\n h2 {\n margin-bottom: 10px;\n }\n"])), "var(--ds-border, #ccc)", "var(--ds-surface, white)");
4
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
5
+ export var LocaleSelectorWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: fixed;\n right: ", ";\n top: ", ";\n width: 200px;\n border: 1px solid ", ";\n padding: 10px;\n border-radius: 3px;\n background-color: ", ";\n\n h2 {\n margin-bottom: 10px;\n }\n"])), "var(--ds-space-250, 20px)", "var(--ds-space-250, 20px)", "var(--ds-border, #ccc)", "var(--ds-surface, white)");
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/media-test-helpers",
3
- "version": "33.0.6"
3
+ "version": "33.0.8"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-test-helpers",
3
- "version": "33.0.6",
3
+ "version": "33.0.8",
4
4
  "description": "Collection of test helpers used in media component stories and specs",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -27,17 +27,18 @@
27
27
  "releaseModel": "continuous"
28
28
  },
29
29
  "dependencies": {
30
- "@atlaskit/button": "^16.7.0",
30
+ "@atlaskit/button": "^16.8.0",
31
31
  "@atlaskit/checkbox": "^12.6.0",
32
+ "@atlaskit/enforce-peer-dependencies": "^1.0.1",
32
33
  "@atlaskit/icon": "^21.12.0",
33
34
  "@atlaskit/locale": "^2.5.0",
34
- "@atlaskit/media-client": "^23.0.0",
35
- "@atlaskit/media-common": "^7.0.0",
36
- "@atlaskit/media-ui": "^23.0.0",
37
- "@atlaskit/popup": "^1.6.0",
35
+ "@atlaskit/media-client": "^23.1.0",
36
+ "@atlaskit/media-common": "^7.1.0",
37
+ "@atlaskit/media-ui": "^23.2.0",
38
+ "@atlaskit/popup": "^1.8.0",
38
39
  "@atlaskit/tabs": "^13.4.0",
39
- "@atlaskit/textfield": "^5.5.0",
40
- "@atlaskit/tokens": "^1.5.0",
40
+ "@atlaskit/textfield": "^5.6.0",
41
+ "@atlaskit/tokens": "^1.12.0",
41
42
  "@atlaskit/tooltip": "^17.8.0",
42
43
  "@atlaskit/ufo": "^0.2.0",
43
44
  "@babel/runtime": "^7.0.0",
@@ -83,8 +84,12 @@
83
84
  "techstack": {
84
85
  "@repo/internal": {
85
86
  "design-tokens": [
86
- "color"
87
+ "color",
88
+ "spacing"
87
89
  ]
88
90
  }
91
+ },
92
+ "scripts": {
93
+ "postinstall": "npx enforce-peer-dependencies --internal-packages"
89
94
  }
90
95
  }