@atlaskit/editor-plugin-media 2.3.22 → 2.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 +13 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/nodeviews/lazy-media-group.d.ts +1 -2
- package/dist/types/nodeviews/lazy-media.d.ts +1 -2
- package/dist/types/nodeviews/mediaGroup.d.ts +1 -1
- package/dist/types/nodeviews/mediaNodeView/index.d.ts +2 -2
- package/dist/types/types/index.d.ts +7 -1
- package/dist/types-ts4.5/index.d.ts +1 -0
- package/dist/types-ts4.5/nodeviews/lazy-media-group.d.ts +1 -2
- package/dist/types-ts4.5/nodeviews/lazy-media.d.ts +1 -2
- package/dist/types-ts4.5/nodeviews/mediaGroup.d.ts +1 -1
- package/dist/types-ts4.5/nodeviews/mediaNodeView/index.d.ts +2 -2
- package/dist/types-ts4.5/types/index.d.ts +7 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 2.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#139139](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/139139)
|
|
8
|
+
[`7f6b665d778dd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7f6b665d778dd) -
|
|
9
|
+
[https://product-fabric.atlassian.net/browse/ED-27499](ED-27499) - the new
|
|
10
|
+
`@atlassian/confluence-presets` package with Confluence `full-page` preset is created
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 2.3.22
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,5 +3,4 @@ import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
|
3
3
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { MediaNextEditorPluginType } from '../mediaPluginType';
|
|
6
|
-
|
|
7
|
-
export declare const lazyMediaGroupView: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, options: MediaOptions | undefined, api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined) => import("@atlaskit/editor-common/lazy-node-view").NodeViewConstructor;
|
|
6
|
+
export declare const lazyMediaGroupView: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, options: import("../types").MediaPluginOptions | undefined, api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined) => import("@atlaskit/editor-common/lazy-node-view").NodeViewConstructor;
|
|
@@ -4,5 +4,4 @@ import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
|
4
4
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
5
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
6
6
|
import type { MediaNextEditorPluginType } from '../mediaPluginType';
|
|
7
|
-
|
|
8
|
-
export declare const lazyMediaView: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, options: MediaOptions | undefined, api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined) => NodeViewConstructor;
|
|
7
|
+
export declare const lazyMediaView: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, options: import("../types").MediaPluginOptions | undefined, api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined) => NodeViewConstructor;
|
|
@@ -27,4 +27,4 @@ declare const IntlMediaGroup: React.FC<import("react-intl-next").WithIntlProps<M
|
|
|
27
27
|
WrappedComponent: React.ComponentType<MediaGroupProps>;
|
|
28
28
|
};
|
|
29
29
|
export default IntlMediaGroup;
|
|
30
|
-
export declare const ReactMediaGroupNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, mediaOptions:
|
|
30
|
+
export declare const ReactMediaGroupNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, mediaOptions: import("../types").MediaPluginOptions | undefined, pluginInjectionApi: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined) => (node: PMNode, view: EditorView, getPos: getPosHandler) => NodeView;
|
|
@@ -8,7 +8,7 @@ import type { ExtractInjectionAPI, EditorContainerWidth as WidthPluginState } fr
|
|
|
8
8
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
9
9
|
import type { Decoration, EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
10
|
import type { MediaNextEditorPluginType } from '../../mediaPluginType';
|
|
11
|
-
import type { getPosHandler
|
|
11
|
+
import type { getPosHandler } from '../../types';
|
|
12
12
|
import type { MediaNodeViewProps } from '../types';
|
|
13
13
|
interface MediaNodeWithPluginStateComponentProps {
|
|
14
14
|
width?: WidthPluginState;
|
|
@@ -29,5 +29,5 @@ declare class MediaNodeView extends SelectionBasedNodeView<MediaNodeViewProps> {
|
|
|
29
29
|
renderMediaNodeWithProviders: ({ contextIdentifierProvider }: Providers) => React.JSX.Element;
|
|
30
30
|
render(): React.JSX.Element;
|
|
31
31
|
}
|
|
32
|
-
export declare const ReactMediaNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, mediaOptions:
|
|
32
|
+
export declare const ReactMediaNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, mediaOptions: import("../../types").MediaPluginOptions | undefined, pluginInjectionApi: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined) => (node: PMNode, view: EditorView, getPos: getPosHandler) => MediaNodeView;
|
|
33
33
|
export {};
|
|
@@ -15,7 +15,7 @@ interface PlaceholderTextOptions {
|
|
|
15
15
|
export type MediaStateStatus = 'unknown' | 'ready' | 'cancelled' | 'preview' | 'error' | 'mobile-upload-end';
|
|
16
16
|
export type MediaSingleWithType = 'pixel' | 'percentage';
|
|
17
17
|
export type MediaCopyScope = 'editor' | 'context';
|
|
18
|
-
export interface
|
|
18
|
+
export interface MediaPluginOptions {
|
|
19
19
|
provider?: Providers['mediaProvider'];
|
|
20
20
|
/**
|
|
21
21
|
* @experimental
|
|
@@ -56,6 +56,12 @@ export interface MediaOptions {
|
|
|
56
56
|
forceHandlePositioning?: HandlePositioning;
|
|
57
57
|
mediaShallowCopyScope?: MediaCopyScope;
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* @private
|
|
61
|
+
* @deprecated Use {@link MediaPluginOptions} instead.
|
|
62
|
+
* @see https://product-fabric.atlassian.net/browse/ED-27496
|
|
63
|
+
*/
|
|
64
|
+
export type MediaOptions = MediaPluginOptions;
|
|
59
65
|
export interface MediaSingleOptions {
|
|
60
66
|
disableLayout?: boolean;
|
|
61
67
|
}
|
|
@@ -3,5 +3,4 @@ import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
|
3
3
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { MediaNextEditorPluginType } from '../mediaPluginType';
|
|
6
|
-
|
|
7
|
-
export declare const lazyMediaGroupView: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, options: MediaOptions | undefined, api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined) => import("@atlaskit/editor-common/lazy-node-view").NodeViewConstructor;
|
|
6
|
+
export declare const lazyMediaGroupView: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, options: import("../types").MediaPluginOptions | undefined, api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined) => import("@atlaskit/editor-common/lazy-node-view").NodeViewConstructor;
|
|
@@ -4,5 +4,4 @@ import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
|
4
4
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
5
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
6
6
|
import type { MediaNextEditorPluginType } from '../mediaPluginType';
|
|
7
|
-
|
|
8
|
-
export declare const lazyMediaView: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, options: MediaOptions | undefined, api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined) => NodeViewConstructor;
|
|
7
|
+
export declare const lazyMediaView: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, options: import("../types").MediaPluginOptions | undefined, api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined) => NodeViewConstructor;
|
|
@@ -27,4 +27,4 @@ declare const IntlMediaGroup: React.FC<import("react-intl-next").WithIntlProps<M
|
|
|
27
27
|
WrappedComponent: React.ComponentType<MediaGroupProps>;
|
|
28
28
|
};
|
|
29
29
|
export default IntlMediaGroup;
|
|
30
|
-
export declare const ReactMediaGroupNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, mediaOptions:
|
|
30
|
+
export declare const ReactMediaGroupNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, mediaOptions: import("../types").MediaPluginOptions | undefined, pluginInjectionApi: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined) => (node: PMNode, view: EditorView, getPos: getPosHandler) => NodeView;
|
|
@@ -8,7 +8,7 @@ import type { ExtractInjectionAPI, EditorContainerWidth as WidthPluginState } fr
|
|
|
8
8
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
9
9
|
import type { Decoration, EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
10
|
import type { MediaNextEditorPluginType } from '../../mediaPluginType';
|
|
11
|
-
import type { getPosHandler
|
|
11
|
+
import type { getPosHandler } from '../../types';
|
|
12
12
|
import type { MediaNodeViewProps } from '../types';
|
|
13
13
|
interface MediaNodeWithPluginStateComponentProps {
|
|
14
14
|
width?: WidthPluginState;
|
|
@@ -29,5 +29,5 @@ declare class MediaNodeView extends SelectionBasedNodeView<MediaNodeViewProps> {
|
|
|
29
29
|
renderMediaNodeWithProviders: ({ contextIdentifierProvider }: Providers) => React.JSX.Element;
|
|
30
30
|
render(): React.JSX.Element;
|
|
31
31
|
}
|
|
32
|
-
export declare const ReactMediaNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, mediaOptions:
|
|
32
|
+
export declare const ReactMediaNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, mediaOptions: import("../../types").MediaPluginOptions | undefined, pluginInjectionApi: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined) => (node: PMNode, view: EditorView, getPos: getPosHandler) => MediaNodeView;
|
|
33
33
|
export {};
|
|
@@ -15,7 +15,7 @@ interface PlaceholderTextOptions {
|
|
|
15
15
|
export type MediaStateStatus = 'unknown' | 'ready' | 'cancelled' | 'preview' | 'error' | 'mobile-upload-end';
|
|
16
16
|
export type MediaSingleWithType = 'pixel' | 'percentage';
|
|
17
17
|
export type MediaCopyScope = 'editor' | 'context';
|
|
18
|
-
export interface
|
|
18
|
+
export interface MediaPluginOptions {
|
|
19
19
|
provider?: Providers['mediaProvider'];
|
|
20
20
|
/**
|
|
21
21
|
* @experimental
|
|
@@ -56,6 +56,12 @@ export interface MediaOptions {
|
|
|
56
56
|
forceHandlePositioning?: HandlePositioning;
|
|
57
57
|
mediaShallowCopyScope?: MediaCopyScope;
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* @private
|
|
61
|
+
* @deprecated Use {@link MediaPluginOptions} instead.
|
|
62
|
+
* @see https://product-fabric.atlassian.net/browse/ED-27496
|
|
63
|
+
*/
|
|
64
|
+
export type MediaOptions = MediaPluginOptions;
|
|
59
65
|
export interface MediaSingleOptions {
|
|
60
66
|
disableLayout?: boolean;
|
|
61
67
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
"@atlaskit/analytics-namespaced-context": "^7.0.0",
|
|
39
39
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
40
40
|
"@atlaskit/button": "^23.0.0",
|
|
41
|
-
"@atlaskit/editor-common": "^103.
|
|
41
|
+
"@atlaskit/editor-common": "^103.4.0",
|
|
42
42
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
43
43
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
44
|
-
"@atlaskit/editor-plugin-annotation": "^2.
|
|
44
|
+
"@atlaskit/editor-plugin-annotation": "^2.5.0",
|
|
45
45
|
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|
|
46
46
|
"@atlaskit/editor-plugin-decorations": "^2.0.0",
|
|
47
47
|
"@atlaskit/editor-plugin-editor-disabled": "^2.0.0",
|
|
48
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^3.
|
|
49
|
-
"@atlaskit/editor-plugin-floating-toolbar": "^3.
|
|
48
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^3.1.0",
|
|
49
|
+
"@atlaskit/editor-plugin-floating-toolbar": "^3.6.0",
|
|
50
50
|
"@atlaskit/editor-plugin-focus": "^1.5.0",
|
|
51
51
|
"@atlaskit/editor-plugin-grid": "^2.0.0",
|
|
52
52
|
"@atlaskit/editor-plugin-guideline": "^2.0.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@atlaskit/media-ui": "^28.1.0",
|
|
67
67
|
"@atlaskit/media-viewer": "^52.0.0",
|
|
68
68
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
69
|
-
"@atlaskit/primitives": "^14.
|
|
69
|
+
"@atlaskit/primitives": "^14.4.0",
|
|
70
70
|
"@atlaskit/textfield": "^8.0.0",
|
|
71
71
|
"@atlaskit/theme": "^18.0.0",
|
|
72
72
|
"@atlaskit/tmp-editor-statsig": "^4.6.0",
|