@atlaskit/editor-core 185.7.0 → 185.8.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 +10 -0
- package/dist/cjs/plugins/media/index.js +9 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/plugins/media/index.js +10 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/plugins/media/index.js +10 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +12 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 185.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`68ef7e6146c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/68ef7e6146c) - Added feature flag for the new media resize experience.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 185.7.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
|
@@ -35,6 +35,7 @@ var _messages = require("../insert-block/ui/ToolbarInsertBlock/messages");
|
|
|
35
35
|
var _mediaNodeView = require("./nodeviews/mediaNodeView");
|
|
36
36
|
var _mediaInline = require("./nodeviews/mediaInline");
|
|
37
37
|
var _pluginKey = require("./pm-plugins/plugin-key");
|
|
38
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
38
39
|
var _mediaSingle2 = require("./utils/media-single");
|
|
39
40
|
var mediaPlugin = function mediaPlugin() {
|
|
40
41
|
var _api$dependencies, _api$dependencies$fea;
|
|
@@ -58,7 +59,14 @@ var mediaPlugin = function mediaPlugin() {
|
|
|
58
59
|
mediaFeatureFlags = _ref.featureFlags;
|
|
59
60
|
var captions = (0, _mediaCommon.getMediaFeatureFlag)('captions', mediaFeatureFlags);
|
|
60
61
|
var allowMediaInline = (0, _mediaCommon.getMediaFeatureFlag)('mediaInline', mediaFeatureFlags);
|
|
61
|
-
var
|
|
62
|
+
var mediaSingleOption = (0, _platformFeatureFlags.getBooleanFF)('platform.editor.media.extended-resize-experience') ? {
|
|
63
|
+
withCaption: captions,
|
|
64
|
+
withExtendedWidthTypes: true
|
|
65
|
+
} : {
|
|
66
|
+
withCaption: captions,
|
|
67
|
+
withExtendedWidthTypes: false
|
|
68
|
+
};
|
|
69
|
+
var mediaSingleNode = (0, _adfSchema.mediaSingleSpec)(mediaSingleOption);
|
|
62
70
|
return [{
|
|
63
71
|
name: 'mediaGroup',
|
|
64
72
|
node: _adfSchema.mediaGroup
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.version = exports.nextMajorVersion = exports.name = void 0;
|
|
7
7
|
var name = "@atlaskit/editor-core";
|
|
8
8
|
exports.name = name;
|
|
9
|
-
var version = "185.
|
|
9
|
+
var version = "185.8.0";
|
|
10
10
|
exports.version = version;
|
|
11
11
|
var nextMajorVersion = function nextMajorVersion() {
|
|
12
12
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PluginKey, NodeSelection } from 'prosemirror-state';
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
|
-
import { media, mediaGroup,
|
|
4
|
+
import { media, mediaGroup, mediaInline, mediaSingleSpec } from '@atlaskit/adf-schema';
|
|
5
5
|
import { stateKey as pluginKey, createPlugin } from './pm-plugins/main';
|
|
6
6
|
import { getMediaFeatureFlag } from '@atlaskit/media-common';
|
|
7
7
|
import { createPlugin as createMediaAltTextPlugin } from './pm-plugins/alt-text';
|
|
@@ -22,6 +22,7 @@ import { messages } from '../insert-block/ui/ToolbarInsertBlock/messages';
|
|
|
22
22
|
import { ReactMediaNode } from './nodeviews/mediaNodeView';
|
|
23
23
|
import { ReactMediaInlineNode } from './nodeviews/mediaInline';
|
|
24
24
|
import { stateKey } from './pm-plugins/plugin-key';
|
|
25
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
25
26
|
export { insertMediaSingleNode } from './utils/media-single';
|
|
26
27
|
const mediaPlugin = (options = {}, api) => {
|
|
27
28
|
var _api$dependencies, _api$dependencies$fea;
|
|
@@ -42,7 +43,14 @@ const mediaPlugin = (options = {}, api) => {
|
|
|
42
43
|
} = options || {};
|
|
43
44
|
const captions = getMediaFeatureFlag('captions', mediaFeatureFlags);
|
|
44
45
|
const allowMediaInline = getMediaFeatureFlag('mediaInline', mediaFeatureFlags);
|
|
45
|
-
const
|
|
46
|
+
const mediaSingleOption = getBooleanFF('platform.editor.media.extended-resize-experience') ? {
|
|
47
|
+
withCaption: captions,
|
|
48
|
+
withExtendedWidthTypes: true
|
|
49
|
+
} : {
|
|
50
|
+
withCaption: captions,
|
|
51
|
+
withExtendedWidthTypes: false
|
|
52
|
+
};
|
|
53
|
+
const mediaSingleNode = mediaSingleSpec(mediaSingleOption);
|
|
46
54
|
return [{
|
|
47
55
|
name: 'mediaGroup',
|
|
48
56
|
node: mediaGroup
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PluginKey, NodeSelection } from 'prosemirror-state';
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
|
-
import { media, mediaGroup,
|
|
4
|
+
import { media, mediaGroup, mediaInline, mediaSingleSpec } from '@atlaskit/adf-schema';
|
|
5
5
|
import { stateKey as pluginKey, createPlugin } from './pm-plugins/main';
|
|
6
6
|
import { getMediaFeatureFlag } from '@atlaskit/media-common';
|
|
7
7
|
import { createPlugin as createMediaAltTextPlugin } from './pm-plugins/alt-text';
|
|
@@ -22,6 +22,7 @@ import { messages } from '../insert-block/ui/ToolbarInsertBlock/messages';
|
|
|
22
22
|
import { ReactMediaNode } from './nodeviews/mediaNodeView';
|
|
23
23
|
import { ReactMediaInlineNode } from './nodeviews/mediaInline';
|
|
24
24
|
import { stateKey } from './pm-plugins/plugin-key';
|
|
25
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
25
26
|
export { insertMediaSingleNode } from './utils/media-single';
|
|
26
27
|
var mediaPlugin = function mediaPlugin() {
|
|
27
28
|
var _api$dependencies, _api$dependencies$fea;
|
|
@@ -45,7 +46,14 @@ var mediaPlugin = function mediaPlugin() {
|
|
|
45
46
|
mediaFeatureFlags = _ref.featureFlags;
|
|
46
47
|
var captions = getMediaFeatureFlag('captions', mediaFeatureFlags);
|
|
47
48
|
var allowMediaInline = getMediaFeatureFlag('mediaInline', mediaFeatureFlags);
|
|
48
|
-
var
|
|
49
|
+
var mediaSingleOption = getBooleanFF('platform.editor.media.extended-resize-experience') ? {
|
|
50
|
+
withCaption: captions,
|
|
51
|
+
withExtendedWidthTypes: true
|
|
52
|
+
} : {
|
|
53
|
+
withCaption: captions,
|
|
54
|
+
withExtendedWidthTypes: false
|
|
55
|
+
};
|
|
56
|
+
var mediaSingleNode = mediaSingleSpec(mediaSingleOption);
|
|
49
57
|
return [{
|
|
50
58
|
name: 'mediaGroup',
|
|
51
59
|
node: mediaGroup
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "185.
|
|
3
|
+
"version": "185.8.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/activity-provider": "^2.4.0",
|
|
37
|
-
"@atlaskit/adf-schema": "^
|
|
38
|
-
"@atlaskit/adf-utils": "^
|
|
37
|
+
"@atlaskit/adf-schema": "^26.0.0",
|
|
38
|
+
"@atlaskit/adf-utils": "^19.0.0",
|
|
39
39
|
"@atlaskit/analytics-gas-types": "^5.1.0",
|
|
40
40
|
"@atlaskit/analytics-listeners": "^8.7.0",
|
|
41
41
|
"@atlaskit/analytics-namespaced-context": "^6.7.0",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"@atlaskit/code": "^14.6.0",
|
|
50
50
|
"@atlaskit/date": "^0.10.0",
|
|
51
51
|
"@atlaskit/datetime-picker": "^12.7.0",
|
|
52
|
-
"@atlaskit/editor-common": "^74.
|
|
52
|
+
"@atlaskit/editor-common": "^74.15.0",
|
|
53
53
|
"@atlaskit/editor-json-transformer": "^8.9.0",
|
|
54
54
|
"@atlaskit/editor-markdown-transformer": "^5.2.0",
|
|
55
55
|
"@atlaskit/editor-palette": "1.5.1",
|
|
56
|
-
"@atlaskit/editor-plugin-analytics": "^0.0.
|
|
57
|
-
"@atlaskit/editor-plugin-content-insertion": "^0.0.
|
|
56
|
+
"@atlaskit/editor-plugin-analytics": "^0.0.4",
|
|
57
|
+
"@atlaskit/editor-plugin-content-insertion": "^0.0.4",
|
|
58
58
|
"@atlaskit/editor-plugin-context-panel": "^0.1.0",
|
|
59
59
|
"@atlaskit/editor-plugin-decorations": "^0.1.0",
|
|
60
60
|
"@atlaskit/editor-plugin-feature-flags": "^0.1.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"@atlaskit/radio": "^5.6.0",
|
|
91
91
|
"@atlaskit/section-message": "^6.4.0",
|
|
92
92
|
"@atlaskit/select": "^16.5.0",
|
|
93
|
-
"@atlaskit/smart-card": "^26.
|
|
93
|
+
"@atlaskit/smart-card": "^26.9.0",
|
|
94
94
|
"@atlaskit/smart-user-picker": "^6.1.0",
|
|
95
95
|
"@atlaskit/spinner": "^15.5.0",
|
|
96
96
|
"@atlaskit/status": "^1.3.0",
|
|
@@ -152,14 +152,14 @@
|
|
|
152
152
|
"@atlaskit/atlassian-navigation": "^2.6.0",
|
|
153
153
|
"@atlaskit/breadcrumbs": "11.10.4",
|
|
154
154
|
"@atlaskit/code": "^14.6.0",
|
|
155
|
-
"@atlaskit/collab-provider": "9.5.
|
|
155
|
+
"@atlaskit/collab-provider": "9.5.1",
|
|
156
156
|
"@atlaskit/docs": "*",
|
|
157
157
|
"@atlaskit/drawer": "^7.5.0",
|
|
158
158
|
"@atlaskit/dropdown-menu": "^11.10.0",
|
|
159
159
|
"@atlaskit/editor-card-provider": "^3.1.0",
|
|
160
160
|
"@atlaskit/editor-extension-dropbox": "^0.4.0",
|
|
161
161
|
"@atlaskit/editor-plugin-table": "^1.7.0",
|
|
162
|
-
"@atlaskit/editor-test-helpers": "^18.
|
|
162
|
+
"@atlaskit/editor-test-helpers": "^18.8.0",
|
|
163
163
|
"@atlaskit/flag": "^15.2.0",
|
|
164
164
|
"@atlaskit/inline-dialog": "^13.6.0",
|
|
165
165
|
"@atlaskit/link-provider": "^1.6.0",
|
|
@@ -257,6 +257,9 @@
|
|
|
257
257
|
"platform.editor.update-table-cell-width-via-step": {
|
|
258
258
|
"type": "boolean",
|
|
259
259
|
"referenceOnly": "true"
|
|
260
|
+
},
|
|
261
|
+
"platform.editor.media.extended-resize-experience": {
|
|
262
|
+
"type": "boolean"
|
|
260
263
|
}
|
|
261
264
|
},
|
|
262
265
|
"tests": {
|