@atlaskit/editor-core 194.0.10 → 194.0.11
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 +12 -0
- package/dist/cjs/create-editor/create-plugins-list.js +3 -2
- package/dist/cjs/nodeviews/getInlineNodeViewProducer.styles.js +2 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/create-plugins-list.js +2 -1
- package/dist/es2019/nodeviews/getInlineNodeViewProducer.styles.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/create-plugins-list.js +2 -1
- package/dist/esm/nodeviews/getInlineNodeViewProducer.styles.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +4 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 194.0.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#113218](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/113218)
|
|
8
|
+
[`d1b428ec29d68`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d1b428ec29d68) -
|
|
9
|
+
[ED-23765] migrate inline node commenting feature flags to statsig feature gate
|
|
10
|
+
- [#117973](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117973)
|
|
11
|
+
[`6e37bac62083f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6e37bac62083f) -
|
|
12
|
+
moved one const, added new entry point for other and deprecated
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 194.0.10
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -8,11 +8,12 @@ exports.default = createPluginsList;
|
|
|
8
8
|
exports.getDefaultPresetOptionsFromEditorProps = getDefaultPresetOptionsFromEditorProps;
|
|
9
9
|
exports.getScrollGutterOptions = getScrollGutterOptions;
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
-
var _utils = require("@atlaskit/editor-common/utils");
|
|
12
11
|
var _isFullPage = require("../utils/is-full-page");
|
|
13
12
|
var _featureFlagsFromProps = require("./feature-flags-from-props");
|
|
14
13
|
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; }
|
|
15
14
|
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
|
+
var GUTTER_SIZE_MOBILE_IN_PX = 36; // Gutter size for Mobile
|
|
16
|
+
|
|
16
17
|
var isCodeBlockAllowed = function isCodeBlockAllowed(options) {
|
|
17
18
|
var exclude = options && options.allowBlockType && options.allowBlockType.exclude ? options.allowBlockType.exclude : [];
|
|
18
19
|
return exclude.indexOf('codeBlock') === -1;
|
|
@@ -36,7 +37,7 @@ function getScrollGutterOptions(props) {
|
|
|
36
37
|
},
|
|
37
38
|
allowCustomScrollHandler: false,
|
|
38
39
|
persistScrollGutter: persistScrollGutter,
|
|
39
|
-
gutterSize:
|
|
40
|
+
gutterSize: GUTTER_SIZE_MOBILE_IN_PX
|
|
40
41
|
};
|
|
41
42
|
}
|
|
42
43
|
return undefined;
|
|
@@ -8,7 +8,7 @@ exports.InlineNodeViewSharedStyles = void 0;
|
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _reactNodeView = require("@atlaskit/editor-common/react-node-view");
|
|
11
|
-
var
|
|
11
|
+
var _whitespace = require("@atlaskit/editor-common/whitespace");
|
|
12
12
|
var _css; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
13
|
// For reasoning behind styles, see comments in:
|
|
14
14
|
// ./getInlineNodeViewProducer -> portalChildren()
|
|
@@ -37,6 +37,6 @@ var InlineNodeViewSharedStyles = exports.InlineNodeViewSharedStyles = (0, _react
|
|
|
37
37
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
38
38
|
'::after': {
|
|
39
39
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
40
|
-
content: "'".concat(
|
|
40
|
+
content: "'".concat(_whitespace.ZERO_WIDTH_SPACE, "'")
|
|
41
41
|
}
|
|
42
42
|
}), _css));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { GUTTER_SIZE_MOBILE_IN_PX } from '@atlaskit/editor-common/utils';
|
|
2
1
|
import { isFullPage as fullPageCheck } from '../utils/is-full-page';
|
|
3
2
|
import { createFeatureFlagsFromProps } from './feature-flags-from-props';
|
|
3
|
+
const GUTTER_SIZE_MOBILE_IN_PX = 36; // Gutter size for Mobile
|
|
4
|
+
|
|
4
5
|
const isCodeBlockAllowed = options => {
|
|
5
6
|
const exclude = options && options.allowBlockType && options.allowBlockType.exclude ? options.allowBlockType.exclude : [];
|
|
6
7
|
return exclude.indexOf('codeBlock') === -1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import { inlineNodeViewClassname } from '@atlaskit/editor-common/react-node-view';
|
|
4
|
-
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/
|
|
4
|
+
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
|
|
5
5
|
|
|
6
6
|
// For reasoning behind styles, see comments in:
|
|
7
7
|
// ./getInlineNodeViewProducer -> portalChildren()
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "194.0.
|
|
2
|
+
export const version = "194.0.11";
|
|
@@ -1,9 +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 { GUTTER_SIZE_MOBILE_IN_PX } from '@atlaskit/editor-common/utils';
|
|
5
4
|
import { isFullPage as fullPageCheck } from '../utils/is-full-page';
|
|
6
5
|
import { createFeatureFlagsFromProps } from './feature-flags-from-props';
|
|
6
|
+
var GUTTER_SIZE_MOBILE_IN_PX = 36; // Gutter size for Mobile
|
|
7
|
+
|
|
7
8
|
var isCodeBlockAllowed = function isCodeBlockAllowed(options) {
|
|
8
9
|
var exclude = options && options.allowBlockType && options.allowBlockType.exclude ? options.allowBlockType.exclude : [];
|
|
9
10
|
return exclude.indexOf('codeBlock') === -1;
|
|
@@ -3,7 +3,7 @@ var _css;
|
|
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
import { css } from '@emotion/react';
|
|
5
5
|
import { inlineNodeViewClassname } from '@atlaskit/editor-common/react-node-view';
|
|
6
|
-
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/
|
|
6
|
+
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
|
|
7
7
|
|
|
8
8
|
// For reasoning behind styles, see comments in:
|
|
9
9
|
// ./getInlineNodeViewProducer -> portalChildren()
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "194.0.
|
|
2
|
+
export var version = "194.0.11";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "194.0.
|
|
3
|
+
"version": "194.0.11",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
47
|
"@atlaskit/button": "^18.2.0",
|
|
48
|
-
"@atlaskit/editor-common": "^84.
|
|
48
|
+
"@atlaskit/editor-common": "^84.3.0",
|
|
49
49
|
"@atlaskit/editor-plugins": "^3.4.0",
|
|
50
50
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
51
51
|
"@atlaskit/editor-shared-styles": "^2.12.0",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"@atlaskit/analytics-listeners": "^8.10.0",
|
|
88
88
|
"@atlaskit/collab-provider": "9.32.3",
|
|
89
89
|
"@atlaskit/editor-json-transformer": "^8.15.0",
|
|
90
|
-
"@atlaskit/editor-plugin-annotation": "1.14.
|
|
90
|
+
"@atlaskit/editor-plugin-annotation": "1.14.2",
|
|
91
91
|
"@atlaskit/editor-plugin-card": "^2.4.0",
|
|
92
92
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.0.0",
|
|
93
93
|
"@atlaskit/editor-plugin-list": "^3.5.0",
|
|
@@ -209,11 +209,7 @@
|
|
|
209
209
|
"type": "boolean",
|
|
210
210
|
"referenceOnly": "true"
|
|
211
211
|
},
|
|
212
|
-
"
|
|
213
|
-
"type": "boolean",
|
|
214
|
-
"referenceOnly": "true"
|
|
215
|
-
},
|
|
216
|
-
"platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz": {
|
|
212
|
+
"editor_inline_comments_on_inline_nodes": {
|
|
217
213
|
"type": "boolean",
|
|
218
214
|
"referenceOnly": "true"
|
|
219
215
|
},
|