@atlaskit/editor-plugin-extension 5.1.3 → 5.2.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/pm-plugins/toDOM-fixes/bodiedExtension.js +0 -4
- package/dist/es2019/pm-plugins/toDOM-fixes/bodiedExtension.js +0 -4
- package/dist/esm/pm-plugins/toDOM-fixes/bodiedExtension.js +0 -4
- package/dist/types/pm-plugins/toDOM-fixes/bodiedExtension.d.ts +24 -1
- package/dist/types-ts4.5/pm-plugins/toDOM-fixes/bodiedExtension.d.ts +24 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-extension
|
|
2
2
|
|
|
3
|
+
## 5.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 5.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#124731](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/124731)
|
|
14
|
+
[`116d88a3a7071`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/116d88a3a7071) -
|
|
15
|
+
Removed lazy node view experiment from toDOM fix
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 5.1.3
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -9,7 +9,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
10
10
|
var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
|
|
11
11
|
var _colors = require("@atlaskit/theme/colors");
|
|
12
|
-
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
13
12
|
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; }
|
|
14
13
|
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) { (0, _defineProperty2.default)(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; }
|
|
15
14
|
var capitalizeFirstLetter = function capitalizeFirstLetter(str) {
|
|
@@ -18,9 +17,6 @@ var capitalizeFirstLetter = function capitalizeFirstLetter(str) {
|
|
|
18
17
|
|
|
19
18
|
// @nodeSpecException:toDOM patch
|
|
20
19
|
var bodiedExtensionSpecWithFixedToDOM = exports.bodiedExtensionSpecWithFixedToDOM = function bodiedExtensionSpecWithFixedToDOM() {
|
|
21
|
-
if ((0, _experiments.editorExperiment)('platform_editor_exp_lazy_node_views', false)) {
|
|
22
|
-
return _adfSchema.bodiedExtension;
|
|
23
|
-
}
|
|
24
20
|
return _objectSpread(_objectSpread({}, _adfSchema.bodiedExtension), {}, {
|
|
25
21
|
toDOM: function toDOM(node) {
|
|
26
22
|
var attrs = {
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import { bodiedExtension } from '@atlaskit/adf-schema';
|
|
2
2
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
3
3
|
import { N30 } from '@atlaskit/theme/colors';
|
|
4
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
5
4
|
const capitalizeFirstLetter = str => {
|
|
6
5
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
// @nodeSpecException:toDOM patch
|
|
10
9
|
export const bodiedExtensionSpecWithFixedToDOM = () => {
|
|
11
|
-
if (editorExperiment('platform_editor_exp_lazy_node_views', false)) {
|
|
12
|
-
return bodiedExtension;
|
|
13
|
-
}
|
|
14
10
|
return {
|
|
15
11
|
...bodiedExtension,
|
|
16
12
|
toDOM: node => {
|
|
@@ -4,16 +4,12 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
import { bodiedExtension } from '@atlaskit/adf-schema';
|
|
5
5
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
6
6
|
import { N30 } from '@atlaskit/theme/colors';
|
|
7
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
8
7
|
var capitalizeFirstLetter = function capitalizeFirstLetter(str) {
|
|
9
8
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
10
9
|
};
|
|
11
10
|
|
|
12
11
|
// @nodeSpecException:toDOM patch
|
|
13
12
|
export var bodiedExtensionSpecWithFixedToDOM = function bodiedExtensionSpecWithFixedToDOM() {
|
|
14
|
-
if (editorExperiment('platform_editor_exp_lazy_node_views', false)) {
|
|
15
|
-
return bodiedExtension;
|
|
16
|
-
}
|
|
17
13
|
return _objectSpread(_objectSpread({}, bodiedExtension), {}, {
|
|
18
14
|
toDOM: function toDOM(node) {
|
|
19
15
|
var attrs = {
|
|
@@ -1 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
import type { DOMOutputSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
export declare const bodiedExtensionSpecWithFixedToDOM: () => {
|
|
3
|
+
toDOM: (node: PMNode) => DOMOutputSpec;
|
|
4
|
+
content?: string | undefined;
|
|
5
|
+
marks?: string | undefined;
|
|
6
|
+
group?: string | undefined;
|
|
7
|
+
inline?: boolean | undefined;
|
|
8
|
+
atom?: boolean | undefined;
|
|
9
|
+
attrs?: {
|
|
10
|
+
[name: string]: import("prosemirror-model").AttributeSpec;
|
|
11
|
+
} | undefined;
|
|
12
|
+
selectable?: boolean | undefined;
|
|
13
|
+
draggable?: boolean | undefined;
|
|
14
|
+
code?: boolean | undefined;
|
|
15
|
+
whitespace?: "pre" | "normal" | undefined;
|
|
16
|
+
definingAsContext?: boolean | undefined;
|
|
17
|
+
definingForContent?: boolean | undefined;
|
|
18
|
+
defining?: boolean | undefined;
|
|
19
|
+
isolating?: boolean | undefined;
|
|
20
|
+
parseDOM?: readonly import("prosemirror-model").TagParseRule[] | undefined;
|
|
21
|
+
toDebugString?: ((node: PMNode) => string) | undefined;
|
|
22
|
+
leafText?: ((node: PMNode) => string) | undefined;
|
|
23
|
+
linebreakReplacement?: boolean | undefined;
|
|
24
|
+
};
|
|
@@ -1 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
import type { DOMOutputSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
export declare const bodiedExtensionSpecWithFixedToDOM: () => {
|
|
3
|
+
toDOM: (node: PMNode) => DOMOutputSpec;
|
|
4
|
+
content?: string | undefined;
|
|
5
|
+
marks?: string | undefined;
|
|
6
|
+
group?: string | undefined;
|
|
7
|
+
inline?: boolean | undefined;
|
|
8
|
+
atom?: boolean | undefined;
|
|
9
|
+
attrs?: {
|
|
10
|
+
[name: string]: import("prosemirror-model").AttributeSpec;
|
|
11
|
+
} | undefined;
|
|
12
|
+
selectable?: boolean | undefined;
|
|
13
|
+
draggable?: boolean | undefined;
|
|
14
|
+
code?: boolean | undefined;
|
|
15
|
+
whitespace?: "pre" | "normal" | undefined;
|
|
16
|
+
definingAsContext?: boolean | undefined;
|
|
17
|
+
definingForContent?: boolean | undefined;
|
|
18
|
+
defining?: boolean | undefined;
|
|
19
|
+
isolating?: boolean | undefined;
|
|
20
|
+
parseDOM?: readonly import("prosemirror-model").TagParseRule[] | undefined;
|
|
21
|
+
toDebugString?: ((node: PMNode) => string) | undefined;
|
|
22
|
+
leafText?: ((node: PMNode) => string) | undefined;
|
|
23
|
+
linebreakReplacement?: boolean | undefined;
|
|
24
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "5.1
|
|
3
|
+
"version": "5.2.1",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@atlaskit/avatar": "^25.0.0",
|
|
32
32
|
"@atlaskit/button": "^23.0.0",
|
|
33
33
|
"@atlaskit/checkbox": "^17.0.0",
|
|
34
|
-
"@atlaskit/datetime-picker": "^
|
|
34
|
+
"@atlaskit/datetime-picker": "^17.0.0",
|
|
35
35
|
"@atlaskit/editor-common": "^102.18.0",
|
|
36
36
|
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@atlaskit/primitives": "^14.3.0",
|
|
52
52
|
"@atlaskit/radio": "^8.0.0",
|
|
53
53
|
"@atlaskit/section-message": "^8.2.0",
|
|
54
|
-
"@atlaskit/select": "^20.
|
|
54
|
+
"@atlaskit/select": "^20.1.0",
|
|
55
55
|
"@atlaskit/smart-user-picker": "^8.0.0",
|
|
56
56
|
"@atlaskit/spinner": "^18.0.0",
|
|
57
57
|
"@atlaskit/tabs": "^18.0.0",
|