@atlaskit/media-common 13.0.2 → 13.2.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.
Files changed (45) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/analytics/types/package.json +15 -0
  3. package/await-error/package.json +15 -0
  4. package/clientIdCache/package.json +15 -0
  5. package/constants/package.json +15 -0
  6. package/dist/cjs/analytics/sanitisePayload.js +2 -2
  7. package/dist/cjs/test-helpers/flushPromises.js +6 -3
  8. package/dist/cjs/utils/isValidUuid.js +27 -0
  9. package/dist/es2019/analytics/sanitisePayload.js +2 -2
  10. package/dist/es2019/test-helpers/flushPromises.js +3 -1
  11. package/dist/es2019/utils/isValidUuid.js +21 -0
  12. package/dist/esm/analytics/sanitisePayload.js +2 -2
  13. package/dist/esm/test-helpers/flushPromises.js +6 -3
  14. package/dist/esm/utils/isValidUuid.js +21 -0
  15. package/dist/types/test-helpers/jestHelpers.d.ts +1 -1
  16. package/dist/types/test-helpers/nextTick.d.ts +1 -1
  17. package/dist/types/utils/isValidUuid.d.ts +1 -0
  18. package/dist/types-ts4.5/test-helpers/jestHelpers.d.ts +1 -1
  19. package/dist/types-ts4.5/test-helpers/nextTick.d.ts +1 -1
  20. package/dist/types-ts4.5/utils/isValidUuid.d.ts +1 -0
  21. package/flushPromises/package.json +15 -0
  22. package/getJest/package.json +15 -0
  23. package/helpers/package.json +15 -0
  24. package/isMimeTypeSupportedByBrowser/package.json +15 -0
  25. package/isMimeTypeSupportedByServer/package.json +15 -0
  26. package/isValidUuid/package.json +15 -0
  27. package/jestHelpers/package.json +15 -0
  28. package/media-use-only/package.json +15 -0
  29. package/nextTick/package.json +15 -0
  30. package/package.json +3 -5
  31. package/rxjs-notice/package.json +15 -0
  32. package/sanitisePayload/package.json +15 -0
  33. package/singleton-notice/package.json +15 -0
  34. package/smallImageURI/package.json +15 -0
  35. package/smallTransparentImageURI/package.json +15 -0
  36. package/tallImageURI/package.json +15 -0
  37. package/timeoutPromise/package.json +15 -0
  38. package/types/package.json +15 -0
  39. package/useStaticCallback/package.json +15 -0
  40. package/videoPreviewURI/package.json +15 -0
  41. package/videoURI/package.json +15 -0
  42. package/vr-test-small-image/package.json +15 -0
  43. package/wideImageURI/package.json +15 -0
  44. package/wideTransparentImageURI/package.json +15 -0
  45. package/withMediaAnalyticsContext/package.json +15 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @atlaskit/media-common
2
2
 
3
+ ## 13.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`5653e8be24c05`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5653e8be24c05) -
8
+ Replace `uuid-validate` with an inlined, browser-only `isValidUuid` helper in
9
+ `@atlaskit/media-common`. Removes the `uuid-validate` dependency from `media-card`,
10
+ `media-client`, `media-common` and `media-picker` so consumers no longer pull in the Node `Buffer`
11
+ polyfill purely for a `Buffer.isBuffer` check that always returned `false` in the browser.
12
+
13
+ Adds a new `@atlaskit/media-common/isValidUuid` subpath export so consumers can import the helper
14
+ without going through the package's barrel file (in line with the Debarreling Platform Packages
15
+ initiative).
16
+
17
+ ## 13.1.0
18
+
19
+ ### Minor Changes
20
+
21
+ - [`818d7e656a226`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/818d7e656a226) -
22
+ Autofix: add explicit package exports (barrel removal)
23
+
3
24
  ## 13.0.2
4
25
 
