@atlaskit/editor-plugin-base 1.5.0 → 1.6.1
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 +18 -0
- package/dist/cjs/plugin.js +1 -3
- package/dist/es2019/plugin.js +2 -4
- package/dist/esm/plugin.js +2 -4
- package/package.json +76 -82
- package/tsconfig.app.json +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-base
|
|
2
2
|
|
|
3
|
+
## 1.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.6.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#114156](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114156)
|
|
14
|
+
[`bc6a63af2d1d0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bc6a63af2d1d0) -
|
|
15
|
+
Bump adf-schema to 37.0.0 and adf-schema-json to 1.16.0
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 1.5.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -11,7 +11,6 @@ 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");
|
|
15
14
|
var _commands2 = require("./commands");
|
|
16
15
|
var _disableSpellChecking = _interopRequireDefault(require("./pm-plugins/disable-spell-checking"));
|
|
17
16
|
var _filterSteps = _interopRequireDefault(require("./pm-plugins/filter-steps"));
|
|
@@ -111,13 +110,12 @@ var basePlugin = function basePlugin(_ref) {
|
|
|
111
110
|
return plugins;
|
|
112
111
|
},
|
|
113
112
|
nodes: function nodes() {
|
|
114
|
-
var paragraphNode = (0, _platformFeatureFlags.getBooleanFF)('platform.editor.enable-localid-for-paragraph-in-stage-0_cby7g') ? _adfSchema.paragraphStage0 : _adfSchema.paragraph;
|
|
115
113
|
return [{
|
|
116
114
|
name: 'doc',
|
|
117
115
|
node: _adfSchema.doc
|
|
118
116
|
}, {
|
|
119
117
|
name: 'paragraph',
|
|
120
|
-
node:
|
|
118
|
+
node: _adfSchema.paragraph
|
|
121
119
|
}, {
|
|
122
120
|
name: 'text',
|
|
123
121
|
node: _adfSchema.text
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { doc, paragraph,
|
|
1
|
+
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 { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { setKeyboardHeight } from './commands';
|
|
7
6
|
import disableSpellcheckingPlugin from './pm-plugins/disable-spell-checking';
|
|
8
7
|
import filterStepsPlugin from './pm-plugins/filter-steps';
|
|
@@ -86,13 +85,12 @@ const basePlugin = ({
|
|
|
86
85
|
return plugins;
|
|
87
86
|
},
|
|
88
87
|
nodes() {
|
|
89
|
-
const paragraphNode = getBooleanFF('platform.editor.enable-localid-for-paragraph-in-stage-0_cby7g') ? paragraphStage0 : paragraph;
|
|
90
88
|
return [{
|
|
91
89
|
name: 'doc',
|
|
92
90
|
node: doc
|
|
93
91
|
}, {
|
|
94
92
|
name: 'paragraph',
|
|
95
|
-
node:
|
|
93
|
+
node: paragraph
|
|
96
94
|
}, {
|
|
97
95
|
name: 'text',
|
|
98
96
|
node: text
|
package/dist/esm/plugin.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import { doc, paragraph,
|
|
4
|
+
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 { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { setKeyboardHeight } from './commands';
|
|
10
9
|
import disableSpellcheckingPlugin from './pm-plugins/disable-spell-checking';
|
|
11
10
|
import filterStepsPlugin from './pm-plugins/filter-steps';
|
|
@@ -101,13 +100,12 @@ var basePlugin = function basePlugin(_ref) {
|
|
|
101
100
|
return plugins;
|
|
102
101
|
},
|
|
103
102
|
nodes: function nodes() {
|
|
104
|
-
var paragraphNode = getBooleanFF('platform.editor.enable-localid-for-paragraph-in-stage-0_cby7g') ? paragraphStage0 : paragraph;
|
|
105
103
|
return [{
|
|
106
104
|
name: 'doc',
|
|
107
105
|
node: doc
|
|
108
106
|
}, {
|
|
109
107
|
name: 'paragraph',
|
|
110
|
-
node:
|
|
108
|
+
node: paragraph
|
|
111
109
|
}, {
|
|
112
110
|
name: 'text',
|
|
113
111
|
node: text
|
package/package.json
CHANGED
|
@@ -1,83 +1,77 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"stricter": {
|
|
79
|
-
"no-unused-dependencies": {
|
|
80
|
-
"checkDevDependencies": true
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
2
|
+
"name": "@atlaskit/editor-plugin-base",
|
|
3
|
+
"version": "1.6.1",
|
|
4
|
+
"description": "Base plugin for @atlaskit/editor-core",
|
|
5
|
+
"author": "Atlassian Pty Ltd",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"registry": "https://registry.npmjs.org/"
|
|
9
|
+
},
|
|
10
|
+
"atlassian": {
|
|
11
|
+
"team": "Editor: Lego",
|
|
12
|
+
"singleton": true,
|
|
13
|
+
"releaseModel": "continuous",
|
|
14
|
+
"runReact18": false
|
|
15
|
+
},
|
|
16
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
17
|
+
"main": "dist/cjs/index.js",
|
|
18
|
+
"module": "dist/esm/index.js",
|
|
19
|
+
"module:es2019": "dist/es2019/index.js",
|
|
20
|
+
"types": "dist/types/index.d.ts",
|
|
21
|
+
"typesVersions": {
|
|
22
|
+
">=4.5 <4.9": {
|
|
23
|
+
"*": [
|
|
24
|
+
"dist/types-ts4.5/*",
|
|
25
|
+
"dist/types-ts4.5/index.d.ts"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"sideEffects": false,
|
|
30
|
+
"atlaskit:src": "src/index.ts",
|
|
31
|
+
"af:exports": {
|
|
32
|
+
".": "./src/index.ts"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"@atlaskit/adf-schema": "^37.0.0",
|
|
36
|
+
"@atlaskit/editor-common": "^83.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-context-identifier": "^1.1.0",
|
|
38
|
+
"@atlaskit/editor-plugin-feature-flags": "^1.1.0",
|
|
39
|
+
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
40
|
+
"@babel/runtime": "^7.0.0"
|
|
41
|
+
},
|
|
42
|
+
"techstack": {
|
|
43
|
+
"@atlassian/frontend": {
|
|
44
|
+
"import-structure": [
|
|
45
|
+
"atlassian-conventions"
|
|
46
|
+
],
|
|
47
|
+
"circular-dependencies": [
|
|
48
|
+
"file-and-folder-level"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"@repo/internal": {
|
|
52
|
+
"dom-events": "use-bind-event-listener",
|
|
53
|
+
"analytics": [
|
|
54
|
+
"analytics-next"
|
|
55
|
+
],
|
|
56
|
+
"design-tokens": [
|
|
57
|
+
"color"
|
|
58
|
+
],
|
|
59
|
+
"theming": [
|
|
60
|
+
"react-context"
|
|
61
|
+
],
|
|
62
|
+
"ui-components": [
|
|
63
|
+
"lite-mode"
|
|
64
|
+
],
|
|
65
|
+
"deprecation": "no-deprecated-imports",
|
|
66
|
+
"styling": [
|
|
67
|
+
"emotion",
|
|
68
|
+
"emotion"
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"stricter": {
|
|
73
|
+
"no-unused-dependencies": {
|
|
74
|
+
"checkDevDependencies": true
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|