@atlaskit/editor-plugin-base 4.1.2 → 4.1.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-base
2
2
 
3
+ ## 4.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 4.1.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [`01301aa6646c4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/01301aa6646c4) -
14
+ Add advanced codeblocks experiment for jira.
15
+ - Updated dependencies
16
+
3
17
  ## 4.1.2
4
18
 
5
19
  ### Patch Changes
@@ -11,6 +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 _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
14
15
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
15
16
  var _setKeyboardHeight = require("./editor-commands/set-keyboard-height");
16
17
  var _disableSpellChecking = _interopRequireDefault(require("./pm-plugins/disable-spell-checking"));
@@ -106,7 +107,7 @@ var basePlugin = function basePlugin(_ref) {
106
107
  }];
107
108
  if ((0, _experiments.editorExperiment)('platform_editor_exp_lazy_node_views', true, {
108
109
  exposure: true
109
- })) {
110
+ }) || (0, _expValEquals.expValEquals)('platform_editor_jira_advanced_code_blocks', 'isEnabled', true)) {
110
111
  plugins.push({
111
112
  name: 'lazyNodeViewDecorationsPlugin',
112
113
  plugin: function plugin() {
@@ -2,6 +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 { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
6
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
6
7
  import { setKeyboardHeight } from './editor-commands/set-keyboard-height';
7
8
  import disableSpellcheckingPlugin from './pm-plugins/disable-spell-checking';
@@ -100,7 +101,7 @@ const basePlugin = ({
100
101
  }];
101
102
  if (editorExperiment('platform_editor_exp_lazy_node_views', true, {
102
103
  exposure: true
103
- })) {
104
+ }) || expValEquals('platform_editor_jira_advanced_code_blocks', 'isEnabled', true)) {
104
105
  plugins.push({
105
106
  name: 'lazyNodeViewDecorationsPlugin',
106
107
  plugin: () => createLazyNodeViewDecorationPlugin()
@@ -5,6 +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 { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
8
9
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
9
10
  import { setKeyboardHeight } from './editor-commands/set-keyboard-height';
10
11
  import disableSpellcheckingPlugin from './pm-plugins/disable-spell-checking';
@@ -98,7 +99,7 @@ var basePlugin = function basePlugin(_ref) {
98
99
  }];
99
100
  if (editorExperiment('platform_editor_exp_lazy_node_views', true, {
100
101
  exposure: true
101
- })) {
102
+ }) || expValEquals('platform_editor_jira_advanced_code_blocks', 'isEnabled', true)) {
102
103
  plugins.push({
103
104
  name: 'lazyNodeViewDecorationsPlugin',
104
105
  plugin: function plugin() {
@@ -9,5 +9,5 @@ export declare const NORMAL_SEVERITY_THRESHOLD = 2000;
9
9
  export declare const DEGRADED_SEVERITY_THRESHOLD = 3000;
10
10
  export declare const DEFAULT_TRACK_SEVERITY_THRESHOLD_NORMAL = 100;
11
11
  export declare const DEFAULT_TRACK_SEVERITY_THRESHOLD_DEGRADED = 500;
12
- declare const _default: (contextIdentifierPlugin: ExtractInjectionAPI<BasePlugin>['contextIdentifier'] | undefined) => (dispatchAnalyticsEvent: DispatchAnalyticsEvent, inputTracking?: InputTracking, browserFreezeTracking?: BrowserFreezetracking) => SafePlugin<any>;
12
+ declare const _default: (contextIdentifierPlugin: ExtractInjectionAPI<BasePlugin>["contextIdentifier"] | undefined) => (dispatchAnalyticsEvent: DispatchAnalyticsEvent, inputTracking?: InputTracking, browserFreezeTracking?: BrowserFreezetracking) => SafePlugin<any>;
13
13
  export default _default;
@@ -9,5 +9,5 @@ export declare const NORMAL_SEVERITY_THRESHOLD = 2000;
9
9
  export declare const DEGRADED_SEVERITY_THRESHOLD = 3000;
10
10
  export declare const DEFAULT_TRACK_SEVERITY_THRESHOLD_NORMAL = 100;
11
11
  export declare const DEFAULT_TRACK_SEVERITY_THRESHOLD_DEGRADED = 500;
12
- declare const _default: (contextIdentifierPlugin: ExtractInjectionAPI<BasePlugin>['contextIdentifier'] | undefined) => (dispatchAnalyticsEvent: DispatchAnalyticsEvent, inputTracking?: InputTracking, browserFreezeTracking?: BrowserFreezetracking) => SafePlugin<any>;
12
+ declare const _default: (contextIdentifierPlugin: ExtractInjectionAPI<BasePlugin>["contextIdentifier"] | undefined) => (dispatchAnalyticsEvent: DispatchAnalyticsEvent, inputTracking?: InputTracking, browserFreezeTracking?: BrowserFreezetracking) => SafePlugin<any>;
13
13
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-base",
3
- "version": "4.1.2",
3
+ "version": "4.1.4",
4
4
  "description": "Base plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,7 +35,7 @@
35
35
  "@atlaskit/editor-plugin-feature-flags": "^2.0.0",
36
36
  "@atlaskit/editor-prosemirror": "7.0.0",
37
37
  "@atlaskit/platform-feature-flags": "^1.1.0",
38
- "@atlaskit/tmp-editor-statsig": "^9.22.0",
38
+ "@atlaskit/tmp-editor-statsig": "^10.0.0",
39
39
  "@babel/runtime": "^7.0.0"
40
40
  },
41
41
  "techstack": {
@@ -77,6 +77,6 @@
77
77
  }
78
78
  },
79
79
  "peerDependencies": {
80
- "@atlaskit/editor-common": "^107.16.0"
80
+ "@atlaskit/editor-common": "^107.25.0"
81
81
  }
82
82
  }