@atlaskit/editor-plugin-media 1.28.4 → 1.29.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 +21 -0
- package/dist/cjs/nodeviews/mediaSingle.js +72 -24
- package/dist/cjs/toDOM-fixes/media.js +42 -2
- package/dist/cjs/toDOM-fixes/mediaGroup.js +2 -20
- package/dist/cjs/toDOM-fixes/mediaSingle.js +19 -14
- package/dist/cjs/ui/CommentBadge/index.js +67 -2
- package/dist/es2019/nodeviews/mediaSingle.js +51 -5
- package/dist/es2019/toDOM-fixes/media.js +53 -1
- package/dist/es2019/toDOM-fixes/mediaGroup.js +9 -20
- package/dist/es2019/toDOM-fixes/mediaSingle.js +19 -14
- package/dist/es2019/ui/CommentBadge/index.js +68 -3
- package/dist/esm/nodeviews/mediaSingle.js +74 -25
- package/dist/esm/toDOM-fixes/media.js +40 -1
- package/dist/esm/toDOM-fixes/mediaGroup.js +2 -19
- package/dist/esm/toDOM-fixes/mediaSingle.js +19 -14
- package/dist/esm/ui/CommentBadge/index.js +68 -3
- package/dist/types/nodeviews/mediaSingle.d.ts +1 -0
- package/dist/types/toDOM-fixes/media.d.ts +15 -0
- package/dist/types/toDOM-fixes/mediaSingle.d.ts +2 -1
- package/dist/types/ui/CommentBadge/index.d.ts +1 -0
- package/dist/types-ts4.5/nodeviews/mediaSingle.d.ts +1 -0
- package/dist/types-ts4.5/toDOM-fixes/media.d.ts +15 -0
- package/dist/types-ts4.5/toDOM-fixes/mediaSingle.d.ts +2 -1
- package/dist/types-ts4.5/ui/CommentBadge/index.d.ts +1 -0
- package/package.json +9 -6
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
1
2
|
export declare const wrappedLayouts: string[];
|
|
2
3
|
/**
|
|
3
4
|
* Duplicate of method from `@atlaskit/editor-common/utils`.
|
|
@@ -26,4 +27,4 @@ export declare function getMediaSinglePixelWidth(width: number, editorWidth: num
|
|
|
26
27
|
export declare const mediaSingleSpecWithFixedToDOM: (mediaSingleOption: {
|
|
27
28
|
withCaption?: boolean;
|
|
28
29
|
withExtendedWidthTypes: boolean;
|
|
29
|
-
}) =>
|
|
30
|
+
}) => NodeSpec;
|
|
@@ -18,4 +18,5 @@ type CommentBadgeProps = {
|
|
|
18
18
|
export declare const CommentBadge: React.FC<import("react-intl-next").WithIntlProps<CommentBadgeProps>> & {
|
|
19
19
|
WrappedComponent: React.ComponentType<CommentBadgeProps>;
|
|
20
20
|
};
|
|
21
|
+
export declare const CommentBadgeWithRef: React.ForwardRefExoticComponent<Omit<CommentBadgeProps, "intl"> & React.RefAttributes<HTMLDivElement>>;
|
|
21
22
|
export {};
|
|
@@ -34,6 +34,7 @@ export default class MediaSingleNode extends Component<MediaSingleNodeProps, Med
|
|
|
34
34
|
state: MediaSingleNodeState;
|
|
35
35
|
mediaSingleWrapperRef: React.RefObject<HTMLDivElement>;
|
|
36
36
|
captionPlaceHolderRef: React.RefObject<HTMLSpanElement>;
|
|
37
|
+
commentBadgeRef: React.RefObject<HTMLDivElement>;
|
|
37
38
|
createOrUpdateMediaNodeUpdater: (props: MediaSingleNodeProps) => void;
|
|
38
39
|
UNSAFE_componentWillReceiveProps(nextProps: MediaSingleNodeProps): void;
|
|
39
40
|
setViewMediaClientConfig: (props: MediaSingleNodeProps) => Promise<void>;
|
|
@@ -1 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Duplicate consts from `media-card`.
|
|
3
|
+
* `packages/media/media-card/src/utils/cardDimensions.ts`
|
|
4
|
+
*
|
|
5
|
+
* WHY?
|
|
6
|
+
* This will eventually move to `@atlaskit/adf-schema` and we cannot reference
|
|
7
|
+
* `media-card` from here or it will cause dependency issues.
|
|
8
|
+
*
|
|
9
|
+
* In the long term likely `toDOM` will move back out of `adf-schema` in which
|
|
10
|
+
* case we can consolidate them.
|
|
11
|
+
*/
|
|
12
|
+
export declare const defaultImageCardDimensions: {
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
};
|
|
1
16
|
export declare const mediaSpecWithFixedToDOM: () => import("prosemirror-model").NodeSpec;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
1
2
|
export declare const wrappedLayouts: string[];
|
|
2
3
|
/**
|
|
3
4
|
* Duplicate of method from `@atlaskit/editor-common/utils`.
|
|
@@ -26,4 +27,4 @@ export declare function getMediaSinglePixelWidth(width: number, editorWidth: num
|
|
|
26
27
|
export declare const mediaSingleSpecWithFixedToDOM: (mediaSingleOption: {
|
|
27
28
|
withCaption?: boolean;
|
|
28
29
|
withExtendedWidthTypes: boolean;
|
|
29
|
-
}) =>
|
|
30
|
+
}) => NodeSpec;
|
|
@@ -18,4 +18,5 @@ type CommentBadgeProps = {
|
|
|
18
18
|
export declare const CommentBadge: React.FC<import("react-intl-next").WithIntlProps<CommentBadgeProps>> & {
|
|
19
19
|
WrappedComponent: React.ComponentType<CommentBadgeProps>;
|
|
20
20
|
};
|
|
21
|
+
export declare const CommentBadgeWithRef: React.ForwardRefExoticComponent<Omit<CommentBadgeProps, "intl"> & React.RefAttributes<HTMLDivElement>>;
|
|
21
22
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.29.0",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/analytics-namespaced-context": "^6.11.0",
|
|
38
38
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
39
39
|
"@atlaskit/button": "^20.0.0",
|
|
40
|
-
"@atlaskit/editor-common": "^87.
|
|
40
|
+
"@atlaskit/editor-common": "^87.12.0",
|
|
41
41
|
"@atlaskit/editor-palette": "1.6.0",
|
|
42
42
|
"@atlaskit/editor-plugin-analytics": "^1.7.0",
|
|
43
43
|
"@atlaskit/editor-plugin-annotation": "1.19.0",
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
"@atlaskit/icon": "^22.13.0",
|
|
58
58
|
"@atlaskit/media-card": "^78.0.0",
|
|
59
59
|
"@atlaskit/media-client": "^27.3.0",
|
|
60
|
-
"@atlaskit/media-client-react": "^2.
|
|
61
|
-
"@atlaskit/media-common": "^11.
|
|
60
|
+
"@atlaskit/media-client-react": "^2.1.0",
|
|
61
|
+
"@atlaskit/media-common": "^11.4.0",
|
|
62
62
|
"@atlaskit/media-filmstrip": "^47.2.0",
|
|
63
|
-
"@atlaskit/media-picker": "^66.
|
|
63
|
+
"@atlaskit/media-picker": "^66.5.0",
|
|
64
64
|
"@atlaskit/media-ui": "^25.11.0",
|
|
65
65
|
"@atlaskit/media-viewer": "^48.7.0",
|
|
66
66
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"typescript": "~5.4.2"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
|
-
"@atlaskit/media-core": "^34.
|
|
85
|
+
"@atlaskit/media-core": "^34.3.0",
|
|
86
86
|
"react": "^16.8.0",
|
|
87
87
|
"react-dom": "^16.8.0",
|
|
88
88
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -152,6 +152,9 @@
|
|
|
152
152
|
},
|
|
153
153
|
"platform_editor_lazy-node-views": {
|
|
154
154
|
"type": "boolean"
|
|
155
|
+
},
|
|
156
|
+
"platform_editor_insert_media_plugin_phase_one": {
|
|
157
|
+
"type": "boolean"
|
|
155
158
|
}
|
|
156
159
|
},
|
|
157
160
|
"stricter": {
|