@atlaskit/editor-plugin-media 1.27.4 → 1.28.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
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 1.28.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#128347](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/128347)
|
|
8
|
+
[`e33566cebd5d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e33566cebd5d1) -
|
|
9
|
+
[ED-24175] bump @atlaskit/adf-schema to 40.8.1 and @atlassian/adf-schema-json to 1.22.0 to
|
|
10
|
+
promotecodeblocks & media in quotes, and nested expands in expands to full schema, and allow
|
|
11
|
+
quotes in panels and decisions in lists in stage0 schema, and a validator spec change
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 1.27.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -229,7 +229,7 @@ var createMediaSingleNode = exports.createMediaSingleNode = function createMedia
|
|
|
229
229
|
var mediaSingleAttrs = alignLeftOnInsert ? {
|
|
230
230
|
layout: 'align-start'
|
|
231
231
|
} : {};
|
|
232
|
-
var extendedMediaSingleAttrs = (0, _platformFeatureFlags.
|
|
232
|
+
var extendedMediaSingleAttrs = (0, _platformFeatureFlags.fg)('platform.editor.media.extended-resize-experience') ? _objectSpread(_objectSpread({}, mediaSingleAttrs), {}, {
|
|
233
233
|
width: (0, _mediaSingle.getMediaSingleInitialWidth)(scaledWidth, maxWidth, minWidth),
|
|
234
234
|
// TODO: change to use enum
|
|
235
235
|
widthType: 'pixel'
|
|
@@ -247,7 +247,7 @@ var replaceWithMediaSingleNode = function replaceWithMediaSingleNode(schema, max
|
|
|
247
247
|
var copiedMediaNode = media.create(_objectSpread(_objectSpread({}, mediaNode.attrs), {}, {
|
|
248
248
|
type: 'file'
|
|
249
249
|
}), mediaNode.content, mediaNode.marks);
|
|
250
|
-
var extendedMediaSingleAttrs = (0, _platformFeatureFlags.
|
|
250
|
+
var extendedMediaSingleAttrs = (0, _platformFeatureFlags.fg)('platform.editor.media.extended-resize-experience') ? {
|
|
251
251
|
width: (0, _mediaSingle.getMediaSingleInitialWidth)(width, maxWidth, minWidth),
|
|
252
252
|
widthType: 'pixel'
|
|
253
253
|
} : {};
|
|
@@ -7,7 +7,7 @@ import { checkNodeDown, isEmptyParagraph } from '@atlaskit/editor-common/utils';
|
|
|
7
7
|
import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
8
8
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
9
9
|
import { safeInsert as pmSafeInsert, removeSelectedNode } from '@atlaskit/editor-prosemirror/utils';
|
|
10
|
-
import {
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
11
|
import { copyOptionalAttrsFromMediaState } from '../utils/media-common';
|
|
12
12
|
import { findChangeFromLocation, getChangeMediaAnalytics } from './analytics';
|
|
13
13
|
import { isImage } from './is-type';
|
|
@@ -227,7 +227,7 @@ export const createMediaSingleNode = (schema, collection, maxWidth, minWidth, al
|
|
|
227
227
|
const mediaSingleAttrs = alignLeftOnInsert ? {
|
|
228
228
|
layout: 'align-start'
|
|
229
229
|
} : {};
|
|
230
|
-
const extendedMediaSingleAttrs =
|
|
230
|
+
const extendedMediaSingleAttrs = fg('platform.editor.media.extended-resize-experience') ? {
|
|
231
231
|
...mediaSingleAttrs,
|
|
232
232
|
width: getMediaSingleInitialWidth(scaledWidth, maxWidth, minWidth),
|
|
233
233
|
// TODO: change to use enum
|
|
@@ -248,7 +248,7 @@ const replaceWithMediaSingleNode = (schema, maxWidth, minWidth) => mediaNode =>
|
|
|
248
248
|
...mediaNode.attrs,
|
|
249
249
|
type: 'file'
|
|
250
250
|
}, mediaNode.content, mediaNode.marks);
|
|
251
|
-
const extendedMediaSingleAttrs =
|
|
251
|
+
const extendedMediaSingleAttrs = fg('platform.editor.media.extended-resize-experience') ? {
|
|
252
252
|
width: getMediaSingleInitialWidth(width, maxWidth, minWidth),
|
|
253
253
|
widthType: 'pixel'
|
|
254
254
|
} : {};
|
|
@@ -10,7 +10,7 @@ import { checkNodeDown, isEmptyParagraph } from '@atlaskit/editor-common/utils';
|
|
|
10
10
|
import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
11
11
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
12
12
|
import { safeInsert as pmSafeInsert, removeSelectedNode } from '@atlaskit/editor-prosemirror/utils';
|
|
13
|
-
import {
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
14
|
import { copyOptionalAttrsFromMediaState } from '../utils/media-common';
|
|
15
15
|
import { findChangeFromLocation, getChangeMediaAnalytics } from './analytics';
|
|
16
16
|
import { isImage } from './is-type';
|
|
@@ -220,7 +220,7 @@ export var createMediaSingleNode = function createMediaSingleNode(schema, collec
|
|
|
220
220
|
var mediaSingleAttrs = alignLeftOnInsert ? {
|
|
221
221
|
layout: 'align-start'
|
|
222
222
|
} : {};
|
|
223
|
-
var extendedMediaSingleAttrs =
|
|
223
|
+
var extendedMediaSingleAttrs = fg('platform.editor.media.extended-resize-experience') ? _objectSpread(_objectSpread({}, mediaSingleAttrs), {}, {
|
|
224
224
|
width: getMediaSingleInitialWidth(scaledWidth, maxWidth, minWidth),
|
|
225
225
|
// TODO: change to use enum
|
|
226
226
|
widthType: 'pixel'
|
|
@@ -238,7 +238,7 @@ var replaceWithMediaSingleNode = function replaceWithMediaSingleNode(schema, max
|
|
|
238
238
|
var copiedMediaNode = media.create(_objectSpread(_objectSpread({}, mediaNode.attrs), {}, {
|
|
239
239
|
type: 'file'
|
|
240
240
|
}), mediaNode.content, mediaNode.marks);
|
|
241
|
-
var extendedMediaSingleAttrs =
|
|
241
|
+
var extendedMediaSingleAttrs = fg('platform.editor.media.extended-resize-experience') ? {
|
|
242
242
|
width: getMediaSingleInitialWidth(width, maxWidth, minWidth),
|
|
243
243
|
widthType: 'pixel'
|
|
244
244
|
} : {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.28.0",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"./types": "./src/types.ts"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@atlaskit/adf-schema": "^40.
|
|
36
|
+
"@atlaskit/adf-schema": "^40.8.1",
|
|
37
37
|
"@atlaskit/analytics-namespaced-context": "^6.10.0",
|
|
38
38
|
"@atlaskit/analytics-next": "^10.0.0",
|
|
39
39
|
"@atlaskit/button": "^19.1.0",
|
|
40
|
-
"@atlaskit/editor-common": "^87.
|
|
40
|
+
"@atlaskit/editor-common": "^87.6.0",
|
|
41
41
|
"@atlaskit/editor-palette": "1.6.0",
|
|
42
|
-
"@atlaskit/editor-plugin-analytics": "^1.
|
|
43
|
-
"@atlaskit/editor-plugin-annotation": "1.
|
|
42
|
+
"@atlaskit/editor-plugin-analytics": "^1.7.0",
|
|
43
|
+
"@atlaskit/editor-plugin-annotation": "1.19.0",
|
|
44
44
|
"@atlaskit/editor-plugin-decorations": "^1.2.0",
|
|
45
45
|
"@atlaskit/editor-plugin-editor-disabled": "^1.2.0",
|
|
46
46
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
55
55
|
"@atlaskit/editor-tables": "^2.8.0",
|
|
56
56
|
"@atlaskit/form": "^10.4.0",
|
|
57
|
-
"@atlaskit/icon": "^22.
|
|
57
|
+
"@atlaskit/icon": "^22.11.0",
|
|
58
58
|
"@atlaskit/media-card": "^78.0.0",
|
|
59
59
|
"@atlaskit/media-client": "^27.3.0",
|
|
60
60
|
"@atlaskit/media-client-react": "^2.0.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@atlaskit/textfield": "^6.4.0",
|
|
69
69
|
"@atlaskit/theme": "^12.11.0",
|
|
70
70
|
"@atlaskit/tokens": "^1.57.0",
|
|
71
|
-
"@atlaskit/tooltip": "^18.
|
|
71
|
+
"@atlaskit/tooltip": "^18.6.0",
|
|
72
72
|
"@babel/runtime": "^7.0.0",
|
|
73
73
|
"@emotion/react": "^11.7.1",
|
|
74
74
|
"bind-event-listener": "^3.0.0",
|