@atlaskit/media-test-helpers 39.0.1 → 39.0.2

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/media-test-helpers
2
2
 
3
+ ## 39.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`beaa6ee463aa8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/beaa6ee463aa8) -
8
+ Internal changes to how border radius is applied.
9
+ - Updated dependencies
10
+
3
11
  ## 39.0.1
4
12
 
5
13
  ### Patch Changes
@@ -58,8 +58,8 @@ var StoryBookAuthProvider = exports.StoryBookAuthProvider = /*#__PURE__*/functio
58
58
  };
59
59
  }();
60
60
  return function (authContext) {
61
- var IS_UNIT_TEST = process.env.JEST_WORKER_ID !== undefined;
62
- if (IS_UNIT_TEST) {
61
+ var isRunningInUnitTest = typeof process.env.JEST_WORKER_ID !== 'undefined' || typeof jest !== 'undefined';
62
+ if (isRunningInUnitTest) {
63
63
  // This is to prevent accidental staging environment calls from the auth provider in unit tests
64
64
  // The implementation also means that it can effect unrelated tests due to the setInterval and unhandled promise rejection
65
65
  throw new Error('Unexpected call to auth provider, please mock the auth provider in your test');
@@ -21,12 +21,12 @@ var styles = {
21
21
  listStyle: 'none',
22
22
  padding: "var(--ds-space-100, 8px)",
23
23
  margin: "var(--ds-space-100, 8px)",
24
- borderRadius: "var(--ds-border-radius, 4px)",
24
+ borderRadius: "var(--ds-radius-small, 4px)",
25
25
  display: 'inline-block'
26
26
  },
27
27
  stateItem: {
28
28
  flexDirection: 'column',
29
- borderRadius: "var(--ds-border-radius, 4px)",
29
+ borderRadius: "var(--ds-radius-small, 4px)",
30
30
  padding: "var(--ds-space-100, 8px)",
31
31
  margin: "var(--ds-space-100, 8px)"
32
32
  },
@@ -43,12 +43,12 @@ var styles = {
43
43
  listStyle: 'none',
44
44
  padding: "var(--ds-space-100, 8px)",
45
45
  margin: "var(--ds-space-100, 8px)",
46
- borderRadius: "var(--ds-border-radius, 4px)"
46
+ borderRadius: "var(--ds-radius-small, 4px)"
47
47
  },
48
48
  stateItem: {
49
49
  display: 'inline-flex',
50
50
  flexDirection: 'column',
51
- borderRadius: "var(--ds-border-radius, 4px)",
51
+ borderRadius: "var(--ds-radius-small, 4px)",
52
52
  padding: "var(--ds-space-100, 8px)",
53
53
  margin: "var(--ds-space-100, 8px)"
54
54
  },
@@ -23,8 +23,8 @@ export class StoryBookAuthProvider {
23
23
  return await (await response).json();
24
24
  };
25
25
  return authContext => {
26
- const IS_UNIT_TEST = process.env.JEST_WORKER_ID !== undefined;
27
- if (IS_UNIT_TEST) {
26
+ const isRunningInUnitTest = typeof process.env.JEST_WORKER_ID !== 'undefined' || typeof jest !== 'undefined';
27
+ if (isRunningInUnitTest) {
28
28
  // This is to prevent accidental staging environment calls from the auth provider in unit tests
29
29
  // The implementation also means that it can effect unrelated tests due to the setInterval and unhandled promise rejection
30
30
  throw new Error('Unexpected call to auth provider, please mock the auth provider in your test');
@@ -7,12 +7,12 @@ const styles = {
7
7
  listStyle: 'none',
8
8
  padding: "var(--ds-space-100, 8px)",
9
9
  margin: "var(--ds-space-100, 8px)",
10
- borderRadius: "var(--ds-border-radius, 4px)",
10
+ borderRadius: "var(--ds-radius-small, 4px)",
11
11
  display: 'inline-block'
12
12
  },
13
13
  stateItem: {
14
14
  flexDirection: 'column',
15
- borderRadius: "var(--ds-border-radius, 4px)",
15
+ borderRadius: "var(--ds-radius-small, 4px)",
16
16
  padding: "var(--ds-space-100, 8px)",
17
17
  margin: "var(--ds-space-100, 8px)"
18
18
  },
@@ -29,12 +29,12 @@ const styles = {
29
29
  listStyle: 'none',
30
30
  padding: "var(--ds-space-100, 8px)",
31
31
  margin: "var(--ds-space-100, 8px)",
32
- borderRadius: "var(--ds-border-radius, 4px)"
32
+ borderRadius: "var(--ds-radius-small, 4px)"
33
33
  },
34
34
  stateItem: {
35
35
  display: 'inline-flex',
36
36
  flexDirection: 'column',
37
- borderRadius: "var(--ds-border-radius, 4px)",
37
+ borderRadius: "var(--ds-radius-small, 4px)",
38
38
  padding: "var(--ds-space-100, 8px)",
39
39
  margin: "var(--ds-space-100, 8px)"
40
40
  },
@@ -51,8 +51,8 @@ export var StoryBookAuthProvider = /*#__PURE__*/function () {
51
51
  };
52
52
  }();
53
53
  return function (authContext) {
54
- var IS_UNIT_TEST = process.env.JEST_WORKER_ID !== undefined;
55
- if (IS_UNIT_TEST) {
54
+ var isRunningInUnitTest = typeof process.env.JEST_WORKER_ID !== 'undefined' || typeof jest !== 'undefined';
55
+ if (isRunningInUnitTest) {
56
56
  // This is to prevent accidental staging environment calls from the auth provider in unit tests
57
57
  // The implementation also means that it can effect unrelated tests due to the setInterval and unhandled promise rejection
58
58
  throw new Error('Unexpected call to auth provider, please mock the auth provider in your test');
@@ -14,12 +14,12 @@ var styles = {
14
14
  listStyle: 'none',
15
15
  padding: "var(--ds-space-100, 8px)",
16
16
  margin: "var(--ds-space-100, 8px)",
17
- borderRadius: "var(--ds-border-radius, 4px)",
17
+ borderRadius: "var(--ds-radius-small, 4px)",
18
18
  display: 'inline-block'
19
19
  },
20
20
  stateItem: {
21
21
  flexDirection: 'column',
22
- borderRadius: "var(--ds-border-radius, 4px)",
22
+ borderRadius: "var(--ds-radius-small, 4px)",
23
23
  padding: "var(--ds-space-100, 8px)",
24
24
  margin: "var(--ds-space-100, 8px)"
25
25
  },
@@ -36,12 +36,12 @@ var styles = {
36
36
  listStyle: 'none',
37
37
  padding: "var(--ds-space-100, 8px)",
38
38
  margin: "var(--ds-space-100, 8px)",
39
- borderRadius: "var(--ds-border-radius, 4px)"
39
+ borderRadius: "var(--ds-radius-small, 4px)"
40
40
  },
41
41
  stateItem: {
42
42
  display: 'inline-flex',
43
43
  flexDirection: 'column',
44
- borderRadius: "var(--ds-border-radius, 4px)",
44
+ borderRadius: "var(--ds-radius-small, 4px)",
45
45
  padding: "var(--ds-space-100, 8px)",
46
46
  margin: "var(--ds-space-100, 8px)"
47
47
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-test-helpers",
3
- "version": "39.0.1",
3
+ "version": "39.0.2",
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,18 +27,18 @@
27
27
  "dependencies": {
28
28
  "@atlaskit/button": "^23.4.0",
29
29
  "@atlaskit/checkbox": "^17.1.0",
30
- "@atlaskit/form": "^12.1.0",
31
- "@atlaskit/icon": "^28.0.0",
30
+ "@atlaskit/form": "^12.4.0",
31
+ "@atlaskit/icon": "^28.1.0",
32
32
  "@atlaskit/locale": "^3.0.0",
33
33
  "@atlaskit/media-client": "^35.3.0",
34
34
  "@atlaskit/media-common": "^12.3.0",
35
35
  "@atlaskit/media-ui": "^28.6.0",
36
36
  "@atlaskit/platform-feature-flags": "^1.1.0",
37
37
  "@atlaskit/popup": "^4.3.0",
38
- "@atlaskit/primitives": "^14.11.0",
38
+ "@atlaskit/primitives": "^14.13.0",
39
39
  "@atlaskit/tabs": "^18.1.0",
40
40
  "@atlaskit/textfield": "^8.0.0",
41
- "@atlaskit/tokens": "^6.0.0",
41
+ "@atlaskit/tokens": "^6.2.0",
42
42
  "@atlaskit/tooltip": "^20.4.0",
43
43
  "@atlaskit/ufo": "^0.4.0",
44
44
  "@babel/runtime": "^7.0.0",
@@ -63,23 +63,6 @@
63
63
  "@types/exenv": "^1.2.0",
64
64
  "react-dom": "^18.2.0"
65
65
  },
66
- "af:exports": {
67
- "./renderWithIntl": "./src/renderWithIntl.tsx",
68
- "./smart-card-state": "./src/smart-card-state.ts",
69
- "./fakeMediaClient": "./src/fakeMediaClient.ts",
70
- "./media-mock": "./src/mocks/media-mock.ts",
71
- "./images": "./src/images.tsx",
72
- "./jestHelpers": "./src/jestHelpers.ts",
73
- "./collectionNames": "./src/collectionNames.ts",
74
- "./exampleMediaItems": "./src/exampleMediaItems.ts",
75
- "./exampleMediaFeatureFlags": "./src/example-mediaFeatureFlags.ts",
76
- "./globalEventEmitterListeners": "./src/globalEventEmitterListeners.ts",
77
- "./mediaPickerAuthProvider": "./src/mediaPickerAuthProvider.ts",
78
- "./getAuthFromContextProvider": "./src/getAuthFromContextProvider.ts",
79
- "./getMediaAuthProvider": "./src/getMediaAuthProvider.ts",
80
- "./mockData": "./src/utils/mockData.ts",
81
- ".": "./src/index.tsx"
82
- },
83
66
  "techstack": {
84
67
  "@repo/internal": {
85
68
  "design-tokens": [