@atlaskit/editor-plugin-media 1.26.0 → 1.27.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 +12 -0
- package/dist/types/toolbar/utils.d.ts +2 -1
- package/dist/types-ts4.5/toolbar/utils.d.ts +2 -1
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 1.27.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#124209](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/124209)
|
|
8
|
+
[`8aa1792f12ed3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8aa1792f12ed3) -
|
|
9
|
+
bump @atlaskit/editor-prosemirror to 5.0.0, bump @atlaskit/adf-schema to 40.1.0
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 1.26.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -2,13 +2,14 @@ import type { MediaBaseAttributes, RichMediaLayout } from '@atlaskit/adf-schema'
|
|
|
2
2
|
import type { LayoutIcon } from '@atlaskit/editor-common/card';
|
|
3
3
|
import type { Node as ProseMirrorNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
5
|
+
import { findParentNodeOfType, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
5
6
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
7
|
import type { MediaPluginState } from '../pm-plugins/types';
|
|
7
8
|
export declare const getSelectedMediaContainerNodeAttrs: (mediaPluginState: MediaPluginState) => MediaBaseAttributes | null;
|
|
8
9
|
export declare const getSelectedNearestMediaContainerNodeAttrs: (mediaPluginState: MediaPluginState) => MediaBaseAttributes | null;
|
|
9
10
|
export declare const downloadMedia: (mediaPluginState: MediaPluginState, isViewMode?: boolean) => Promise<boolean>;
|
|
10
11
|
export declare const removeMediaGroupNode: (state: EditorState) => import("prosemirror-state").Transaction;
|
|
11
|
-
export declare const getSelectedMediaSingle: (state: EditorState) =>
|
|
12
|
+
export declare const getSelectedMediaSingle: (state: EditorState) => ReturnType<ReturnType<typeof findSelectedNodeOfType>> | ReturnType<ReturnType<typeof findParentNodeOfType>>;
|
|
12
13
|
export declare const getPixelWidthOfElement: import("memoize-one").MemoizedFn<(editorView: EditorView, pos: number, mediaWidth: number) => number>;
|
|
13
14
|
export declare const calcNewLayout: (width: number, layout: RichMediaLayout, contentWidth: number, fullWidthMode?: boolean, isNested?: boolean) => RichMediaLayout;
|
|
14
15
|
export declare const getMaxToolbarWidth: () => number;
|
|
@@ -2,13 +2,14 @@ import type { MediaBaseAttributes, RichMediaLayout } from '@atlaskit/adf-schema'
|
|
|
2
2
|
import type { LayoutIcon } from '@atlaskit/editor-common/card';
|
|
3
3
|
import type { Node as ProseMirrorNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
5
|
+
import { findParentNodeOfType, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
5
6
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
7
|
import type { MediaPluginState } from '../pm-plugins/types';
|
|
7
8
|
export declare const getSelectedMediaContainerNodeAttrs: (mediaPluginState: MediaPluginState) => MediaBaseAttributes | null;
|
|
8
9
|
export declare const getSelectedNearestMediaContainerNodeAttrs: (mediaPluginState: MediaPluginState) => MediaBaseAttributes | null;
|
|
9
10
|
export declare const downloadMedia: (mediaPluginState: MediaPluginState, isViewMode?: boolean) => Promise<boolean>;
|
|
10
11
|
export declare const removeMediaGroupNode: (state: EditorState) => import("prosemirror-state").Transaction;
|
|
11
|
-
export declare const getSelectedMediaSingle: (state: EditorState) =>
|
|
12
|
+
export declare const getSelectedMediaSingle: (state: EditorState) => ReturnType<ReturnType<typeof findSelectedNodeOfType>> | ReturnType<ReturnType<typeof findParentNodeOfType>>;
|
|
12
13
|
export declare const getPixelWidthOfElement: import("memoize-one").MemoizedFn<(editorView: EditorView, pos: number, mediaWidth: number) => number>;
|
|
13
14
|
export declare const calcNewLayout: (width: number, layout: RichMediaLayout, contentWidth: number, fullWidthMode?: boolean, isNested?: boolean) => RichMediaLayout;
|
|
14
15
|
export declare const getMaxToolbarWidth: () => number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.27.0",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,22 +37,22 @@
|
|
|
37
37
|
"@atlaskit/analytics-namespaced-context": "^6.10.0",
|
|
38
38
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
39
39
|
"@atlaskit/button": "^19.1.0",
|
|
40
|
-
"@atlaskit/editor-common": "^86.
|
|
40
|
+
"@atlaskit/editor-common": "^86.8.0",
|
|
41
41
|
"@atlaskit/editor-palette": "1.6.0",
|
|
42
|
-
"@atlaskit/editor-plugin-analytics": "^1.
|
|
43
|
-
"@atlaskit/editor-plugin-annotation": "1.
|
|
44
|
-
"@atlaskit/editor-plugin-decorations": "^1.
|
|
45
|
-
"@atlaskit/editor-plugin-editor-disabled": "^1.
|
|
46
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^2.
|
|
47
|
-
"@atlaskit/editor-plugin-floating-toolbar": "^1.
|
|
48
|
-
"@atlaskit/editor-plugin-focus": "^1.
|
|
49
|
-
"@atlaskit/editor-plugin-grid": "^1.
|
|
50
|
-
"@atlaskit/editor-plugin-guideline": "^1.
|
|
51
|
-
"@atlaskit/editor-plugin-selection": "^1.
|
|
52
|
-
"@atlaskit/editor-plugin-width": "^1.
|
|
53
|
-
"@atlaskit/editor-prosemirror": "
|
|
42
|
+
"@atlaskit/editor-plugin-analytics": "^1.6.0",
|
|
43
|
+
"@atlaskit/editor-plugin-annotation": "1.18.0",
|
|
44
|
+
"@atlaskit/editor-plugin-decorations": "^1.2.0",
|
|
45
|
+
"@atlaskit/editor-plugin-editor-disabled": "^1.2.0",
|
|
46
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
47
|
+
"@atlaskit/editor-plugin-floating-toolbar": "^1.9.0",
|
|
48
|
+
"@atlaskit/editor-plugin-focus": "^1.3.0",
|
|
49
|
+
"@atlaskit/editor-plugin-grid": "^1.2.0",
|
|
50
|
+
"@atlaskit/editor-plugin-guideline": "^1.2.0",
|
|
51
|
+
"@atlaskit/editor-plugin-selection": "^1.3.0",
|
|
52
|
+
"@atlaskit/editor-plugin-width": "^1.2.0",
|
|
53
|
+
"@atlaskit/editor-prosemirror": "5.0.1",
|
|
54
54
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
55
|
-
"@atlaskit/editor-tables": "^2.
|
|
55
|
+
"@atlaskit/editor-tables": "^2.8.0",
|
|
56
56
|
"@atlaskit/form": "^10.4.0",
|
|
57
57
|
"@atlaskit/icon": "^22.7.0",
|
|
58
58
|
"@atlaskit/media-card": "^78.0.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@atlaskit/media-ui": "^25.10.0",
|
|
65
65
|
"@atlaskit/media-viewer": "^48.6.0",
|
|
66
66
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
67
|
-
"@atlaskit/primitives": "^11.
|
|
67
|
+
"@atlaskit/primitives": "^11.1.0",
|
|
68
68
|
"@atlaskit/textfield": "^6.4.0",
|
|
69
69
|
"@atlaskit/theme": "^12.11.0",
|
|
70
70
|
"@atlaskit/tokens": "^1.56.0",
|