@atlaskit/editor-common 107.11.0 → 107.12.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 +18 -0
- package/dist/cjs/floating-toolbar/DropdownMenuExtensionItems.js +3 -1
- package/dist/cjs/floating-toolbar/DropdownSeparator.js +22 -0
- package/dist/cjs/floating-toolbar/index.js +7 -0
- 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/floating-toolbar/DropdownMenuExtensionItems.js +3 -1
- package/dist/es2019/floating-toolbar/DropdownSeparator.js +15 -0
- package/dist/es2019/floating-toolbar/index.js +2 -1
- 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/floating-toolbar/DropdownMenuExtensionItems.js +3 -1
- package/dist/esm/floating-toolbar/DropdownSeparator.js +15 -0
- package/dist/esm/floating-toolbar/index.js +2 -1
- 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/floating-toolbar/DropdownSeparator.d.ts +6 -0
- package/dist/types/floating-toolbar/index.d.ts +1 -0
- package/dist/types/messages/table.d.ts +5 -0
- package/dist/types-ts4.5/floating-toolbar/DropdownSeparator.d.ts +6 -0
- package/dist/types-ts4.5/floating-toolbar/index.d.ts +1 -0
- package/dist/types-ts4.5/messages/table.d.ts +5 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 107.12.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#190680](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/190680)
|
|
8
|
+
[`c27708467595b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c27708467595b) -
|
|
9
|
+
[ux] ENGHEALTH-32145 A11y violation detected for rule "label" for "@af/editor-plugin-table-tests"
|
|
10
|
+
from "Editor: Jenga"
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 107.12.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- [#189903](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/189903)
|
|
18
|
+
[`f5ccd32e607db`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f5ccd32e607db) -
|
|
19
|
+
[ED-28567] Add/remove missing/extra separators in media, table and panel toolbars shown in Jira
|
|
20
|
+
|
|
3
21
|
## 107.11.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -12,8 +12,10 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _reactLoadable = _interopRequireDefault(require("react-loadable"));
|
|
14
14
|
var _extensions = require("../extensions");
|
|
15
|
+
var _toolbarFlagCheck = require("../toolbar-flag-check");
|
|
15
16
|
var _utils = require("../utils");
|
|
16
17
|
var _DropdownMenuItem = require("./DropdownMenuItem");
|
|
18
|
+
var _DropdownSeparator = require("./DropdownSeparator");
|
|
17
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); }
|
|
18
20
|
var noop = function noop() {
|
|
19
21
|
return null;
|
|
@@ -198,5 +200,5 @@ var DropdownMenuExtensionItems = exports.DropdownMenuExtensionItems = function D
|
|
|
198
200
|
extension: extension,
|
|
199
201
|
dropdownOptions: dropdownOptions
|
|
200
202
|
});
|
|
201
|
-
}));
|
|
203
|
+
}), (0, _toolbarFlagCheck.areToolbarFlagsEnabled)() && /*#__PURE__*/_react.default.createElement(_DropdownSeparator.DropdownSeparator, null));
|
|
202
204
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.DropdownSeparator = void 0;
|
|
7
|
+
var _react = require("@emotion/react");
|
|
8
|
+
/**
|
|
9
|
+
* @jsxRuntime classic
|
|
10
|
+
* @jsx jsx
|
|
11
|
+
*/
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
|
+
|
|
14
|
+
var separatorStyles = (0, _react.css)({
|
|
15
|
+
background: "var(--ds-border, #091E4224)",
|
|
16
|
+
height: '1px'
|
|
17
|
+
});
|
|
18
|
+
var DropdownSeparator = exports.DropdownSeparator = function DropdownSeparator() {
|
|
19
|
+
return (0, _react.jsx)("div", {
|
|
20
|
+
css: separatorStyles
|
|
21
|
+
});
|
|
22
|
+
};
|
|
@@ -16,6 +16,12 @@ Object.defineProperty(exports, "DropdownMenuItem", {
|
|
|
16
16
|
return _DropdownMenuItem.DropdownMenuItem;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
+
Object.defineProperty(exports, "DropdownSeparator", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function get() {
|
|
22
|
+
return _DropdownSeparator.DropdownSeparator;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
19
25
|
exports.isSameItem = exports.compareArrays = exports.areSameItems = void 0;
|
|
20
26
|
Object.defineProperty(exports, "messages", {
|
|
21
27
|
enumerable: true,
|
|
@@ -27,6 +33,7 @@ exports.shallowEqual = void 0;
|
|
|
27
33
|
var _DropdownMenuExtensionItems = require("./DropdownMenuExtensionItems");
|
|
28
34
|
var _DropdownMenuItem = require("./DropdownMenuItem");
|
|
29
35
|
var _messages = _interopRequireDefault(require("./messages"));
|
|
36
|
+
var _DropdownSeparator = require("./DropdownSeparator");
|
|
30
37
|
// Ignored via go/ees005
|
|
31
38
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
32
39
|
function makeSameType(_a, _b) {
|
|
@@ -291,6 +291,11 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
291
291
|
defaultMessage: 'Row options',
|
|
292
292
|
description: 'The row drag handle to move the row within the table. Click to open a menu for more row options.'
|
|
293
293
|
},
|
|
294
|
+
dragHandleZone: {
|
|
295
|
+
id: 'fabric.editor.dragHandleZone',
|
|
296
|
+
defaultMessage: 'Activate drag handle zone',
|
|
297
|
+
description: 'The drag handle zone to trigger the drag handle to move the row/column within the table.'
|
|
298
|
+
},
|
|
294
299
|
columnDragHandle: {
|
|
295
300
|
id: 'fabric.editor.columnDragHandle',
|
|
296
301
|
defaultMessage: 'Column options',
|
|
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
16
16
|
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); }
|
|
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 = "107.
|
|
19
|
+
var packageVersion = "107.12.0";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// 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 = "107.
|
|
26
|
+
var packageVersion = "107.12.0";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import Loadable from 'react-loadable';
|
|
3
3
|
import { getContextualToolbarItemsFromModule } from '../extensions';
|
|
4
|
+
import { areToolbarFlagsEnabled } from '../toolbar-flag-check';
|
|
4
5
|
import { nodeToJSON } from '../utils';
|
|
5
6
|
import { DropdownMenuItem } from './DropdownMenuItem';
|
|
7
|
+
import { DropdownSeparator } from './DropdownSeparator';
|
|
6
8
|
const noop = () => null;
|
|
7
9
|
const isDefaultExport = mod => {
|
|
8
10
|
return mod.hasOwnProperty('default');
|
|
@@ -122,5 +124,5 @@ export const DropdownMenuExtensionItems = props => {
|
|
|
122
124
|
extension: extension,
|
|
123
125
|
dropdownOptions: dropdownOptions
|
|
124
126
|
});
|
|
125
|
-
}));
|
|
127
|
+
}), areToolbarFlagsEnabled() && /*#__PURE__*/React.createElement(DropdownSeparator, null));
|
|
126
128
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
7
|
+
const separatorStyles = css({
|
|
8
|
+
background: "var(--ds-border, #091E4224)",
|
|
9
|
+
height: '1px'
|
|
10
|
+
});
|
|
11
|
+
export const DropdownSeparator = () => {
|
|
12
|
+
return jsx("div", {
|
|
13
|
+
css: separatorStyles
|
|
14
|
+
});
|
|
15
|
+
};
|
|
@@ -105,4 +105,5 @@ export const areSameItems = (leftArr, rightArr) => {
|
|
|
105
105
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
106
106
|
export { DropdownMenuExtensionItems } from './DropdownMenuExtensionItems';
|
|
107
107
|
export { DropdownMenuItem } from './DropdownMenuItem';
|
|
108
|
-
export { default as messages } from './messages';
|
|
108
|
+
export { default as messages } from './messages';
|
|
109
|
+
export { DropdownSeparator } from './DropdownSeparator';
|
|
@@ -285,6 +285,11 @@ export const messages = defineMessages({
|
|
|
285
285
|
defaultMessage: 'Row options',
|
|
286
286
|
description: 'The row drag handle to move the row within the table. Click to open a menu for more row options.'
|
|
287
287
|
},
|
|
288
|
+
dragHandleZone: {
|
|
289
|
+
id: 'fabric.editor.dragHandleZone',
|
|
290
|
+
defaultMessage: 'Activate drag handle zone',
|
|
291
|
+
description: 'The drag handle zone to trigger the drag handle to move the row/column within the table.'
|
|
292
|
+
},
|
|
288
293
|
columnDragHandle: {
|
|
289
294
|
id: 'fabric.editor.columnDragHandle',
|
|
290
295
|
defaultMessage: 'Column options',
|
|
@@ -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 = "107.
|
|
4
|
+
const packageVersion = "107.12.0";
|
|
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 = "107.
|
|
16
|
+
const packageVersion = "107.12.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -4,8 +4,10 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
4
4
|
import React, { useEffect, useState } from 'react';
|
|
5
5
|
import Loadable from 'react-loadable';
|
|
6
6
|
import { getContextualToolbarItemsFromModule } from '../extensions';
|
|
7
|
+
import { areToolbarFlagsEnabled } from '../toolbar-flag-check';
|
|
7
8
|
import { nodeToJSON } from '../utils';
|
|
8
9
|
import { DropdownMenuItem } from './DropdownMenuItem';
|
|
10
|
+
import { DropdownSeparator } from './DropdownSeparator';
|
|
9
11
|
var noop = function noop() {
|
|
10
12
|
return null;
|
|
11
13
|
};
|
|
@@ -189,5 +191,5 @@ export var DropdownMenuExtensionItems = function DropdownMenuExtensionItems(prop
|
|
|
189
191
|
extension: extension,
|
|
190
192
|
dropdownOptions: dropdownOptions
|
|
191
193
|
});
|
|
192
|
-
}));
|
|
194
|
+
}), areToolbarFlagsEnabled() && /*#__PURE__*/React.createElement(DropdownSeparator, null));
|
|
193
195
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
7
|
+
var separatorStyles = css({
|
|
8
|
+
background: "var(--ds-border, #091E4224)",
|
|
9
|
+
height: '1px'
|
|
10
|
+
});
|
|
11
|
+
export var DropdownSeparator = function DropdownSeparator() {
|
|
12
|
+
return jsx("div", {
|
|
13
|
+
css: separatorStyles
|
|
14
|
+
});
|
|
15
|
+
};
|
|
@@ -120,4 +120,5 @@ export var areSameItems = function areSameItems(leftArr, rightArr) {
|
|
|
120
120
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
121
121
|
export { DropdownMenuExtensionItems } from './DropdownMenuExtensionItems';
|
|
122
122
|
export { DropdownMenuItem } from './DropdownMenuItem';
|
|
123
|
-
export { default as messages } from './messages';
|
|
123
|
+
export { default as messages } from './messages';
|
|
124
|
+
export { DropdownSeparator } from './DropdownSeparator';
|
|
@@ -285,6 +285,11 @@ export var messages = defineMessages({
|
|
|
285
285
|
defaultMessage: 'Row options',
|
|
286
286
|
description: 'The row drag handle to move the row within the table. Click to open a menu for more row options.'
|
|
287
287
|
},
|
|
288
|
+
dragHandleZone: {
|
|
289
|
+
id: 'fabric.editor.dragHandleZone',
|
|
290
|
+
defaultMessage: 'Activate drag handle zone',
|
|
291
|
+
description: 'The drag handle zone to trigger the drag handle to move the row/column within the table.'
|
|
292
|
+
},
|
|
288
293
|
columnDragHandle: {
|
|
289
294
|
id: 'fabric.editor.columnDragHandle',
|
|
290
295
|
defaultMessage: 'Column options',
|
|
@@ -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 = "107.
|
|
10
|
+
var packageVersion = "107.12.0";
|
|
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 = "107.
|
|
23
|
+
var packageVersion = "107.12.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -8,3 +8,4 @@ export { DropdownMenuExtensionItems } from './DropdownMenuExtensionItems';
|
|
|
8
8
|
export { DropdownMenuItem } from './DropdownMenuItem';
|
|
9
9
|
export type { DropdownMenuItemProps } from './DropdownMenuItem';
|
|
10
10
|
export { default as messages } from './messages';
|
|
11
|
+
export { DropdownSeparator } from './DropdownSeparator';
|
|
@@ -284,6 +284,11 @@ export declare const messages: {
|
|
|
284
284
|
defaultMessage: string;
|
|
285
285
|
description: string;
|
|
286
286
|
};
|
|
287
|
+
dragHandleZone: {
|
|
288
|
+
id: string;
|
|
289
|
+
defaultMessage: string;
|
|
290
|
+
description: string;
|
|
291
|
+
};
|
|
287
292
|
columnDragHandle: {
|
|
288
293
|
id: string;
|
|
289
294
|
defaultMessage: string;
|
|
@@ -8,3 +8,4 @@ export { DropdownMenuExtensionItems } from './DropdownMenuExtensionItems';
|
|
|
8
8
|
export { DropdownMenuItem } from './DropdownMenuItem';
|
|
9
9
|
export type { DropdownMenuItemProps } from './DropdownMenuItem';
|
|
10
10
|
export { default as messages } from './messages';
|
|
11
|
+
export { DropdownSeparator } from './DropdownSeparator';
|
|
@@ -284,6 +284,11 @@ export declare const messages: {
|
|
|
284
284
|
defaultMessage: string;
|
|
285
285
|
description: string;
|
|
286
286
|
};
|
|
287
|
+
dragHandleZone: {
|
|
288
|
+
id: string;
|
|
289
|
+
defaultMessage: string;
|
|
290
|
+
description: string;
|
|
291
|
+
};
|
|
287
292
|
columnDragHandle: {
|
|
288
293
|
id: string;
|
|
289
294
|
defaultMessage: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "107.
|
|
3
|
+
"version": "107.12.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/"
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"@atlaskit/link-datasource": "^4.14.0",
|
|
148
148
|
"@atlaskit/link-picker": "^3.8.0",
|
|
149
149
|
"@atlaskit/media-card": "^79.4.0",
|
|
150
|
-
"@atlaskit/media-client": "^35.
|
|
150
|
+
"@atlaskit/media-client": "^35.2.0",
|
|
151
151
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
152
152
|
"@atlaskit/media-common": "^12.3.0",
|
|
153
153
|
"@atlaskit/media-file-preview": "^0.11.0",
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
"@atlaskit/task-decision": "^19.2.0",
|
|
172
172
|
"@atlaskit/textfield": "^8.0.0",
|
|
173
173
|
"@atlaskit/theme": "^19.0.0",
|
|
174
|
-
"@atlaskit/tmp-editor-statsig": "^9.
|
|
174
|
+
"@atlaskit/tmp-editor-statsig": "^9.11.0",
|
|
175
175
|
"@atlaskit/tokens": "^5.6.0",
|
|
176
176
|
"@atlaskit/tooltip": "^20.3.0",
|
|
177
177
|
"@atlaskit/width-detector": "^5.0.0",
|