5
26
  ### Patch Changes
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/analytics/types",
3
+ "main": "../../dist/cjs/analytics/types.js",
4
+ "module": "../../dist/esm/analytics/types.js",
5
+ "module:es2019": "../../dist/es2019/analytics/types.js",
6
+ "sideEffects": false,
7
+ "types": "../../dist/types/analytics/types.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../../dist/types-ts4.5/analytics/types.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/await-error",
3
+ "main": "../dist/cjs/test-helpers/await-error.js",
4
+ "module": "../dist/esm/test-helpers/await-error.js",
5
+ "module:es2019": "../dist/es2019/test-helpers/await-error.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/test-helpers/await-error.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/test-helpers/await-error.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/clientIdCache",
3
+ "main": "../dist/cjs/copyIntent/clientIdCache.js",
4
+ "module": "../dist/esm/copyIntent/clientIdCache.js",
5
+ "module:es2019": "../dist/es2019/copyIntent/clientIdCache.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/copyIntent/clientIdCache.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/copyIntent/clientIdCache.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/constants",
3
+ "main": "../dist/cjs/analytics/constants.js",
4
+ "module": "../dist/esm/analytics/constants.js",
5
+ "module:es2019": "../dist/es2019/analytics/constants.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/analytics/constants.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/analytics/constants.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.sanitiseAnalyticsPayload = void 0;
8
8
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
9
- var _uuidValidate = _interopRequireDefault(require("uuid-validate"));
10
9
  var _immer = require("immer");
10
+ var _isValidUuid = require("../utils/isValidUuid");
11
11
  var sanitiseFileId = function sanitiseFileId(draft) {
12
12
  var fileId = draft.attributes.fileAttributes.fileId;
13
- draft.attributes.fileAttributes.fileId = fileId === 'external-image' || (0, _uuidValidate.default)(fileId) ? fileId : 'INVALID_FILE_ID';
13
+ draft.attributes.fileAttributes.fileId = fileId === 'external-image' || (0, _isValidUuid.isValidUuid)(fileId) ? fileId : 'INVALID_FILE_ID';
14
14
  };
