@atlaskit/editor-plugin-media 9.4.0 → 9.4.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 +6 -0
- package/dist/cjs/pm-plugins/utils/media-common.js +2 -0
- package/dist/es2019/pm-plugins/utils/media-common.js +2 -0
- package/dist/esm/pm-plugins/utils/media-common.js +2 -0
- package/dist/types/nodeviews/toDOM-fixes/toDOMAttrs.d.ts +12 -12
- package/dist/types-ts4.5/nodeviews/toDOM-fixes/toDOMAttrs.d.ts +12 -12
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -276,6 +276,8 @@ var extractMediaNodes = exports.extractMediaNodes = function extractMediaNodes(d
|
|
|
276
276
|
});
|
|
277
277
|
return mediaNodes;
|
|
278
278
|
};
|
|
279
|
+
|
|
280
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
279
281
|
var createMediaIdentifierArray = exports.createMediaIdentifierArray = function createMediaIdentifierArray(mediaNodes) {
|
|
280
282
|
var mediaIdentifierMap = new Map();
|
|
281
283
|
mediaNodes.forEach(function (item) {
|
|
@@ -287,6 +287,8 @@ export const extractMediaNodes = doc => {
|
|
|
287
287
|
});
|
|
288
288
|
return mediaNodes;
|
|
289
289
|
};
|
|
290
|
+
|
|
291
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
290
292
|
export const createMediaIdentifierArray = mediaNodes => {
|
|
291
293
|
const mediaIdentifierMap = new Map();
|
|
292
294
|
mediaNodes.forEach(item => {
|
|
@@ -269,6 +269,8 @@ export var extractMediaNodes = function extractMediaNodes(doc) {
|
|
|
269
269
|
});
|
|
270
270
|
return mediaNodes;
|
|
271
271
|
};
|
|
272
|
+
|
|
273
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
272
274
|
export var createMediaIdentifierArray = function createMediaIdentifierArray(mediaNodes) {
|
|
273
275
|
var mediaIdentifierMap = new Map();
|
|
274
276
|
mediaNodes.forEach(function (item) {
|
|
@@ -5,17 +5,17 @@ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
|
5
5
|
* When we patch adf-schema with media `toDOM` fixes we can remove this.
|
|
6
6
|
*/
|
|
7
7
|
export declare const getMediaAttrs: (nodeName: string, node: PMNode) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
title: string;
|
|
8
|
+
"data-alt": any;
|
|
9
|
+
"data-collection": any;
|
|
10
|
+
"data-height": any;
|
|
11
|
+
"data-id": any;
|
|
12
|
+
"data-node-type": string;
|
|
13
|
+
"data-occurrence-key": any;
|
|
14
|
+
"data-type": any;
|
|
15
|
+
"data-url": any;
|
|
16
|
+
"data-width": any;
|
|
18
17
|
style: string;
|
|
18
|
+
title: string;
|
|
19
19
|
};
|
|
20
20
|
export declare const camelCaseToKebabCase: (str: string) => string;
|
|
21
21
|
/**
|
|
@@ -24,6 +24,6 @@ export declare const camelCaseToKebabCase: (str: string) => string;
|
|
|
24
24
|
* When we patch adf-schema with media `toDOM` fixes we can remove this.
|
|
25
25
|
*/
|
|
26
26
|
export declare const getAttrsFromNodeMediaSingle: (withExtendedWidthTypes: boolean, node: PMNode) => {
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
"data-media-vc-wrapper": string;
|
|
28
|
+
"data-width-type": any;
|
|
29
29
|
};
|
|
@@ -5,17 +5,17 @@ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
|
5
5
|
* When we patch adf-schema with media `toDOM` fixes we can remove this.
|
|
6
6
|
*/
|
|
7
7
|
export declare const getMediaAttrs: (nodeName: string, node: PMNode) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
title: string;
|
|
8
|
+
"data-alt": any;
|
|
9
|
+
"data-collection": any;
|
|
10
|
+
"data-height": any;
|
|
11
|
+
"data-id": any;
|
|
12
|
+
"data-node-type": string;
|
|
13
|
+
"data-occurrence-key": any;
|
|
14
|
+
"data-type": any;
|
|
15
|
+
"data-url": any;
|
|
16
|
+
"data-width": any;
|
|
18
17
|
style: string;
|
|
18
|
+
title: string;
|
|
19
19
|
};
|
|
20
20
|
export declare const camelCaseToKebabCase: (str: string) => string;
|
|
21
21
|
/**
|
|
@@ -24,6 +24,6 @@ export declare const camelCaseToKebabCase: (str: string) => string;
|
|
|
24
24
|
* When we patch adf-schema with media `toDOM` fixes we can remove this.
|
|
25
25
|
*/
|
|
26
26
|
export declare const getAttrsFromNodeMediaSingle: (withExtendedWidthTypes: boolean, node: PMNode) => {
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
"data-media-vc-wrapper": string;
|
|
28
|
+
"data-width-type": any;
|
|
29
29
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.1",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/editor-plugin-focus": "^6.0.0",
|
|
45
45
|
"@atlaskit/editor-plugin-grid": "^7.0.0",
|
|
46
46
|
"@atlaskit/editor-plugin-guideline": "^7.0.0",
|
|
47
|
-
"@atlaskit/editor-plugin-interaction": "^
|
|
47
|
+
"@atlaskit/editor-plugin-interaction": "^13.0.0",
|
|
48
48
|
"@atlaskit/editor-plugin-selection": "^7.0.0",
|
|
49
49
|
"@atlaskit/editor-plugin-toolbar": "^4.0.0",
|
|
50
50
|
"@atlaskit/editor-plugin-width": "^8.0.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@atlaskit/textfield": "^8.2.0",
|
|
68
68
|
"@atlaskit/theme": "^21.0.0",
|
|
69
69
|
"@atlaskit/tmp-editor-statsig": "^16.23.0",
|
|
70
|
-
"@atlaskit/tokens": "^
|
|
70
|
+
"@atlaskit/tokens": "^10.0.0",
|
|
71
71
|
"@atlaskit/tooltip": "^20.14.0",
|
|
72
72
|
"@babel/runtime": "^7.0.0",
|
|
73
73
|
"@emotion/react": "^11.7.1",
|