@atlaskit/editor-plugin-media 17.0.2 → 17.0.4
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 +30 -0
- package/dist/cjs/mediaPlugin.js +3 -4
- package/dist/es2019/mediaPlugin.js +2 -5
- package/dist/esm/mediaPlugin.js +3 -4
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 17.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 17.0.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`76e9f6152bf16`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/76e9f6152bf16) -
|
|
14
|
+
Enable launched synced block integrations and remove obsolete experiment scaffolding.
|
|
15
|
+
|
|
16
|
+
BREAKING: `@atlaskit/tmp-editor-statsig` no longer defines the `platform_synced_block` editor
|
|
17
|
+
experiment. Consumers that use `editorExperiment('platform_synced_block', ...)` to conditionally
|
|
18
|
+
enable synced-block integrations will no longer be able to look up that experiment; synced-block
|
|
19
|
+
integrations are now enabled by default. Remove each lookup and its conditional branch:
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
// Before
|
|
23
|
+
if (editorExperiment('platform_synced_block', true)) {
|
|
24
|
+
enableSyncedBlocks();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// After
|
|
28
|
+
enableSyncedBlocks();
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
- Updated dependencies
|
|
32
|
+
|
|
3
33
|
## 17.0.2
|
|
4
34
|
|
|
5
35
|
### Patch Changes
|
package/dist/cjs/mediaPlugin.js
CHANGED
|
@@ -18,7 +18,6 @@ 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");
|
|
22
21
|
var _lazyMediaGroup = require("./nodeviews/lazy-media-group");
|
|
23
22
|
var _lazyMediaInline = require("./nodeviews/lazy-media-inline");
|
|
24
23
|
var _mediaNodeView = require("./nodeviews/mediaNodeView");
|
|
@@ -153,11 +152,11 @@ var mediaPlugin = exports.mediaPlugin = function mediaPlugin(_ref3) {
|
|
|
153
152
|
attributes: _objectSpread(_objectSpread({
|
|
154
153
|
reason: reason,
|
|
155
154
|
external: node.attrs.__external
|
|
156
|
-
}, nestedUnder
|
|
155
|
+
}, nestedUnder ? {
|
|
157
156
|
nestedUnder: nestedUnder
|
|
158
|
-
} : {}),
|
|
157
|
+
} : {}), {}, {
|
|
159
158
|
isDuplicateError: isDuplicateError
|
|
160
|
-
}
|
|
159
|
+
})
|
|
161
160
|
});
|
|
162
161
|
},
|
|
163
162
|
insertMediaAsMediaSingle: function insertMediaAsMediaSingle(view, node, inputMethod, insertMediaVia) {
|
|
@@ -9,7 +9,6 @@ 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';
|
|
13
12
|
import { lazyMediaGroupView } from './nodeviews/lazy-media-group';
|
|
14
13
|
import { lazyMediaInlineView } from './nodeviews/lazy-media-inline';
|
|
15
14
|
import { ReactMediaNode } from './nodeviews/mediaNodeView';
|
|
@@ -145,12 +144,10 @@ export const mediaPlugin = ({
|
|
|
145
144
|
attributes: {
|
|
146
145
|
reason,
|
|
147
146
|
external: node.attrs.__external,
|
|
148
|
-
...(nestedUnder
|
|
147
|
+
...(nestedUnder ? {
|
|
149
148
|
nestedUnder
|
|
150
149
|
} : {}),
|
|
151
|
-
|
|
152
|
-
isDuplicateError
|
|
153
|
-
} : {})
|
|
150
|
+
isDuplicateError
|
|
154
151
|
}
|
|
155
152
|
});
|
|
156
153
|
},
|
package/dist/esm/mediaPlugin.js
CHANGED
|
@@ -12,7 +12,6 @@ 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';
|
|
16
15
|
import { lazyMediaGroupView } from './nodeviews/lazy-media-group';
|
|
17
16
|
import { lazyMediaInlineView } from './nodeviews/lazy-media-inline';
|
|
18
17
|
import { ReactMediaNode } from './nodeviews/mediaNodeView';
|
|
@@ -144,11 +143,11 @@ export var mediaPlugin = function mediaPlugin(_ref3) {
|
|
|
144
143
|
attributes: _objectSpread(_objectSpread({
|
|
145
144
|
reason: reason,
|
|
146
145
|
external: node.attrs.__external
|
|
147
|
-
}, nestedUnder
|
|
146
|
+
}, nestedUnder ? {
|
|
148
147
|
nestedUnder: nestedUnder
|
|
149
|
-
} : {}),
|
|
148
|
+
} : {}), {}, {
|
|
150
149
|
isDuplicateError: isDuplicateError
|
|
151
|
-
}
|
|
150
|
+
})
|
|
152
151
|
});
|
|
153
152
|
},
|
|
154
153
|
insertMediaAsMediaSingle: function insertMediaAsMediaSingle(view, node, inputMethod, insertMediaVia) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.4",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@atlaskit/adf-schema": "^57.0.0",
|
|
25
25
|
"@atlaskit/analytics-namespaced-context": "^8.1.0",
|
|
26
26
|
"@atlaskit/analytics-next": "^12.3.0",
|
|
27
|
-
"@atlaskit/button": "^25.
|
|
27
|
+
"@atlaskit/button": "^25.1.0",
|
|
28
28
|
"@atlaskit/editor-palette": "^3.4.0",
|
|
29
29
|
"@atlaskit/editor-plugin-analytics": "^15.0.0",
|
|
30
30
|
"@atlaskit/editor-plugin-annotation": "^15.0.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
60
60
|
"@atlaskit/primitives": "^22.2.0",
|
|
61
61
|
"@atlaskit/textfield": "^10.0.0",
|
|
62
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
62
|
+
"@atlaskit/tmp-editor-statsig": "^150.0.0",
|
|
63
63
|
"@atlaskit/tokens": "^16.7.0",
|
|
64
64
|
"@atlaskit/tooltip": "^24.0.0",
|
|
65
65
|
"@babel/runtime": "^7.0.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"uuid": "^3.1.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"@atlaskit/editor-common": "^119.
|
|
74
|
+
"@atlaskit/editor-common": "^119.9.0",
|
|
75
75
|
"@atlaskit/media-core": "^38.0.0",
|
|
76
76
|
"react": "^18.2.0 || ^19.2.0",
|
|
77
77
|
"react-dom": "^18.2.0 || ^19.2.0",
|