@atlaskit/editor-plugin-synced-block 10.2.10 → 10.2.11

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,16 @@
1
1
  # @atlaskit/editor-plugin-synced-block
2
2
 
3
+ ## 10.2.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a3bbfab896310`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a3bbfab896310) -
8
+ Replace feature gate `confluence_frontend_native_tabs_extension` with experiment
9
+ `confluence_native_tabs_experiment` using `expValEquals` from
10
+ `@atlaskit/tmp-editor-statsig/exp-val-equals`. Usage:
11
+ `expValEquals('confluence_native_tabs_experiment', 'isEnabled', true)`.
12
+ - Updated dependencies
13
+
3
14
  ## 10.2.10
4
15
 
5
16
  ### Patch Changes
@@ -11,7 +11,7 @@ var _selection = require("@atlaskit/editor-common/selection");
11
11
  var _model = require("@atlaskit/editor-prosemirror/model");
12
12
  var _transform = require("@atlaskit/editor-prosemirror/transform");
13
13
  var _utils = require("@atlaskit/editor-prosemirror/utils");
14
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
15
15
  /**
16
16
  * Defers a callback to the next microtask (when gated) or next macrotask via setTimeout(0).
17
17
  * Used to avoid re-entrant ProseMirror dispatch cycles.
@@ -33,7 +33,7 @@ var isBodiedSyncBlockNode = exports.isBodiedSyncBlockNode = function isBodiedSyn
33
33
  return node.type === bodiedSyncBlock;
34
34
  };
35
35
  var getUnsupportedNodeTypes = exports.getUnsupportedNodeTypes = (0, _memoizeOne.default)(function () {
36
- return new Set(['inlineExtension', 'extension', 'bodiedExtension', 'syncBlock', 'bodiedSyncBlock'].concat((0, _toConsumableArray2.default)((0, _platformFeatureFlags.fg)('confluence_frontend_native_tabs_extension') ? ['multiBodiedExtension'] : [])));
36
+ return new Set(['inlineExtension', 'extension', 'bodiedExtension', 'syncBlock', 'bodiedSyncBlock'].concat((0, _toConsumableArray2.default)((0, _expValEquals.expValEquals)('confluence_native_tabs_experiment', 'isEnabled', true) ? ['multiBodiedExtension'] : [])));
37
37
  });
38
38
 
39
39
  /**
@@ -3,7 +3,7 @@ import { expandSelectionToBlockRange } from '@atlaskit/editor-common/selection';
3
3
  import { Fragment } from '@atlaskit/editor-prosemirror/model';
4
4
  import { ReplaceAroundStep, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
5
5
  import { findParentNodeOfType, findParentNodeOfTypeClosestToPos, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
6
- import { fg } from '@atlaskit/platform-feature-flags';
6
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
7
7
 
8
8
  /**
9
9
  * Defers a callback to the next microtask (when gated) or next macrotask via setTimeout(0).
@@ -25,7 +25,7 @@ export const findSyncBlockOrBodiedSyncBlock = (schema, selection) => {
25
25
  return findSyncBlock(schema, selection) || findBodiedSyncBlock(schema, selection);
26
26
  };
27
27
  export const isBodiedSyncBlockNode = (node, bodiedSyncBlock) => node.type === bodiedSyncBlock;
28
- export const getUnsupportedNodeTypes = memoizeOne(() => new Set(['inlineExtension', 'extension', 'bodiedExtension', 'syncBlock', 'bodiedSyncBlock', ...(fg('confluence_frontend_native_tabs_extension') ? ['multiBodiedExtension'] : [])]));
28
+ export const getUnsupportedNodeTypes = memoizeOne(() => new Set(['inlineExtension', 'extension', 'bodiedExtension', 'syncBlock', 'bodiedSyncBlock', ...(expValEquals('confluence_native_tabs_experiment', 'isEnabled', true) ? ['multiBodiedExtension'] : [])]));
29
29
 
30
30
  /**
31
31
  * Checks whether the selection can be converted to sync block
@@ -4,7 +4,7 @@ import { expandSelectionToBlockRange } from '@atlaskit/editor-common/selection';
4
4
  import { Fragment } from '@atlaskit/editor-prosemirror/model';
5
5
  import { ReplaceAroundStep, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
6
6
  import { findParentNodeOfType, findParentNodeOfTypeClosestToPos, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
7
- import { fg } from '@atlaskit/platform-feature-flags';
7
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
8
8
 
9
9
  /**
10
10
  * Defers a callback to the next microtask (when gated) or next macrotask via setTimeout(0).
@@ -27,7 +27,7 @@ export var isBodiedSyncBlockNode = function isBodiedSyncBlockNode(node, bodiedSy
27
27
  return node.type === bodiedSyncBlock;
28
28
  };
29
29
  export var getUnsupportedNodeTypes = memoizeOne(function () {
30
- return new Set(['inlineExtension', 'extension', 'bodiedExtension', 'syncBlock', 'bodiedSyncBlock'].concat(_toConsumableArray(fg('confluence_frontend_native_tabs_extension') ? ['multiBodiedExtension'] : [])));
30
+ return new Set(['inlineExtension', 'extension', 'bodiedExtension', 'syncBlock', 'bodiedSyncBlock'].concat(_toConsumableArray(expValEquals('confluence_native_tabs_experiment', 'isEnabled', true) ? ['multiBodiedExtension'] : [])));
31
31
  });
32
32
 
33
33
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-synced-block",
3
- "version": "10.2.10",
3
+ "version": "10.2.11",
4
4
  "description": "SyncedBlock plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -21,8 +21,8 @@
21
21
  "atlaskit:src": "src/index.ts",
22
22
  "dependencies": {
23
23
  "@atlaskit/adf-schema": "^56.1.0",
24
- "@atlaskit/button": "24.3.2",
25
- "@atlaskit/dropdown-menu": "17.1.3",
24
+ "@atlaskit/button": "24.3.3",
25
+ "@atlaskit/dropdown-menu": "17.1.4",
26
26
  "@atlaskit/editor-json-transformer": "^9.0.0",
27
27
  "@atlaskit/editor-plugin-analytics": "^12.0.0",
28
28
  "@atlaskit/editor-plugin-block-menu": "^11.1.0",
@@ -37,16 +37,16 @@
37
37
  "@atlaskit/editor-shared-styles": "^4.0.0",
38
38
  "@atlaskit/editor-synced-block-provider": "^8.6.0",
39
39
  "@atlaskit/editor-toolbar": "^2.2.0",
40
- "@atlaskit/flag": "^18.1.0",
40
+ "@atlaskit/flag": "^18.2.0",
41
41
  "@atlaskit/icon": "37.0.0",
42
42
  "@atlaskit/icon-lab": "^7.3.0",
43
43
  "@atlaskit/logo": "^21.4.0",
44
44
  "@atlaskit/lozenge": "^14.1.0",
45
45
  "@atlaskit/modal-dialog": "^16.1.0",
46
46
  "@atlaskit/platform-feature-flags": "^2.0.0",
47
- "@atlaskit/primitives": "^20.6.0",
47
+ "@atlaskit/primitives": "^21.0.0",
48
48
  "@atlaskit/spinner": "20.1.0",
49
- "@atlaskit/tmp-editor-statsig": "^125.1.0",
49
+ "@atlaskit/tmp-editor-statsig": "^125.2.0",
50
50
  "@atlaskit/tokens": "15.8.0",
51
51
  "@atlaskit/tooltip": "^23.1.0",
52
52
  "@atlaskit/visually-hidden": "^4.1.0",
@@ -103,9 +103,6 @@
103
103
  }
104
104
  },
105
105
  "platform-feature-flags": {
106
- "confluence_frontend_native_tabs_extension": {
107
- "type": "boolean"
108
- },
109
106
  "confluence_fronend_labels_categorization_migration": {
110
107
  "type": "boolean"
111
108
  },