@atlaskit/editor-common 120.3.2 → 120.3.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/extensibility/MultiBodiedExtension/index.js +1 -1
- package/dist/cjs/media-inline/inline-image-card.js +2 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/extensibility/MultiBodiedExtension/index.js +1 -1
- package/dist/es2019/media-inline/inline-image-card.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/extensibility/MultiBodiedExtension/index.js +1 -1
- package/dist/esm/media-inline/inline-image-card.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/quick-insert/QuickInsertContext.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 120.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c2fa55e225c97`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c2fa55e225c97) -
|
|
8
|
+
Fix MBE empty frame placeholder styling to show only for truly empty paragraphs under
|
|
9
|
+
confluence_native_tabs_m15.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 120.3.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -50,7 +50,7 @@ var getContainerCssExtendedStyles = function getContainerCssExtendedStyles(activ
|
|
|
50
50
|
|
|
51
51
|
// Renders a visual placeholder when the active frame contains a single empty paragraph.
|
|
52
52
|
var getEmptyFramePlaceholderStyles = function getEmptyFramePlaceholderStyles(activeChildIndex, frameId, placeholderText) {
|
|
53
|
-
var activeFramePlaceholderSelector = (0, _fg.fg)('platform_editor_nested_mbe_frames') ? "& [data-multibodiedextension-frames-id='".concat(frameId, "'] > .multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(").concat(activeChildIndex + 1, ") > p:only-child:has(> .ProseMirror-trailingBreak
|
|
53
|
+
var activeFramePlaceholderSelector = (0, _fg.fg)('platform_editor_nested_mbe_frames') ? "& [data-multibodiedextension-frames-id='".concat(frameId, "'] > .multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(").concat(activeChildIndex + 1, ") > p:only-child:has(> .ProseMirror-trailingBreak:only-child)::before") : "& .multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(".concat(activeChildIndex + 1, ") > p:only-child:has(> .ProseMirror-trailingBreak:only-child)::before");
|
|
54
54
|
return (0, _react2.css)((0, _defineProperty2.default)({}, activeFramePlaceholderSelector, {
|
|
55
55
|
color: "var(--ds-text-subtlest, #6B6E76)",
|
|
56
56
|
// JSON.stringify produces a quoted and escaped CSS string.
|
|
@@ -7,7 +7,7 @@ exports.InlineImageCard = void 0;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _react2 = require("@emotion/react");
|
|
9
9
|
var _mediaCommon = require("@atlaskit/media-common");
|
|
10
|
-
var
|
|
10
|
+
var _useFilePreview2 = require("@atlaskit/media-file-preview/use-file-preview");
|
|
11
11
|
var _mediaImage = require("@atlaskit/media-ui/mediaImage");
|
|
12
12
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
13
13
|
var _loadingView = require("./views/loading-view");
|
|
@@ -37,7 +37,7 @@ var InlineImageCard = exports.InlineImageCard = function InlineImageCard(_ref) {
|
|
|
37
37
|
// Ignored via go/ees007
|
|
38
38
|
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
39
39
|
// TODO do we need to handle nonCriticalError
|
|
40
|
-
var _useFilePreview = (0,
|
|
40
|
+
var _useFilePreview = (0, _useFilePreview2.useFilePreview)({
|
|
41
41
|
identifier: identifier,
|
|
42
42
|
ssr: ssr,
|
|
43
43
|
dimensions: dimensions,
|
|
@@ -28,7 +28,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
28
28
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
29
29
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
30
30
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
31
|
-
var packageVersion = "120.3.
|
|
31
|
+
var packageVersion = "120.3.2";
|
|
32
32
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
33
33
|
// Remove URL as it has UGC
|
|
34
34
|
// Ignored via go/ees007
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "120.3.
|
|
27
|
+
var packageVersion = "120.3.2";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -41,7 +41,7 @@ const getContainerCssExtendedStyles = (activeChildIndex, frameId, showMacroInter
|
|
|
41
41
|
|
|
42
42
|
// Renders a visual placeholder when the active frame contains a single empty paragraph.
|
|
43
43
|
const getEmptyFramePlaceholderStyles = (activeChildIndex, frameId, placeholderText) => {
|
|
44
|
-
const activeFramePlaceholderSelector = fg('platform_editor_nested_mbe_frames') ? `& [data-multibodiedextension-frames-id='${frameId}'] > .multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(${activeChildIndex + 1}) > p:only-child:has(> .ProseMirror-trailingBreak
|
|
44
|
+
const activeFramePlaceholderSelector = fg('platform_editor_nested_mbe_frames') ? `& [data-multibodiedextension-frames-id='${frameId}'] > .multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(${activeChildIndex + 1}) > p:only-child:has(> .ProseMirror-trailingBreak:only-child)::before` : `& .multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(${activeChildIndex + 1}) > p:only-child:has(> .ProseMirror-trailingBreak:only-child)::before`;
|
|
45
45
|
return css({
|
|
46
46
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
47
47
|
[activeFramePlaceholderSelector]: {
|
|
@@ -7,7 +7,7 @@ import { Fragment, useCallback, useMemo } from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import { getRandomHex } from '@atlaskit/media-common';
|
|
10
|
-
import { useFilePreview } from '@atlaskit/media-file-preview';
|
|
10
|
+
import { useFilePreview } from '@atlaskit/media-file-preview/use-file-preview';
|
|
11
11
|
import { MediaImage } from '@atlaskit/media-ui/mediaImage';
|
|
12
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
13
|
import { InlineImageCardLoadingView } from './views/loading-view';
|
|
@@ -14,7 +14,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
14
14
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
15
15
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
16
16
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
17
|
-
const packageVersion = "120.3.
|
|
17
|
+
const packageVersion = "120.3.2";
|
|
18
18
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
19
19
|
// Remove URL as it has UGC
|
|
20
20
|
// Ignored via go/ees007
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "120.3.
|
|
17
|
+
const packageVersion = "120.3.2";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -43,7 +43,7 @@ var getContainerCssExtendedStyles = function getContainerCssExtendedStyles(activ
|
|
|
43
43
|
|
|
44
44
|
// Renders a visual placeholder when the active frame contains a single empty paragraph.
|
|
45
45
|
var getEmptyFramePlaceholderStyles = function getEmptyFramePlaceholderStyles(activeChildIndex, frameId, placeholderText) {
|
|
46
|
-
var activeFramePlaceholderSelector = fg('platform_editor_nested_mbe_frames') ? "& [data-multibodiedextension-frames-id='".concat(frameId, "'] > .multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(").concat(activeChildIndex + 1, ") > p:only-child:has(> .ProseMirror-trailingBreak
|
|
46
|
+
var activeFramePlaceholderSelector = fg('platform_editor_nested_mbe_frames') ? "& [data-multibodiedextension-frames-id='".concat(frameId, "'] > .multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(").concat(activeChildIndex + 1, ") > p:only-child:has(> .ProseMirror-trailingBreak:only-child)::before") : "& .multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(".concat(activeChildIndex + 1, ") > p:only-child:has(> .ProseMirror-trailingBreak:only-child)::before");
|
|
47
47
|
return css(_defineProperty({}, activeFramePlaceholderSelector, {
|
|
48
48
|
color: "var(--ds-text-subtlest, #6B6E76)",
|
|
49
49
|
// JSON.stringify produces a quoted and escaped CSS string.
|
|
@@ -7,7 +7,7 @@ import { Fragment, useCallback, useMemo } from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import { getRandomHex } from '@atlaskit/media-common';
|
|
10
|
-
import { useFilePreview } from '@atlaskit/media-file-preview';
|
|
10
|
+
import { useFilePreview } from '@atlaskit/media-file-preview/use-file-preview';
|
|
11
11
|
import { MediaImage } from '@atlaskit/media-ui/mediaImage';
|
|
12
12
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
13
|
import { InlineImageCardLoadingView } from './views/loading-view';
|
|
@@ -20,7 +20,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
20
20
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
21
21
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
22
22
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
23
|
-
var packageVersion = "120.3.
|
|
23
|
+
var packageVersion = "120.3.2";
|
|
24
24
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
25
25
|
// Remove URL as it has UGC
|
|
26
26
|
// Ignored via go/ees007
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "120.3.
|
|
24
|
+
var packageVersion = "120.3.2";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -17,7 +17,7 @@ export type QuickInsertContextValue = {
|
|
|
17
17
|
};
|
|
18
18
|
menuOpenId?: symbol;
|
|
19
19
|
select: (selectionHandler: QuickInsertSelectionHandler) => void;
|
|
20
|
-
surfaceContext?: SurfaceContext;
|
|
21
20
|
surface: 'typeahead' | 'element-browser';
|
|
21
|
+
surfaceContext?: SurfaceContext;
|
|
22
22
|
};
|
|
23
23
|
export declare const QuickInsertContext: Context<QuickInsertContextValue | null>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "120.3.
|
|
3
|
+
"version": "120.3.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/"
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"@atlaskit/media-common": "^14.5.0",
|
|
63
63
|
"@atlaskit/media-file-preview": "^1.3.0",
|
|
64
64
|
"@atlaskit/media-picker": "^72.3.0",
|
|
65
|
-
"@atlaskit/media-ui": "^30.
|
|
66
|
-
"@atlaskit/media-viewer": "^54.
|
|
65
|
+
"@atlaskit/media-ui": "^30.14.0",
|
|
66
|
+
"@atlaskit/media-viewer": "^54.7.0",
|
|
67
67
|
"@atlaskit/mention": "^27.18.0",
|
|
68
68
|
"@atlaskit/menu": "^10.1.0",
|
|
69
69
|
"@atlaskit/object": "^2.3.0",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@atlaskit/task-decision": "^21.8.0",
|
|
85
85
|
"@atlaskit/teams-app-config": "^3.0.0",
|
|
86
86
|
"@atlaskit/textfield": "^10.1.0",
|
|
87
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
87
|
+
"@atlaskit/tmp-editor-statsig": "^164.0.0",
|
|
88
88
|
"@atlaskit/tokens": "^16.8.0",
|
|
89
89
|
"@atlaskit/tooltip": "^24.2.0",
|
|
90
90
|
"@atlaskit/width-detector": "^7.1.0",
|