@atlaskit/editor-plugin-media 18.1.5 → 18.1.6
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 +9 -0
- package/dist/cjs/mediaPlugin.js +2 -2
- package/dist/es2019/mediaPlugin.js +2 -2
- package/dist/esm/mediaPlugin.js +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media
|
|
2
2
|
|
|
3
|
+
## 18.1.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a6c26b16402ca`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a6c26b16402ca) -
|
|
8
|
+
Migrate nine dogfooding editor experiments from `@atlaskit/tmp-editor-statsig` to the Platform
|
|
9
|
+
experiment API and move their tests to Platform experiment mocks.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 18.1.5
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/cjs/mediaPlugin.js
CHANGED
|
@@ -16,8 +16,8 @@ var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
|
16
16
|
var _toolbarFlagCheck = require("@atlaskit/editor-common/toolbar-flag-check");
|
|
17
17
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
18
18
|
var _mediaCommon = require("@atlaskit/media-common");
|
|
19
|
+
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
19
20
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
20
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
21
21
|
var _lazyMediaGroup = require("./nodeviews/lazy-media-group");
|
|
22
22
|
var _lazyMediaInline = require("./nodeviews/lazy-media-inline");
|
|
23
23
|
var _mediaNodeView = require("./nodeviews/mediaNodeView");
|
|
@@ -134,7 +134,7 @@ var mediaPlugin = exports.mediaPlugin = function mediaPlugin(_ref3) {
|
|
|
134
134
|
handleMediaNodeRenderError: function handleMediaNodeRenderError(node, reason, nestedUnder) {
|
|
135
135
|
var _api$analytics;
|
|
136
136
|
var isDuplicateError = false;
|
|
137
|
-
if ((0,
|
|
137
|
+
if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_media_reliability_observability')) {
|
|
138
138
|
if (mediaErrorLocalIds.has(node.attrs.localId)) {
|
|
139
139
|
// we mark duplicate errors in the case of nested media nodes
|
|
140
140
|
// renderering to avoid firing multiple errored events for the same underlying issue,
|
|
@@ -7,8 +7,8 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
7
7
|
import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-check';
|
|
8
8
|
import { NodeSelection, PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
9
9
|
import { getMediaFeatureFlag } from '@atlaskit/media-common';
|
|
10
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
10
11
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
12
|
import { lazyMediaGroupView } from './nodeviews/lazy-media-group';
|
|
13
13
|
import { lazyMediaInlineView } from './nodeviews/lazy-media-inline';
|
|
14
14
|
import { ReactMediaNode } from './nodeviews/mediaNodeView';
|
|
@@ -126,7 +126,7 @@ export const mediaPlugin = ({
|
|
|
126
126
|
handleMediaNodeRenderError: (node, reason, nestedUnder) => {
|
|
127
127
|
var _api$analytics;
|
|
128
128
|
let isDuplicateError = false;
|
|
129
|
-
if (
|
|
129
|
+
if (isExperimentEnabled('platform_editor_media_reliability_observability')) {
|
|
130
130
|
if (mediaErrorLocalIds.has(node.attrs.localId)) {
|
|
131
131
|
// we mark duplicate errors in the case of nested media nodes
|
|
132
132
|
// renderering to avoid firing multiple errored events for the same underlying issue,
|
package/dist/esm/mediaPlugin.js
CHANGED
|
@@ -10,8 +10,8 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
10
10
|
import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-check';
|
|
11
11
|
import { NodeSelection, PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
12
12
|
import { getMediaFeatureFlag } from '@atlaskit/media-common';
|
|
13
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
13
14
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
14
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
15
15
|
import { lazyMediaGroupView } from './nodeviews/lazy-media-group';
|
|
16
16
|
import { lazyMediaInlineView } from './nodeviews/lazy-media-inline';
|
|
17
17
|
import { ReactMediaNode } from './nodeviews/mediaNodeView';
|
|
@@ -125,7 +125,7 @@ export var mediaPlugin = function mediaPlugin(_ref3) {
|
|
|
125
125
|
handleMediaNodeRenderError: function handleMediaNodeRenderError(node, reason, nestedUnder) {
|
|
126
126
|
var _api$analytics;
|
|
127
127
|
var isDuplicateError = false;
|
|
128
|
-
if (
|
|
128
|
+
if (isExperimentEnabled('platform_editor_media_reliability_observability')) {
|
|
129
129
|
if (mediaErrorLocalIds.has(node.attrs.localId)) {
|
|
130
130
|
// we mark duplicate errors in the case of nested media nodes
|
|
131
131
|
// renderering to avoid firing multiple errored events for the same underlying issue,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "18.1.
|
|
3
|
+
"version": "18.1.6",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
61
61
|
"@atlaskit/primitives": "^22.5.0",
|
|
62
62
|
"@atlaskit/textfield": "^10.2.0",
|
|
63
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
63
|
+
"@atlaskit/tmp-editor-statsig": "^174.0.0",
|
|
64
64
|
"@atlaskit/tokens": "^16.11.0",
|
|
65
65
|
"@atlaskit/tooltip": "^24.3.0",
|
|
66
66
|
"@babel/runtime": "^7.0.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"uuid": "^3.1.0"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"@atlaskit/editor-common": "^120.
|
|
75
|
+
"@atlaskit/editor-common": "^120.12.0",
|
|
76
76
|
"@atlaskit/media-core": "^38.2.0",
|
|
77
77
|
"react": "^18.2.0 || ^19.2.0",
|
|
78
78
|
"react-dom": "^18.2.0 || ^19.2.0",
|