@atlaskit/editor-plugin-synced-block 23.0.2 → 23.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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/editor-plugin-synced-block
2
2
 
3
+ ## 23.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`59547e8338ae0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/59547e8338ae0) -
8
+ Clean up feature gate `platform_editor_blocks_patch_8`
9
+ - Updated dependencies
10
+
11
+ ## 23.0.3
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 23.0.2
4
18
 
5
19
  ### Patch Changes
@@ -16,7 +16,6 @@ var _state = require("@atlaskit/editor-prosemirror/state");
16
16
  var _utils = require("@atlaskit/editor-prosemirror/utils");
17
17
  var _utils2 = require("@atlaskit/editor-synced-block-provider/utils");
18
18
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
19
- var _fg = require("@atlaskit/platform-feature-flags/fg");
20
19
  var _main = require("../pm-plugins/main");
21
20
  var _utils3 = require("../pm-plugins/utils/utils");
22
21
  var _types = require("../types");
@@ -140,7 +139,7 @@ var createSyncedBlock = exports.createSyncedBlock = function createSyncedBlock(_
140
139
  }))).sort();
141
140
  }
142
141
  var _attrs = syncBlockStore.sourceManager.generateBodiedSyncBlockAttrs();
143
- var _newBodiedSyncBlockNode = bodiedSyncBlock.createAndFill(_attrs, conversionInfo.contentToInclude, (0, _fg.fg)('platform_editor_blocks_patch_8') && conversionInfo.breakoutMark ? [conversionInfo.breakoutMark] : undefined);
142
+ var _newBodiedSyncBlockNode = bodiedSyncBlock.createAndFill(_attrs, conversionInfo.contentToInclude, conversionInfo.breakoutMark ? [conversionInfo.breakoutMark] : undefined);
144
143
  if (!_newBodiedSyncBlockNode) {
145
144
  fireAnalyticsEvent === null || fireAnalyticsEvent === void 0 || fireAnalyticsEvent({
146
145
  action: _analytics.ACTION.ERROR,
@@ -7,7 +7,6 @@ import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosem
7
7
  import { findSelectedNodeOfType, removeParentNodeOfType, removeSelectedNode, safeInsert } from '@atlaskit/editor-prosemirror/utils';
8
8
  import { getSourceProductFromResourceIdSafe } from '@atlaskit/editor-synced-block-provider/utils';
9
9
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
10
- import { fg } from '@atlaskit/platform-feature-flags/fg';
11
10
  import { creationMetaKey, deleteMechanismMetaKey, syncedBlockPluginKey } from '../pm-plugins/main';
12
11
  import { canBeConvertedToSyncBlock, deferDispatch, findSyncBlock, findSyncBlockOrBodiedSyncBlock, isBodiedSyncBlockNode } from '../pm-plugins/utils/utils';
13
12
  import { FLAG_ID } from '../types';
@@ -133,7 +132,7 @@ export const createSyncedBlock = ({
133
132
  nodeTypes = [...new Set(getSourceNodesFromSelectionRange(tr, tr.selection).map(node => node.type.name))].sort();
134
133
  }
135
134
  const attrs = syncBlockStore.sourceManager.generateBodiedSyncBlockAttrs();
136
- const newBodiedSyncBlockNode = bodiedSyncBlock.createAndFill(attrs, conversionInfo.contentToInclude, fg('platform_editor_blocks_patch_8') && conversionInfo.breakoutMark ? [conversionInfo.breakoutMark] : undefined);
135
+ const newBodiedSyncBlockNode = bodiedSyncBlock.createAndFill(attrs, conversionInfo.contentToInclude, conversionInfo.breakoutMark ? [conversionInfo.breakoutMark] : undefined);
137
136
  if (!newBodiedSyncBlockNode) {
138
137
  fireAnalyticsEvent === null || fireAnalyticsEvent === void 0 ? void 0 : fireAnalyticsEvent({
139
138
  action: ACTION.ERROR,
@@ -11,7 +11,6 @@ import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosem
11
11
  import { findSelectedNodeOfType, removeParentNodeOfType, removeSelectedNode, safeInsert } from '@atlaskit/editor-prosemirror/utils';
12
12
  import { getSourceProductFromResourceIdSafe } from '@atlaskit/editor-synced-block-provider/utils';
13
13
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
14
- import { fg } from '@atlaskit/platform-feature-flags/fg';
15
14
  import { creationMetaKey, deleteMechanismMetaKey, syncedBlockPluginKey } from '../pm-plugins/main';
16
15
  import { canBeConvertedToSyncBlock, deferDispatch, findSyncBlock, findSyncBlockOrBodiedSyncBlock, isBodiedSyncBlockNode } from '../pm-plugins/utils/utils';
17
16
  import { FLAG_ID } from '../types';
@@ -133,7 +132,7 @@ export var createSyncedBlock = function createSyncedBlock(_ref) {
133
132
  }))).sort();
134
133
  }
135
134
  var _attrs = syncBlockStore.sourceManager.generateBodiedSyncBlockAttrs();
136
- var _newBodiedSyncBlockNode = bodiedSyncBlock.createAndFill(_attrs, conversionInfo.contentToInclude, fg('platform_editor_blocks_patch_8') && conversionInfo.breakoutMark ? [conversionInfo.breakoutMark] : undefined);
135
+ var _newBodiedSyncBlockNode = bodiedSyncBlock.createAndFill(_attrs, conversionInfo.contentToInclude, conversionInfo.breakoutMark ? [conversionInfo.breakoutMark] : undefined);
137
136
  if (!_newBodiedSyncBlockNode) {
138
137
  fireAnalyticsEvent === null || fireAnalyticsEvent === void 0 || fireAnalyticsEvent({
139
138
  action: ACTION.ERROR,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-synced-block",
3
- "version": "23.0.2",
3
+ "version": "23.0.4",
4
4
  "description": "SyncedBlock plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -53,7 +53,7 @@
53
53
  "@atlaskit/platform-feature-flags": "^2.2.0",
54
54
  "@atlaskit/primitives": "^22.5.0",
55
55
  "@atlaskit/spinner": "20.4.4",
56
- "@atlaskit/tmp-editor-statsig": "^225.0.0",
56
+ "@atlaskit/tmp-editor-statsig": "^227.0.0",
57
57
  "@atlaskit/tokens": "20.3.0",
58
58
  "@atlaskit/tooltip": "^24.4.0",
59
59
  "@atlaskit/visually-hidden": "^4.4.0",
@@ -77,9 +77,6 @@
77
77
  "platform-feature-flags": {
78
78
  "confluence_fronend_labels_categorization_migration": {
79
79
  "type": "boolean"
80
- },
81
- "platform_editor_blocks_patch_8": {
82
- "type": "boolean"
83
80
  }
84
81
  }
85
82
  }