@atlaskit/media-test-helpers 33.0.30 → 33.0.31

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
+ ## 33.0.31
4
+
5
+ ### Patch Changes
6
+
7
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
8
+
3
9
  ## 33.0.30
4
10
 
5
11
  ### Patch Changes
@@ -5,7 +5,7 @@
5
5
  "module:es2019": "../dist/es2019/collectionNames.js",
6
6
  "types": "../dist/types/collectionNames.d.ts",
7
7
  "typesVersions": {
8
- ">=4.5 <4.9": {
8
+ ">=4.5 <5.4": {
9
9
  "*": [
10
10
  "../dist/types-ts4.5/collectionNames.d.ts"
11
11
  ]
@@ -54,15 +54,15 @@ export declare const getMockClipboardEvent: () => {
54
54
  preventDefault(): void;
55
55
  stopImmediatePropagation(): void;
56
56
  stopPropagation(): void;
57
- readonly AT_TARGET: number;
58
- readonly BUBBLING_PHASE: number;
59
- readonly CAPTURING_PHASE: number;
60
- readonly NONE: number;
57
+ readonly NONE: 0;
58
+ readonly CAPTURING_PHASE: 1;
59
+ readonly AT_TARGET: 2;
60
+ readonly BUBBLING_PHASE: 3;
61
61
  };
62
- readonly AT_TARGET: number;
63
- readonly BUBBLING_PHASE: number;
64
- readonly CAPTURING_PHASE: number;
65
- readonly NONE: number;
62
+ readonly NONE: 0;
63
+ readonly CAPTURING_PHASE: 1;
64
+ readonly AT_TARGET: 2;
65
+ readonly BUBBLING_PHASE: 3;
66
66
  };
67
67
  export declare const MockDragEvent: () => {
68
68
  new (event: string, files?: File[]): {
@@ -75,6 +75,8 @@ export declare const MockDragEvent: () => {
75
75
  readonly clientX: number;
76
76
  readonly clientY: number;
77
77
  readonly ctrlKey: boolean;
78
+ readonly layerX: number;
79
+ readonly layerY: number;
78
80
  readonly metaKey: boolean;
79
81
  readonly movementX: number;
80
82
  readonly movementY: number;
@@ -112,9 +114,9 @@ export declare const MockDragEvent: () => {
112
114
  preventDefault(): void;
113
115
  stopImmediatePropagation(): void;
114
116
  stopPropagation(): void;
115
- readonly AT_TARGET: number;
116
- readonly BUBBLING_PHASE: number;
117
- readonly CAPTURING_PHASE: number;
118
- readonly NONE: number;
117
+ readonly NONE: 0;
118
+ readonly CAPTURING_PHASE: 1;
119
+ readonly AT_TARGET: 2;
120
+ readonly BUBBLING_PHASE: 3;
119
121
  };
120
122
  };
@@ -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: string;
3
+ export declare const fileCollectionName = "MediaServicesSampleFiles";
4
4
  export declare const defaultMediaPickerCollectionName = "mediapicker-test";
5
5
  export declare const collectionNames: string[];
@@ -2,11 +2,11 @@ import React from 'react';
2
2
  import { WrappedComponentProps } from 'react-intl-next';
3
3
  import { ReactWrapper, ShallowWrapper } from 'enzyme';
4
4
  import { ReactElement } from 'react';
5
- export declare const mountWithIntlContext: <P, S, C extends React.Component<P, S, any> = React.Component<P, S, any>>(node: React.ReactElement<P & WrappedComponentProps<"intl">, string | React.JSXElementConstructor<any>>, { context, childContextTypes, ...additionalOptions }?: {
5
+ export declare const mountWithIntlContext: <P, S, C extends React.Component<P, S, any> = React.Component<P, S, any>>(node: ReactElement<P & WrappedComponentProps>, { context, childContextTypes, ...additionalOptions }?: {
6
6
  context?: {} | undefined;
7
7
  childContextTypes?: {} | undefined;
8
- }) => ReactWrapper<P & WrappedComponentProps<"intl">, S, C>;
9
- export declare const shallowWithIntlContext: <P, S, C extends React.Component<P, S, any> = React.Component<P, S, any>>(node: React.ReactElement<P & WrappedComponentProps<"intl">, string | React.JSXElementConstructor<any>>, { context, ...additionalOptions }?: {
8
+ }) => ReactWrapper<P & WrappedComponentProps, S, C>;
9
+ export declare const shallowWithIntlContext: <P, S, C extends React.Component<P, S, any> = React.Component<P, S, any>>(node: ReactElement<P & WrappedComponentProps>, { context, ...additionalOptions }?: {
10
10
  context?: {} | undefined;
11
- }) => ShallowWrapper<P & WrappedComponentProps<"intl">, S, C>;
11
+ }) => ShallowWrapper<P & WrappedComponentProps, S, C>;
12
12
  export declare const mountWithIntlWrapper: (node: React.ReactElement) => ReactWrapper;
@@ -54,15 +54,15 @@ export declare const getMockClipboardEvent: () => {
54
54
  preventDefault(): void;
55
55
  stopImmediatePropagation(): void;
56
56
  stopPropagation(): void;
57
- readonly AT_TARGET: number;
58
- readonly BUBBLING_PHASE: number;
59
- readonly CAPTURING_PHASE: number;
60
- readonly NONE: number;
57
+ readonly NONE: 0;
58
+ readonly CAPTURING_PHASE: 1;
59
+ readonly AT_TARGET: 2;
60
+ readonly BUBBLING_PHASE: 3;
61
61
  };
62
- readonly AT_TARGET: number;
63
- readonly BUBBLING_PHASE: number;
64
- readonly CAPTURING_PHASE: number;
65
- readonly NONE: number;
62
+ readonly NONE: 0;
63
+ readonly CAPTURING_PHASE: 1;
64
+ readonly AT_TARGET: 2;
65
+ readonly BUBBLING_PHASE: 3;
66
66
  };
67
67
  export declare const MockDragEvent: () => {
68
68
  new (event: string, files?: File[]): {
@@ -75,6 +75,8 @@ export declare const MockDragEvent: () => {
75
75
  readonly clientX: number;
76
76
  readonly clientY: number;
77
77
  readonly ctrlKey: boolean;
78
+ readonly layerX: number;
79
+ readonly layerY: number;
78
80
  readonly metaKey: boolean;
79
81
  readonly movementX: number;
80
82
  readonly movementY: number;
@@ -112,9 +114,9 @@ export declare const MockDragEvent: () => {
112
114
  preventDefault(): void;
113
115
  stopImmediatePropagation(): void;
114
116
  stopPropagation(): void;
115
- readonly AT_TARGET: number;
116
- readonly BUBBLING_PHASE: number;
117
- readonly CAPTURING_PHASE: number;
118
- readonly NONE: number;
117
+ readonly NONE: 0;
118
+ readonly CAPTURING_PHASE: 1;
119
+ readonly AT_TARGET: 2;
120
+ readonly BUBBLING_PHASE: 3;
119
121
  };
120
122
  };
@@ -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: string;
3
+ export declare const fileCollectionName = "MediaServicesSampleFiles";
4
4
  export declare const defaultMediaPickerCollectionName = "mediapicker-test";
5
5
  export declare const collectionNames: string[];
@@ -2,11 +2,11 @@ import React from 'react';
2
2
  import { WrappedComponentProps } from 'react-intl-next';
3
3
  import { ReactWrapper, ShallowWrapper } from 'enzyme';
4
4
  import { ReactElement } from 'react';
5
- export declare const mountWithIntlContext: <P, S, C extends React.Component<P, S, any> = React.Component<P, S, any>>(node: React.ReactElement<P & WrappedComponentProps<"intl">, string | React.JSXElementConstructor<any>>, { context, childContextTypes, ...additionalOptions }?: {
5
+ export declare const mountWithIntlContext: <P, S, C extends React.Component<P, S, any> = React.Component<P, S, any>>(node: ReactElement<P & WrappedComponentProps>, { context, childContextTypes, ...additionalOptions }?: {
6
6
  context?: {} | undefined;
7
7
  childContextTypes?: {} | undefined;
8
- }) => ReactWrapper<P & WrappedComponentProps<"intl">, S, C>;
9
- export declare const shallowWithIntlContext: <P, S, C extends React.Component<P, S, any> = React.Component<P, S, any>>(node: React.ReactElement<P & WrappedComponentProps<"intl">, string | React.JSXElementConstructor<any>>, { context, ...additionalOptions }?: {
8
+ }) => ReactWrapper<P & WrappedComponentProps, S, C>;
9
+ export declare const shallowWithIntlContext: <P, S, C extends React.Component<P, S, any> = React.Component<P, S, any>>(node: ReactElement<P & WrappedComponentProps>, { context, ...additionalOptions }?: {
10
10
  context?: {} | undefined;
11
- }) => ShallowWrapper<P & WrappedComponentProps<"intl">, S, C>;
11
+ }) => ShallowWrapper<P & WrappedComponentProps, S, C>;
12
12
  export declare const mountWithIntlWrapper: (node: React.ReactElement) => ReactWrapper;
@@ -5,7 +5,7 @@
5
5
  "module:es2019": "../dist/es2019/example-mediaFeatureFlags.js",
6
6
  "types": "../dist/types/example-mediaFeatureFlags.d.ts",
7
7
  "typesVersions": {
8
- ">=4.5 <4.9": {
8
+ ">=4.5 <5.4": {
9
9
  "*": [
10
10
  "../dist/types-ts4.5/example-mediaFeatureFlags.d.ts"
11
11
  ]
@@ -5,7 +5,7 @@
5
5
  "module:es2019": "../dist/es2019/exampleMediaItems.js",
6
6
  "types": "../dist/types/exampleMediaItems.d.ts",
7
7
  "typesVersions": {
8
- ">=4.5 <4.9": {
8
+ ">=4.5 <5.4": {
9
9
  "*": [
10
10
  "../dist/types-ts4.5/exampleMediaItems.d.ts"
11
11
  ]
@@ -5,7 +5,7 @@
5
5
  "module:es2019": "../dist/es2019/fakeMediaClient.js",
6
6
  "types": "../dist/types/fakeMediaClient.d.ts",
7
7
  "typesVersions": {
8
- ">=4.5 <4.9": {
8
+ ">=4.5 <5.4": {
9
9
  "*": [
10
10
  "../dist/types-ts4.5/fakeMediaClient.d.ts"
11
11
  ]
@@ -5,7 +5,7 @@
5
5
  "module:es2019": "../dist/es2019/getAuthFromContextProvider.js",
6
6
  "types": "../dist/types/getAuthFromContextProvider.d.ts",
7
7
  "typesVersions": {
8
- ">=4.5 <4.9": {
8
+ ">=4.5 <5.4": {
9
9
  "*": [
10
10
  "../dist/types-ts4.5/getAuthFromContextProvider.d.ts"
11
11
  ]
@@ -5,7 +5,7 @@
5
5
  "module:es2019": "../dist/es2019/globalEventEmitterListeners.js",
6
6
  "types": "../dist/types/globalEventEmitterListeners.d.ts",
7
7
  "typesVersions": {
8
- ">=4.5 <4.9": {
8
+ ">=4.5 <5.4": {
9
9
  "*": [
10
10
  "../dist/types-ts4.5/globalEventEmitterListeners.d.ts"
11
11
  ]
@@ -5,7 +5,7 @@
5
5
  "module:es2019": "../dist/es2019/images.js",
6
6
  "types": "../dist/types/images.d.ts",
7
7
  "typesVersions": {
8
- ">=4.5 <4.9": {
8
+ ">=4.5 <5.4": {
9
9
  "*": [
10
10
  "../dist/types-ts4.5/images.d.ts"
11
11
  ]
@@ -5,7 +5,7 @@
5
5
  "module:es2019": "../dist/es2019/jestHelpers.js",
6
6
  "types": "../dist/types/jestHelpers.d.ts",
7
7
  "typesVersions": {
8
- ">=4.5 <4.9": {
8
+ ">=4.5 <5.4": {
9
9
  "*": [
10
10
  "../dist/types-ts4.5/jestHelpers.d.ts"
11
11
  ]
@@ -5,7 +5,7 @@
5
5
  "module:es2019": "../dist/es2019/mocks/media-mock.js",
6
6
  "types": "../dist/types/mocks/media-mock.d.ts",
7
7
  "typesVersions": {
8
- ">=4.5 <4.9": {
8
+ ">=4.5 <5.4": {
9
9
  "*": [
10
10
  "../dist/types-ts4.5/mocks/media-mock.d.ts"
11
11
  ]
@@ -5,7 +5,7 @@
5
5
  "module:es2019": "../dist/es2019/mediaPickerAuthProvider.js",
6
6
  "types": "../dist/types/mediaPickerAuthProvider.d.ts",
7
7
  "typesVersions": {
8
- ">=4.5 <4.9": {
8
+ ">=4.5 <5.4": {
9
9
  "*": [
10
10
  "../dist/types-ts4.5/mediaPickerAuthProvider.d.ts"
11
11
  ]
@@ -5,7 +5,7 @@
5
5
  "module:es2019": "../dist/es2019/utils/mockData.js",
6
6
  "types": "../dist/types/utils/mockData.d.ts",
7
7
  "typesVersions": {
8
- ">=4.5 <4.9": {
8
+ ">=4.5 <5.4": {
9
9
  "*": [
10
10
  "../dist/types-ts4.5/utils/mockData.d.ts"
11
11
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/media-test-helpers",
3
- "version": "33.0.30",
3
+ "version": "33.0.31",
4
4
  "description": "Collection of test helpers used in media component stories and specs",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -32,12 +32,12 @@
32
32
  "@atlaskit/icon": "^22.1.0",
33
33
  "@atlaskit/locale": "^2.6.0",
34
34
  "@atlaskit/media-client": "^26.2.0",
35
- "@atlaskit/media-common": "^11.0.0",
35
+ "@atlaskit/media-common": "^11.1.0",
36
36
  "@atlaskit/media-ui": "^25.4.0",
37
37
  "@atlaskit/popup": "^1.13.0",
38
38
  "@atlaskit/tabs": "^14.0.0",
39
39
  "@atlaskit/textfield": "^6.1.0",
40
- "@atlaskit/tokens": "^1.41.0",
40
+ "@atlaskit/tokens": "^1.42.0",
41
41
  "@atlaskit/tooltip": "^18.1.0",
42
42
  "@atlaskit/ufo": "^0.2.0",
43
43
  "@babel/runtime": "^7.0.0",
@@ -62,7 +62,7 @@
62
62
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
63
63
  "@types/exenv": "^1.2.0",
64
64
  "react-dom": "^16.8.0",
65
- "typescript": "~4.9.5"
65
+ "typescript": "~5.4.2"
66
66
  },
67
67
  "af:exports": {
68
68
  "./renderWithIntl": "./src/renderWithIntl.tsx",
@@ -89,4 +89,4 @@
89
89
  ]
90
90
  }
91
91
  }
92
- }
92
+ }
@@ -5,7 +5,7 @@
5
5
  "module:es2019": "../dist/es2019/renderWithIntl.js",
6
6
  "types": "../dist/types/renderWithIntl.d.ts",
7
7
  "typesVersions": {
8
- ">=4.5 <4.9": {
8
+ ">=4.5 <5.4": {
9
9
  "*": [
10
10
  "../dist/types-ts4.5/renderWithIntl.d.ts"
11
11
  ]
@@ -5,7 +5,7 @@
5
5
  "module:es2019": "../dist/es2019/smart-card-state.js",
6
6
  "types": "../dist/types/smart-card-state.d.ts",
7
7
  "typesVersions": {
8
- ">=4.5 <4.9": {
8
+ ">=4.5 <5.4": {
9
9
  "*": [
10
10
  "../dist/types-ts4.5/smart-card-state.d.ts"
11
11
  ]