@atlaskit/editor-plugin-media 17.0.1 → 17.0.3

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,35 @@
1
1
  # @atlaskit/editor-plugin-media
2
2
 
3
+ ## 17.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`76e9f6152bf16`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/76e9f6152bf16) -
8
+ Enable launched synced block integrations and remove obsolete experiment scaffolding.
9
+
10
+ BREAKING: `@atlaskit/tmp-editor-statsig` no longer defines the `platform_synced_block` editor
11
+ experiment. Consumers that use `editorExperiment('platform_synced_block', ...)` to conditionally
12
+ enable synced-block integrations will no longer be able to look up that experiment; synced-block
13
+ integrations are now enabled by default. Remove each lookup and its conditional branch:
14
+
15
+ ```ts
16
+ // Before
17
+ if (editorExperiment('platform_synced_block', true)) {
18
+ enableSyncedBlocks();
19
+ }
20
+
21
+ // After
22
+ enableSyncedBlocks();
23
+ ```
24
+
25
+ - Updated dependencies
26
+
27
+ ## 17.0.2
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies
32
+
3
33
  ## 17.0.1
4
34
 
5
35
  ### Patch Changes
@@ -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 && (0, _experiments.editorExperiment)('platform_synced_block', true) ? {
155
+ }, nestedUnder ? {
157
156
  nestedUnder: nestedUnder
158
- } : {}), (0, _experiments.editorExperiment)('platform_synced_block', true) ? {
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 && editorExperiment('platform_synced_block', true) ? {
147
+ ...(nestedUnder ? {
149
148
  nestedUnder
150
149
  } : {}),
151
- ...(editorExperiment('platform_synced_block', true) ? {
152
- isDuplicateError
153
- } : {})
150
+ isDuplicateError
154
151
  }
155
152
  });
156
153
  },
@@ -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 && editorExperiment('platform_synced_block', true) ? {
146
+ }, nestedUnder ? {
148
147
  nestedUnder: nestedUnder
149
- } : {}), editorExperiment('platform_synced_block', true) ? {
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.1",
3
+ "version": "17.0.3",
4
4
  "description": "Media plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.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": "^147.1.0",
62
+ "@atlaskit/tmp-editor-statsig": "^149.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.4.0",
74
+ "@atlaskit/editor-common": "^119.7.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",