@atlaskit/editor-common 76.20.0 → 76.21.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/indentation/index.js +7 -0
- package/dist/cjs/messages/indentation.js +21 -0
- package/dist/cjs/messages/index.js +7 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/indentation/index.js +1 -0
- package/dist/es2019/messages/indentation.js +14 -0
- package/dist/es2019/messages/index.js +1 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/indentation/index.js +1 -0
- package/dist/esm/messages/indentation.js +14 -0
- package/dist/esm/messages/index.js +1 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/indentation/index.d.ts +1 -0
- package/dist/types/messages/indentation.d.ts +12 -0
- package/dist/types/messages/index.d.ts +1 -0
- package/dist/types-ts4.5/indentation/index.d.ts +1 -0
- package/dist/types-ts4.5/messages/indentation.d.ts +12 -0
- package/dist/types-ts4.5/messages/index.d.ts +1 -0
- package/indentation/package.json +15 -0
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 76.21.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#43111](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43111) [`d71dda4f834`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d71dda4f834) - Decouple indentation plugin from editor-core.
|
|
8
|
+
|
|
9
|
+
## 76.20.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 76.20.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -0,0 +1,21 @@
|
|
|
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 = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
11
|
+
indent: {
|
|
12
|
+
id: 'fabric.editor.indent',
|
|
13
|
+
defaultMessage: 'Indent',
|
|
14
|
+
description: 'Indent a list item, paragraph or heading'
|
|
15
|
+
},
|
|
16
|
+
outdent: {
|
|
17
|
+
id: 'fabric.editor.outdent',
|
|
18
|
+
defaultMessage: 'Outdent',
|
|
19
|
+
description: 'Outdent a list item, paragraph or heading'
|
|
20
|
+
}
|
|
21
|
+
});
|
|
@@ -52,6 +52,12 @@ Object.defineProperty(exports, "fullPageMessages", {
|
|
|
52
52
|
return _fullPage.messages;
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
|
+
Object.defineProperty(exports, "indentationMessages", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: function get() {
|
|
58
|
+
return _indentation.messages;
|
|
59
|
+
}
|
|
60
|
+
});
|
|
55
61
|
Object.defineProperty(exports, "layoutMessages", {
|
|
56
62
|
enumerable: true,
|
|
57
63
|
get: function get() {
|
|
@@ -138,6 +144,7 @@ var _undoRedo = require("./undo-redo");
|
|
|
138
144
|
var _status = require("./status");
|
|
139
145
|
var _date = require("./date");
|
|
140
146
|
var _layout = require("./layout");
|
|
147
|
+
var _indentation = require("./indentation");
|
|
141
148
|
var _default = exports.default = (0, _reactIntlNext.defineMessages)({
|
|
142
149
|
layoutFixedWidth: {
|
|
143
150
|
id: 'fabric.editor.layoutFixedWidth',
|
|
@@ -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 = "76.
|
|
19
|
+
var packageVersion = "76.21.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 = "76.
|
|
27
|
+
var packageVersion = "76.21.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const MAX_INDENTATION_LEVEL = 6;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Common Translations will live here
|
|
2
|
+
import { defineMessages } from 'react-intl-next';
|
|
3
|
+
export const messages = defineMessages({
|
|
4
|
+
indent: {
|
|
5
|
+
id: 'fabric.editor.indent',
|
|
6
|
+
defaultMessage: 'Indent',
|
|
7
|
+
description: 'Indent a list item, paragraph or heading'
|
|
8
|
+
},
|
|
9
|
+
outdent: {
|
|
10
|
+
id: 'fabric.editor.outdent',
|
|
11
|
+
defaultMessage: 'Outdent',
|
|
12
|
+
description: 'Outdent a list item, paragraph or heading'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
@@ -18,6 +18,7 @@ export { messages as undoRedoMessages } from './undo-redo';
|
|
|
18
18
|
export { messages as statusMessages } from './status';
|
|
19
19
|
export { messages as dateMessages } from './date';
|
|
20
20
|
export { toolbarMessages as layoutMessages } from './layout';
|
|
21
|
+
export { messages as indentationMessages } from './indentation';
|
|
21
22
|
export default defineMessages({
|
|
22
23
|
layoutFixedWidth: {
|
|
23
24
|
id: 'fabric.editor.layoutFixedWidth',
|
|
@@ -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 = "76.
|
|
3
|
+
const packageVersion = "76.21.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
|
|
@@ -9,7 +9,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
9
9
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
10
10
|
import Layer from '../Layer';
|
|
11
11
|
const packageName = "@atlaskit/editor-common";
|
|
12
|
-
const packageVersion = "76.
|
|
12
|
+
const packageVersion = "76.21.0";
|
|
13
13
|
const halfFocusRing = 1;
|
|
14
14
|
const dropOffset = '0, 8';
|
|
15
15
|
class DropList extends Component {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var MAX_INDENTATION_LEVEL = 6;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Common Translations will live here
|
|
2
|
+
import { defineMessages } from 'react-intl-next';
|
|
3
|
+
export var messages = defineMessages({
|
|
4
|
+
indent: {
|
|
5
|
+
id: 'fabric.editor.indent',
|
|
6
|
+
defaultMessage: 'Indent',
|
|
7
|
+
description: 'Indent a list item, paragraph or heading'
|
|
8
|
+
},
|
|
9
|
+
outdent: {
|
|
10
|
+
id: 'fabric.editor.outdent',
|
|
11
|
+
defaultMessage: 'Outdent',
|
|
12
|
+
description: 'Outdent a list item, paragraph or heading'
|
|
13
|
+
}
|
|
14
|
+
});
|
|
@@ -18,6 +18,7 @@ export { messages as undoRedoMessages } from './undo-redo';
|
|
|
18
18
|
export { messages as statusMessages } from './status';
|
|
19
19
|
export { messages as dateMessages } from './date';
|
|
20
20
|
export { toolbarMessages as layoutMessages } from './layout';
|
|
21
|
+
export { messages as indentationMessages } from './indentation';
|
|
21
22
|
export default defineMessages({
|
|
22
23
|
layoutFixedWidth: {
|
|
23
24
|
id: 'fabric.editor.layoutFixedWidth',
|
|
@@ -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 = "76.
|
|
9
|
+
var packageVersion = "76.21.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
|
|
@@ -19,7 +19,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
19
19
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
20
20
|
import Layer from '../Layer';
|
|
21
21
|
var packageName = "@atlaskit/editor-common";
|
|
22
|
-
var packageVersion = "76.
|
|
22
|
+
var packageVersion = "76.21.0";
|
|
23
23
|
var halfFocusRing = 1;
|
|
24
24
|
var dropOffset = '0, 8';
|
|
25
25
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MAX_INDENTATION_LEVEL = 6;
|
|
@@ -17,6 +17,7 @@ export { messages as undoRedoMessages } from './undo-redo';
|
|
|
17
17
|
export { messages as statusMessages } from './status';
|
|
18
18
|
export { messages as dateMessages } from './date';
|
|
19
19
|
export { toolbarMessages as layoutMessages } from './layout';
|
|
20
|
+
export { messages as indentationMessages } from './indentation';
|
|
20
21
|
declare const _default: {
|
|
21
22
|
layoutFixedWidth: {
|
|
22
23
|
id: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MAX_INDENTATION_LEVEL = 6;
|
|
@@ -17,6 +17,7 @@ export { messages as undoRedoMessages } from './undo-redo';
|
|
|
17
17
|
export { messages as statusMessages } from './status';
|
|
18
18
|
export { messages as dateMessages } from './date';
|
|
19
19
|
export { toolbarMessages as layoutMessages } from './layout';
|
|
20
|
+
export { messages as indentationMessages } from './indentation';
|
|
20
21
|
declare const _default: {
|
|
21
22
|
layoutFixedWidth: {
|
|
22
23
|
id: string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/indentation",
|
|
3
|
+
"main": "../dist/cjs/indentation/index.js",
|
|
4
|
+
"module": "../dist/esm/indentation/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/indentation/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/indentation/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <4.9": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/indentation/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "76.
|
|
3
|
+
"version": "76.21.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/"
|
|
@@ -82,7 +82,8 @@
|
|
|
82
82
|
"./element-browser": "./src/element-browser/index.ts",
|
|
83
83
|
"./floating-toolbar": "./src/floating-toolbar/index.ts",
|
|
84
84
|
"./copy-button": "./src/copy-button/index.ts",
|
|
85
|
-
"./legacy-rank-plugins": "./src/rank.ts"
|
|
85
|
+
"./legacy-rank-plugins": "./src/rank.ts",
|
|
86
|
+
"./indentation": "./src/indentation/index.ts"
|
|
86
87
|
},
|
|
87
88
|
"dependencies": {
|
|
88
89
|
"@atlaskit/activity-provider": "^2.4.0",
|
|
@@ -101,11 +102,11 @@
|
|
|
101
102
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
102
103
|
"@atlaskit/editor-shared-styles": "^2.8.0",
|
|
103
104
|
"@atlaskit/editor-tables": "^2.3.0",
|
|
104
|
-
"@atlaskit/emoji": "^67.
|
|
105
|
+
"@atlaskit/emoji": "^67.6.0",
|
|
105
106
|
"@atlaskit/icon": "^21.12.0",
|
|
106
107
|
"@atlaskit/icon-object": "^6.3.0",
|
|
107
108
|
"@atlaskit/in-product-testing": "^0.2.0",
|
|
108
|
-
"@atlaskit/link-datasource": "^1.
|
|
109
|
+
"@atlaskit/link-datasource": "^1.17.0",
|
|
109
110
|
"@atlaskit/link-picker": "^1.30.0",
|
|
110
111
|
"@atlaskit/media-card": "^77.4.0",
|
|
111
112
|
"@atlaskit/media-client": "^25.0.0",
|
|
@@ -121,7 +122,7 @@
|
|
|
121
122
|
"@atlaskit/textfield": "^5.6.0",
|
|
122
123
|
"@atlaskit/theme": "^12.6.0",
|
|
123
124
|
"@atlaskit/tokens": "^1.28.0",
|
|
124
|
-
"@atlaskit/tooltip": "^
|
|
125
|
+
"@atlaskit/tooltip": "^18.0.0",
|
|
125
126
|
"@atlaskit/ufo": "^0.2.0",
|
|
126
127
|
"@atlaskit/width-detector": "^4.1.0",
|
|
127
128
|
"@babel/runtime": "^7.0.0",
|