@atlaskit/media-test-helpers 40.0.6 → 40.0.7

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,11 @@
1
1
  # @atlaskit/media-test-helpers
2
2
 
3
+ ## 40.0.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 40.0.6
4
10
 
5
11
  ### Patch Changes
@@ -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
  };
@@ -6,6 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.Matrix = void 0;
8
8
  var _styled = _interopRequireDefault(require("@emotion/styled"));
9
+ /* eslint-disable @atlaskit/ui-styling-standard/use-compiled, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles */
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
+
9
12
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
13
 
11
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
@@ -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));
@@ -1,5 +1,9 @@
1
+ /* eslint-disable @atlaskit/ui-styling-standard/use-compiled, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles */
1
2
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
3
  import styled from '@emotion/styled';
4
+
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
+
3
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
4
8
  export const Matrix = styled.table({
5
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
@@ -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
  };
@@ -1,5 +1,9 @@
1
+ /* eslint-disable @atlaskit/ui-styling-standard/use-compiled, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles */
1
2
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
3
  import styled from '@emotion/styled';
4
+
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
+
3
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
4
8
  export var Matrix = styled.table({
5
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
@@ -1,5 +1,5 @@
1
1
  export declare const defaultCollectionName = "MediaServicesSample";
2
2
  export declare const onlyAnimatedGifsCollectionName = "only-animated-gifs";
3
- export declare const fileCollectionName = "MediaServicesSampleFiles";
3
+ export declare const fileCollectionName: "MediaServicesSampleFiles";
4
4
  export declare const defaultMediaPickerCollectionName = "mediapicker-test";
5
5
  export declare const collectionNames: 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,7 +1,7 @@
1
1
  import { MediaClient } from '@atlaskit/media-client';
2
2
  import { type MediaClientConfig } from '@atlaskit/media-core';
3
3
  import { type MediaEnv } from './mediaPickerAuthProvider';
4
- export declare const defaultBaseUrl = "https://media.staging.atl-paas.net";
4
+ export declare const defaultBaseUrl: "https://media.staging.atl-paas.net";
5
5
  export declare const defaultParams: {
6
6
  clientId: string;
7
7
  asapIssuer: string;
@@ -1,8 +1,9 @@
1
+ import { type MockStub } from './getJest';
1
2
  export declare function mockCanvas(width?: number, height?: number): {
2
3
  canvas: {
3
4
  width: number;
4
5
  height: number;
5
- toDataURL: jest.Mock<any, any, any> | import("./getJest").MockStub<unknown, unknown>;
6
+ toDataURL: jest.Mock<any, any, any> | MockStub<unknown, unknown>;
6
7
  getContext: unknown;
7
8
  };
8
9
  context: Partial<CanvasRenderingContext2D>;
@@ -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>;
@@ -1,4 +1,7 @@
1
- export declare const Matrix: import("@emotion/styled").StyledComponent<{
2
- theme?: import("@emotion/react").Theme;
1
+ import { type StyledComponent } from '@emotion/styled';
2
+ import type { Theme } from '@emotion/react';
3
+ import type { DetailedHTMLProps, TableHTMLAttributes } from 'react';
4
+ export declare const Matrix: StyledComponent<{
5
+ theme?: Theme;
3
6
  as?: React.ElementType;
4
- }, import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {}>;
7
+ }, DetailedHTMLProps<TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {}>;
@@ -1,5 +1,5 @@
1
1
  export declare const defaultCollectionName = "MediaServicesSample";
2
2
  export declare const onlyAnimatedGifsCollectionName = "only-animated-gifs";
3
- export declare const fileCollectionName = "MediaServicesSampleFiles";
3
+ export declare const fileCollectionName: "MediaServicesSampleFiles";
4
4
  export declare const defaultMediaPickerCollectionName = "mediapicker-test";
5
5
  export declare const collectionNames: 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,7 +1,7 @@
1
1
  import { MediaClient } from '@atlaskit/media-client';
2
2
  import { type MediaClientConfig } from '@atlaskit/media-core';
3
3
  import { type MediaEnv } from './mediaPickerAuthProvider';
4
- export declare const defaultBaseUrl = "https://media.staging.atl-paas.net";
4
+ export declare const defaultBaseUrl: "https://media.staging.atl-paas.net";
5
5
  export declare const defaultParams: {
6
6
  clientId: string;
7
7
  asapIssuer: string;
@@ -1,8 +1,9 @@
1
+ import { type MockStub } from './getJest';
1
2
  export declare function mockCanvas(width?: number, height?: number): {
2
3
  canvas: {
3
4
  width: number;
4
5
  height: number;
5
- toDataURL: jest.Mock<any, any, any> | import("./getJest").MockStub<unknown, unknown>;
6
+ toDataURL: jest.Mock<any, any, any> | MockStub<unknown, unknown>;
6
7
  getContext: unknown;
7
8
  };
8
9
  context: Partial<CanvasRenderingContext2D>;
@@ -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>;
@@ -1,4 +1,7 @@
1
- export declare const Matrix: import("@emotion/styled").StyledComponent<{
2
- theme?: import("@emotion/react").Theme;
1
+ import { type StyledComponent } from '@emotion/styled';
2
+ import type { Theme } from '@emotion/react';
3
+ import type { DetailedHTMLProps, TableHTMLAttributes } from 'react';
4
+ export declare const Matrix: StyledComponent<{
5
+ theme?: Theme;
3
6
  as?: React.ElementType;
4
- }, import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {}>;
7
+ }, DetailedHTMLProps<TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, {}>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-test-helpers",
3
- "version": "40.0.6",
3
+ "version": "40.0.7",
4
4
  "description": "Collection of test helpers used in media component stories and specs",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -25,7 +25,7 @@
25
25
  "team": "Media Exif"
26
26
  },
27
27
  "dependencies": {
28
- "@atlaskit/button": "^23.10.0",
28
+ "@atlaskit/button": "^23.11.0",
29
29
  "@atlaskit/checkbox": "^17.3.0",
30
30
  "@atlaskit/form": "^15.5.0",
31
31
  "@atlaskit/icon": "^34.0.0",
@@ -38,8 +38,8 @@
38
38
  "@atlaskit/popup": "^4.16.0",
39
39
  "@atlaskit/primitives": "^18.1.0",
40
40
  "@atlaskit/tabs": "^19.0.0",
41
- "@atlaskit/textfield": "^8.2.0",
42
- "@atlaskit/tokens": "^11.4.0",
41
+ "@atlaskit/textfield": "^8.3.0",
42
+ "@atlaskit/tokens": "^12.0.0",
43
43
  "@atlaskit/tooltip": "^21.1.0",
44
44
  "@atlaskit/ufo": "^0.4.0",
45
45
  "@babel/runtime": "^7.0.0",