@atlaskit/editor-plugin-base 1.11.2 → 1.11.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,13 @@
1
1
  # @atlaskit/editor-plugin-base
2
2
 
3
+ ## 1.11.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#139034](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/139034)
8
+ [`517cdc0f7ea1a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/517cdc0f7ea1a) -
9
+ Used experiment for lazy node view
10
+
3
11
  ## 1.11.2
4
12
 
5
13
  ### Patch Changes
@@ -11,7 +11,7 @@ var _adfSchema = require("@atlaskit/adf-schema");
11
11
  var _keymaps = require("@atlaskit/editor-common/keymaps");
12
12
  var _commands = require("@atlaskit/editor-prosemirror/commands");
13
13
  var _history = require("@atlaskit/editor-prosemirror/history");
14
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
+ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
15
15
  var _commands2 = require("./commands");
16
16
  var _disableSpellChecking = _interopRequireDefault(require("./pm-plugins/disable-spell-checking"));
17
17
  var _filterSteps = _interopRequireDefault(require("./pm-plugins/filter-steps"));
@@ -47,7 +47,9 @@ var basePlugin = function basePlugin(_ref) {
47
47
  return (0, _filterSteps.default)(dispatchAnalyticsEvent);
48
48
  }
49
49
  }];
50
- if ((0, _platformFeatureFlags.fg)('platform_editor_lazy-node-views')) {
50
+ if ((0, _experiments.editorExperiment)('platform_editor_exp_lazy_node_views', true, {
51
+ exposure: true
52
+ })) {
51
53
  plugins.push({
52
54
  name: 'lazyNodeViewDecorationsPlugin',
53
55
  plugin: function plugin() {
@@ -2,7 +2,7 @@ import { doc, paragraph, text } from '@atlaskit/adf-schema';
2
2
  import { keymap } from '@atlaskit/editor-common/keymaps';
3
3
  import { baseKeymap } from '@atlaskit/editor-prosemirror/commands';
4
4
  import { history } from '@atlaskit/editor-prosemirror/history';
5
- import { fg } from '@atlaskit/platform-feature-flags';
5
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
6
6
  import { setKeyboardHeight } from './commands';
7
7
  import disableSpellcheckingPlugin from './pm-plugins/disable-spell-checking';
8
8
  import filterStepsPlugin from './pm-plugins/filter-steps';
@@ -34,7 +34,9 @@ const basePlugin = ({
34
34
  dispatchAnalyticsEvent
35
35
  }) => filterStepsPlugin(dispatchAnalyticsEvent)
36
36
  }];
37
- if (fg('platform_editor_lazy-node-views')) {
37
+ if (editorExperiment('platform_editor_exp_lazy_node_views', true, {
38
+ exposure: true
39
+ })) {
38
40
  plugins.push({
39
41
  name: 'lazyNodeViewDecorationsPlugin',
40
42
  plugin: () => createLazyNodeViewDecorationPlugin()
@@ -5,7 +5,7 @@ import { doc, paragraph, text } from '@atlaskit/adf-schema';
5
5
  import { keymap } from '@atlaskit/editor-common/keymaps';
6
6
  import { baseKeymap } from '@atlaskit/editor-prosemirror/commands';
7
7
  import { history } from '@atlaskit/editor-prosemirror/history';
8
- import { fg } from '@atlaskit/platform-feature-flags';
8
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
9
9
  import { setKeyboardHeight } from './commands';
10
10
  import disableSpellcheckingPlugin from './pm-plugins/disable-spell-checking';
11
11
  import filterStepsPlugin from './pm-plugins/filter-steps';
@@ -37,7 +37,9 @@ var basePlugin = function basePlugin(_ref) {
37
37
  return filterStepsPlugin(dispatchAnalyticsEvent);
38
38
  }
39
39
  }];
40
- if (fg('platform_editor_lazy-node-views')) {
40
+ if (editorExperiment('platform_editor_exp_lazy_node_views', true, {
41
+ exposure: true
42
+ })) {
41
43
  plugins.push({
42
44
  name: 'lazyNodeViewDecorationsPlugin',
43
45
  plugin: function plugin() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-base",
3
- "version": "1.11.2",
3
+ "version": "1.11.3",
4
4
  "description": "Base plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,14 +36,9 @@
36
36
  "@atlaskit/editor-plugin-context-identifier": "^1.3.0",
37
37
  "@atlaskit/editor-plugin-feature-flags": "^1.2.0",
38
38
  "@atlaskit/editor-prosemirror": "5.0.1",
39
- "@atlaskit/platform-feature-flags": "^0.3.0",
39
+ "@atlaskit/tmp-editor-statsig": "^2.1.8",
40
40
  "@babel/runtime": "^7.0.0"
41
41
  },
42
- "platform-feature-flags": {
43
- "platform_editor_lazy-node-views": {
44
- "type": "boolean"
45
- }
46
- },
47
42
  "techstack": {
48
43
  "@atlassian/frontend": {
49
44
  "import-structure": [
package/tsconfig.app.json CHANGED
@@ -42,7 +42,7 @@
42
42
  "path": "../editor-plugin-feature-flags/tsconfig.app.json"
43
43
  },
44
44
  {
45
- "path": "../../platform/feature-flags/tsconfig.app.json"
45
+ "path": "../tmp-editor-statsig/tsconfig.app.json"
46
46
  }
47
47
  ]
48
48
  }