@atlaskit/editor-core 226.3.3 → 226.3.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 +6 -0
- package/dist/cjs/create-editor/create-schema.js +2 -2
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-emotion.js +3 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/create-schema.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-emotion.js +2 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/create-schema.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-emotion.js +2 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.createSchema = createSchema;
|
|
7
7
|
exports.wrapToDOMProxy = exports.wrapNodeSpecProxy = void 0;
|
|
8
|
-
var
|
|
8
|
+
var _sanitizeNodes = require("@atlaskit/adf-schema/sanitizeNodes");
|
|
9
9
|
var _legacyRankPlugins = require("@atlaskit/editor-common/legacy-rank-plugins");
|
|
10
10
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
11
11
|
var _addMetadataAttributes = require("./addMetadataAttributes");
|
|
@@ -70,7 +70,7 @@ function createSchema(editorConfig) {
|
|
|
70
70
|
acc[mark.name] = wrapNodeSpecProxy(mark.mark);
|
|
71
71
|
return acc;
|
|
72
72
|
}, {}));
|
|
73
|
-
var nodes = (0,
|
|
73
|
+
var nodes = (0, _sanitizeNodes.sanitizeNodes)(editorConfig.nodes.sort((0, _legacyRankPlugins.sortByOrder)('nodes')).reduce(function (acc, node) {
|
|
74
74
|
acc[node.name] = wrapNodeSpecProxy(node.node);
|
|
75
75
|
return acc;
|
|
76
76
|
}, {}), marks);
|
|
@@ -11,7 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
var _reactIntl = require("react-intl");
|
|
14
|
-
var
|
|
14
|
+
var _decisionList = require("@atlaskit/adf-schema/decision-list");
|
|
15
|
+
var _taskList = require("@atlaskit/adf-schema/task-list");
|
|
15
16
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
16
17
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
17
18
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
@@ -63,7 +64,7 @@ var editorContentAreaProsemirrorStyle = (0, _react2.css)({
|
|
|
63
64
|
'& > *': {
|
|
64
65
|
clear: 'both'
|
|
65
66
|
}
|
|
66
|
-
}, "> p, > ul, > ol:not(".concat(
|
|
67
|
+
}, "> p, > ul, > ol:not(".concat(_taskList.taskListSelector, "):not(").concat(_decisionList.decisionListSelector, "), > h1, > h2, > h3, > h4, > h5, > h6"), {
|
|
67
68
|
clear: 'none'
|
|
68
69
|
}), '> p:last-child', {
|
|
69
70
|
marginBottom: "var(--ds-space-300, 24px)"
|
|
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.version = exports.name = void 0;
|
|
7
7
|
var name = exports.name = "@atlaskit/editor-core";
|
|
8
8
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
9
|
-
var version = exports.version = "226.3.
|
|
9
|
+
var version = exports.version = "226.3.3";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { sanitizeNodes } from '@atlaskit/adf-schema/
|
|
1
|
+
import { sanitizeNodes } from '@atlaskit/adf-schema/sanitizeNodes';
|
|
2
2
|
import { sortByOrder } from '@atlaskit/editor-common/legacy-rank-plugins';
|
|
3
3
|
import { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import { addMetadataAttributes } from './addMetadataAttributes';
|
|
@@ -9,7 +9,8 @@ import React, { useImperativeHandle, useRef } from 'react';
|
|
|
9
9
|
import { css, jsx, useTheme } from '@emotion/react';
|
|
10
10
|
import classnames from 'classnames';
|
|
11
11
|
import { injectIntl } from 'react-intl';
|
|
12
|
-
import { decisionListSelector
|
|
12
|
+
import { decisionListSelector } from '@atlaskit/adf-schema/decision-list';
|
|
13
|
+
import { taskListSelector } from '@atlaskit/adf-schema/task-list';
|
|
13
14
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
14
15
|
import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
|
|
15
16
|
import { akEditorFullPageNarrowBreakout, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { sanitizeNodes } from '@atlaskit/adf-schema/
|
|
1
|
+
import { sanitizeNodes } from '@atlaskit/adf-schema/sanitizeNodes';
|
|
2
2
|
import { sortByOrder } from '@atlaskit/editor-common/legacy-rank-plugins';
|
|
3
3
|
import { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import { addMetadataAttributes } from './addMetadataAttributes';
|
|
@@ -10,7 +10,8 @@ import React, { useImperativeHandle, useRef } from 'react';
|
|
|
10
10
|
import { css, jsx, useTheme } from '@emotion/react';
|
|
11
11
|
import classnames from 'classnames';
|
|
12
12
|
import { injectIntl } from 'react-intl';
|
|
13
|
-
import { decisionListSelector
|
|
13
|
+
import { decisionListSelector } from '@atlaskit/adf-schema/decision-list';
|
|
14
|
+
import { taskListSelector } from '@atlaskit/adf-schema/task-list';
|
|
14
15
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
15
16
|
import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
|
|
16
17
|
import { akEditorFullPageNarrowBreakout, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "226.3.
|
|
3
|
+
"version": "226.3.4",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@atlaskit/css": "^1.1.0",
|
|
48
48
|
"@atlaskit/editor-json-transformer": "^9.8.0",
|
|
49
49
|
"@atlaskit/editor-performance-metrics": "^3.2.0",
|
|
50
|
-
"@atlaskit/editor-plugin-block-menu": "^15.
|
|
50
|
+
"@atlaskit/editor-plugin-block-menu": "^15.1.0",
|
|
51
51
|
"@atlaskit/editor-plugin-connectivity": "^16.0.0",
|
|
52
52
|
"@atlaskit/editor-plugin-quick-insert": "^16.2.0",
|
|
53
53
|
"@atlaskit/editor-plugin-selection-extension": "^19.1.0",
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
"@atlaskit/popup": "^6.3.0",
|
|
73
73
|
"@atlaskit/primitives": "^22.5.0",
|
|
74
74
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
75
|
-
"@atlaskit/react-ufo": "^7.
|
|
75
|
+
"@atlaskit/react-ufo": "^7.8.0",
|
|
76
76
|
"@atlaskit/task-decision": "^21.9.0",
|
|
77
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
77
|
+
"@atlaskit/tmp-editor-statsig": "^173.0.0",
|
|
78
78
|
"@atlaskit/tokens": "^16.11.0",
|
|
79
79
|
"@atlaskit/tooltip": "^24.3.0",
|
|
80
80
|
"@atlaskit/width-detector": "^7.2.0",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"@atlaskit/editor-plugin-media": "^18.1.0",
|
|
130
130
|
"@atlaskit/editor-plugin-paste": "^17.1.0",
|
|
131
131
|
"@atlaskit/editor-plugin-selection-marker": "^16.0.0",
|
|
132
|
-
"@atlaskit/editor-plugin-show-diff": "^14.
|
|
132
|
+
"@atlaskit/editor-plugin-show-diff": "^14.3.0",
|
|
133
133
|
"@atlaskit/editor-plugin-synced-block": "^14.0.0",
|
|
134
134
|
"@atlaskit/editor-plugin-table": "^28.1.0",
|
|
135
135
|
"@atlaskit/editor-plugin-tasks-and-decisions": "^19.2.0",
|