@atlaskit/editor-plugin-media 9.9.0 → 10.0.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 +15 -0
- package/dist/cjs/mediaPlugin.js +3 -2
- package/dist/es2019/mediaPlugin.js +3 -2
- package/dist/esm/mediaPlugin.js +3 -2
- package/package.json +18 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 10.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 9.9.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`31ee998a097db`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/31ee998a097db) -
|
|
14
|
+
Replace expValEquals/expValEqualsNoExposure with editorExperiment for platform_synced_block
|
|
15
|
+
experiment checks
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 9.9.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
package/dist/cjs/mediaPlugin.js
CHANGED
|
@@ -18,6 +18,7 @@ var _state = require("@atlaskit/editor-prosemirror/state");
|
|
|
18
18
|
var _mediaCommon = require("@atlaskit/media-common");
|
|
19
19
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
20
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
21
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
21
22
|
var _lazyMediaGroup = require("./nodeviews/lazy-media-group");
|
|
22
23
|
var _lazyMediaInline = require("./nodeviews/lazy-media-inline");
|
|
23
24
|
var _mediaNodeView = require("./nodeviews/mediaNodeView");
|
|
@@ -154,9 +155,9 @@ var mediaPlugin = exports.mediaPlugin = function mediaPlugin(_ref3) {
|
|
|
154
155
|
attributes: _objectSpread(_objectSpread({
|
|
155
156
|
reason: reason,
|
|
156
157
|
external: node.attrs.__external
|
|
157
|
-
}, nestedUnder && (0,
|
|
158
|
+
}, nestedUnder && (0, _experiments.editorExperiment)('platform_synced_block', true) && (0, _platformFeatureFlags.fg)('platform_synced_block_patch_5') ? {
|
|
158
159
|
nestedUnder: nestedUnder
|
|
159
|
-
} : {}), (0,
|
|
160
|
+
} : {}), (0, _experiments.editorExperiment)('platform_synced_block', true) && (0, _platformFeatureFlags.fg)('platform_synced_block_patch_5') ? {
|
|
160
161
|
isDuplicateError: isDuplicateError
|
|
161
162
|
} : {})
|
|
162
163
|
});
|
|
@@ -9,6 +9,7 @@ import { NodeSelection, PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
|
9
9
|
import { getMediaFeatureFlag } from '@atlaskit/media-common';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
11
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
12
13
|
import { lazyMediaGroupView } from './nodeviews/lazy-media-group';
|
|
13
14
|
import { lazyMediaInlineView } from './nodeviews/lazy-media-inline';
|
|
14
15
|
import { ReactMediaNode } from './nodeviews/mediaNodeView';
|
|
@@ -146,10 +147,10 @@ export const mediaPlugin = ({
|
|
|
146
147
|
attributes: {
|
|
147
148
|
reason,
|
|
148
149
|
external: node.attrs.__external,
|
|
149
|
-
...(nestedUnder &&
|
|
150
|
+
...(nestedUnder && editorExperiment('platform_synced_block', true) && fg('platform_synced_block_patch_5') ? {
|
|
150
151
|
nestedUnder
|
|
151
152
|
} : {}),
|
|
152
|
-
...(
|
|
153
|
+
...(editorExperiment('platform_synced_block', true) && fg('platform_synced_block_patch_5') ? {
|
|
153
154
|
isDuplicateError
|
|
154
155
|
} : {})
|
|
155
156
|
}
|
package/dist/esm/mediaPlugin.js
CHANGED
|
@@ -12,6 +12,7 @@ import { NodeSelection, PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
|
12
12
|
import { getMediaFeatureFlag } from '@atlaskit/media-common';
|
|
13
13
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
14
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
15
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
15
16
|
import { lazyMediaGroupView } from './nodeviews/lazy-media-group';
|
|
16
17
|
import { lazyMediaInlineView } from './nodeviews/lazy-media-inline';
|
|
17
18
|
import { ReactMediaNode } from './nodeviews/mediaNodeView';
|
|
@@ -145,9 +146,9 @@ export var mediaPlugin = function mediaPlugin(_ref3) {
|
|
|
145
146
|
attributes: _objectSpread(_objectSpread({
|
|
146
147
|
reason: reason,
|
|
147
148
|
external: node.attrs.__external
|
|
148
|
-
}, nestedUnder &&
|
|
149
|
+
}, nestedUnder && editorExperiment('platform_synced_block', true) && fg('platform_synced_block_patch_5') ? {
|
|
149
150
|
nestedUnder: nestedUnder
|
|
150
|
-
} : {}),
|
|
151
|
+
} : {}), editorExperiment('platform_synced_block', true) && fg('platform_synced_block_patch_5') ? {
|
|
151
152
|
isDuplicateError: isDuplicateError
|
|
152
153
|
} : {})
|
|
153
154
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,20 +34,20 @@
|
|
|
34
34
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
35
35
|
"@atlaskit/button": "^23.10.0",
|
|
36
36
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
37
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
38
|
-
"@atlaskit/editor-plugin-annotation": "^
|
|
39
|
-
"@atlaskit/editor-plugin-connectivity": "^
|
|
40
|
-
"@atlaskit/editor-plugin-decorations": "^
|
|
41
|
-
"@atlaskit/editor-plugin-editor-disabled": "^
|
|
42
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
43
|
-
"@atlaskit/editor-plugin-floating-toolbar": "^
|
|
44
|
-
"@atlaskit/editor-plugin-focus": "^
|
|
45
|
-
"@atlaskit/editor-plugin-grid": "^
|
|
46
|
-
"@atlaskit/editor-plugin-guideline": "^
|
|
47
|
-
"@atlaskit/editor-plugin-interaction": "^
|
|
48
|
-
"@atlaskit/editor-plugin-selection": "^
|
|
49
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
50
|
-
"@atlaskit/editor-plugin-width": "^
|
|
37
|
+
"@atlaskit/editor-plugin-analytics": "^8.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-annotation": "^8.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-connectivity": "^8.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-decorations": "^8.0.0",
|
|
41
|
+
"@atlaskit/editor-plugin-editor-disabled": "^8.0.0",
|
|
42
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^10.0.0",
|
|
43
|
+
"@atlaskit/editor-plugin-floating-toolbar": "^10.0.0",
|
|
44
|
+
"@atlaskit/editor-plugin-focus": "^7.0.0",
|
|
45
|
+
"@atlaskit/editor-plugin-grid": "^8.0.0",
|
|
46
|
+
"@atlaskit/editor-plugin-guideline": "^8.0.0",
|
|
47
|
+
"@atlaskit/editor-plugin-interaction": "^15.0.0",
|
|
48
|
+
"@atlaskit/editor-plugin-selection": "^8.0.0",
|
|
49
|
+
"@atlaskit/editor-plugin-toolbar": "^5.0.0",
|
|
50
|
+
"@atlaskit/editor-plugin-width": "^9.0.0",
|
|
51
51
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
52
52
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
53
53
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"@atlaskit/primitives": "^18.0.0",
|
|
67
67
|
"@atlaskit/textfield": "^8.2.0",
|
|
68
68
|
"@atlaskit/theme": "^22.0.0",
|
|
69
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
70
|
-
"@atlaskit/tokens": "^11.
|
|
69
|
+
"@atlaskit/tmp-editor-statsig": "^35.10.0",
|
|
70
|
+
"@atlaskit/tokens": "^11.1.0",
|
|
71
71
|
"@atlaskit/tooltip": "^20.14.0",
|
|
72
72
|
"@babel/runtime": "^7.0.0",
|
|
73
73
|
"@emotion/react": "^11.7.1",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"uuid": "^3.1.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"@atlaskit/editor-common": "^
|
|
81
|
+
"@atlaskit/editor-common": "^112.0.0",
|
|
82
82
|
"@atlaskit/media-core": "^37.0.0",
|
|
83
83
|
"react": "^18.2.0",
|
|
84
84
|
"react-dom": "^18.2.0",
|