@atlaskit/media-test-helpers 42.3.0 → 42.4.0
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 +11 -0
- package/dist/cjs/mocks/media-mock.js +2 -2
- package/dist/es2019/mocks/media-mock.js +1 -1
- package/dist/esm/mocks/media-mock.js +1 -1
- package/package.json +20 -20
- package/report.api.md +0 -1044
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/media-test-helpers
|
|
2
2
|
|
|
3
|
+
## 42.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`bd2c5b0112185`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd2c5b0112185) -
|
|
8
|
+
Remove stale API report artifacts from published Platform packages.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 42.3.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
|
@@ -19,13 +19,13 @@ var _routers = require("./routers");
|
|
|
19
19
|
var _database = require("./database");
|
|
20
20
|
var _websockets = require("./websockets");
|
|
21
21
|
var _utils = require("../utils");
|
|
22
|
-
var
|
|
22
|
+
var _dataURItoFile = require("@atlaskit/media-ui/dataURItoFile");
|
|
23
23
|
var _smallImageURI = require("../dataURIs/smallImageURI");
|
|
24
24
|
var _fileAndDirectoriesUtils = require("./fileAndDirectoriesUtils");
|
|
25
25
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
26
26
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
27
27
|
|
|
28
|
-
var blob = (0,
|
|
28
|
+
var blob = (0, _dataURItoFile.dataURItoFile)(_smallImageURI.smallImage);
|
|
29
29
|
var imageFile = new File([blob], 'image.png', {
|
|
30
30
|
type: 'image/png'
|
|
31
31
|
});
|
|
@@ -7,7 +7,7 @@ import { createApiRouter, createMediaPlaygroundRouter } from './routers';
|
|
|
7
7
|
import { createDatabase } from './database';
|
|
8
8
|
import { RemoteUploadActivityServer } from './websockets';
|
|
9
9
|
import { mapDataUriToBlob } from '../utils';
|
|
10
|
-
import { dataURItoFile } from '@atlaskit/media-ui/
|
|
10
|
+
import { dataURItoFile } from '@atlaskit/media-ui/dataURItoFile';
|
|
11
11
|
import { smallImage } from '../dataURIs/smallImageURI';
|
|
12
12
|
import { createDropEventWithFiles, createFileSystemFileEntry } from './fileAndDirectoriesUtils';
|
|
13
13
|
const blob = dataURItoFile(smallImage);
|
|
@@ -10,7 +10,7 @@ import { createApiRouter, createMediaPlaygroundRouter } from './routers';
|
|
|
10
10
|
import { createDatabase } from './database';
|
|
11
11
|
import { RemoteUploadActivityServer } from './websockets';
|
|
12
12
|
import { mapDataUriToBlob } from '../utils';
|
|
13
|
-
import { dataURItoFile } from '@atlaskit/media-ui/
|
|
13
|
+
import { dataURItoFile } from '@atlaskit/media-ui/dataURItoFile';
|
|
14
14
|
import { smallImage } from '../dataURIs/smallImageURI';
|
|
15
15
|
import { createDropEventWithFiles, createFileSystemFileEntry } from './fileAndDirectoriesUtils';
|
|
16
16
|
var blob = dataURItoFile(smallImage);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-test-helpers",
|
|
3
|
-
"version": "42.
|
|
3
|
+
"version": "42.4.0",
|
|
4
4
|
"description": "Collection of test helpers used in media component stories and specs",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -24,24 +24,24 @@
|
|
|
24
24
|
"team": "Media Exif"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaskit/button": "^25.
|
|
28
|
-
"@atlaskit/checkbox": "^19.
|
|
29
|
-
"@atlaskit/form": "^17.
|
|
30
|
-
"@atlaskit/icon": "^37.
|
|
31
|
-
"@atlaskit/locale": "^5.
|
|
32
|
-
"@atlaskit/media-client": "^37.
|
|
33
|
-
"@atlaskit/media-common": "^14.
|
|
34
|
-
"@atlaskit/media-state": "^3.
|
|
35
|
-
"@atlaskit/media-ui": "^30.
|
|
36
|
-
"@atlaskit/platform-feature-flags": "^2.
|
|
37
|
-
"@atlaskit/popup": "^6.
|
|
38
|
-
"@atlaskit/primitives": "^22.
|
|
27
|
+
"@atlaskit/button": "^25.3.0",
|
|
28
|
+
"@atlaskit/checkbox": "^19.2.0",
|
|
29
|
+
"@atlaskit/form": "^17.2.0",
|
|
30
|
+
"@atlaskit/icon": "^37.6.0",
|
|
31
|
+
"@atlaskit/locale": "^5.2.0",
|
|
32
|
+
"@atlaskit/media-client": "^37.6.0",
|
|
33
|
+
"@atlaskit/media-common": "^14.6.0",
|
|
34
|
+
"@atlaskit/media-state": "^3.2.0",
|
|
35
|
+
"@atlaskit/media-ui": "^30.15.0",
|
|
36
|
+
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
37
|
+
"@atlaskit/popup": "^6.3.0",
|
|
38
|
+
"@atlaskit/primitives": "^22.5.0",
|
|
39
39
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
40
|
-
"@atlaskit/tabs": "^21.
|
|
41
|
-
"@atlaskit/textfield": "^10.
|
|
42
|
-
"@atlaskit/tokens": "^16.
|
|
43
|
-
"@atlaskit/tooltip": "^24.
|
|
44
|
-
"@atlaskit/ufo": "^1.
|
|
40
|
+
"@atlaskit/tabs": "^21.2.0",
|
|
41
|
+
"@atlaskit/textfield": "^10.2.0",
|
|
42
|
+
"@atlaskit/tokens": "^16.10.0",
|
|
43
|
+
"@atlaskit/tooltip": "^24.3.0",
|
|
44
|
+
"@atlaskit/ufo": "^1.1.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|
|
46
46
|
"@emotion/react": "^11.7.1",
|
|
47
47
|
"@emotion/styled": "^11.0.0",
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
"xhr-mock": "^2.4.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@atlaskit/media-core": "^38.
|
|
57
|
+
"@atlaskit/media-core": "^38.2.0",
|
|
58
58
|
"react": "^18.2.0",
|
|
59
59
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@atlaskit/media-core": "^38.
|
|
62
|
+
"@atlaskit/media-core": "^38.2.0",
|
|
63
63
|
"@types/exenv": "^1.2.0",
|
|
64
64
|
"react": "^18.2.0",
|
|
65
65
|
"react-dom": "^18.2.0",
|