@atlaskit/editor-common 74.42.2 → 74.43.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 +12 -0
- package/dist/cjs/messages/index.js +7 -0
- package/dist/cjs/messages/list.js +37 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/messages/index.js +1 -0
- package/dist/es2019/messages/list.js +29 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/messages/index.js +1 -0
- package/dist/esm/messages/list.js +29 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/messages/index.d.ts +1 -0
- package/dist/types/messages/list.d.ts +27 -0
- package/dist/types/transforms/expand.d.ts +1 -1
- package/dist/types/utils/referentiality.d.ts +0 -2
- package/dist/types-ts4.5/messages/index.d.ts +1 -0
- package/dist/types-ts4.5/messages/list.d.ts +27 -0
- package/dist/types-ts4.5/transforms/expand.d.ts +1 -1
- package/dist/types-ts4.5/utils/referentiality.d.ts +0 -2
- package/package.json +2 -2
- package/.eslintrc.js +0 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 74.43.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`7e77fe6f2ed`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7e77fe6f2ed) - ED-19330 Decouple list plugin from editor-core
|
|
8
|
+
|
|
9
|
+
## 74.42.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 74.42.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -40,6 +40,12 @@ Object.defineProperty(exports, "linkToolbarMessages", {
|
|
|
40
40
|
return _linkToolbar.linkToolbarMessages;
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
|
+
Object.defineProperty(exports, "listMessages", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function get() {
|
|
46
|
+
return _list.messages;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
43
49
|
Object.defineProperty(exports, "mediaAndEmbedToolbarMessages", {
|
|
44
50
|
enumerable: true,
|
|
45
51
|
get: function get() {
|
|
@@ -75,6 +81,7 @@ var _mediaAndEmbedToolbar = require("./media-and-embed-toolbar");
|
|
|
75
81
|
var _card = require("./card");
|
|
76
82
|
var _fullPage = require("./full-page");
|
|
77
83
|
var _toolbar = require("./toolbar");
|
|
84
|
+
var _list = require("./list");
|
|
78
85
|
var _default = (0, _reactIntlNext.defineMessages)({
|
|
79
86
|
layoutFixedWidth: {
|
|
80
87
|
id: 'fabric.editor.layoutFixedWidth',
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.messages = void 0;
|
|
7
|
+
var _reactIntlNext = require("react-intl-next");
|
|
8
|
+
// Common Translations will live here
|
|
9
|
+
|
|
10
|
+
var messages = (0, _reactIntlNext.defineMessages)({
|
|
11
|
+
unorderedList: {
|
|
12
|
+
id: 'fabric.editor.unorderedList',
|
|
13
|
+
defaultMessage: 'Bullet list',
|
|
14
|
+
description: 'A list with bullets. Also known as an “unordered” list'
|
|
15
|
+
},
|
|
16
|
+
unorderedListDescription: {
|
|
17
|
+
id: 'fabric.editor.unorderedList.description',
|
|
18
|
+
defaultMessage: 'Create an unordered list',
|
|
19
|
+
description: ''
|
|
20
|
+
},
|
|
21
|
+
orderedList: {
|
|
22
|
+
id: 'fabric.editor.orderedList',
|
|
23
|
+
defaultMessage: 'Numbered list',
|
|
24
|
+
description: 'A list with ordered items 1… 2… 3…'
|
|
25
|
+
},
|
|
26
|
+
orderedListDescription: {
|
|
27
|
+
id: 'fabric.editor.orderedList.description',
|
|
28
|
+
defaultMessage: 'Create an ordered list',
|
|
29
|
+
description: ''
|
|
30
|
+
},
|
|
31
|
+
lists: {
|
|
32
|
+
id: 'fabric.editor.lists',
|
|
33
|
+
defaultMessage: 'Lists',
|
|
34
|
+
description: 'Menu shows ordered/bullet list and unordered/numbered lists'
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
exports.messages = messages;
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
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 = "74.
|
|
19
|
+
var packageVersion = "74.43.0";
|
|
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
|
|
@@ -24,7 +24,7 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
24
24
|
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); }; }
|
|
25
25
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "74.
|
|
27
|
+
var packageVersion = "74.43.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var DropList = /*#__PURE__*/function (_Component) {
|
package/dist/cjs/version.json
CHANGED
|
@@ -9,6 +9,7 @@ export { toolbarMessages as mediaAndEmbedToolbarMessages } from './media-and-emb
|
|
|
9
9
|
export { messages as cardMessages } from './card';
|
|
10
10
|
export { messages as fullPageMessages } from './full-page';
|
|
11
11
|
export { toolbarMessages } from './toolbar';
|
|
12
|
+
export { messages as listMessages } from './list';
|
|
12
13
|
export default defineMessages({
|
|
13
14
|
layoutFixedWidth: {
|
|
14
15
|
id: 'fabric.editor.layoutFixedWidth',
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Common Translations will live here
|
|
2
|
+
import { defineMessages } from 'react-intl-next';
|
|
3
|
+
export const messages = defineMessages({
|
|
4
|
+
unorderedList: {
|
|
5
|
+
id: 'fabric.editor.unorderedList',
|
|
6
|
+
defaultMessage: 'Bullet list',
|
|
7
|
+
description: 'A list with bullets. Also known as an “unordered” list'
|
|
8
|
+
},
|
|
9
|
+
unorderedListDescription: {
|
|
10
|
+
id: 'fabric.editor.unorderedList.description',
|
|
11
|
+
defaultMessage: 'Create an unordered list',
|
|
12
|
+
description: ''
|
|
13
|
+
},
|
|
14
|
+
orderedList: {
|
|
15
|
+
id: 'fabric.editor.orderedList',
|
|
16
|
+
defaultMessage: 'Numbered list',
|
|
17
|
+
description: 'A list with ordered items 1… 2… 3…'
|
|
18
|
+
},
|
|
19
|
+
orderedListDescription: {
|
|
20
|
+
id: 'fabric.editor.orderedList.description',
|
|
21
|
+
defaultMessage: 'Create an ordered list',
|
|
22
|
+
description: ''
|
|
23
|
+
},
|
|
24
|
+
lists: {
|
|
25
|
+
id: 'fabric.editor.lists',
|
|
26
|
+
defaultMessage: 'Lists',
|
|
27
|
+
description: 'Menu shows ordered/bullet list and unordered/numbered lists'
|
|
28
|
+
}
|
|
29
|
+
});
|
|
@@ -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 = "74.
|
|
3
|
+
const packageVersion = "74.43.0";
|
|
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
|
|
@@ -8,7 +8,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
8
8
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
9
9
|
import Layer from '../Layer';
|
|
10
10
|
const packageName = "@atlaskit/editor-common";
|
|
11
|
-
const packageVersion = "74.
|
|
11
|
+
const packageVersion = "74.43.0";
|
|
12
12
|
const halfFocusRing = 1;
|
|
13
13
|
const dropOffset = '0, 8';
|
|
14
14
|
class DropList extends Component {
|
package/dist/es2019/version.json
CHANGED
|
@@ -9,6 +9,7 @@ export { toolbarMessages as mediaAndEmbedToolbarMessages } from './media-and-emb
|
|
|
9
9
|
export { messages as cardMessages } from './card';
|
|
10
10
|
export { messages as fullPageMessages } from './full-page';
|
|
11
11
|
export { toolbarMessages } from './toolbar';
|
|
12
|
+
export { messages as listMessages } from './list';
|
|
12
13
|
export default defineMessages({
|
|
13
14
|
layoutFixedWidth: {
|
|
14
15
|
id: 'fabric.editor.layoutFixedWidth',
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Common Translations will live here
|
|
2
|
+
import { defineMessages } from 'react-intl-next';
|
|
3
|
+
export var messages = defineMessages({
|
|
4
|
+
unorderedList: {
|
|
5
|
+
id: 'fabric.editor.unorderedList',
|
|
6
|
+
defaultMessage: 'Bullet list',
|
|
7
|
+
description: 'A list with bullets. Also known as an “unordered” list'
|
|
8
|
+
},
|
|
9
|
+
unorderedListDescription: {
|
|
10
|
+
id: 'fabric.editor.unorderedList.description',
|
|
11
|
+
defaultMessage: 'Create an unordered list',
|
|
12
|
+
description: ''
|
|
13
|
+
},
|
|
14
|
+
orderedList: {
|
|
15
|
+
id: 'fabric.editor.orderedList',
|
|
16
|
+
defaultMessage: 'Numbered list',
|
|
17
|
+
description: 'A list with ordered items 1… 2… 3…'
|
|
18
|
+
},
|
|
19
|
+
orderedListDescription: {
|
|
20
|
+
id: 'fabric.editor.orderedList.description',
|
|
21
|
+
defaultMessage: 'Create an ordered list',
|
|
22
|
+
description: ''
|
|
23
|
+
},
|
|
24
|
+
lists: {
|
|
25
|
+
id: 'fabric.editor.lists',
|
|
26
|
+
defaultMessage: 'Lists',
|
|
27
|
+
description: 'Menu shows ordered/bullet list and unordered/numbered lists'
|
|
28
|
+
}
|
|
29
|
+
});
|
|
@@ -6,7 +6,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
6
6
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
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 = "74.
|
|
9
|
+
var packageVersion = "74.43.0";
|
|
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
|
|
@@ -18,7 +18,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
18
18
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
19
19
|
import Layer from '../Layer';
|
|
20
20
|
var packageName = "@atlaskit/editor-common";
|
|
21
|
-
var packageVersion = "74.
|
|
21
|
+
var packageVersion = "74.43.0";
|
|
22
22
|
var halfFocusRing = 1;
|
|
23
23
|
var dropOffset = '0, 8';
|
|
24
24
|
var DropList = /*#__PURE__*/function (_Component) {
|
package/dist/esm/version.json
CHANGED
|
@@ -8,6 +8,7 @@ export { toolbarMessages as mediaAndEmbedToolbarMessages } from './media-and-emb
|
|
|
8
8
|
export { messages as cardMessages } from './card';
|
|
9
9
|
export { messages as fullPageMessages } from './full-page';
|
|
10
10
|
export { toolbarMessages } from './toolbar';
|
|
11
|
+
export { messages as listMessages } from './list';
|
|
11
12
|
declare const _default: {
|
|
12
13
|
layoutFixedWidth: {
|
|
13
14
|
id: string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const messages: {
|
|
2
|
+
unorderedList: {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
unorderedListDescription: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
orderedList: {
|
|
13
|
+
id: string;
|
|
14
|
+
defaultMessage: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
orderedListDescription: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
lists: {
|
|
23
|
+
id: string;
|
|
24
|
+
defaultMessage: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
export declare const findExpand: (state: EditorState, selection?: Selection | null) => import("prosemirror-utils").
|
|
3
|
+
export declare const findExpand: (state: EditorState, selection?: Selection | null) => import("prosemirror-utils/dist/types").FindResult;
|
|
4
4
|
export declare const transformSliceToRemoveOpenExpand: (slice: Slice, schema: Schema) => Slice;
|
|
5
5
|
export declare const transformSliceNestedExpandToExpand: (slice: Slice, schema: Schema) => Slice;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference path="../../../../../../typings/prosemirror.d.ts" />
|
|
2
|
-
/// <reference path="../../../../../../typings/prosemirror-state.d.ts" />
|
|
3
1
|
import type { FragmentAttributes } from '@atlaskit/adf-schema/schema';
|
|
4
2
|
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
3
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -8,6 +8,7 @@ export { toolbarMessages as mediaAndEmbedToolbarMessages } from './media-and-emb
|
|
|
8
8
|
export { messages as cardMessages } from './card';
|
|
9
9
|
export { messages as fullPageMessages } from './full-page';
|
|
10
10
|
export { toolbarMessages } from './toolbar';
|
|
11
|
+
export { messages as listMessages } from './list';
|
|
11
12
|
declare const _default: {
|
|
12
13
|
layoutFixedWidth: {
|
|
13
14
|
id: string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const messages: {
|
|
2
|
+
unorderedList: {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
unorderedListDescription: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
orderedList: {
|
|
13
|
+
id: string;
|
|
14
|
+
defaultMessage: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
orderedListDescription: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
lists: {
|
|
23
|
+
id: string;
|
|
24
|
+
defaultMessage: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
export declare const findExpand: (state: EditorState, selection?: Selection | null) => import("prosemirror-utils").
|
|
3
|
+
export declare const findExpand: (state: EditorState, selection?: Selection | null) => import("prosemirror-utils/dist/types").FindResult;
|
|
4
4
|
export declare const transformSliceToRemoveOpenExpand: (slice: Slice, schema: Schema) => Slice;
|
|
5
5
|
export declare const transformSliceNestedExpandToExpand: (slice: Slice, schema: Schema) => Slice;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference path="../../../../../../typings/prosemirror.d.ts" />
|
|
2
|
-
/// <reference path="../../../../../../typings/prosemirror-state.d.ts" />
|
|
3
1
|
import type { FragmentAttributes } from '@atlaskit/adf-schema/schema';
|
|
4
2
|
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
3
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "74.
|
|
3
|
+
"version": "74.43.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/"
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
93
93
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
94
94
|
"@atlaskit/editor-palette": "1.5.1",
|
|
95
|
-
"@atlaskit/editor-prosemirror": "1.0
|
|
95
|
+
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
96
96
|
"@atlaskit/editor-shared-styles": "^2.6.0",
|
|
97
97
|
"@atlaskit/editor-tables": "^2.3.0",
|
|
98
98
|
"@atlaskit/emoji": "^67.4.0",
|
package/.eslintrc.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
rules: {
|
|
3
|
-
'react/no-danger': 'error',
|
|
4
|
-
'@typescript-eslint/consistent-type-imports': 'warn',
|
|
5
|
-
'no-duplicate-imports': 'off',
|
|
6
|
-
'@typescript-eslint/no-duplicate-imports': 'warn',
|
|
7
|
-
},
|
|
8
|
-
overrides: [
|
|
9
|
-
{
|
|
10
|
-
files: ['**/__tests__/**/*.{js,ts,tsx}', 'examples/**/*.{js,ts,tsx}'],
|
|
11
|
-
rules: {
|
|
12
|
-
'react/no-danger': 'off',
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
};
|