@atlaskit/editor-plugin-base 4.1.1 → 4.1.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 +17 -0
- package/dist/cjs/basePlugin.js +2 -1
- package/dist/es2019/basePlugin.js +2 -1
- package/dist/esm/basePlugin.js +2 -1
- package/dist/types/pm-plugins/frozen-editor.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/frozen-editor.d.ts +1 -1
- package/package.json +4 -4
- package/tsconfig.dev.json +7 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-base
|
|
2
2
|
|
|
3
|
+
## 4.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`01301aa6646c4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/01301aa6646c4) -
|
|
8
|
+
Add advanced codeblocks experiment for jira.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 4.1.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#195649](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/195649)
|
|
16
|
+
[`231bb33e06dfe`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/231bb33e06dfe) -
|
|
17
|
+
EDITOR-1131 Bump adf-schema version to 50.2.0
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 4.1.1
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/cjs/basePlugin.js
CHANGED
|
@@ -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()
|
package/dist/esm/basePlugin.js
CHANGED
|
@@ -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>[
|
|
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>[
|
|
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.
|
|
3
|
+
"version": "4.1.3",
|
|
4
4
|
"description": "Base plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
".": "./src/index.ts"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@atlaskit/adf-schema": "^50.0
|
|
33
|
+
"@atlaskit/adf-schema": "^50.2.0",
|
|
34
34
|
"@atlaskit/editor-plugin-context-identifier": "^3.0.0",
|
|
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.
|
|
38
|
+
"@atlaskit/tmp-editor-statsig": "^9.29.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.
|
|
80
|
+
"@atlaskit/editor-common": "^107.23.0"
|
|
81
81
|
}
|
|
82
82
|
}
|
package/tsconfig.dev.json
CHANGED
|
@@ -23,7 +23,13 @@
|
|
|
23
23
|
"./__mocks__/**/*",
|
|
24
24
|
"**/mock.*",
|
|
25
25
|
"**/codemods/**/*.ts",
|
|
26
|
-
"**/codemods/**/*.tsx"
|
|
26
|
+
"**/codemods/**/*.tsx",
|
|
27
|
+
"**/stories.ts",
|
|
28
|
+
"**/stories.tsx",
|
|
29
|
+
"**/stories/*.ts",
|
|
30
|
+
"**/stories/*.tsx",
|
|
31
|
+
"**/stories/**/*.ts",
|
|
32
|
+
"**/stories/**/*.tsx"
|
|
27
33
|
],
|
|
28
34
|
"exclude": ["./dist/**/*", "./build/**/*", "./node_modules/**/*"],
|
|
29
35
|
"compilerOptions": {
|