@atlaskit/editor-plugin-media 9.0.0 → 9.1.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 +22 -0
- package/dist/cjs/mediaPlugin.js +8 -8
- package/dist/cjs/nodeviews/lazy-media-group.js +2 -2
- package/dist/cjs/nodeviews/lazy-media-inline.js +0 -5
- package/dist/cjs/nodeviews/mediaGroup.js +2 -1
- package/dist/cjs/nodeviews/mediaNodeView/media.js +1 -4
- package/dist/cjs/nodeviews/toDOM-fixes/media.js +0 -4
- package/dist/cjs/nodeviews/toDOM-fixes/mediaGroup.js +1 -5
- package/dist/cjs/nodeviews/toDOM-fixes/mediaInline.js +0 -4
- package/dist/cjs/nodeviews/toDOM-fixes/mediaSingle.js +0 -4
- package/dist/cjs/ui/ImageBorder/index.js +3 -12
- package/dist/cjs/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +1 -1
- package/dist/cjs/ui/toolbar/index.js +1 -1
- package/dist/cjs/ui/toolbar/linking-toolbar-appearance.js +1 -1
- package/dist/cjs/ui/toolbar/mediaInline.js +1 -1
- package/dist/es2019/mediaPlugin.js +4 -4
- package/dist/es2019/nodeviews/lazy-media-group.js +2 -2
- package/dist/es2019/nodeviews/lazy-media-inline.js +0 -5
- package/dist/es2019/nodeviews/mediaGroup.js +2 -1
- package/dist/es2019/nodeviews/mediaNodeView/media.js +1 -4
- package/dist/es2019/nodeviews/toDOM-fixes/media.js +0 -4
- package/dist/es2019/nodeviews/toDOM-fixes/mediaGroup.js +1 -6
- package/dist/es2019/nodeviews/toDOM-fixes/mediaInline.js +0 -4
- package/dist/es2019/nodeviews/toDOM-fixes/mediaSingle.js +0 -4
- package/dist/es2019/ui/ImageBorder/index.js +4 -11
- package/dist/es2019/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +1 -1
- package/dist/es2019/ui/toolbar/index.js +1 -1
- package/dist/es2019/ui/toolbar/linking-toolbar-appearance.js +1 -1
- package/dist/es2019/ui/toolbar/mediaInline.js +1 -1
- package/dist/esm/mediaPlugin.js +4 -4
- package/dist/esm/nodeviews/lazy-media-group.js +2 -2
- package/dist/esm/nodeviews/lazy-media-inline.js +0 -5
- package/dist/esm/nodeviews/mediaGroup.js +2 -1
- package/dist/esm/nodeviews/mediaNodeView/media.js +1 -4
- package/dist/esm/nodeviews/toDOM-fixes/media.js +0 -4
- package/dist/esm/nodeviews/toDOM-fixes/mediaGroup.js +1 -6
- package/dist/esm/nodeviews/toDOM-fixes/mediaInline.js +0 -4
- package/dist/esm/nodeviews/toDOM-fixes/mediaSingle.js +0 -4
- package/dist/esm/ui/ImageBorder/index.js +4 -13
- package/dist/esm/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +1 -1
- package/dist/esm/ui/toolbar/index.js +1 -1
- package/dist/esm/ui/toolbar/linking-toolbar-appearance.js +1 -1
- package/dist/esm/ui/toolbar/mediaInline.js +1 -1
- package/dist/types/nodeviews/mediaGroupNext.d.ts +2 -2
- package/dist/types/nodeviews/toDOM-fixes/media.d.ts +24 -1
- package/dist/types/nodeviews/toDOM-fixes/mediaGroup.d.ts +24 -1
- package/dist/types/nodeviews/toDOM-fixes/mediaInline.d.ts +24 -1
- package/dist/types-ts4.5/nodeviews/mediaGroupNext.d.ts +2 -2
- package/dist/types-ts4.5/nodeviews/toDOM-fixes/media.d.ts +24 -1
- package/dist/types-ts4.5/nodeviews/toDOM-fixes/mediaGroup.d.ts +24 -1
- package/dist/types-ts4.5/nodeviews/toDOM-fixes/mediaInline.d.ts +24 -1
- package/package.json +4 -7
- package/dist/cjs/nodeviews/lazy-media-single.js +0 -35
- package/dist/cjs/nodeviews/lazy-media.js +0 -36
- package/dist/es2019/nodeviews/lazy-media-single.js +0 -24
- package/dist/es2019/nodeviews/lazy-media.js +0 -24
- package/dist/esm/nodeviews/lazy-media-single.js +0 -24
- package/dist/esm/nodeviews/lazy-media.js +0 -25
- package/dist/types/nodeviews/lazy-media-single.d.ts +0 -9
- package/dist/types/nodeviews/lazy-media.d.ts +0 -8
- package/dist/types-ts4.5/nodeviews/lazy-media-single.d.ts +0 -9
- package/dist/types-ts4.5/nodeviews/lazy-media.d.ts +0 -8
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { withLazyLoading } from '@atlaskit/editor-common/lazy-node-view';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
4
|
-
import { ReactMediaSingleNode } from './mediaSingle';
|
|
5
|
-
export var lazyMediaSingleView = function lazyMediaSingleView(portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent) {
|
|
6
|
-
var options = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {};
|
|
7
|
-
if (fg('platform_editor_ssr_media') || editorExperiment('platform_editor_exp_lazy_node_views', false)) {
|
|
8
|
-
return ReactMediaSingleNode(portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, options);
|
|
9
|
-
}
|
|
10
|
-
return withLazyLoading({
|
|
11
|
-
nodeName: 'mediaSingle',
|
|
12
|
-
getNodeViewOptions: function getNodeViewOptions() {},
|
|
13
|
-
loader: function loader() {
|
|
14
|
-
var result = import( /* webpackChunkName: "@atlaskit-internal_editor-plugin-media-single-lazy-node-view" */
|
|
15
|
-
'./mediaSingle').then(function (_ref) {
|
|
16
|
-
var ReactMediaSingleNode = _ref.ReactMediaSingleNode;
|
|
17
|
-
return function (node, view, getPos) {
|
|
18
|
-
return ReactMediaSingleNode(portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, options)(node, view, getPos);
|
|
19
|
-
};
|
|
20
|
-
});
|
|
21
|
-
return result;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { withLazyLoading } from '@atlaskit/editor-common/lazy-node-view';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
4
|
-
import { ReactMediaNode } from './mediaNodeView';
|
|
5
|
-
export var lazyMediaView = function lazyMediaView(portalProviderAPI, eventDispatcher, providerFactory) {
|
|
6
|
-
var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
7
|
-
var api = arguments.length > 4 ? arguments[4] : undefined;
|
|
8
|
-
if (fg('platform_editor_ssr_media') || editorExperiment('platform_editor_exp_lazy_node_views', false)) {
|
|
9
|
-
return ReactMediaNode(portalProviderAPI, eventDispatcher, providerFactory, options, api);
|
|
10
|
-
}
|
|
11
|
-
return withLazyLoading({
|
|
12
|
-
nodeName: 'media',
|
|
13
|
-
getNodeViewOptions: function getNodeViewOptions() {},
|
|
14
|
-
loader: function loader() {
|
|
15
|
-
var result = import( /* webpackChunkName: "@atlaskit-internal_editor-plugin-media-lazy-node-view" */
|
|
16
|
-
'./mediaNodeView').then(function (_ref) {
|
|
17
|
-
var ReactMediaNode = _ref.ReactMediaNode;
|
|
18
|
-
return function (node, view, getPos) {
|
|
19
|
-
return ReactMediaNode(portalProviderAPI, eventDispatcher, providerFactory, options, api)(node, view, getPos);
|
|
20
|
-
};
|
|
21
|
-
});
|
|
22
|
-
return result;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
|
-
import { type NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
|
|
4
|
-
import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
5
|
-
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
6
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
7
|
-
import type { MediaNextEditorPluginType } from '../mediaPluginType';
|
|
8
|
-
import type { MediaOptions } from '../types';
|
|
9
|
-
export declare const lazyMediaSingleView: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined, dispatchAnalyticsEvent?: DispatchAnalyticsEvent, options?: MediaOptions) => NodeViewConstructor;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
|
-
import { type NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
|
|
3
|
-
import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
4
|
-
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
6
|
-
import type { MediaNextEditorPluginType } from '../mediaPluginType';
|
|
7
|
-
import type { MediaOptions } from '../types';
|
|
8
|
-
export declare const lazyMediaView: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, options: MediaOptions | undefined, api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined) => NodeViewConstructor;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
|
-
import { type NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
|
|
4
|
-
import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
5
|
-
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
6
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
7
|
-
import type { MediaNextEditorPluginType } from '../mediaPluginType';
|
|
8
|
-
import type { MediaOptions } from '../types';
|
|
9
|
-
export declare const lazyMediaSingleView: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined, dispatchAnalyticsEvent?: DispatchAnalyticsEvent, options?: MediaOptions) => NodeViewConstructor;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
|
-
import { type NodeViewConstructor } from '@atlaskit/editor-common/lazy-node-view';
|
|
3
|
-
import { type PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
4
|
-
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
6
|
-
import type { MediaNextEditorPluginType } from '../mediaPluginType';
|
|
7
|
-
import type { MediaOptions } from '../types';
|
|
8
|
-
export declare const lazyMediaView: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, options: MediaOptions | undefined, api: ExtractInjectionAPI<MediaNextEditorPluginType> | undefined) => NodeViewConstructor;
|