@atlaskit/editor-core 226.3.3 → 226.3.5
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 +15 -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/ui/EditorContentContainer/EditorContentContainer-compiled.js +2 -2
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-emotion.js +1 -1
- 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/ui/EditorContentContainer/EditorContentContainer-compiled.js +2 -2
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-emotion.js +1 -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/ui/EditorContentContainer/EditorContentContainer-compiled.js +2 -2
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-emotion.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 226.3.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a6c26b16402ca`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a6c26b16402ca) -
|
|
8
|
+
Migrate nine dogfooding editor experiments from `@atlaskit/tmp-editor-statsig` to the Platform
|
|
9
|
+
experiment API and move their tests to Platform experiment mocks.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 226.3.4
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 226.3.3
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -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)"
|
|
@@ -57,7 +57,7 @@ var GRID_GUTTER = 12;
|
|
|
57
57
|
var blockNodesVerticalMargin = '0.75rem';
|
|
58
58
|
var fontSize14px = "".concat(14 / 16, "rem");
|
|
59
59
|
var scaledBlockNodesVerticalMargin = '0.75em';
|
|
60
|
-
// Block spacing hook (gated by
|
|
60
|
+
// Block spacing hook (gated by isExperimentEnabled('platform_editor_extension_block_spacing')).
|
|
61
61
|
// When the experiment is on, these variants re-declare the block margins to read from the
|
|
62
62
|
// `--ak-editor-extension-block-spacing` CSS custom property, falling back to the original values.
|
|
63
63
|
// When the experiment is off, none of these are applied and behaviour is identical to before.
|
|
@@ -409,7 +409,7 @@ var EditorContentContainerCompiled = exports.EditorContentContainerCompiled = /*
|
|
|
409
409
|
var browser = (0, _browser.getBrowserInfo)();
|
|
410
410
|
|
|
411
411
|
// Evaluate the block-spacing experiment once per render.
|
|
412
|
-
var isBlockSpacingEnabled = (0,
|
|
412
|
+
var isBlockSpacingEnabled = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_extension_block_spacing');
|
|
413
413
|
var isFloatingTocEnabled = (0, _expValEquals.expValEquals)('platform_editor_floating_toc', 'isEnabled', true);
|
|
414
414
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
415
415
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -155,7 +155,7 @@ var EditorContentContainerEmotion = exports.EditorContentContainerEmotion = /*#_
|
|
|
155
155
|
var browser = (0, _browser.getBrowserInfo)();
|
|
156
156
|
|
|
157
157
|
// Evaluate the block-spacing experiment once per render.
|
|
158
|
-
var isBlockSpacingEnabled = (0,
|
|
158
|
+
var isBlockSpacingEnabled = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_extension_block_spacing');
|
|
159
159
|
var isFloatingTocEnabled = (0, _expValEquals.expValEquals)('platform_editor_floating_toc', 'isEnabled', true);
|
|
160
160
|
return (0, _react2.jsx)("div", {
|
|
161
161
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -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.4";
|
|
@@ -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';
|
|
@@ -51,7 +51,7 @@ const GRID_GUTTER = 12;
|
|
|
51
51
|
const blockNodesVerticalMargin = '0.75rem';
|
|
52
52
|
const fontSize14px = `${14 / 16}rem`;
|
|
53
53
|
const scaledBlockNodesVerticalMargin = '0.75em';
|
|
54
|
-
// Block spacing hook (gated by
|
|
54
|
+
// Block spacing hook (gated by isExperimentEnabled('platform_editor_extension_block_spacing')).
|
|
55
55
|
// When the experiment is on, these variants re-declare the block margins to read from the
|
|
56
56
|
// `--ak-editor-extension-block-spacing` CSS custom property, falling back to the original values.
|
|
57
57
|
// When the experiment is off, none of these are applied and behaviour is identical to before.
|
|
@@ -464,7 +464,7 @@ export const EditorContentContainerCompiled = /*#__PURE__*/React.forwardRef((pro
|
|
|
464
464
|
const browser = getBrowserInfo();
|
|
465
465
|
|
|
466
466
|
// Evaluate the block-spacing experiment once per render.
|
|
467
|
-
const isBlockSpacingEnabled =
|
|
467
|
+
const isBlockSpacingEnabled = isExperimentEnabled('platform_editor_extension_block_spacing');
|
|
468
468
|
const isFloatingTocEnabled = expValEquals('platform_editor_floating_toc', 'isEnabled', true);
|
|
469
469
|
return /*#__PURE__*/React.createElement("div", {
|
|
470
470
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -157,7 +157,7 @@ export const EditorContentContainerEmotion = /*#__PURE__*/React.forwardRef((prop
|
|
|
157
157
|
const browser = getBrowserInfo();
|
|
158
158
|
|
|
159
159
|
// Evaluate the block-spacing experiment once per render.
|
|
160
|
-
const isBlockSpacingEnabled =
|
|
160
|
+
const isBlockSpacingEnabled = isExperimentEnabled('platform_editor_extension_block_spacing');
|
|
161
161
|
const isFloatingTocEnabled = expValEquals('platform_editor_floating_toc', 'isEnabled', true);
|
|
162
162
|
return jsx("div", {
|
|
163
163
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -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';
|
|
@@ -56,7 +56,7 @@ var GRID_GUTTER = 12;
|
|
|
56
56
|
var blockNodesVerticalMargin = '0.75rem';
|
|
57
57
|
var fontSize14px = "".concat(14 / 16, "rem");
|
|
58
58
|
var scaledBlockNodesVerticalMargin = '0.75em';
|
|
59
|
-
// Block spacing hook (gated by
|
|
59
|
+
// Block spacing hook (gated by isExperimentEnabled('platform_editor_extension_block_spacing')).
|
|
60
60
|
// When the experiment is on, these variants re-declare the block margins to read from the
|
|
61
61
|
// `--ak-editor-extension-block-spacing` CSS custom property, falling back to the original values.
|
|
62
62
|
// When the experiment is off, none of these are applied and behaviour is identical to before.
|
|
@@ -408,7 +408,7 @@ export var EditorContentContainerCompiled = /*#__PURE__*/React.forwardRef(functi
|
|
|
408
408
|
var browser = getBrowserInfo();
|
|
409
409
|
|
|
410
410
|
// Evaluate the block-spacing experiment once per render.
|
|
411
|
-
var isBlockSpacingEnabled =
|
|
411
|
+
var isBlockSpacingEnabled = isExperimentEnabled('platform_editor_extension_block_spacing');
|
|
412
412
|
var isFloatingTocEnabled = expValEquals('platform_editor_floating_toc', 'isEnabled', true);
|
|
413
413
|
return /*#__PURE__*/React.createElement("div", {
|
|
414
414
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -152,7 +152,7 @@ export var EditorContentContainerEmotion = /*#__PURE__*/React.forwardRef(functio
|
|
|
152
152
|
var browser = getBrowserInfo();
|
|
153
153
|
|
|
154
154
|
// Evaluate the block-spacing experiment once per render.
|
|
155
|
-
var isBlockSpacingEnabled =
|
|
155
|
+
var isBlockSpacingEnabled = isExperimentEnabled('platform_editor_extension_block_spacing');
|
|
156
156
|
var isFloatingTocEnabled = expValEquals('platform_editor_floating_toc', 'isEnabled', true);
|
|
157
157
|
return jsx("div", {
|
|
158
158
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "226.3.
|
|
3
|
+
"version": "226.3.5",
|
|
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": "^174.0.0",
|
|
78
78
|
"@atlaskit/tokens": "^16.11.0",
|
|
79
79
|
"@atlaskit/tooltip": "^24.3.0",
|
|
80
80
|
"@atlaskit/width-detector": "^7.2.0",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"uuid": "^3.1.0"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
95
|
-
"@atlaskit/editor-common": "^120.
|
|
95
|
+
"@atlaskit/editor-common": "^120.12.0",
|
|
96
96
|
"@atlaskit/link-provider": "^5.5.0",
|
|
97
97
|
"@atlaskit/media-core": "^38.2.0",
|
|
98
98
|
"react": "^18.2.0",
|
|
@@ -129,14 +129,14 @@
|
|
|
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",
|
|
136
136
|
"@atlaskit/editor-plugin-text-color": "^16.1.0",
|
|
137
137
|
"@atlaskit/editor-plugin-toolbar-lists-indentation": "^17.1.0",
|
|
138
138
|
"@atlaskit/editor-plugin-track-changes": "^15.0.0",
|
|
139
|
-
"@atlaskit/editor-synced-block-provider": "^12.
|
|
139
|
+
"@atlaskit/editor-synced-block-provider": "^12.2.0",
|
|
140
140
|
"@atlaskit/editor-synced-block-renderer": "^14.1.0",
|
|
141
141
|
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
142
142
|
"@atlaskit/form": "^17.2.0",
|