@atlaskit/editor-common 111.9.7 → 111.11.0
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 +24 -0
- package/dist/cjs/extensibility/Extension/Extension/index.js +4 -2
- package/dist/cjs/messages/table.js +5 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/extensibility/Extension/Extension/index.js +4 -2
- package/dist/es2019/messages/table.js +5 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/extensibility/Extension/Extension/index.js +4 -2
- package/dist/esm/messages/table.js +5 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/block-menu-events.d.ts +1 -1
- package/dist/types/messages/table.d.ts +5 -0
- package/dist/types-ts4.5/analytics/types/block-menu-events.d.ts +1 -1
- package/dist/types-ts4.5/messages/table.d.ts +5 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 111.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`5dfede89f8ccc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5dfede89f8ccc) -
|
|
8
|
+
[EDITOR-4601](https://hello.jira.atlassian.cloud/browse/EDITOR-4601) - rename table Numbered rows
|
|
9
|
+
label
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`7b1f3cc37e760`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7b1f3cc37e760) -
|
|
14
|
+
Fire `element undid` event after undo transform
|
|
15
|
+
|
|
16
|
+
## 111.10.0
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- [`707c5a42b5358`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/707c5a42b5358) -
|
|
21
|
+
[ux] Updates LCM for new Read only mode. Also adds a new static property setter to the insm api.
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies
|
|
26
|
+
|
|
3
27
|
## 111.9.7
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
|
@@ -103,7 +103,7 @@ function ExtensionWithPluginState(props) {
|
|
|
103
103
|
'with-hover-border': (0, _expValEquals.expValEquals)('cc_editor_ttvc_release_bundle_one', 'extensionHoverRefactor', true) ? false : showMacroInteractionDesignUpdates && isNodeHovered,
|
|
104
104
|
'with-danger-overlay': showMacroInteractionDesignUpdates,
|
|
105
105
|
'without-frame': removeBorder,
|
|
106
|
-
'legacy-content': showLegacyContentHeader
|
|
106
|
+
'legacy-content': (0, _expValEquals.expValEquals)('cc_editor_lcm_readonly_initial', 'isEnabled', true) ? undefined : showLegacyContentHeader
|
|
107
107
|
}, _styles2.widerLayoutClassName, shouldBreakout));
|
|
108
108
|
var overflowClassNames = (0, _classnames2.default)('extension-overflow-wrapper', {
|
|
109
109
|
'with-body': hasBody,
|
|
@@ -128,6 +128,8 @@ function ExtensionWithPluginState(props) {
|
|
|
128
128
|
};
|
|
129
129
|
var newContentStyles = {};
|
|
130
130
|
if (shouldBreakout) {
|
|
131
|
+
// type is destructured so that breakout styles does not include it
|
|
132
|
+
// eslint-disable-next-line no-unused-vars
|
|
131
133
|
var _calculateBreakoutSty = (0, _utils.calculateBreakoutStyles)({
|
|
132
134
|
mode: node.attrs.layout,
|
|
133
135
|
widthStateWidth: widthState.width,
|
|
@@ -145,7 +147,7 @@ function ExtensionWithPluginState(props) {
|
|
|
145
147
|
}
|
|
146
148
|
};
|
|
147
149
|
var extensionContentStyles = (0, _expValEquals.expValEquals)('platform_editor_extension_styles', 'isEnabled', true) ? _styles2.extensionContent : _styles2.content;
|
|
148
|
-
return (0, _react2.jsx)(_react.Fragment, null, showLegacyContentHeader && (0, _react2.jsx)(_LegacyContentHeader.LegacyContentHeader, {
|
|
150
|
+
return (0, _react2.jsx)(_react.Fragment, null, (0, _expValEquals.expValEquals)('cc_editor_lcm_readonly_initial', 'isEnabled', true) ? null : showLegacyContentHeader && (0, _react2.jsx)(_LegacyContentHeader.LegacyContentHeader, {
|
|
149
151
|
isNodeSelected: isNodeSelected,
|
|
150
152
|
isNodeHovered: isNodeHovered,
|
|
151
153
|
onMouseEnter: function onMouseEnter() {
|
|
@@ -126,6 +126,11 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
126
126
|
defaultMessage: 'Row numbers',
|
|
127
127
|
desciption: 'Adds a number to each row except header row'
|
|
128
128
|
},
|
|
129
|
+
numberedRows: {
|
|
130
|
+
id: 'fabrid.editor.numberedRows',
|
|
131
|
+
defaultMessage: 'Numbered rows',
|
|
132
|
+
desciption: 'Adds a number to each row except header row'
|
|
133
|
+
},
|
|
129
134
|
rowsAreInserted: {
|
|
130
135
|
id: 'fabric.editor.rowsAreInserted',
|
|
131
136
|
defaultMessage: '{count, plural, one {A row has been} other {{count} rows have been}} inserted',
|
|
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "111.
|
|
22
|
+
var packageVersion = "111.10.0";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// 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 = "111.
|
|
27
|
+
var packageVersion = "111.10.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -96,7 +96,7 @@ function ExtensionWithPluginState(props) {
|
|
|
96
96
|
'with-hover-border': expValEquals('cc_editor_ttvc_release_bundle_one', 'extensionHoverRefactor', true) ? false : showMacroInteractionDesignUpdates && isNodeHovered,
|
|
97
97
|
'with-danger-overlay': showMacroInteractionDesignUpdates,
|
|
98
98
|
'without-frame': removeBorder,
|
|
99
|
-
'legacy-content': showLegacyContentHeader,
|
|
99
|
+
'legacy-content': expValEquals('cc_editor_lcm_readonly_initial', 'isEnabled', true) ? undefined : showLegacyContentHeader,
|
|
100
100
|
[widerLayoutClassName]: shouldBreakout
|
|
101
101
|
});
|
|
102
102
|
const overflowClassNames = classnames('extension-overflow-wrapper', {
|
|
@@ -122,6 +122,8 @@ function ExtensionWithPluginState(props) {
|
|
|
122
122
|
};
|
|
123
123
|
let newContentStyles = {};
|
|
124
124
|
if (shouldBreakout) {
|
|
125
|
+
// type is destructured so that breakout styles does not include it
|
|
126
|
+
// eslint-disable-next-line no-unused-vars
|
|
125
127
|
const {
|
|
126
128
|
type,
|
|
127
129
|
...breakoutStyles
|
|
@@ -145,7 +147,7 @@ function ExtensionWithPluginState(props) {
|
|
|
145
147
|
}
|
|
146
148
|
};
|
|
147
149
|
const extensionContentStyles = expValEquals('platform_editor_extension_styles', 'isEnabled', true) ? extensionContent : content;
|
|
148
|
-
return jsx(Fragment, null, showLegacyContentHeader && jsx(LegacyContentHeader, {
|
|
150
|
+
return jsx(Fragment, null, expValEquals('cc_editor_lcm_readonly_initial', 'isEnabled', true) ? null : showLegacyContentHeader && jsx(LegacyContentHeader, {
|
|
149
151
|
isNodeSelected: isNodeSelected,
|
|
150
152
|
isNodeHovered: isNodeHovered,
|
|
151
153
|
onMouseEnter: () => handleMouseEvent(true),
|
|
@@ -120,6 +120,11 @@ export const messages = defineMessages({
|
|
|
120
120
|
defaultMessage: 'Row numbers',
|
|
121
121
|
desciption: 'Adds a number to each row except header row'
|
|
122
122
|
},
|
|
123
|
+
numberedRows: {
|
|
124
|
+
id: 'fabrid.editor.numberedRows',
|
|
125
|
+
defaultMessage: 'Numbered rows',
|
|
126
|
+
desciption: 'Adds a number to each row except header row'
|
|
127
|
+
},
|
|
123
128
|
rowsAreInserted: {
|
|
124
129
|
id: 'fabric.editor.rowsAreInserted',
|
|
125
130
|
defaultMessage: '{count, plural, one {A row has been} other {{count} rows have been}} inserted',
|
|
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
|
|
|
4
4
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
5
5
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
6
6
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
7
|
-
const packageVersion = "111.
|
|
7
|
+
const packageVersion = "111.10.0";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// Ignored via go/ees007
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "111.
|
|
17
|
+
const packageVersion = "111.10.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -96,7 +96,7 @@ function ExtensionWithPluginState(props) {
|
|
|
96
96
|
'with-hover-border': expValEquals('cc_editor_ttvc_release_bundle_one', 'extensionHoverRefactor', true) ? false : showMacroInteractionDesignUpdates && isNodeHovered,
|
|
97
97
|
'with-danger-overlay': showMacroInteractionDesignUpdates,
|
|
98
98
|
'without-frame': removeBorder,
|
|
99
|
-
'legacy-content': showLegacyContentHeader
|
|
99
|
+
'legacy-content': expValEquals('cc_editor_lcm_readonly_initial', 'isEnabled', true) ? undefined : showLegacyContentHeader
|
|
100
100
|
}, widerLayoutClassName, shouldBreakout));
|
|
101
101
|
var overflowClassNames = classnames('extension-overflow-wrapper', {
|
|
102
102
|
'with-body': hasBody,
|
|
@@ -121,6 +121,8 @@ function ExtensionWithPluginState(props) {
|
|
|
121
121
|
};
|
|
122
122
|
var newContentStyles = {};
|
|
123
123
|
if (shouldBreakout) {
|
|
124
|
+
// type is destructured so that breakout styles does not include it
|
|
125
|
+
// eslint-disable-next-line no-unused-vars
|
|
124
126
|
var _calculateBreakoutSty = calculateBreakoutStyles({
|
|
125
127
|
mode: node.attrs.layout,
|
|
126
128
|
widthStateWidth: widthState.width,
|
|
@@ -138,7 +140,7 @@ function ExtensionWithPluginState(props) {
|
|
|
138
140
|
}
|
|
139
141
|
};
|
|
140
142
|
var extensionContentStyles = expValEquals('platform_editor_extension_styles', 'isEnabled', true) ? extensionContent : content;
|
|
141
|
-
return jsx(Fragment, null, showLegacyContentHeader && jsx(LegacyContentHeader, {
|
|
143
|
+
return jsx(Fragment, null, expValEquals('cc_editor_lcm_readonly_initial', 'isEnabled', true) ? null : showLegacyContentHeader && jsx(LegacyContentHeader, {
|
|
142
144
|
isNodeSelected: isNodeSelected,
|
|
143
145
|
isNodeHovered: isNodeHovered,
|
|
144
146
|
onMouseEnter: function onMouseEnter() {
|
|
@@ -120,6 +120,11 @@ export var messages = defineMessages({
|
|
|
120
120
|
defaultMessage: 'Row numbers',
|
|
121
121
|
desciption: 'Adds a number to each row except header row'
|
|
122
122
|
},
|
|
123
|
+
numberedRows: {
|
|
124
|
+
id: 'fabrid.editor.numberedRows',
|
|
125
|
+
defaultMessage: 'Numbered rows',
|
|
126
|
+
desciption: 'Adds a number to each row except header row'
|
|
127
|
+
},
|
|
123
128
|
rowsAreInserted: {
|
|
124
129
|
id: 'fabric.editor.rowsAreInserted',
|
|
125
130
|
defaultMessage: '{count, plural, one {A row has been} other {{count} rows have been}} inserted',
|
|
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
|
|
|
10
10
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
11
11
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
12
12
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
13
|
-
var packageVersion = "111.
|
|
13
|
+
var packageVersion = "111.10.0";
|
|
14
14
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
15
15
|
// Remove URL as it has UGC
|
|
16
16
|
// Ignored via go/ees007
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "111.
|
|
24
|
+
var packageVersion = "111.10.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -36,7 +36,7 @@ export type ElementTransformErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUB
|
|
|
36
36
|
interface ElementTransformAttr {
|
|
37
37
|
duration: number;
|
|
38
38
|
inputMethod: INPUT_METHOD.BLOCK_MENU;
|
|
39
|
-
|
|
39
|
+
isEmptyLine: boolean;
|
|
40
40
|
isNested: boolean;
|
|
41
41
|
outputNodesCount: number;
|
|
42
42
|
sourceNodesCount: number;
|
|
@@ -119,6 +119,11 @@ export declare const messages: {
|
|
|
119
119
|
defaultMessage: string;
|
|
120
120
|
desciption: string;
|
|
121
121
|
};
|
|
122
|
+
numberedRows: {
|
|
123
|
+
id: string;
|
|
124
|
+
defaultMessage: string;
|
|
125
|
+
desciption: string;
|
|
126
|
+
};
|
|
122
127
|
rowsAreInserted: {
|
|
123
128
|
id: string;
|
|
124
129
|
defaultMessage: string;
|
|
@@ -36,7 +36,7 @@ export type ElementTransformErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUB
|
|
|
36
36
|
interface ElementTransformAttr {
|
|
37
37
|
duration: number;
|
|
38
38
|
inputMethod: INPUT_METHOD.BLOCK_MENU;
|
|
39
|
-
|
|
39
|
+
isEmptyLine: boolean;
|
|
40
40
|
isNested: boolean;
|
|
41
41
|
outputNodesCount: number;
|
|
42
42
|
sourceNodesCount: number;
|
|
@@ -119,6 +119,11 @@ export declare const messages: {
|
|
|
119
119
|
defaultMessage: string;
|
|
120
120
|
desciption: string;
|
|
121
121
|
};
|
|
122
|
+
numberedRows: {
|
|
123
|
+
id: string;
|
|
124
|
+
defaultMessage: string;
|
|
125
|
+
desciption: string;
|
|
126
|
+
};
|
|
122
127
|
rowsAreInserted: {
|
|
123
128
|
id: string;
|
|
124
129
|
defaultMessage: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "111.
|
|
3
|
+
"version": "111.11.0",
|
|
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/"
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@atlaskit/task-decision": "^19.2.0",
|
|
82
82
|
"@atlaskit/textfield": "^8.2.0",
|
|
83
83
|
"@atlaskit/theme": "^21.0.0",
|
|
84
|
-
"@atlaskit/tmp-editor-statsig": "^17.
|
|
84
|
+
"@atlaskit/tmp-editor-statsig": "^17.5.0",
|
|
85
85
|
"@atlaskit/tokens": "^10.1.0",
|
|
86
86
|
"@atlaskit/tooltip": "^20.14.0",
|
|
87
87
|
"@atlaskit/width-detector": "^5.0.0",
|