@atlaskit/editor-common 103.21.1 → 103.21.2
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 +11 -0
- package/dist/cjs/analytics/types/enums.js +2 -0
- package/dist/cjs/extensibility/Extension/Extension/index.js +3 -3
- package/dist/cjs/extensibility/Extension/Extension/styles.js +1 -6
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/analytics/types/enums.js +2 -0
- package/dist/es2019/extensibility/Extension/Extension/index.js +4 -4
- package/dist/es2019/extensibility/Extension/Extension/styles.js +0 -5
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +2 -3
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/analytics/types/enums.js +2 -0
- package/dist/esm/extensibility/Extension/Extension/index.js +4 -4
- package/dist/esm/extensibility/Extension/Extension/styles.js +0 -5
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +2 -3
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/enums.d.ts +2 -0
- package/dist/types/analytics/types/events.d.ts +5 -2
- package/dist/types/extensibility/Extension/Extension/styles.d.ts +0 -1
- package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -0
- package/dist/types-ts4.5/analytics/types/events.d.ts +5 -2
- package/dist/types-ts4.5/extensibility/Extension/Extension/styles.d.ts +0 -1
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 103.21.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#148176](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/148176)
|
|
8
|
+
[`ff3d1fcb8f797`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ff3d1fcb8f797) -
|
|
9
|
+
Clean-up platform_editor_legacy_content_macro feature gate
|
|
10
|
+
- [#149192](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/149192)
|
|
11
|
+
[`7dd3315f8b3a2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7dd3315f8b3a2) -
|
|
12
|
+
Added undo/redo analytics
|
|
13
|
+
|
|
3
14
|
## 103.21.1
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -68,6 +68,8 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
68
68
|
ACTION["FIND_NEXT_PERFORMED"] = "findNextPerformed";
|
|
69
69
|
ACTION["FIND_PERFORMED"] = "findPerformed";
|
|
70
70
|
ACTION["FIND_PREV_PERFORMED"] = "findPrevPerformed";
|
|
71
|
+
ACTION["UNDO_PERFORMED"] = "undo";
|
|
72
|
+
ACTION["REDO_PERFORMED"] = "redo";
|
|
71
73
|
ACTION["FORMATTED"] = "formatted";
|
|
72
74
|
ACTION["HELP_OPENED"] = "helpOpened";
|
|
73
75
|
ACTION["HIGHLIGHTED"] = "highlighted";
|
|
@@ -80,7 +80,7 @@ function ExtensionWithPluginState(props) {
|
|
|
80
80
|
var show1PBodiedExtensionBorder = showUpdatedLivePages1PBodiedExtensionUI ? (0, _extensionUtils.isEmptyBodiedMacro)(node) : true;
|
|
81
81
|
var classNames = (0, _classnames2.default)('extension-container', 'block', shadowClassNames, (0, _defineProperty2.default)({
|
|
82
82
|
'with-overlay': !hasBody && !showMacroInteractionDesignUpdates,
|
|
83
|
-
'with-bodied-border': showMacroInteractionDesignUpdates && (hasBody || isLegacyContentMacroExtension(node)
|
|
83
|
+
'with-bodied-border': showMacroInteractionDesignUpdates && (hasBody || isLegacyContentMacroExtension(node)) && !showBodiedExtensionRendererView && show1PBodiedExtensionBorder,
|
|
84
84
|
'with-margin-styles': showMacroInteractionDesignUpdates && !isNodeNested && !showBodiedExtensionRendererView,
|
|
85
85
|
'with-hover-border': showMacroInteractionDesignUpdates && isNodeHovered,
|
|
86
86
|
'with-danger-overlay': showMacroInteractionDesignUpdates,
|
|
@@ -133,7 +133,7 @@ function ExtensionWithPluginState(props) {
|
|
|
133
133
|
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates,
|
|
134
134
|
customContainerStyles: customContainerStyles,
|
|
135
135
|
setIsNodeHovered: setIsNodeHovered,
|
|
136
|
-
isBodiedMacro: hasBody || isLegacyContentMacroExtension(node)
|
|
136
|
+
isBodiedMacro: hasBody || isLegacyContentMacroExtension(node),
|
|
137
137
|
showLivePagesBodiedMacrosRendererView: showLivePagesBodiedMacrosRendererView,
|
|
138
138
|
showUpdatedLivePages1PBodiedExtensionUI: showUpdatedLivePages1PBodiedExtensionUI,
|
|
139
139
|
showBodiedExtensionRendererView: showBodiedExtensionRendererView,
|
|
@@ -148,7 +148,7 @@ function ExtensionWithPluginState(props) {
|
|
|
148
148
|
className: classNames,
|
|
149
149
|
css:
|
|
150
150
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
151
|
-
|
|
151
|
+
_styles2.wrapperStyleInheritedCursor
|
|
152
152
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
153
153
|
,
|
|
154
154
|
style: customContainerStyles,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.wrapperStyleInheritedCursor = exports.
|
|
6
|
+
exports.wrapperStyleInheritedCursor = exports.widerLayoutClassName = exports.overflowWrapperStyles = exports.header = exports.contentWrapper = exports.content = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _styles = require("../styles");
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -48,11 +48,6 @@ var wrapperStyleInheritedCursor = exports.wrapperStyleInheritedCursor = (0, _rea
|
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
|
|
51
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
52
|
-
var wrapperStyle = exports.wrapperStyle = (0, _react.css)(wrapperStyleWithoutCursor, {
|
|
53
|
-
cursor: 'pointer'
|
|
54
|
-
});
|
|
55
|
-
|
|
56
51
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
57
52
|
var header = exports.header = (0, _react.css)({
|
|
58
53
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-050, 4px)", " 0px"),
|
|
@@ -10,7 +10,6 @@ var _react = require("@emotion/react");
|
|
|
10
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
11
|
var _reactIntlNext = require("react-intl-next");
|
|
12
12
|
var _customize = _interopRequireDefault(require("@atlaskit/icon/core/customize"));
|
|
13
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
13
|
var _primitives = require("@atlaskit/primitives");
|
|
15
14
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
16
15
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
@@ -181,7 +180,7 @@ var ExtensionLabel = exports.ExtensionLabel = function ExtensionLabel(_ref) {
|
|
|
181
180
|
}
|
|
182
181
|
},
|
|
183
182
|
"data-testid": "new-lozenge-container",
|
|
184
|
-
contentEditable:
|
|
183
|
+
contentEditable: false
|
|
185
184
|
}, (0, _react.jsx)(_tooltip.default, {
|
|
186
185
|
content: (0, _react.jsx)(_reactIntlNext.FormattedMessage
|
|
187
186
|
// Ignored via go/ees005
|
|
@@ -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 = "103.21.
|
|
20
|
+
var packageVersion = "103.21.2";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// Ignored via go/ees007
|
|
@@ -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 = "103.21.
|
|
26
|
+
var packageVersion = "103.21.2";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -62,6 +62,8 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
62
62
|
ACTION["FIND_NEXT_PERFORMED"] = "findNextPerformed";
|
|
63
63
|
ACTION["FIND_PERFORMED"] = "findPerformed";
|
|
64
64
|
ACTION["FIND_PREV_PERFORMED"] = "findPrevPerformed";
|
|
65
|
+
ACTION["UNDO_PERFORMED"] = "undo";
|
|
66
|
+
ACTION["REDO_PERFORMED"] = "redo";
|
|
65
67
|
ACTION["FORMATTED"] = "formatted";
|
|
66
68
|
ACTION["HELP_OPENED"] = "helpOpened";
|
|
67
69
|
ACTION["HIGHLIGHTED"] = "highlighted";
|
|
@@ -16,7 +16,7 @@ import { calculateBreakoutStyles } from '../../../utils';
|
|
|
16
16
|
import ExtensionLozenge from '../Lozenge';
|
|
17
17
|
import { overlay } from '../styles';
|
|
18
18
|
import { isEmptyBodiedMacro } from './extension-utils';
|
|
19
|
-
import { content, contentWrapper, header, overflowWrapperStyles, widerLayoutClassName,
|
|
19
|
+
import { content, contentWrapper, header, overflowWrapperStyles, widerLayoutClassName, wrapperStyleInheritedCursor } from './styles';
|
|
20
20
|
function ExtensionWithPluginState(props) {
|
|
21
21
|
const {
|
|
22
22
|
node,
|
|
@@ -71,7 +71,7 @@ function ExtensionWithPluginState(props) {
|
|
|
71
71
|
const show1PBodiedExtensionBorder = showUpdatedLivePages1PBodiedExtensionUI ? isEmptyBodiedMacro(node) : true;
|
|
72
72
|
const classNames = classnames('extension-container', 'block', shadowClassNames, {
|
|
73
73
|
'with-overlay': !hasBody && !showMacroInteractionDesignUpdates,
|
|
74
|
-
'with-bodied-border': showMacroInteractionDesignUpdates && (hasBody || isLegacyContentMacroExtension(node)
|
|
74
|
+
'with-bodied-border': showMacroInteractionDesignUpdates && (hasBody || isLegacyContentMacroExtension(node)) && !showBodiedExtensionRendererView && show1PBodiedExtensionBorder,
|
|
75
75
|
'with-margin-styles': showMacroInteractionDesignUpdates && !isNodeNested && !showBodiedExtensionRendererView,
|
|
76
76
|
'with-hover-border': showMacroInteractionDesignUpdates && isNodeHovered,
|
|
77
77
|
'with-danger-overlay': showMacroInteractionDesignUpdates,
|
|
@@ -131,7 +131,7 @@ function ExtensionWithPluginState(props) {
|
|
|
131
131
|
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates,
|
|
132
132
|
customContainerStyles: customContainerStyles,
|
|
133
133
|
setIsNodeHovered: setIsNodeHovered,
|
|
134
|
-
isBodiedMacro: hasBody || isLegacyContentMacroExtension(node)
|
|
134
|
+
isBodiedMacro: hasBody || isLegacyContentMacroExtension(node),
|
|
135
135
|
showLivePagesBodiedMacrosRendererView: showLivePagesBodiedMacrosRendererView,
|
|
136
136
|
showUpdatedLivePages1PBodiedExtensionUI: showUpdatedLivePages1PBodiedExtensionUI,
|
|
137
137
|
showBodiedExtensionRendererView: showBodiedExtensionRendererView,
|
|
@@ -146,7 +146,7 @@ function ExtensionWithPluginState(props) {
|
|
|
146
146
|
className: classNames,
|
|
147
147
|
css:
|
|
148
148
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
149
|
-
|
|
149
|
+
wrapperStyleInheritedCursor
|
|
150
150
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
151
151
|
,
|
|
152
152
|
style: customContainerStyles,
|
|
@@ -41,11 +41,6 @@ export const wrapperStyleInheritedCursor = css(wrapperStyleWithoutCursor, {
|
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
45
|
-
export const wrapperStyle = css(wrapperStyleWithoutCursor, {
|
|
46
|
-
cursor: 'pointer'
|
|
47
|
-
});
|
|
48
|
-
|
|
49
44
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
50
45
|
export const header = css({
|
|
51
46
|
padding: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-050, 4px)"} 0px`,
|
|
@@ -7,9 +7,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import classnames from 'classnames';
|
|
10
|
-
import {
|
|
10
|
+
import { FormattedMessage, defineMessages } from 'react-intl-next';
|
|
11
11
|
import CustomizeIcon from '@atlaskit/icon/core/customize';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
12
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
14
13
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
15
14
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -174,7 +173,7 @@ export const ExtensionLabel = ({
|
|
|
174
173
|
}
|
|
175
174
|
},
|
|
176
175
|
"data-testid": "new-lozenge-container",
|
|
177
|
-
contentEditable:
|
|
176
|
+
contentEditable: false
|
|
178
177
|
}, jsx(Tooltip, {
|
|
179
178
|
content: jsx(FormattedMessage
|
|
180
179
|
// Ignored via go/ees005
|
|
@@ -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 = "103.21.
|
|
4
|
+
const packageVersion = "103.21.2";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -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 = "103.21.
|
|
16
|
+
const packageVersion = "103.21.2";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -62,6 +62,8 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
62
62
|
ACTION["FIND_NEXT_PERFORMED"] = "findNextPerformed";
|
|
63
63
|
ACTION["FIND_PERFORMED"] = "findPerformed";
|
|
64
64
|
ACTION["FIND_PREV_PERFORMED"] = "findPrevPerformed";
|
|
65
|
+
ACTION["UNDO_PERFORMED"] = "undo";
|
|
66
|
+
ACTION["REDO_PERFORMED"] = "redo";
|
|
65
67
|
ACTION["FORMATTED"] = "formatted";
|
|
66
68
|
ACTION["HELP_OPENED"] = "helpOpened";
|
|
67
69
|
ACTION["HIGHLIGHTED"] = "highlighted";
|
|
@@ -21,7 +21,7 @@ import { calculateBreakoutStyles } from '../../../utils';
|
|
|
21
21
|
import ExtensionLozenge from '../Lozenge';
|
|
22
22
|
import { overlay } from '../styles';
|
|
23
23
|
import { isEmptyBodiedMacro } from './extension-utils';
|
|
24
|
-
import { content, contentWrapper, header, overflowWrapperStyles, widerLayoutClassName,
|
|
24
|
+
import { content, contentWrapper, header, overflowWrapperStyles, widerLayoutClassName, wrapperStyleInheritedCursor } from './styles';
|
|
25
25
|
function ExtensionWithPluginState(props) {
|
|
26
26
|
var node = props.node,
|
|
27
27
|
handleContentDOMRef = props.handleContentDOMRef,
|
|
@@ -72,7 +72,7 @@ function ExtensionWithPluginState(props) {
|
|
|
72
72
|
var show1PBodiedExtensionBorder = showUpdatedLivePages1PBodiedExtensionUI ? isEmptyBodiedMacro(node) : true;
|
|
73
73
|
var classNames = classnames('extension-container', 'block', shadowClassNames, _defineProperty({
|
|
74
74
|
'with-overlay': !hasBody && !showMacroInteractionDesignUpdates,
|
|
75
|
-
'with-bodied-border': showMacroInteractionDesignUpdates && (hasBody || isLegacyContentMacroExtension(node)
|
|
75
|
+
'with-bodied-border': showMacroInteractionDesignUpdates && (hasBody || isLegacyContentMacroExtension(node)) && !showBodiedExtensionRendererView && show1PBodiedExtensionBorder,
|
|
76
76
|
'with-margin-styles': showMacroInteractionDesignUpdates && !isNodeNested && !showBodiedExtensionRendererView,
|
|
77
77
|
'with-hover-border': showMacroInteractionDesignUpdates && isNodeHovered,
|
|
78
78
|
'with-danger-overlay': showMacroInteractionDesignUpdates,
|
|
@@ -125,7 +125,7 @@ function ExtensionWithPluginState(props) {
|
|
|
125
125
|
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates,
|
|
126
126
|
customContainerStyles: customContainerStyles,
|
|
127
127
|
setIsNodeHovered: setIsNodeHovered,
|
|
128
|
-
isBodiedMacro: hasBody || isLegacyContentMacroExtension(node)
|
|
128
|
+
isBodiedMacro: hasBody || isLegacyContentMacroExtension(node),
|
|
129
129
|
showLivePagesBodiedMacrosRendererView: showLivePagesBodiedMacrosRendererView,
|
|
130
130
|
showUpdatedLivePages1PBodiedExtensionUI: showUpdatedLivePages1PBodiedExtensionUI,
|
|
131
131
|
showBodiedExtensionRendererView: showBodiedExtensionRendererView,
|
|
@@ -140,7 +140,7 @@ function ExtensionWithPluginState(props) {
|
|
|
140
140
|
className: classNames,
|
|
141
141
|
css:
|
|
142
142
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
143
|
-
|
|
143
|
+
wrapperStyleInheritedCursor
|
|
144
144
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
145
145
|
,
|
|
146
146
|
style: customContainerStyles,
|
|
@@ -41,11 +41,6 @@ export var wrapperStyleInheritedCursor = css(wrapperStyleWithoutCursor, {
|
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
45
|
-
export var wrapperStyle = css(wrapperStyleWithoutCursor, {
|
|
46
|
-
cursor: 'pointer'
|
|
47
|
-
});
|
|
48
|
-
|
|
49
44
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
50
45
|
export var header = css({
|
|
51
46
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-050, 4px)", " 0px"),
|
|
@@ -7,9 +7,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import classnames from 'classnames';
|
|
10
|
-
import {
|
|
10
|
+
import { FormattedMessage, defineMessages } from 'react-intl-next';
|
|
11
11
|
import CustomizeIcon from '@atlaskit/icon/core/customize';
|
|
12
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
12
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
14
13
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
15
14
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -173,7 +172,7 @@ export var ExtensionLabel = function ExtensionLabel(_ref) {
|
|
|
173
172
|
}
|
|
174
173
|
},
|
|
175
174
|
"data-testid": "new-lozenge-container",
|
|
176
|
-
contentEditable:
|
|
175
|
+
contentEditable: false
|
|
177
176
|
}, jsx(Tooltip, {
|
|
178
177
|
content: jsx(FormattedMessage
|
|
179
178
|
// Ignored via go/ees005
|
|
@@ -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 = "103.21.
|
|
10
|
+
var packageVersion = "103.21.2";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -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 = "103.21.
|
|
23
|
+
var packageVersion = "103.21.2";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -61,6 +61,8 @@ export declare enum ACTION {
|
|
|
61
61
|
FIND_NEXT_PERFORMED = "findNextPerformed",
|
|
62
62
|
FIND_PERFORMED = "findPerformed",
|
|
63
63
|
FIND_PREV_PERFORMED = "findPrevPerformed",
|
|
64
|
+
UNDO_PERFORMED = "undo",
|
|
65
|
+
REDO_PERFORMED = "redo",
|
|
64
66
|
FORMATTED = "formatted",
|
|
65
67
|
HELP_OPENED = "helpOpened",
|
|
66
68
|
HIGHLIGHTED = "highlighted",
|
|
@@ -21,7 +21,7 @@ import type { DateEventPayload } from './date-events';
|
|
|
21
21
|
import type { ElementBrowserEventPayload } from './element-browser-events';
|
|
22
22
|
import type { ElementEventPayload } from './element-events';
|
|
23
23
|
import type { EngagementPlatformEventPayload } from './engagement-platform-events';
|
|
24
|
-
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, CONTENT_COMPONENT, FLOATING_CONTROLS_TITLE } from './enums';
|
|
24
|
+
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, CONTENT_COMPONENT, FLOATING_CONTROLS_TITLE, INPUT_METHOD } from './enums';
|
|
25
25
|
import type { ExtensionEventPayload } from './extension-events';
|
|
26
26
|
import type { FindReplaceEventPayload } from './find-replace-events';
|
|
27
27
|
import type { FormatEventPayload } from './format-events';
|
|
@@ -58,7 +58,7 @@ export type SimplifiedNode = {
|
|
|
58
58
|
marks?: string[];
|
|
59
59
|
content?: SimplifiedNode[];
|
|
60
60
|
};
|
|
61
|
-
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | AlignmentEventPayload;
|
|
61
|
+
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | AlignmentEventPayload | UndoRedoAEP;
|
|
62
62
|
type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
|
|
63
63
|
previousColor: string;
|
|
64
64
|
newColor: string;
|
|
@@ -74,6 +74,9 @@ type MBEEventPayload = TrackAEP<ACTION.ADD_CHILD | ACTION.CHANGE_ACTIVE | ACTION
|
|
|
74
74
|
localId: string;
|
|
75
75
|
currentFramesCount: number;
|
|
76
76
|
}, undefined>;
|
|
77
|
+
type UndoRedoAEP = TrackAEP<ACTION.UNDO_PERFORMED | ACTION.REDO_PERFORMED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
78
|
+
inputMethod: INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR | INPUT_METHOD.EXTERNAL;
|
|
79
|
+
}, undefined>;
|
|
77
80
|
export type AnalyticsEventPayloadWithChannel = {
|
|
78
81
|
channel: string;
|
|
79
82
|
payload: AnalyticsEventPayload;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export declare const widerLayoutClassName = "wider-layout";
|
|
2
2
|
export declare const wrapperStyleInheritedCursor: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const wrapperStyle: import("@emotion/react").SerializedStyles;
|
|
4
3
|
export declare const header: import("@emotion/react").SerializedStyles;
|
|
5
4
|
export declare const content: import("@emotion/react").SerializedStyles;
|
|
6
5
|
export declare const contentWrapper: import("@emotion/react").SerializedStyles;
|
|
@@ -61,6 +61,8 @@ export declare enum ACTION {
|
|
|
61
61
|
FIND_NEXT_PERFORMED = "findNextPerformed",
|
|
62
62
|
FIND_PERFORMED = "findPerformed",
|
|
63
63
|
FIND_PREV_PERFORMED = "findPrevPerformed",
|
|
64
|
+
UNDO_PERFORMED = "undo",
|
|
65
|
+
REDO_PERFORMED = "redo",
|
|
64
66
|
FORMATTED = "formatted",
|
|
65
67
|
HELP_OPENED = "helpOpened",
|
|
66
68
|
HIGHLIGHTED = "highlighted",
|
|
@@ -21,7 +21,7 @@ import type { DateEventPayload } from './date-events';
|
|
|
21
21
|
import type { ElementBrowserEventPayload } from './element-browser-events';
|
|
22
22
|
import type { ElementEventPayload } from './element-events';
|
|
23
23
|
import type { EngagementPlatformEventPayload } from './engagement-platform-events';
|
|
24
|
-
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, CONTENT_COMPONENT, FLOATING_CONTROLS_TITLE } from './enums';
|
|
24
|
+
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, CONTENT_COMPONENT, FLOATING_CONTROLS_TITLE, INPUT_METHOD } from './enums';
|
|
25
25
|
import type { ExtensionEventPayload } from './extension-events';
|
|
26
26
|
import type { FindReplaceEventPayload } from './find-replace-events';
|
|
27
27
|
import type { FormatEventPayload } from './format-events';
|
|
@@ -58,7 +58,7 @@ export type SimplifiedNode = {
|
|
|
58
58
|
marks?: string[];
|
|
59
59
|
content?: SimplifiedNode[];
|
|
60
60
|
};
|
|
61
|
-
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | AlignmentEventPayload;
|
|
61
|
+
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | AlignmentEventPayload | UndoRedoAEP;
|
|
62
62
|
type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
|
|
63
63
|
previousColor: string;
|
|
64
64
|
newColor: string;
|
|
@@ -74,6 +74,9 @@ type MBEEventPayload = TrackAEP<ACTION.ADD_CHILD | ACTION.CHANGE_ACTIVE | ACTION
|
|
|
74
74
|
localId: string;
|
|
75
75
|
currentFramesCount: number;
|
|
76
76
|
}, undefined>;
|
|
77
|
+
type UndoRedoAEP = TrackAEP<ACTION.UNDO_PERFORMED | ACTION.REDO_PERFORMED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
78
|
+
inputMethod: INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR | INPUT_METHOD.EXTERNAL;
|
|
79
|
+
}, undefined>;
|
|
77
80
|
export type AnalyticsEventPayloadWithChannel = {
|
|
78
81
|
channel: string;
|
|
79
82
|
payload: AnalyticsEventPayload;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export declare const widerLayoutClassName = "wider-layout";
|
|
2
2
|
export declare const wrapperStyleInheritedCursor: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const wrapperStyle: import("@emotion/react").SerializedStyles;
|
|
4
3
|
export declare const header: import("@emotion/react").SerializedStyles;
|
|
5
4
|
export declare const content: import("@emotion/react").SerializedStyles;
|
|
6
5
|
export declare const contentWrapper: import("@emotion/react").SerializedStyles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "103.21.
|
|
3
|
+
"version": "103.21.2",
|
|
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/onboarding": "^14.0.0",
|
|
156
156
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
157
157
|
"@atlaskit/popper": "^7.0.0",
|
|
158
|
-
"@atlaskit/primitives": "^14.
|
|
158
|
+
"@atlaskit/primitives": "^14.5.0",
|
|
159
159
|
"@atlaskit/profilecard": "^23.10.0",
|
|
160
160
|
"@atlaskit/react-ufo": "^3.9.0",
|
|
161
161
|
"@atlaskit/section-message": "^8.2.0",
|
|
@@ -276,9 +276,6 @@
|
|
|
276
276
|
"platform_editor_use_nested_table_pm_nodes": {
|
|
277
277
|
"type": "boolean"
|
|
278
278
|
},
|
|
279
|
-
"platform_editor_legacy_content_macro": {
|
|
280
|
-
"type": "boolean"
|
|
281
|
-
},
|
|
282
279
|
"platform_editor_extension_fix_ssr_ref": {
|
|
283
280
|
"type": "boolean"
|
|
284
281
|
},
|