15
15
  var hasFileAttributesWithFileId = function hasFileAttributesWithFileId(payload) {
16
16
  return 'attributes' in payload && !!payload.attributes && (0, _typeof2.default)(payload.attributes) === 'object' && 'fileAttributes' in payload.attributes && !!payload.attributes.fileAttributes && (0, _typeof2.default)(payload.attributes.fileAttributes) === 'object' && 'fileId' in payload.attributes.fileAttributes && typeof payload.attributes.fileAttributes.fileId === 'string';
@@ -7,7 +7,10 @@ exports.flushPromises = void 0;
7
7
  /** deprecated Use React Testing Library's waitFor like method instead */
8
8
  // eslint-disable-next-line @atlaskit/platform/no-set-immediate
9
9
  var flushPromises = exports.flushPromises = function flushPromises() {
10
- return new Promise(function (resolve) {
11
- return setImmediate(resolve);
12
- });
10
+ return (
11
+ // eslint-disable-next-line @atlaskit/platform/no-set-immediate
12
+ new Promise(function (resolve) {
13
+ return setImmediate(resolve);
14
+ })
15
+ );
13
16
  };
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.isValidUuid = void 0;
7
+ var BASIC_UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
8
+
9
+ // Modified copy of `uuid-validate` package
10
+ var isValidUuid = exports.isValidUuid = function isValidUuid(value) {
11
+ if (typeof value !== 'string') {
12
+ return false;
13
+ }
14
+ var normalizedValue = value.toLowerCase();
15
+ if (!BASIC_UUID_REGEX.test(normalizedValue)) {
16
+ return false;
17
+ }
18
+ var version = normalizedValue[14];
19
+ if (version === '1' || version === '2') {
20
+ return true;
21
+ }
22
+ if (version === '3' || version === '4' || version === '5') {
23
+ var variant = normalizedValue[19];
24
+ return variant === '8' || variant === '9' || variant === 'a' || variant === 'b';
25
+ }
26
+ return false;
27
+ };
@@ -1,10 +1,10 @@
1
- import isValidId from 'uuid-validate';
2
1
  import { produce } from 'immer';
2
+ import { isValidUuid } from '../utils/isValidUuid';
3
3
  const sanitiseFileId = draft => {
4
4
  const {
5
5
  fileId
6
6
  } = draft.attributes.fileAttributes;
7
- draft.attributes.fileAttributes.fileId = fileId === 'external-image' || isValidId(fileId) ? fileId : 'INVALID_FILE_ID';
7
+ draft.attributes.fileAttributes.fileId = fileId === 'external-image' || isValidUuid(fileId) ? fileId : 'INVALID_FILE_ID';
8
8
  };
9
9
  const hasFileAttributesWithFileId = payload => 'attributes' in payload && !!payload.attributes && typeof payload.attributes === 'object' && 'fileAttributes' in payload.attributes && !!payload.attributes.fileAttributes && typeof payload.attributes.fileAttributes === 'object' && 'fileId' in payload.attributes.fileAttributes && typeof payload.attributes.fileAttributes.fileId === 'string';
10
10
  export const sanitiseAnalyticsPayload = payload => hasFileAttributesWithFileId(payload) ? produce(payload, sanitiseFileId) : payload;
@@ -1,3 +1,5 @@
1
1
  /** deprecated Use React Testing Library's waitFor like method instead */
2
2
  // eslint-disable-next-line @atlaskit/platform/no-set-immediate
3
- export const flushPromises = () => new Promise(resolve => setImmediate(resolve));
3
+ export const flushPromises = () =>
4
+ // eslint-disable-next-line @atlaskit/platform/no-set-immediate
5
+ new Promise(resolve => setImmediate(resolve));
@@ -0,0 +1,21 @@
1
+ const BASIC_UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
2
+
3
+ // Modified copy of `uuid-validate` package
4
+ export const isValidUuid = value => {
5
+ if (typeof value !== 'string') {
6
+ return false;
7
+ }
8
+ const normalizedValue = value.toLowerCase();
9
+ if (!BASIC_UUID_REGEX.test(normalizedValue)) {
10
+ return false;
11
+ }
12
+ const version = normalizedValue[14];
13
+ if (version === '1' || version === '2') {
14
+ return true;
15
+ }
16
+ if (version === '3' || version === '4' || version === '5') {
17
+ const variant = normalizedValue[19];
18
+ return variant === '8' || variant === '9' || variant === 'a' || variant === 'b';
19
+ }
20
+ return false;
21
+ };
@@ -1,9 +1,9 @@
1
1
  import _typeof from "@babel/runtime/helpers/typeof";
2
- import isValidId from 'uuid-validate';
3
2
  import { produce } from 'immer';
3
+ import { isValidUuid } from '../utils/isValidUuid';
4
4
  var sanitiseFileId = function sanitiseFileId(draft) {
5
5
  var fileId = draft.attributes.fileAttributes.fileId;
6
- draft.attributes.fileAttributes.fileId = fileId === 'external-image' || isValidId(fileId) ? fileId : 'INVALID_FILE_ID';
6
+ draft.attributes.fileAttributes.fileId = fileId === 'external-image' || isValidUuid(fileId) ? fileId : 'INVALID_FILE_ID';
7
7
  };
8
8
  var hasFileAttributesWithFileId = function hasFileAttributesWithFileId(payload) {
9
9
  return 'attributes' in payload && !!payload.attributes && _typeof(payload.attributes) === 'object' && 'fileAttributes' in payload.attributes && !!payload.attributes.fileAttributes && _typeof(payload.attributes.fileAttributes) === 'object' && 'fileId' in payload.attributes.fileAttributes && typeof payload.attributes.fileAttributes.fileId === 'string';
@@ -1,7 +1,10 @@
1
1
  /** deprecated Use React Testing Library's waitFor like method instead */
2
2
  // eslint-disable-next-line @atlaskit/platform/no-set-immediate
3
3
  export var flushPromises = function flushPromises() {
4
- return new Promise(function (resolve) {
5
- return setImmediate(resolve);
6
- });
4
+ return (
5
+ // eslint-disable-next-line @atlaskit/platform/no-set-immediate
6
+ new Promise(function (resolve) {
7
+ return setImmediate(resolve);
8
+ })
9
+ );
7
10
  };
@@ -0,0 +1,21 @@
1
+ var BASIC_UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
2
+
3
+ // Modified copy of `uuid-validate` package
4
+ export var isValidUuid = function isValidUuid(value) {
5
+ if (typeof value !== 'string') {
6
+ return false;
7
+ }
8
+ var normalizedValue = value.toLowerCase();
9
+ if (!BASIC_UUID_REGEX.test(normalizedValue)) {
10
+ return false;
11
+ }
12
+ var version = normalizedValue[14];
13
+ if (version === '1' || version === '2') {
14
+ return true;
15
+ }
16
+ if (version === '3' || version === '4' || version === '5') {
17
+ var variant = normalizedValue[19];
18
+ return variant === '8' || variant === '9' || variant === 'a' || variant === 'b';
19
+ }
20
+ return false;
21
+ };
@@ -1,6 +1,6 @@
1
1
  export declare const asMock: (fn: Function) => jest.Mock;
2
2
  export declare const asMockFunction: <T extends (...args: any[]) => any>(fn: T) => jest.MockedFunction<T>;
3
- export declare const asMockReturnValue: <T extends (...args: any[]) => any>(fn: T, returnValue: ReturnType<T>) => jest.Mock<any, any, any>;
3
+ export declare const asMockReturnValue: <T extends (...args: any[]) => any>(fn: T, returnValue: ReturnType<T>) => jest.Mock;
4
4
  export declare const asMockFunctionReturnValue: <T extends (...args: any[]) => any>(fn: T, returnValue: ReturnType<T>) => jest.MockedFunction<T>;
5
5
  export declare const asMockFunctionResolvedValue: <T extends (...args: any[]) => any>(fn: T, resolveValue: jest.ResolvedValue<ReturnType<T>>) => jest.MockedFunction<T>;
6
6
  export declare const expectToEqual: <T>(actual: T, expected: T) => void;
@@ -1,2 +1,2 @@
1
1
  export declare const nextTick: () => Promise<void>;
2
- export declare const sleep: (time?: number) => Promise<unknown>;
2
+ export declare const sleep: (time?: number) => Promise<void>;
@@ -0,0 +1 @@
1
+ export declare const isValidUuid: (value: unknown) => value is string;
@@ -1,6 +1,6 @@
1
1
  export declare const asMock: (fn: Function) => jest.Mock;
2
2
  export declare const asMockFunction: <T extends (...args: any[]) => any>(fn: T) => jest.MockedFunction<T>;
3
- export declare const asMockReturnValue: <T extends (...args: any[]) => any>(fn: T, returnValue: ReturnType<T>) => jest.Mock<any, any, any>;
3
+ export declare const asMockReturnValue: <T extends (...args: any[]) => any>(fn: T, returnValue: ReturnType<T>) => jest.Mock;
4
4
  export declare const asMockFunctionReturnValue: <T extends (...args: any[]) => any>(fn: T, returnValue: ReturnType<T>) => jest.MockedFunction<T>;
5
5
  export declare const asMockFunctionResolvedValue: <T extends (...args: any[]) => any>(fn: T, resolveValue: jest.ResolvedValue<ReturnType<T>>) => jest.MockedFunction<T>;
6
6
  export declare const expectToEqual: <T>(actual: T, expected: T) => void;
@@ -1,2 +1,2 @@
1
1
  export declare const nextTick: () => Promise<void>;
2
- export declare const sleep: (time?: number) => Promise<unknown>;
2
+ export declare const sleep: (time?: number) => Promise<void>;
@@ -0,0 +1 @@
1
+ export declare const isValidUuid: (value: unknown) => value is string;
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/flushPromises",
3
+ "main": "../dist/cjs/test-helpers/flushPromises.js",
4
+ "module": "../dist/esm/test-helpers/flushPromises.js",
5
+ "module:es2019": "../dist/es2019/test-helpers/flushPromises.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/test-helpers/flushPromises.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/test-helpers/flushPromises.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/getJest",
3
+ "main": "../dist/cjs/test-helpers/getJest.js",
4
+ "module": "../dist/esm/test-helpers/getJest.js",
5
+ "module:es2019": "../dist/es2019/test-helpers/getJest.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/test-helpers/getJest.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/test-helpers/getJest.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/helpers",
3
+ "main": "../dist/cjs/utils/helpers.js",
4
+ "module": "../dist/esm/utils/helpers.js",
5
+ "module:es2019": "../dist/es2019/utils/helpers.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/utils/helpers.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/utils/helpers.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/isMimeTypeSupportedByBrowser",
3
+ "main": "../dist/cjs/mediaTypeUtils/isMimeTypeSupportedByBrowser.js",
4
+ "module": "../dist/esm/mediaTypeUtils/isMimeTypeSupportedByBrowser.js",
5
+ "module:es2019": "../dist/es2019/mediaTypeUtils/isMimeTypeSupportedByBrowser.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/mediaTypeUtils/isMimeTypeSupportedByBrowser.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/mediaTypeUtils/isMimeTypeSupportedByBrowser.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/isMimeTypeSupportedByServer",
3
+ "main": "../dist/cjs/mediaTypeUtils/isMimeTypeSupportedByServer.js",
4
+ "module": "../dist/esm/mediaTypeUtils/isMimeTypeSupportedByServer.js",
5
+ "module:es2019": "../dist/es2019/mediaTypeUtils/isMimeTypeSupportedByServer.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/mediaTypeUtils/isMimeTypeSupportedByServer.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/mediaTypeUtils/isMimeTypeSupportedByServer.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/isValidUuid",
3
+ "main": "../dist/cjs/utils/isValidUuid.js",
4
+ "module": "../dist/esm/utils/isValidUuid.js",
5
+ "module:es2019": "../dist/es2019/utils/isValidUuid.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/utils/isValidUuid.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/utils/isValidUuid.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/jestHelpers",
3
+ "main": "../dist/cjs/test-helpers/jestHelpers.js",
4
+ "module": "../dist/esm/test-helpers/jestHelpers.js",
5
+ "module:es2019": "../dist/es2019/test-helpers/jestHelpers.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/test-helpers/jestHelpers.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/test-helpers/jestHelpers.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/media-use-only",
3
+ "main": "../dist/cjs/docs/media-use-only.js",
4
+ "module": "../dist/esm/docs/media-use-only.js",
5
+ "module:es2019": "../dist/es2019/docs/media-use-only.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/docs/media-use-only.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/docs/media-use-only.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/nextTick",
3
+ "main": "../dist/cjs/test-helpers/nextTick.js",
4
+ "module": "../dist/esm/test-helpers/nextTick.js",
5
+ "module:es2019": "../dist/es2019/test-helpers/nextTick.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/test-helpers/nextTick.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/test-helpers/nextTick.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-common",
3
- "version": "13.0.2",
3
+ "version": "13.2.0",
4
4
  "description": "Includes common utilities used by other media packages",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -32,11 +32,10 @@
32
32
  "@atlaskit/analytics-gas-types": "^5.1.0",
33
33
  "@atlaskit/analytics-namespaced-context": "^7.2.0",
34
34
  "@atlaskit/analytics-next": "^11.2.0",
35
- "@atlaskit/link": "^3.3.0",
35
+ "@atlaskit/link": "^3.4.0",
36
36
  "@atlaskit/section-message": "^8.12.0",
37
37
  "@babel/runtime": "^7.0.0",
38
- "immer": "11.1.4",
39
- "uuid-validate": "^0.0.3"
38
+ "immer": "11.1.4"
40
39
  },
41
40
  "peerDependencies": {
42
41
  "enzyme": ">=3.10.0",
@@ -49,7 +48,6 @@
49
48
  }
50
49
  },
