@atlaskit/editor-common 102.10.2 → 102.10.3
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 +9 -0
- package/dist/cjs/ai-messages/ai.js +6 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +27 -5
- package/dist/cjs/resizer/BreakoutResizer.js +2 -6
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/MultiBodiedExtension/index.js +1 -2
- package/dist/es2019/ai-messages/ai.js +6 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +25 -5
- package/dist/es2019/resizer/BreakoutResizer.js +2 -6
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/MultiBodiedExtension/index.js +1 -2
- package/dist/esm/ai-messages/ai.js +6 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/react-node-view/getInlineNodeViewProducer.js +27 -5
- package/dist/esm/resizer/BreakoutResizer.js +2 -6
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/MultiBodiedExtension/index.js +1 -2
- package/dist/types/ai-messages/ai.d.ts +5 -0
- package/dist/types-ts4.5/ai-messages/ai.d.ts +5 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 102.10.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#127516](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/127516)
|
|
8
|
+
[`ea683a86d5e61`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ea683a86d5e61) -
|
|
9
|
+
added exposure: true to virt experiment
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 102.10.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -133,5 +133,11 @@ var aiMessages = exports.aiMessages = (0, _reactIntlNext.defineMessages)({
|
|
|
133
133
|
id: 'fabric.editor.ai.commandPalette.promptBuilderForm.buttons.submit',
|
|
134
134
|
defaultMessage: 'Generate',
|
|
135
135
|
description: 'Label for the Submit button in the command palette'
|
|
136
|
+
},
|
|
137
|
+
// AI Smart button messages
|
|
138
|
+
aiSmartButtonDynamicSurfaceSelectedContent: {
|
|
139
|
+
id: 'fabric.editor.ai.ai-smart-button.context.reference',
|
|
140
|
+
defaultMessage: 'Selected content',
|
|
141
|
+
description: 'When there is selection, show the selected content in the AI dynamic surface panel'
|
|
136
142
|
}
|
|
137
143
|
});
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
19
19
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
20
|
-
var packageVersion = "102.10.
|
|
20
|
+
var packageVersion = "102.10.3";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// Ignored via go/ees007
|
|
@@ -11,6 +11,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
11
11
|
var _react = _interopRequireDefault(require("react"));
|
|
12
12
|
var _react2 = require("@emotion/react");
|
|
13
13
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
14
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
15
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
15
16
|
var _analytics = require("../analytics");
|
|
16
17
|
var _ErrorBoundary = require("../ui/ErrorBoundary");
|
|
@@ -38,15 +39,36 @@ var virtualizedNodeWhitelist = ['status', 'mention', 'emoji', 'date', 'inlineCar
|
|
|
38
39
|
var virtualisationConfiguration = function virtualisationConfiguration() {
|
|
39
40
|
var enableVirtualization = false;
|
|
40
41
|
var reactRenderedDocumentPositionThreshold = 0;
|
|
41
|
-
if (
|
|
42
|
+
if (isSSR) {
|
|
43
|
+
return {
|
|
44
|
+
enableVirtualization: enableVirtualization,
|
|
45
|
+
reactRenderedDocumentPositionThreshold: reactRenderedDocumentPositionThreshold,
|
|
46
|
+
virtualizeCurrentNode: function virtualizeCurrentNode() {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
if ((0, _experiments.editorExperiment)('platform_editor_inline_node_virtualization', 'off', {
|
|
52
|
+
exposure: true
|
|
53
|
+
})) {
|
|
42
54
|
enableVirtualization = false;
|
|
43
|
-
} else if ((0, _experiments.editorExperiment)('platform_editor_inline_node_virtualization', 'fallback-small'
|
|
44
|
-
|
|
55
|
+
} else if ((0, _experiments.editorExperiment)('platform_editor_inline_node_virtualization', 'fallback-small', {
|
|
56
|
+
exposure: true
|
|
57
|
+
})) {
|
|
58
|
+
enableVirtualization = true;
|
|
45
59
|
reactRenderedDocumentPositionThreshold = 100;
|
|
46
|
-
} else if ((0, _experiments.editorExperiment)('platform_editor_inline_node_virtualization', 'fallback-large'
|
|
47
|
-
|
|
60
|
+
} else if ((0, _experiments.editorExperiment)('platform_editor_inline_node_virtualization', 'fallback-large', {
|
|
61
|
+
exposure: true
|
|
62
|
+
})) {
|
|
63
|
+
enableVirtualization = true;
|
|
48
64
|
reactRenderedDocumentPositionThreshold = 400;
|
|
49
65
|
}
|
|
66
|
+
|
|
67
|
+
// we need to be able to override the threshold to 0
|
|
68
|
+
// for specific situation, primarily testing
|
|
69
|
+
if (reactRenderedDocumentPositionThreshold !== 0 && (0, _platformFeatureFlags.fg)('platform_editor_inline_node_virt_threshold_override')) {
|
|
70
|
+
reactRenderedDocumentPositionThreshold = 0;
|
|
71
|
+
}
|
|
50
72
|
return {
|
|
51
73
|
enableVirtualization: enableVirtualization,
|
|
52
74
|
reactRenderedDocumentPositionThreshold: reactRenderedDocumentPositionThreshold,
|
|
@@ -20,7 +20,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
20
20
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
21
21
|
var breakoutSupportedNodes = ['layoutSection', 'expand', 'codeBlock'];
|
|
22
22
|
var getHandleStyle = function getHandleStyle(node) {
|
|
23
|
-
var layoutMarginOffset =
|
|
23
|
+
var layoutMarginOffset = 12;
|
|
24
24
|
switch (node) {
|
|
25
25
|
case 'codeBlock':
|
|
26
26
|
return {
|
|
@@ -131,11 +131,7 @@ var BreakoutResizer = exports.BreakoutResizer = function BreakoutResizer(_ref) {
|
|
|
131
131
|
displayGapCursor(false);
|
|
132
132
|
if (widthState !== undefined && widthState.lineLength !== undefined && widthState.width !== undefined) {
|
|
133
133
|
newMaxWidth = Math.min(widthState.width - (0, _editorSharedStyles.akEditorGutterPaddingDynamic)() * 2 - _editorSharedStyles.akEditorGutterPadding, _editorSharedStyles.akEditorFullWidthLayoutWidth);
|
|
134
|
-
|
|
135
|
-
newMinWidth = Math.min(widthState.lineLength, _editorSharedStyles.akEditorDefaultLayoutWidth, newMaxWidth);
|
|
136
|
-
} else {
|
|
137
|
-
newMinWidth = Math.min(widthState.lineLength, _editorSharedStyles.akEditorDefaultLayoutWidth);
|
|
138
|
-
}
|
|
134
|
+
newMinWidth = Math.min(widthState.lineLength, _editorSharedStyles.akEditorDefaultLayoutWidth, newMaxWidth);
|
|
139
135
|
}
|
|
140
136
|
setResizingState({
|
|
141
137
|
isResizing: true,
|
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var packageName = "@atlaskit/editor-common";
|
|
26
|
-
var packageVersion = "102.10.
|
|
26
|
+
var packageVersion = "102.10.3";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -37,8 +37,7 @@ var mbeExtensionContainer = (0, _react.css)({
|
|
|
37
37
|
},
|
|
38
38
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
39
39
|
".multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true'], .multiBodiedExtension--frames > [data-extension-frame='true']": {
|
|
40
|
-
display: 'none'
|
|
41
|
-
background: "var(--ds-surface, white)"
|
|
40
|
+
display: 'none'
|
|
42
41
|
},
|
|
43
42
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
44
43
|
'.multiBodiedExtension-content-dom-wrapper, .multiBodiedExtension--frames': {
|
|
@@ -127,5 +127,11 @@ export const aiMessages = defineMessages({
|
|
|
127
127
|
id: 'fabric.editor.ai.commandPalette.promptBuilderForm.buttons.submit',
|
|
128
128
|
defaultMessage: 'Generate',
|
|
129
129
|
description: 'Label for the Submit button in the command palette'
|
|
130
|
+
},
|
|
131
|
+
// AI Smart button messages
|
|
132
|
+
aiSmartButtonDynamicSurfaceSelectedContent: {
|
|
133
|
+
id: 'fabric.editor.ai.ai-smart-button.context.reference',
|
|
134
|
+
defaultMessage: 'Selected content',
|
|
135
|
+
description: 'When there is selection, show the selected content in the AI dynamic surface panel'
|
|
130
136
|
}
|
|
131
137
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isFedRamp } from './environment';
|
|
2
2
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
3
3
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
4
|
-
const packageVersion = "102.10.
|
|
4
|
+
const packageVersion = "102.10.3";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -8,6 +8,7 @@ import React from 'react';
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { jsx } from '@emotion/react';
|
|
10
10
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
12
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
12
13
|
import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '../analytics';
|
|
13
14
|
import { ErrorBoundary } from '../ui/ErrorBoundary';
|
|
@@ -30,15 +31,34 @@ const virtualizedNodeWhitelist = ['status', 'mention', 'emoji', 'date', 'inlineC
|
|
|
30
31
|
const virtualisationConfiguration = () => {
|
|
31
32
|
let enableVirtualization = false;
|
|
32
33
|
let reactRenderedDocumentPositionThreshold = 0;
|
|
33
|
-
if (
|
|
34
|
+
if (isSSR) {
|
|
35
|
+
return {
|
|
36
|
+
enableVirtualization,
|
|
37
|
+
reactRenderedDocumentPositionThreshold,
|
|
38
|
+
virtualizeCurrentNode: () => false
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
if (editorExperiment('platform_editor_inline_node_virtualization', 'off', {
|
|
42
|
+
exposure: true
|
|
43
|
+
})) {
|
|
34
44
|
enableVirtualization = false;
|
|
35
|
-
} else if (editorExperiment('platform_editor_inline_node_virtualization', 'fallback-small'
|
|
36
|
-
|
|
45
|
+
} else if (editorExperiment('platform_editor_inline_node_virtualization', 'fallback-small', {
|
|
46
|
+
exposure: true
|
|
47
|
+
})) {
|
|
48
|
+
enableVirtualization = true;
|
|
37
49
|
reactRenderedDocumentPositionThreshold = 100;
|
|
38
|
-
} else if (editorExperiment('platform_editor_inline_node_virtualization', 'fallback-large'
|
|
39
|
-
|
|
50
|
+
} else if (editorExperiment('platform_editor_inline_node_virtualization', 'fallback-large', {
|
|
51
|
+
exposure: true
|
|
52
|
+
})) {
|
|
53
|
+
enableVirtualization = true;
|
|
40
54
|
reactRenderedDocumentPositionThreshold = 400;
|
|
41
55
|
}
|
|
56
|
+
|
|
57
|
+
// we need to be able to override the threshold to 0
|
|
58
|
+
// for specific situation, primarily testing
|
|
59
|
+
if (reactRenderedDocumentPositionThreshold !== 0 && fg('platform_editor_inline_node_virt_threshold_override')) {
|
|
60
|
+
reactRenderedDocumentPositionThreshold = 0;
|
|
61
|
+
}
|
|
42
62
|
return {
|
|
43
63
|
enableVirtualization,
|
|
44
64
|
reactRenderedDocumentPositionThreshold,
|
|
@@ -9,7 +9,7 @@ import { browser } from '../utils/browser';
|
|
|
9
9
|
import Resizer from './Resizer';
|
|
10
10
|
const breakoutSupportedNodes = ['layoutSection', 'expand', 'codeBlock'];
|
|
11
11
|
const getHandleStyle = node => {
|
|
12
|
-
const layoutMarginOffset =
|
|
12
|
+
const layoutMarginOffset = 12;
|
|
13
13
|
switch (node) {
|
|
14
14
|
case 'codeBlock':
|
|
15
15
|
return {
|
|
@@ -122,11 +122,7 @@ const BreakoutResizer = ({
|
|
|
122
122
|
displayGapCursor(false);
|
|
123
123
|
if (widthState !== undefined && widthState.lineLength !== undefined && widthState.width !== undefined) {
|
|
124
124
|
newMaxWidth = Math.min(widthState.width - akEditorGutterPaddingDynamic() * 2 - akEditorGutterPadding, akEditorFullWidthLayoutWidth);
|
|
125
|
-
|
|
126
|
-
newMinWidth = Math.min(widthState.lineLength, akEditorDefaultLayoutWidth, newMaxWidth);
|
|
127
|
-
} else {
|
|
128
|
-
newMinWidth = Math.min(widthState.lineLength, akEditorDefaultLayoutWidth);
|
|
129
|
-
}
|
|
125
|
+
newMinWidth = Math.min(widthState.lineLength, akEditorDefaultLayoutWidth, newMaxWidth);
|
|
130
126
|
}
|
|
131
127
|
setResizingState({
|
|
132
128
|
isResizing: true,
|
|
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
14
|
import Layer from '../Layer';
|
|
15
15
|
const packageName = "@atlaskit/editor-common";
|
|
16
|
-
const packageVersion = "102.10.
|
|
16
|
+
const packageVersion = "102.10.3";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -30,8 +30,7 @@ const mbeExtensionContainer = css({
|
|
|
30
30
|
},
|
|
31
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
32
32
|
".multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true'], .multiBodiedExtension--frames > [data-extension-frame='true']": {
|
|
33
|
-
display: 'none'
|
|
34
|
-
background: "var(--ds-surface, white)"
|
|
33
|
+
display: 'none'
|
|
35
34
|
},
|
|
36
35
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
37
36
|
'.multiBodiedExtension-content-dom-wrapper, .multiBodiedExtension--frames': {
|
|
@@ -127,5 +127,11 @@ export var aiMessages = defineMessages({
|
|
|
127
127
|
id: 'fabric.editor.ai.commandPalette.promptBuilderForm.buttons.submit',
|
|
128
128
|
defaultMessage: 'Generate',
|
|
129
129
|
description: 'Label for the Submit button in the command palette'
|
|
130
|
+
},
|
|
131
|
+
// AI Smart button messages
|
|
132
|
+
aiSmartButtonDynamicSurfaceSelectedContent: {
|
|
133
|
+
id: 'fabric.editor.ai.ai-smart-button.context.reference',
|
|
134
|
+
defaultMessage: 'Selected content',
|
|
135
|
+
description: 'When there is selection, show the selected content in the AI dynamic surface panel'
|
|
130
136
|
}
|
|
131
137
|
});
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "102.10.
|
|
10
|
+
var packageVersion = "102.10.3";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -11,6 +11,7 @@ import React from 'react';
|
|
|
11
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
12
|
import { jsx } from '@emotion/react';
|
|
13
13
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
15
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
15
16
|
import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '../analytics';
|
|
16
17
|
import { ErrorBoundary } from '../ui/ErrorBoundary';
|
|
@@ -33,15 +34,36 @@ var virtualizedNodeWhitelist = ['status', 'mention', 'emoji', 'date', 'inlineCar
|
|
|
33
34
|
var virtualisationConfiguration = function virtualisationConfiguration() {
|
|
34
35
|
var enableVirtualization = false;
|
|
35
36
|
var reactRenderedDocumentPositionThreshold = 0;
|
|
36
|
-
if (
|
|
37
|
+
if (isSSR) {
|
|
38
|
+
return {
|
|
39
|
+
enableVirtualization: enableVirtualization,
|
|
40
|
+
reactRenderedDocumentPositionThreshold: reactRenderedDocumentPositionThreshold,
|
|
41
|
+
virtualizeCurrentNode: function virtualizeCurrentNode() {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
if (editorExperiment('platform_editor_inline_node_virtualization', 'off', {
|
|
47
|
+
exposure: true
|
|
48
|
+
})) {
|
|
37
49
|
enableVirtualization = false;
|
|
38
|
-
} else if (editorExperiment('platform_editor_inline_node_virtualization', 'fallback-small'
|
|
39
|
-
|
|
50
|
+
} else if (editorExperiment('platform_editor_inline_node_virtualization', 'fallback-small', {
|
|
51
|
+
exposure: true
|
|
52
|
+
})) {
|
|
53
|
+
enableVirtualization = true;
|
|
40
54
|
reactRenderedDocumentPositionThreshold = 100;
|
|
41
|
-
} else if (editorExperiment('platform_editor_inline_node_virtualization', 'fallback-large'
|
|
42
|
-
|
|
55
|
+
} else if (editorExperiment('platform_editor_inline_node_virtualization', 'fallback-large', {
|
|
56
|
+
exposure: true
|
|
57
|
+
})) {
|
|
58
|
+
enableVirtualization = true;
|
|
43
59
|
reactRenderedDocumentPositionThreshold = 400;
|
|
44
60
|
}
|
|
61
|
+
|
|
62
|
+
// we need to be able to override the threshold to 0
|
|
63
|
+
// for specific situation, primarily testing
|
|
64
|
+
if (reactRenderedDocumentPositionThreshold !== 0 && fg('platform_editor_inline_node_virt_threshold_override')) {
|
|
65
|
+
reactRenderedDocumentPositionThreshold = 0;
|
|
66
|
+
}
|
|
45
67
|
return {
|
|
46
68
|
enableVirtualization: enableVirtualization,
|
|
47
69
|
reactRenderedDocumentPositionThreshold: reactRenderedDocumentPositionThreshold,
|
|
@@ -10,7 +10,7 @@ import { browser } from '../utils/browser';
|
|
|
10
10
|
import Resizer from './Resizer';
|
|
11
11
|
var breakoutSupportedNodes = ['layoutSection', 'expand', 'codeBlock'];
|
|
12
12
|
var getHandleStyle = function getHandleStyle(node) {
|
|
13
|
-
var layoutMarginOffset =
|
|
13
|
+
var layoutMarginOffset = 12;
|
|
14
14
|
switch (node) {
|
|
15
15
|
case 'codeBlock':
|
|
16
16
|
return {
|
|
@@ -121,11 +121,7 @@ var BreakoutResizer = function BreakoutResizer(_ref) {
|
|
|
121
121
|
displayGapCursor(false);
|
|
122
122
|
if (widthState !== undefined && widthState.lineLength !== undefined && widthState.width !== undefined) {
|
|
123
123
|
newMaxWidth = Math.min(widthState.width - akEditorGutterPaddingDynamic() * 2 - akEditorGutterPadding, akEditorFullWidthLayoutWidth);
|
|
124
|
-
|
|
125
|
-
newMinWidth = Math.min(widthState.lineLength, akEditorDefaultLayoutWidth, newMaxWidth);
|
|
126
|
-
} else {
|
|
127
|
-
newMinWidth = Math.min(widthState.lineLength, akEditorDefaultLayoutWidth);
|
|
128
|
-
}
|
|
124
|
+
newMinWidth = Math.min(widthState.lineLength, akEditorDefaultLayoutWidth, newMaxWidth);
|
|
129
125
|
}
|
|
130
126
|
setResizingState({
|
|
131
127
|
isResizing: true,
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "102.10.
|
|
23
|
+
var packageVersion = "102.10.3";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -30,8 +30,7 @@ var mbeExtensionContainer = css({
|
|
|
30
30
|
},
|
|
31
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
32
32
|
".multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true'], .multiBodiedExtension--frames > [data-extension-frame='true']": {
|
|
33
|
-
display: 'none'
|
|
34
|
-
background: "var(--ds-surface, white)"
|
|
33
|
+
display: 'none'
|
|
35
34
|
},
|
|
36
35
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
37
36
|
'.multiBodiedExtension-content-dom-wrapper, .multiBodiedExtension--frames': {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "102.10.
|
|
3
|
+
"version": "102.10.3",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"@atlaskit/primitives": "^14.1.0",
|
|
156
156
|
"@atlaskit/profilecard": "^23.4.0",
|
|
157
157
|
"@atlaskit/section-message": "^8.1.0",
|
|
158
|
-
"@atlaskit/smart-card": "^
|
|
158
|
+
"@atlaskit/smart-card": "^36.0.0",
|
|
159
159
|
"@atlaskit/smart-user-picker": "^8.0.0",
|
|
160
160
|
"@atlaskit/spinner": "^18.0.0",
|
|
161
161
|
"@atlaskit/task-decision": "^19.1.0",
|
|
@@ -295,9 +295,6 @@
|
|
|
295
295
|
"platform_editor_extension_fix_ssr_ref": {
|
|
296
296
|
"type": "boolean"
|
|
297
297
|
},
|
|
298
|
-
"platform_editor_advanced_layouts_post_fix_patch_2": {
|
|
299
|
-
"type": "boolean"
|
|
300
|
-
},
|
|
301
298
|
"platform_editor_advanced_layouts_post_fix_patch_3": {
|
|
302
299
|
"type": "boolean"
|
|
303
300
|
},
|
|
@@ -336,6 +333,9 @@
|
|
|
336
333
|
},
|
|
337
334
|
"platform_editor_remove_quick_insert_priority_key": {
|
|
338
335
|
"type": "boolean"
|
|
336
|
+
},
|
|
337
|
+
"platform_editor_inline_node_virt_threshold_override": {
|
|
338
|
+
"type": "boolean"
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
}
|