@atlaskit/media-common 12.3.0 → 12.3.1
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 +7 -0
- package/analytics/package.json +1 -1
- package/dist/types/analytics/withMediaAnalyticsContext.d.ts +2 -2
- package/dist/types/hooks/useStaticCallback.d.ts +1 -1
- package/dist/types/test-helpers/getJest.d.ts +0 -1
- package/dist/types/test-helpers/jestHelpers.d.ts +0 -1
- package/dist/types-ts4.5/analytics/withMediaAnalyticsContext.d.ts +2 -2
- package/dist/types-ts4.5/hooks/useStaticCallback.d.ts +1 -1
- package/dist/types-ts4.5/test-helpers/getJest.d.ts +0 -1
- package/dist/types-ts4.5/test-helpers/jestHelpers.d.ts +0 -1
- package/downloadUrl/package.json +1 -1
- package/mediaFeatureFlags/package.json +1 -1
- package/mediaTypeUtils/package.json +1 -1
- package/package.json +5 -16
- package/test-helpers/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/media-common
|
|
2
2
|
|
|
3
|
+
## 12.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`df75f0a17ca69`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/df75f0a17ca69) -
|
|
8
|
+
Integrate web-search-ai endpoint to web search toggle
|
|
9
|
+
|
|
3
10
|
## 12.3.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
package/analytics/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type ContextPublicAttributes } from './types';
|
|
2
|
+
import { type ContextPublicAttributes, type ContextStaticProps } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* HOC for attaching MediaAnalyticsContext to a top-level React Component.
|
|
5
5
|
*
|
|
@@ -12,4 +12,4 @@ import { type ContextPublicAttributes } from './types';
|
|
|
12
12
|
*
|
|
13
13
|
* @see packages/analytics/analytics-next/src/hocs/withAnalyticsContext.tsx
|
|
14
14
|
*/
|
|
15
|
-
export declare const withMediaAnalyticsContext: (contextPublicAttributes: ContextPublicAttributes) => <Props extends
|
|
15
|
+
export declare const withMediaAnalyticsContext: (contextPublicAttributes: ContextPublicAttributes) => <Props extends ContextStaticProps, Component extends React.ComponentType<Props>>(WrappedComponent: React.JSXElementConstructor<Props> & Component) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Props>> & React.RefAttributes<any>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStaticCallback: <Params extends any[], Result>(callback: (...args: Params) => Result) => (...args: Params) => Result;
|
|
1
|
+
export declare const useStaticCallback: <Params extends any[], Result>(callback: (...args: Params) => Result) => ((...args: Params) => Result);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="jest" />
|
|
2
1
|
export declare const asMock: (fn: Function) => jest.Mock;
|
|
3
2
|
export declare const asMockFunction: <T extends (...args: any[]) => any>(fn: T) => jest.MockedFunction<T>;
|
|
4
3
|
export declare const asMockReturnValue: <T extends (...args: any[]) => any>(fn: T, returnValue: ReturnType<T>) => jest.Mock<any, any, any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type ContextPublicAttributes } from './types';
|
|
2
|
+
import { type ContextPublicAttributes, type ContextStaticProps } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* HOC for attaching MediaAnalyticsContext to a top-level React Component.
|
|
5
5
|
*
|
|
@@ -12,4 +12,4 @@ import { type ContextPublicAttributes } from './types';
|
|
|
12
12
|
*
|
|
13
13
|
* @see packages/analytics/analytics-next/src/hocs/withAnalyticsContext.tsx
|
|
14
14
|
*/
|
|
15
|
-
export declare const withMediaAnalyticsContext: (contextPublicAttributes: ContextPublicAttributes) => <Props extends
|
|
15
|
+
export declare const withMediaAnalyticsContext: (contextPublicAttributes: ContextPublicAttributes) => <Props extends ContextStaticProps, Component extends React.ComponentType<Props>>(WrappedComponent: React.JSXElementConstructor<Props> & Component) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Props>> & React.RefAttributes<any>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useStaticCallback: <Params extends any[], Result>(callback: (...args: Params) => Result) => (...args: Params) => Result;
|
|
1
|
+
export declare const useStaticCallback: <Params extends any[], Result>(callback: (...args: Params) => Result) => ((...args: Params) => Result);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="jest" />
|
|
2
1
|
export declare const asMock: (fn: Function) => jest.Mock;
|
|
3
2
|
export declare const asMockFunction: <T extends (...args: any[]) => any>(fn: T) => jest.MockedFunction<T>;
|
|
4
3
|
export declare const asMockReturnValue: <T extends (...args: any[]) => any>(fn: T, returnValue: ReturnType<T>) => jest.Mock<any, any, any>;
|
package/downloadUrl/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-common",
|
|
3
|
-
"version": "12.3.
|
|
3
|
+
"version": "12.3.1",
|
|
4
4
|
"description": "Includes common utilities used by other media packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -22,29 +22,19 @@
|
|
|
22
22
|
},
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"atlaskit:src": "src/index.ts",
|
|
25
|
-
"af:exports": {
|
|
26
|
-
"./downloadUrl": "./src/downloadUrl.ts",
|
|
27
|
-
"./mediaFeatureFlags": "./src/mediaFeatureFlags/index.ts",
|
|
28
|
-
"./analytics": "./src/analytics/index.ts",
|
|
29
|
-
"./docs": "./src/docs/index.ts",
|
|
30
|
-
"./mediaTypeUtils": "./src/mediaTypeUtils/index.ts",
|
|
31
|
-
"./test-helpers": "./src/test-helpers/index.ts",
|
|
32
|
-
".": "./src/index.ts"
|
|
33
|
-
},
|
|
34
25
|
"atlassian": {
|
|
35
26
|
"team": "Media Exif",
|
|
36
27
|
"website": {
|
|
37
28
|
"name": "Media Common"
|
|
38
|
-
}
|
|
39
|
-
"runReact18": true
|
|
29
|
+
}
|
|
40
30
|
},
|
|
41
31
|
"dependencies": {
|
|
42
32
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
43
|
-
"@atlaskit/analytics-namespaced-context": "^7.
|
|
33
|
+
"@atlaskit/analytics-namespaced-context": "^7.1.0",
|
|
44
34
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
45
35
|
"@atlaskit/link": "^3.2.0",
|
|
46
36
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
|
-
"@atlaskit/section-message": "^8.
|
|
37
|
+
"@atlaskit/section-message": "^8.7.0",
|
|
48
38
|
"@babel/runtime": "^7.0.0",
|
|
49
39
|
"immer": "^9.0.12",
|
|
50
40
|
"uuid-validate": "^0.0.3"
|
|
@@ -63,8 +53,7 @@
|
|
|
63
53
|
"@types/uuid-validate": "^0.0.2",
|
|
64
54
|
"enzyme": "^3.10.0",
|
|
65
55
|
"react": "^18.2.0",
|
|
66
|
-
"react-dom": "^18.2.0"
|
|
67
|
-
"typescript": "~5.4.2"
|
|
56
|
+
"react-dom": "^18.2.0"
|
|
68
57
|
},
|
|
69
58
|
"platform-feature-flags": {
|
|
70
59
|
"dst-a11y__replace-anchor-with-link__media-exif": {
|