51
50
  "devDependencies": {
52
- "@types/uuid-validate": "^0.0.2",
53
51
  "enzyme": "^3.10.0",
54
52
  "react": "^18.2.0",
55
53
  "react-dom": "^18.2.0"
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/rxjs-notice",
3
+ "main": "../dist/cjs/docs/rxjs-notice.js",
4
+ "module": "../dist/esm/docs/rxjs-notice.js",
5
+ "module:es2019": "../dist/es2019/docs/rxjs-notice.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/docs/rxjs-notice.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/docs/rxjs-notice.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/sanitisePayload",
3
+ "main": "../dist/cjs/analytics/sanitisePayload.js",
4
+ "module": "../dist/esm/analytics/sanitisePayload.js",
5
+ "module:es2019": "../dist/es2019/analytics/sanitisePayload.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/analytics/sanitisePayload.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/analytics/sanitisePayload.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/singleton-notice",
3
+ "main": "../dist/cjs/docs/singleton-notice.js",
4
+ "module": "../dist/esm/docs/singleton-notice.js",
5
+ "module:es2019": "../dist/es2019/docs/singleton-notice.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/docs/singleton-notice.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/docs/singleton-notice.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/smallImageURI",
3
+ "main": "../dist/cjs/test-helpers/dataURIs/smallImageURI.js",
4
+ "module": "../dist/esm/test-helpers/dataURIs/smallImageURI.js",
5
+ "module:es2019": "../dist/es2019/test-helpers/dataURIs/smallImageURI.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/test-helpers/dataURIs/smallImageURI.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/test-helpers/dataURIs/smallImageURI.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/smallTransparentImageURI",
3
+ "main": "../dist/cjs/test-helpers/dataURIs/smallTransparentImageURI.js",
4
+ "module": "../dist/esm/test-helpers/dataURIs/smallTransparentImageURI.js",
5
+ "module:es2019": "../dist/es2019/test-helpers/dataURIs/smallTransparentImageURI.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/test-helpers/dataURIs/smallTransparentImageURI.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/test-helpers/dataURIs/smallTransparentImageURI.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/tallImageURI",
3
+ "main": "../dist/cjs/test-helpers/dataURIs/tallImageURI.js",
4
+ "module": "../dist/esm/test-helpers/dataURIs/tallImageURI.js",
5
+ "module:es2019": "../dist/es2019/test-helpers/dataURIs/tallImageURI.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/test-helpers/dataURIs/tallImageURI.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/test-helpers/dataURIs/tallImageURI.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/timeoutPromise",
3
+ "main": "../dist/cjs/test-helpers/timeoutPromise.js",
4
+ "module": "../dist/esm/test-helpers/timeoutPromise.js",
5
+ "module:es2019": "../dist/es2019/test-helpers/timeoutPromise.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/test-helpers/timeoutPromise.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/test-helpers/timeoutPromise.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/types",
3
+ "main": "../dist/cjs/mediaFeatureFlags/types.js",
4
+ "module": "../dist/esm/mediaFeatureFlags/types.js",
5
+ "module:es2019": "../dist/es2019/mediaFeatureFlags/types.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/mediaFeatureFlags/types.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/mediaFeatureFlags/types.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/useStaticCallback",
3
+ "main": "../dist/cjs/hooks/useStaticCallback.js",
4
+ "module": "../dist/esm/hooks/useStaticCallback.js",
5
+ "module:es2019": "../dist/es2019/hooks/useStaticCallback.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/hooks/useStaticCallback.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/hooks/useStaticCallback.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/videoPreviewURI",
3
+ "main": "../dist/cjs/test-helpers/dataURIs/videoPreviewURI.js",
4
+ "module": "../dist/esm/test-helpers/dataURIs/videoPreviewURI.js",
5
+ "module:es2019": "../dist/es2019/test-helpers/dataURIs/videoPreviewURI.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/test-helpers/dataURIs/videoPreviewURI.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/test-helpers/dataURIs/videoPreviewURI.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/videoURI",
3
+ "main": "../dist/cjs/test-helpers/dataURIs/videoURI.js",
4
+ "module": "../dist/esm/test-helpers/dataURIs/videoURI.js",
5
+ "module:es2019": "../dist/es2019/test-helpers/dataURIs/videoURI.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/test-helpers/dataURIs/videoURI.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/test-helpers/dataURIs/videoURI.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/vr-test-small-image",
3
+ "main": "../dist/cjs/test-helpers/dataURIs/vr_test_small_image.js",
4
+ "module": "../dist/esm/test-helpers/dataURIs/vr_test_small_image.js",
5
+ "module:es2019": "../dist/es2019/test-helpers/dataURIs/vr_test_small_image.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/test-helpers/dataURIs/vr_test_small_image.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/test-helpers/dataURIs/vr_test_small_image.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/wideImageURI",
3
+ "main": "../dist/cjs/test-helpers/dataURIs/wideImageURI.js",
4
+ "module": "../dist/esm/test-helpers/dataURIs/wideImageURI.js",
5
+ "module:es2019": "../dist/es2019/test-helpers/dataURIs/wideImageURI.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/test-helpers/dataURIs/wideImageURI.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/test-helpers/dataURIs/wideImageURI.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/wideTransparentImageURI",
3
+ "main": "../dist/cjs/test-helpers/dataURIs/wideTransparentImageURI.js",
4
+ "module": "../dist/esm/test-helpers/dataURIs/wideTransparentImageURI.js",
5
+ "module:es2019": "../dist/es2019/test-helpers/dataURIs/wideTransparentImageURI.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/test-helpers/dataURIs/wideTransparentImageURI.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/test-helpers/dataURIs/wideTransparentImageURI.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@atlaskit/media-common/withMediaAnalyticsContext",
3
+ "main": "../dist/cjs/analytics/withMediaAnalyticsContext.js",
4
+ "module": "../dist/esm/analytics/withMediaAnalyticsContext.js",
5
+ "module:es2019": "../dist/es2019/analytics/withMediaAnalyticsContext.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/analytics/withMediaAnalyticsContext.d.ts",
8
+ "typesVersions": {
9
+ ">=4.5 <5.9": {
10
+ "*": [
11
+ "../dist/types-ts4.5/analytics/withMediaAnalyticsContext.d.ts"
12
+ ]
13
+ }
14
+ }
15
+ }