@atlaskit/editor-common 78.19.2 → 78.20.1
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 +16 -0
- package/dist/cjs/analytics/types/table-events.js +2 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/shared/grid.js +1 -1
- package/dist/cjs/styles/shared/headings.js +1 -7
- package/dist/cjs/styles/shared/indentation.js +2 -6
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/analytics/types/table-events.js +2 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/shared/grid.js +1 -1
- package/dist/es2019/styles/shared/headings.js +1 -6
- package/dist/es2019/styles/shared/indentation.js +1 -6
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/analytics/types/table-events.js +2 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/shared/grid.js +1 -1
- package/dist/esm/styles/shared/headings.js +1 -6
- package/dist/esm/styles/shared/indentation.js +1 -6
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/table-events.d.ts +9 -1
- package/dist/types-ts4.5/analytics/types/table-events.d.ts +9 -1
- package/package.json +2 -2
- package/.eslintrc.js +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 78.20.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#83297](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83297) [`6b1707c169e0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b1707c169e0) - The internal composition of this component has changed. There is no expected change in behaviour.
|
|
8
|
+
|
|
9
|
+
## 78.20.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#83612](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83612) [`25b32cbfbb7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/25b32cbfbb7e) - [ux] Added new clone row/column behaviour to tables drag N drop. When the user holds the alt modifier during the operation the row/column will be duplicated rather then moved.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 78.19.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -34,6 +34,8 @@ var TABLE_ACTION = exports.TABLE_ACTION = /*#__PURE__*/function (TABLE_ACTION) {
|
|
|
34
34
|
TABLE_ACTION["INITIAL_OVERFLOW_CAPTURED"] = "initialOverflowCaptured";
|
|
35
35
|
TABLE_ACTION["MOVED_ROW"] = "movedRow";
|
|
36
36
|
TABLE_ACTION["MOVED_COLUMN"] = "movedColumn";
|
|
37
|
+
TABLE_ACTION["CLONED_ROW"] = "clonedRow";
|
|
38
|
+
TABLE_ACTION["CLONED_COLUMN"] = "clonedColumn";
|
|
37
39
|
TABLE_ACTION["ROW_OR_COLUMN_MOVED"] = "rowOrColumnMoved";
|
|
38
40
|
return TABLE_ACTION;
|
|
39
41
|
}({});
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
16
16
|
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 && Object.prototype.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; }
|
|
17
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "78.
|
|
19
|
+
var packageVersion = "78.20.1";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -27,7 +27,7 @@ var gridStyles = exports.gridStyles = (0, _react.css)({
|
|
|
27
27
|
display: 'inline-block',
|
|
28
28
|
boxSizing: 'border-box',
|
|
29
29
|
height: '100%',
|
|
30
|
-
// eslint-disable-next-line @atlaskit/design-system/
|
|
30
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
31
31
|
marginLeft: '-1px',
|
|
32
32
|
transition: 'border-color 0.15s linear',
|
|
33
33
|
zIndex: 0
|
|
@@ -9,37 +9,31 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _typography = require("@atlaskit/theme/typography");
|
|
11
11
|
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; }
|
|
12
|
-
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; }
|
|
12
|
+
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; } /* eslint-disable @atlaskit/design-system/use-tokens-space */
|
|
13
13
|
// @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
|
|
14
14
|
// text sizing prototype: http://proto/fabricrender/
|
|
15
15
|
var headingsSharedStyles = exports.headingsSharedStyles = function headingsSharedStyles() {
|
|
16
16
|
return (0, _react.css)({
|
|
17
17
|
'& h1': _objectSpread(_objectSpread({}, (0, _typography.h700)()), {}, {
|
|
18
18
|
marginBottom: 0,
|
|
19
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
20
19
|
marginTop: '1.667em'
|
|
21
20
|
}),
|
|
22
21
|
'& h2': _objectSpread(_objectSpread({}, (0, _typography.h600)()), {}, {
|
|
23
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
24
22
|
marginTop: '1.8em',
|
|
25
23
|
marginBottom: 0
|
|
26
24
|
}),
|
|
27
25
|
'& h3': _objectSpread(_objectSpread({}, (0, _typography.h500)()), {}, {
|
|
28
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
29
26
|
marginTop: '2em',
|
|
30
27
|
marginBottom: 0
|
|
31
28
|
}),
|
|
32
29
|
'& h4': _objectSpread(_objectSpread({}, (0, _typography.h400)()), {}, {
|
|
33
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
34
30
|
marginTop: '1.357em'
|
|
35
31
|
}),
|
|
36
32
|
'& h5': _objectSpread(_objectSpread({}, (0, _typography.h300)()), {}, {
|
|
37
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
38
33
|
marginTop: '1.667em',
|
|
39
34
|
textTransform: 'none'
|
|
40
35
|
}),
|
|
41
36
|
'& h6': _objectSpread(_objectSpread({}, (0, _typography.h100)()), {}, {
|
|
42
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
43
37
|
marginTop: '1.455em',
|
|
44
38
|
textTransform: 'none'
|
|
45
39
|
})
|
|
@@ -5,30 +5,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.indentationSharedStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
/* eslint-disable @atlaskit/design-system/use-tokens-space */
|
|
9
|
+
|
|
8
10
|
var indentationSharedStyles = exports.indentationSharedStyles = (0, _react.css)({
|
|
9
11
|
'.fabric-editor-indentation-mark': {
|
|
10
12
|
"&[data-level='1']": {
|
|
11
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
12
13
|
marginLeft: '30px'
|
|
13
14
|
},
|
|
14
15
|
"&[data-level='2']": {
|
|
15
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
16
16
|
marginLeft: '60px'
|
|
17
17
|
},
|
|
18
18
|
"&[data-level='3']": {
|
|
19
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
20
19
|
marginLeft: '90px'
|
|
21
20
|
},
|
|
22
21
|
"&[data-level='4']": {
|
|
23
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
24
22
|
marginLeft: '120px'
|
|
25
23
|
},
|
|
26
24
|
"&[data-level='5']": {
|
|
27
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
28
25
|
marginLeft: '150px'
|
|
29
26
|
},
|
|
30
27
|
"&[data-level='6']": {
|
|
31
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
32
28
|
marginLeft: '180px'
|
|
33
29
|
}
|
|
34
30
|
}
|
|
@@ -22,7 +22,7 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
22
22
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
23
23
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
24
24
|
var packageName = "@atlaskit/editor-common";
|
|
25
|
-
var packageVersion = "78.
|
|
25
|
+
var packageVersion = "78.20.1";
|
|
26
26
|
var halfFocusRing = 1;
|
|
27
27
|
var dropOffset = '0, 8';
|
|
28
28
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -28,6 +28,8 @@ export let TABLE_ACTION = /*#__PURE__*/function (TABLE_ACTION) {
|
|
|
28
28
|
TABLE_ACTION["INITIAL_OVERFLOW_CAPTURED"] = "initialOverflowCaptured";
|
|
29
29
|
TABLE_ACTION["MOVED_ROW"] = "movedRow";
|
|
30
30
|
TABLE_ACTION["MOVED_COLUMN"] = "movedColumn";
|
|
31
|
+
TABLE_ACTION["CLONED_ROW"] = "clonedRow";
|
|
32
|
+
TABLE_ACTION["CLONED_COLUMN"] = "clonedColumn";
|
|
31
33
|
TABLE_ACTION["ROW_OR_COLUMN_MOVED"] = "rowOrColumnMoved";
|
|
32
34
|
return TABLE_ACTION;
|
|
33
35
|
}({});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
2
2
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
3
|
-
const packageVersion = "78.
|
|
3
|
+
const packageVersion = "78.20.1";
|
|
4
4
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
5
5
|
// Remove URL as it has UGC
|
|
6
6
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -21,7 +21,7 @@ export const gridStyles = css({
|
|
|
21
21
|
display: 'inline-block',
|
|
22
22
|
boxSizing: 'border-box',
|
|
23
23
|
height: '100%',
|
|
24
|
-
// eslint-disable-next-line @atlaskit/design-system/
|
|
24
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
25
25
|
marginLeft: '-1px',
|
|
26
26
|
transition: 'border-color 0.15s linear',
|
|
27
27
|
zIndex: 0
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/design-system/use-tokens-space */
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
import { h100, h300, h400, h500, h600, h700 } from '@atlaskit/theme/typography';
|
|
3
4
|
|
|
@@ -7,35 +8,29 @@ export const headingsSharedStyles = () => css({
|
|
|
7
8
|
'& h1': {
|
|
8
9
|
...h700(),
|
|
9
10
|
marginBottom: 0,
|
|
10
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
11
11
|
marginTop: '1.667em'
|
|
12
12
|
},
|
|
13
13
|
'& h2': {
|
|
14
14
|
...h600(),
|
|
15
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
16
15
|
marginTop: '1.8em',
|
|
17
16
|
marginBottom: 0
|
|
18
17
|
},
|
|
19
18
|
'& h3': {
|
|
20
19
|
...h500(),
|
|
21
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
22
20
|
marginTop: '2em',
|
|
23
21
|
marginBottom: 0
|
|
24
22
|
},
|
|
25
23
|
'& h4': {
|
|
26
24
|
...h400(),
|
|
27
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
28
25
|
marginTop: '1.357em'
|
|
29
26
|
},
|
|
30
27
|
'& h5': {
|
|
31
28
|
...h300(),
|
|
32
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
33
29
|
marginTop: '1.667em',
|
|
34
30
|
textTransform: 'none'
|
|
35
31
|
},
|
|
36
32
|
'& h6': {
|
|
37
33
|
...h100(),
|
|
38
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
39
34
|
marginTop: '1.455em',
|
|
40
35
|
textTransform: 'none'
|
|
41
36
|
}
|
|
@@ -1,28 +1,23 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/design-system/use-tokens-space */
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
export const indentationSharedStyles = css({
|
|
3
4
|
'.fabric-editor-indentation-mark': {
|
|
4
5
|
"&[data-level='1']": {
|
|
5
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
6
6
|
marginLeft: '30px'
|
|
7
7
|
},
|
|
8
8
|
"&[data-level='2']": {
|
|
9
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
10
9
|
marginLeft: '60px'
|
|
11
10
|
},
|
|
12
11
|
"&[data-level='3']": {
|
|
13
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
14
12
|
marginLeft: '90px'
|
|
15
13
|
},
|
|
16
14
|
"&[data-level='4']": {
|
|
17
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
18
15
|
marginLeft: '120px'
|
|
19
16
|
},
|
|
20
17
|
"&[data-level='5']": {
|
|
21
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
22
18
|
marginLeft: '150px'
|
|
23
19
|
},
|
|
24
20
|
"&[data-level='6']": {
|
|
25
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
26
21
|
marginLeft: '180px'
|
|
27
22
|
}
|
|
28
23
|
}
|
|
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
7
7
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
8
8
|
import Layer from '../Layer';
|
|
9
9
|
const packageName = "@atlaskit/editor-common";
|
|
10
|
-
const packageVersion = "78.
|
|
10
|
+
const packageVersion = "78.20.1";
|
|
11
11
|
const halfFocusRing = 1;
|
|
12
12
|
const dropOffset = '0, 8';
|
|
13
13
|
class DropList extends Component {
|
|
@@ -28,6 +28,8 @@ export var TABLE_ACTION = /*#__PURE__*/function (TABLE_ACTION) {
|
|
|
28
28
|
TABLE_ACTION["INITIAL_OVERFLOW_CAPTURED"] = "initialOverflowCaptured";
|
|
29
29
|
TABLE_ACTION["MOVED_ROW"] = "movedRow";
|
|
30
30
|
TABLE_ACTION["MOVED_COLUMN"] = "movedColumn";
|
|
31
|
+
TABLE_ACTION["CLONED_ROW"] = "clonedRow";
|
|
32
|
+
TABLE_ACTION["CLONED_COLUMN"] = "clonedColumn";
|
|
31
33
|
TABLE_ACTION["ROW_OR_COLUMN_MOVED"] = "rowOrColumnMoved";
|
|
32
34
|
return TABLE_ACTION;
|
|
33
35
|
}({});
|
|
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
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; }
|
|
7
7
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
8
8
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
9
|
-
var packageVersion = "78.
|
|
9
|
+
var packageVersion = "78.20.1";
|
|
10
10
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
11
11
|
// Remove URL as it has UGC
|
|
12
12
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -21,7 +21,7 @@ export var gridStyles = css({
|
|
|
21
21
|
display: 'inline-block',
|
|
22
22
|
boxSizing: 'border-box',
|
|
23
23
|
height: '100%',
|
|
24
|
-
// eslint-disable-next-line @atlaskit/design-system/
|
|
24
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
25
25
|
marginLeft: '-1px',
|
|
26
26
|
transition: 'border-color 0.15s linear',
|
|
27
27
|
zIndex: 0
|
|
@@ -1,6 +1,7 @@
|
|
|
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
|
+
/* eslint-disable @atlaskit/design-system/use-tokens-space */
|
|
4
5
|
import { css } from '@emotion/react';
|
|
5
6
|
import { h100, h300, h400, h500, h600, h700 } from '@atlaskit/theme/typography';
|
|
6
7
|
|
|
@@ -10,30 +11,24 @@ export var headingsSharedStyles = function headingsSharedStyles() {
|
|
|
10
11
|
return css({
|
|
11
12
|
'& h1': _objectSpread(_objectSpread({}, h700()), {}, {
|
|
12
13
|
marginBottom: 0,
|
|
13
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
14
14
|
marginTop: '1.667em'
|
|
15
15
|
}),
|
|
16
16
|
'& h2': _objectSpread(_objectSpread({}, h600()), {}, {
|
|
17
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
18
17
|
marginTop: '1.8em',
|
|
19
18
|
marginBottom: 0
|
|
20
19
|
}),
|
|
21
20
|
'& h3': _objectSpread(_objectSpread({}, h500()), {}, {
|
|
22
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
23
21
|
marginTop: '2em',
|
|
24
22
|
marginBottom: 0
|
|
25
23
|
}),
|
|
26
24
|
'& h4': _objectSpread(_objectSpread({}, h400()), {}, {
|
|
27
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
28
25
|
marginTop: '1.357em'
|
|
29
26
|
}),
|
|
30
27
|
'& h5': _objectSpread(_objectSpread({}, h300()), {}, {
|
|
31
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
32
28
|
marginTop: '1.667em',
|
|
33
29
|
textTransform: 'none'
|
|
34
30
|
}),
|
|
35
31
|
'& h6': _objectSpread(_objectSpread({}, h100()), {}, {
|
|
36
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
37
32
|
marginTop: '1.455em',
|
|
38
33
|
textTransform: 'none'
|
|
39
34
|
})
|
|
@@ -1,28 +1,23 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/design-system/use-tokens-space */
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
export var indentationSharedStyles = css({
|
|
3
4
|
'.fabric-editor-indentation-mark': {
|
|
4
5
|
"&[data-level='1']": {
|
|
5
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
6
6
|
marginLeft: '30px'
|
|
7
7
|
},
|
|
8
8
|
"&[data-level='2']": {
|
|
9
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
10
9
|
marginLeft: '60px'
|
|
11
10
|
},
|
|
12
11
|
"&[data-level='3']": {
|
|
13
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
14
12
|
marginLeft: '90px'
|
|
15
13
|
},
|
|
16
14
|
"&[data-level='4']": {
|
|
17
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
18
15
|
marginLeft: '120px'
|
|
19
16
|
},
|
|
20
17
|
"&[data-level='5']": {
|
|
21
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
22
18
|
marginLeft: '150px'
|
|
23
19
|
},
|
|
24
20
|
"&[data-level='6']": {
|
|
25
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
26
21
|
marginLeft: '180px'
|
|
27
22
|
}
|
|
28
23
|
}
|
|
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
17
17
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
18
18
|
import Layer from '../Layer';
|
|
19
19
|
var packageName = "@atlaskit/editor-common";
|
|
20
|
-
var packageVersion = "78.
|
|
20
|
+
var packageVersion = "78.20.1";
|
|
21
21
|
var halfFocusRing = 1;
|
|
22
22
|
var dropOffset = '0, 8';
|
|
23
23
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -30,6 +30,8 @@ export declare enum TABLE_ACTION {
|
|
|
30
30
|
INITIAL_OVERFLOW_CAPTURED = "initialOverflowCaptured",
|
|
31
31
|
MOVED_ROW = "movedRow",
|
|
32
32
|
MOVED_COLUMN = "movedColumn",
|
|
33
|
+
CLONED_ROW = "clonedRow",
|
|
34
|
+
CLONED_COLUMN = "clonedColumn",
|
|
33
35
|
/**
|
|
34
36
|
* This is a unique action that's used to track legacy table move behaviour flow of insert+copy+paste. Please use
|
|
35
37
|
* the MOVED_ROW | MOVED_COLUMN actions if you want to track events which move row/cols in a single step.
|
|
@@ -168,5 +170,11 @@ type TableMovedRowOrColumnAEP = TableAEP<TABLE_ACTION.MOVED_ROW | TABLE_ACTION.M
|
|
|
168
170
|
distance: number;
|
|
169
171
|
status: TABLE_STATUS.SUCCESS | TABLE_STATUS.CANCELLED | TABLE_STATUS.INVALID;
|
|
170
172
|
} & TotalRowAndColCount, undefined>;
|
|
171
|
-
|
|
173
|
+
type TableClonedRowOrColumnAEP = TableAEP<TABLE_ACTION.CLONED_ROW | TABLE_ACTION.CLONED_COLUMN, {
|
|
174
|
+
inputMethod: INPUT_METHOD.TABLE_CONTEXT_MENU | INPUT_METHOD.DRAG_AND_DROP | INPUT_METHOD.SHORTCUT;
|
|
175
|
+
count: number;
|
|
176
|
+
distance: number;
|
|
177
|
+
status: TABLE_STATUS.SUCCESS | TABLE_STATUS.CANCELLED | TABLE_STATUS.INVALID;
|
|
178
|
+
} & TotalRowAndColCount, undefined>;
|
|
179
|
+
export type TableEventPayload = TableDeleteAEP | TableClearAEP | TableMergeSplitAEP | TableColorAEP | TableToggleHeaderAEP | TableChangeBreakoutAEP | TableCopyAndCutAEP | TableAddRowOrColumnAEP | TableSortColumnAEP | TableDeleteRowOrColumnAEP | TableReplaceAEP | TableAttemptedResizeAEP | TableDistributeColumnsWidthsAEP | TableCollapsedAEP | TableFixedAEP | TableOverflowChangedAEP | TableInitialOverflowCapturedAEP | TableResizedAEP | TableResizePerfSamplingAEP | TableRowOrColumnMovedAEP | TableMovedRowOrColumnAEP | TableClonedRowOrColumnAEP | TableColumnResizedAEP;
|
|
172
180
|
export {};
|
|
@@ -30,6 +30,8 @@ export declare enum TABLE_ACTION {
|
|
|
30
30
|
INITIAL_OVERFLOW_CAPTURED = "initialOverflowCaptured",
|
|
31
31
|
MOVED_ROW = "movedRow",
|
|
32
32
|
MOVED_COLUMN = "movedColumn",
|
|
33
|
+
CLONED_ROW = "clonedRow",
|
|
34
|
+
CLONED_COLUMN = "clonedColumn",
|
|
33
35
|
/**
|
|
34
36
|
* This is a unique action that's used to track legacy table move behaviour flow of insert+copy+paste. Please use
|
|
35
37
|
* the MOVED_ROW | MOVED_COLUMN actions if you want to track events which move row/cols in a single step.
|
|
@@ -168,5 +170,11 @@ type TableMovedRowOrColumnAEP = TableAEP<TABLE_ACTION.MOVED_ROW | TABLE_ACTION.M
|
|
|
168
170
|
distance: number;
|
|
169
171
|
status: TABLE_STATUS.SUCCESS | TABLE_STATUS.CANCELLED | TABLE_STATUS.INVALID;
|
|
170
172
|
} & TotalRowAndColCount, undefined>;
|
|
171
|
-
|
|
173
|
+
type TableClonedRowOrColumnAEP = TableAEP<TABLE_ACTION.CLONED_ROW | TABLE_ACTION.CLONED_COLUMN, {
|
|
174
|
+
inputMethod: INPUT_METHOD.TABLE_CONTEXT_MENU | INPUT_METHOD.DRAG_AND_DROP | INPUT_METHOD.SHORTCUT;
|
|
175
|
+
count: number;
|
|
176
|
+
distance: number;
|
|
177
|
+
status: TABLE_STATUS.SUCCESS | TABLE_STATUS.CANCELLED | TABLE_STATUS.INVALID;
|
|
178
|
+
} & TotalRowAndColCount, undefined>;
|
|
179
|
+
export type TableEventPayload = TableDeleteAEP | TableClearAEP | TableMergeSplitAEP | TableColorAEP | TableToggleHeaderAEP | TableChangeBreakoutAEP | TableCopyAndCutAEP | TableAddRowOrColumnAEP | TableSortColumnAEP | TableDeleteRowOrColumnAEP | TableReplaceAEP | TableAttemptedResizeAEP | TableDistributeColumnsWidthsAEP | TableCollapsedAEP | TableFixedAEP | TableOverflowChangedAEP | TableInitialOverflowCapturedAEP | TableResizedAEP | TableResizePerfSamplingAEP | TableRowOrColumnMovedAEP | TableMovedRowOrColumnAEP | TableClonedRowOrColumnAEP | TableColumnResizedAEP;
|
|
172
180
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "78.
|
|
3
|
+
"version": "78.20.1",
|
|
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/"
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"@atlaskit/editor-palette": "1.5.3",
|
|
109
109
|
"@atlaskit/editor-prosemirror": "3.0.0",
|
|
110
110
|
"@atlaskit/editor-shared-styles": "^2.9.0",
|
|
111
|
-
"@atlaskit/editor-tables": "^2.
|
|
111
|
+
"@atlaskit/editor-tables": "^2.6.0",
|
|
112
112
|
"@atlaskit/emoji": "^67.6.0",
|
|
113
113
|
"@atlaskit/icon": "^22.1.0",
|
|
114
114
|
"@atlaskit/icon-object": "^6.3.0",
|