@atlaskit/editor-common 114.36.1 → 114.37.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 +20 -0
- package/block-type/package.json +17 -0
- package/dist/cjs/analytics/types/enums.js +2 -0
- package/dist/cjs/block-type/index.js +7 -0
- package/dist/cjs/messages/layout.js +10 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/analytics/types/enums.js +2 -0
- package/dist/es2019/block-type/index.js +1 -0
- package/dist/es2019/messages/layout.js +10 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/analytics/types/enums.js +2 -0
- package/dist/esm/block-type/index.js +1 -0
- package/dist/esm/messages/layout.js +10 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/enums.d.ts +2 -0
- package/dist/types/analytics/types/insert-events.d.ts +9 -3
- package/dist/types/block-type/index.d.ts +1 -0
- package/dist/types/messages/layout.d.ts +10 -0
- package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -0
- package/dist/types-ts4.5/analytics/types/insert-events.d.ts +9 -3
- package/dist/types-ts4.5/block-type/index.d.ts +1 -0
- package/dist/types-ts4.5/messages/layout.d.ts +10 -0
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 114.37.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`32dce97f78584`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/32dce97f78584) -
|
|
8
|
+
Fix preserved selection mapping when comment editors append a trailing paragraph after block menu
|
|
9
|
+
transforms.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`626fb6e8ce019`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/626fb6e8ce019) -
|
|
14
|
+
Wire layout column menu insert actions with proportional width redistribution.
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
17
|
+
## 114.36.2
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 114.36.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/block-type",
|
|
3
|
+
"main": "../dist/cjs/block-type/index.js",
|
|
4
|
+
"module": "../dist/esm/block-type/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/block-type/index.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/block-type/index.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/block-type/index.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -271,6 +271,7 @@ var INPUT_METHOD = exports.INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
|
|
|
271
271
|
INPUT_METHOD["BLOCK_MENU"] = "blockMenu";
|
|
272
272
|
INPUT_METHOD["SMART_LINK"] = "smartLink";
|
|
273
273
|
INPUT_METHOD["ELEMENT_BROWSER"] = "elementBrowser";
|
|
274
|
+
INPUT_METHOD["LAYOUT_COLUMN_MENU"] = "layoutColumnMenu";
|
|
274
275
|
INPUT_METHOD["REMIX"] = "remix";
|
|
275
276
|
return INPUT_METHOD;
|
|
276
277
|
}({});
|
|
@@ -474,6 +475,7 @@ var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTIO
|
|
|
474
475
|
ACTION_SUBJECT_ID["HYPERLINK"] = "hyperlink";
|
|
475
476
|
ACTION_SUBJECT_ID["INLINE_COMMENT"] = "inlineComment";
|
|
476
477
|
ACTION_SUBJECT_ID["LAYOUT"] = "layout";
|
|
478
|
+
ACTION_SUBJECT_ID["LAYOUT_COLUMN"] = "layoutColumn";
|
|
477
479
|
ACTION_SUBJECT_ID["LINE_BREAK"] = "lineBreak";
|
|
478
480
|
ACTION_SUBJECT_ID["LINK"] = "link";
|
|
479
481
|
ACTION_SUBJECT_ID["LINK_PREVIEW"] = "linkPreview";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.INSERTED_TRAILING_PARAGRAPH_TO_LAST_NODE_META = void 0;
|
|
7
|
+
var INSERTED_TRAILING_PARAGRAPH_TO_LAST_NODE_META = exports.INSERTED_TRAILING_PARAGRAPH_TO_LAST_NODE_META = 'insertedTrailingParagraphToLastNode';
|
|
@@ -101,6 +101,16 @@ var toolbarMessages = exports.toolbarMessages = (0, _reactIntl.defineMessages)({
|
|
|
101
101
|
defaultMessage: 'Distribute columns',
|
|
102
102
|
description: 'The text is shown as a label for an option that distributes layout columns evenly.'
|
|
103
103
|
},
|
|
104
|
+
insertColumnLeft: {
|
|
105
|
+
id: 'fabric.editor.layout.insertColumnLeft',
|
|
106
|
+
defaultMessage: 'Insert column left',
|
|
107
|
+
description: 'The text is shown as a label for an option that inserts a layout column to the left of the selected column.'
|
|
108
|
+
},
|
|
109
|
+
insertColumnRight: {
|
|
110
|
+
id: 'fabric.editor.layout.insertColumnRight',
|
|
111
|
+
defaultMessage: 'Insert column right',
|
|
112
|
+
description: 'The text is shown as a label for an option that inserts a layout column to the right of the selected column.'
|
|
113
|
+
},
|
|
104
114
|
alignColumn: {
|
|
105
115
|
id: 'fabric.editor.layout.alignColumn',
|
|
106
116
|
defaultMessage: 'Alignment',
|
|
@@ -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 = "114.36.
|
|
22
|
+
var packageVersion = "114.36.2";
|
|
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 = "114.36.
|
|
27
|
+
var packageVersion = "114.36.2";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -265,6 +265,7 @@ export let INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
|
|
|
265
265
|
INPUT_METHOD["BLOCK_MENU"] = "blockMenu";
|
|
266
266
|
INPUT_METHOD["SMART_LINK"] = "smartLink";
|
|
267
267
|
INPUT_METHOD["ELEMENT_BROWSER"] = "elementBrowser";
|
|
268
|
+
INPUT_METHOD["LAYOUT_COLUMN_MENU"] = "layoutColumnMenu";
|
|
268
269
|
INPUT_METHOD["REMIX"] = "remix";
|
|
269
270
|
return INPUT_METHOD;
|
|
270
271
|
}({});
|
|
@@ -468,6 +469,7 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
468
469
|
ACTION_SUBJECT_ID["HYPERLINK"] = "hyperlink";
|
|
469
470
|
ACTION_SUBJECT_ID["INLINE_COMMENT"] = "inlineComment";
|
|
470
471
|
ACTION_SUBJECT_ID["LAYOUT"] = "layout";
|
|
472
|
+
ACTION_SUBJECT_ID["LAYOUT_COLUMN"] = "layoutColumn";
|
|
471
473
|
ACTION_SUBJECT_ID["LINE_BREAK"] = "lineBreak";
|
|
472
474
|
ACTION_SUBJECT_ID["LINK"] = "link";
|
|
473
475
|
ACTION_SUBJECT_ID["LINK_PREVIEW"] = "linkPreview";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const INSERTED_TRAILING_PARAGRAPH_TO_LAST_NODE_META = 'insertedTrailingParagraphToLastNode';
|
|
@@ -95,6 +95,16 @@ export const toolbarMessages = defineMessages({
|
|
|
95
95
|
defaultMessage: 'Distribute columns',
|
|
96
96
|
description: 'The text is shown as a label for an option that distributes layout columns evenly.'
|
|
97
97
|
},
|
|
98
|
+
insertColumnLeft: {
|
|
99
|
+
id: 'fabric.editor.layout.insertColumnLeft',
|
|
100
|
+
defaultMessage: 'Insert column left',
|
|
101
|
+
description: 'The text is shown as a label for an option that inserts a layout column to the left of the selected column.'
|
|
102
|
+
},
|
|
103
|
+
insertColumnRight: {
|
|
104
|
+
id: 'fabric.editor.layout.insertColumnRight',
|
|
105
|
+
defaultMessage: 'Insert column right',
|
|
106
|
+
description: 'The text is shown as a label for an option that inserts a layout column to the right of the selected column.'
|
|
107
|
+
},
|
|
98
108
|
alignColumn: {
|
|
99
109
|
id: 'fabric.editor.layout.alignColumn',
|
|
100
110
|
defaultMessage: 'Alignment',
|
|
@@ -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 = "114.36.
|
|
7
|
+
const packageVersion = "114.36.2";
|
|
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 = "114.36.
|
|
17
|
+
const packageVersion = "114.36.2";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -265,6 +265,7 @@ export var INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
|
|
|
265
265
|
INPUT_METHOD["BLOCK_MENU"] = "blockMenu";
|
|
266
266
|
INPUT_METHOD["SMART_LINK"] = "smartLink";
|
|
267
267
|
INPUT_METHOD["ELEMENT_BROWSER"] = "elementBrowser";
|
|
268
|
+
INPUT_METHOD["LAYOUT_COLUMN_MENU"] = "layoutColumnMenu";
|
|
268
269
|
INPUT_METHOD["REMIX"] = "remix";
|
|
269
270
|
return INPUT_METHOD;
|
|
270
271
|
}({});
|
|
@@ -468,6 +469,7 @@ export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
468
469
|
ACTION_SUBJECT_ID["HYPERLINK"] = "hyperlink";
|
|
469
470
|
ACTION_SUBJECT_ID["INLINE_COMMENT"] = "inlineComment";
|
|
470
471
|
ACTION_SUBJECT_ID["LAYOUT"] = "layout";
|
|
472
|
+
ACTION_SUBJECT_ID["LAYOUT_COLUMN"] = "layoutColumn";
|
|
471
473
|
ACTION_SUBJECT_ID["LINE_BREAK"] = "lineBreak";
|
|
472
474
|
ACTION_SUBJECT_ID["LINK"] = "link";
|
|
473
475
|
ACTION_SUBJECT_ID["LINK_PREVIEW"] = "linkPreview";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var INSERTED_TRAILING_PARAGRAPH_TO_LAST_NODE_META = 'insertedTrailingParagraphToLastNode';
|
|
@@ -95,6 +95,16 @@ export var toolbarMessages = defineMessages({
|
|
|
95
95
|
defaultMessage: 'Distribute columns',
|
|
96
96
|
description: 'The text is shown as a label for an option that distributes layout columns evenly.'
|
|
97
97
|
},
|
|
98
|
+
insertColumnLeft: {
|
|
99
|
+
id: 'fabric.editor.layout.insertColumnLeft',
|
|
100
|
+
defaultMessage: 'Insert column left',
|
|
101
|
+
description: 'The text is shown as a label for an option that inserts a layout column to the left of the selected column.'
|
|
102
|
+
},
|
|
103
|
+
insertColumnRight: {
|
|
104
|
+
id: 'fabric.editor.layout.insertColumnRight',
|
|
105
|
+
defaultMessage: 'Insert column right',
|
|
106
|
+
description: 'The text is shown as a label for an option that inserts a layout column to the right of the selected column.'
|
|
107
|
+
},
|
|
98
108
|
alignColumn: {
|
|
99
109
|
id: 'fabric.editor.layout.alignColumn',
|
|
100
110
|
defaultMessage: 'Alignment',
|
|
@@ -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 = "114.36.
|
|
13
|
+
var packageVersion = "114.36.2";
|
|
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 = "114.36.
|
|
24
|
+
var packageVersion = "114.36.2";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -262,6 +262,7 @@ export declare enum INPUT_METHOD {
|
|
|
262
262
|
BLOCK_MENU = "blockMenu",
|
|
263
263
|
SMART_LINK = "smartLink",
|
|
264
264
|
ELEMENT_BROWSER = "elementBrowser",
|
|
265
|
+
LAYOUT_COLUMN_MENU = "layoutColumnMenu",
|
|
265
266
|
REMIX = "remix"
|
|
266
267
|
}
|
|
267
268
|
export declare enum INSERT_MEDIA_VIA {
|
|
@@ -459,6 +460,7 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
459
460
|
HYPERLINK = "hyperlink",
|
|
460
461
|
INLINE_COMMENT = "inlineComment",
|
|
461
462
|
LAYOUT = "layout",
|
|
463
|
+
LAYOUT_COLUMN = "layoutColumn",
|
|
462
464
|
LINE_BREAK = "lineBreak",
|
|
463
465
|
LINK = "link",
|
|
464
466
|
LINK_PREVIEW = "linkPreview",
|
|
@@ -108,9 +108,15 @@ type InsertMediaLinkAEP = InsertAEP<ACTION_SUBJECT_ID.MEDIA_LINK, {
|
|
|
108
108
|
type InsertLayoutAEP = InsertAEP<ACTION_SUBJECT_ID.LAYOUT, {
|
|
109
109
|
columnCount?: number;
|
|
110
110
|
hasSelectedMultipleNodes?: boolean;
|
|
111
|
-
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.DRAG_AND_DROP;
|
|
111
|
+
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.DRAG_AND_DROP;
|
|
112
112
|
nodeTypes?: string;
|
|
113
113
|
}, undefined>;
|
|
114
|
+
type InsertLayoutColumnAEP = InsertAEP<ACTION_SUBJECT_ID.LAYOUT_COLUMN, {
|
|
115
|
+
columnCount: number;
|
|
116
|
+
inputMethod: INPUT_METHOD.LAYOUT_COLUMN_MENU;
|
|
117
|
+
selectedIndex: number;
|
|
118
|
+
side: 'left' | 'right';
|
|
119
|
+
}, undefined>;
|
|
114
120
|
export type InsertDateAEP = InsertAEP<ACTION_SUBJECT_ID.DATE, {
|
|
115
121
|
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.ELEMENT_BROWSER | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.INLINE_SUGGESTION_FLOATING_TB;
|
|
116
122
|
}, undefined>;
|
|
@@ -145,9 +151,9 @@ type FailedToInsertMediaPayload = OperationalAEP<ACTION.FAILED_TO_INSERT, ACTION
|
|
|
145
151
|
}>;
|
|
146
152
|
type InsertReferenceSyncedBlockPayload = InsertAEP<ACTION_SUBJECT_ID.SYNCED_BLOCK, {
|
|
147
153
|
blockInstanceId: string;
|
|
154
|
+
isPaste: boolean;
|
|
148
155
|
resourceId: string;
|
|
149
156
|
sourceProduct?: string;
|
|
150
|
-
isPaste: boolean;
|
|
151
157
|
}, undefined>;
|
|
152
158
|
export type InsertSourceSyncedBlockPayload = InsertAEP<ACTION_SUBJECT_ID.BODIED_SYNCED_BLOCK, {
|
|
153
159
|
resourceId: string;
|
|
@@ -172,5 +178,5 @@ type FailedToInsertSnippetAEP = OperationalAEP<ACTION.FAILED_TO_INSERT, ACTION_S
|
|
|
172
178
|
reason: 'snippetMediaDirectCopyUnexpectedError';
|
|
173
179
|
snippetId: string;
|
|
174
180
|
}>;
|
|
175
|
-
export type InsertEventPayload = InsertDividerAEP | InsertLineBreakAEP | InsertPanelAEP | InsertCodeBlockAEP | InsertTableAEP | InsertExpandAEP | InsertActionDecisionAEP | InsertEmojiAEP | InsertStatusAEP | InsertMediaSingleAEP | InsertMediaGroupAEP | InsertMediaInlineAEP | InsertLinkAEP | InsertLinkPreviewAEP | InsertMediaLinkAEP | InsertSmartLinkAEP | InsertLayoutAEP | InsertExtensionAEP | InsertNodeViaExtensionAPIAEP | InsertDateAEP | InsertPlaceholderTextAEP | InsertNativeEmbedAEP | FailedToInsertMediaPayload | InsertReferenceSyncedBlockPayload | InsertSourceSyncedBlockPayload | InsertSnippetAEP | FailedToInsertSnippetAEP;
|
|
181
|
+
export type InsertEventPayload = InsertDividerAEP | InsertLineBreakAEP | InsertPanelAEP | InsertCodeBlockAEP | InsertTableAEP | InsertExpandAEP | InsertActionDecisionAEP | InsertEmojiAEP | InsertStatusAEP | InsertMediaSingleAEP | InsertMediaGroupAEP | InsertMediaInlineAEP | InsertLinkAEP | InsertLinkPreviewAEP | InsertMediaLinkAEP | InsertSmartLinkAEP | InsertLayoutAEP | InsertLayoutColumnAEP | InsertExtensionAEP | InsertNodeViaExtensionAPIAEP | InsertDateAEP | InsertPlaceholderTextAEP | InsertNativeEmbedAEP | FailedToInsertMediaPayload | InsertReferenceSyncedBlockPayload | InsertSourceSyncedBlockPayload | InsertSnippetAEP | FailedToInsertSnippetAEP;
|
|
176
182
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const INSERTED_TRAILING_PARAGRAPH_TO_LAST_NODE_META = "insertedTrailingParagraphToLastNode";
|
|
@@ -34,6 +34,16 @@ export declare const toolbarMessages: {
|
|
|
34
34
|
description: string;
|
|
35
35
|
id: string;
|
|
36
36
|
};
|
|
37
|
+
insertColumnLeft: {
|
|
38
|
+
defaultMessage: string;
|
|
39
|
+
description: string;
|
|
40
|
+
id: string;
|
|
41
|
+
};
|
|
42
|
+
insertColumnRight: {
|
|
43
|
+
defaultMessage: string;
|
|
44
|
+
description: string;
|
|
45
|
+
id: string;
|
|
46
|
+
};
|
|
37
47
|
fiveColumns: {
|
|
38
48
|
defaultMessage: string;
|
|
39
49
|
description: string;
|
|
@@ -262,6 +262,7 @@ export declare enum INPUT_METHOD {
|
|
|
262
262
|
BLOCK_MENU = "blockMenu",
|
|
263
263
|
SMART_LINK = "smartLink",
|
|
264
264
|
ELEMENT_BROWSER = "elementBrowser",
|
|
265
|
+
LAYOUT_COLUMN_MENU = "layoutColumnMenu",
|
|
265
266
|
REMIX = "remix"
|
|
266
267
|
}
|
|
267
268
|
export declare enum INSERT_MEDIA_VIA {
|
|
@@ -459,6 +460,7 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
459
460
|
HYPERLINK = "hyperlink",
|
|
460
461
|
INLINE_COMMENT = "inlineComment",
|
|
461
462
|
LAYOUT = "layout",
|
|
463
|
+
LAYOUT_COLUMN = "layoutColumn",
|
|
462
464
|
LINE_BREAK = "lineBreak",
|
|
463
465
|
LINK = "link",
|
|
464
466
|
LINK_PREVIEW = "linkPreview",
|
|
@@ -108,9 +108,15 @@ type InsertMediaLinkAEP = InsertAEP<ACTION_SUBJECT_ID.MEDIA_LINK, {
|
|
|
108
108
|
type InsertLayoutAEP = InsertAEP<ACTION_SUBJECT_ID.LAYOUT, {
|
|
109
109
|
columnCount?: number;
|
|
110
110
|
hasSelectedMultipleNodes?: boolean;
|
|
111
|
-
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.DRAG_AND_DROP;
|
|
111
|
+
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.DRAG_AND_DROP;
|
|
112
112
|
nodeTypes?: string;
|
|
113
113
|
}, undefined>;
|
|
114
|
+
type InsertLayoutColumnAEP = InsertAEP<ACTION_SUBJECT_ID.LAYOUT_COLUMN, {
|
|
115
|
+
columnCount: number;
|
|
116
|
+
inputMethod: INPUT_METHOD.LAYOUT_COLUMN_MENU;
|
|
117
|
+
selectedIndex: number;
|
|
118
|
+
side: 'left' | 'right';
|
|
119
|
+
}, undefined>;
|
|
114
120
|
export type InsertDateAEP = InsertAEP<ACTION_SUBJECT_ID.DATE, {
|
|
115
121
|
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.ELEMENT_BROWSER | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.INLINE_SUGGESTION_FLOATING_TB;
|
|
116
122
|
}, undefined>;
|
|
@@ -145,9 +151,9 @@ type FailedToInsertMediaPayload = OperationalAEP<ACTION.FAILED_TO_INSERT, ACTION
|
|
|
145
151
|
}>;
|
|
146
152
|
type InsertReferenceSyncedBlockPayload = InsertAEP<ACTION_SUBJECT_ID.SYNCED_BLOCK, {
|
|
147
153
|
blockInstanceId: string;
|
|
154
|
+
isPaste: boolean;
|
|
148
155
|
resourceId: string;
|
|
149
156
|
sourceProduct?: string;
|
|
150
|
-
isPaste: boolean;
|
|
151
157
|
}, undefined>;
|
|
152
158
|
export type InsertSourceSyncedBlockPayload = InsertAEP<ACTION_SUBJECT_ID.BODIED_SYNCED_BLOCK, {
|
|
153
159
|
resourceId: string;
|
|
@@ -172,5 +178,5 @@ type FailedToInsertSnippetAEP = OperationalAEP<ACTION.FAILED_TO_INSERT, ACTION_S
|
|
|
172
178
|
reason: 'snippetMediaDirectCopyUnexpectedError';
|
|
173
179
|
snippetId: string;
|
|
174
180
|
}>;
|
|
175
|
-
export type InsertEventPayload = InsertDividerAEP | InsertLineBreakAEP | InsertPanelAEP | InsertCodeBlockAEP | InsertTableAEP | InsertExpandAEP | InsertActionDecisionAEP | InsertEmojiAEP | InsertStatusAEP | InsertMediaSingleAEP | InsertMediaGroupAEP | InsertMediaInlineAEP | InsertLinkAEP | InsertLinkPreviewAEP | InsertMediaLinkAEP | InsertSmartLinkAEP | InsertLayoutAEP | InsertExtensionAEP | InsertNodeViaExtensionAPIAEP | InsertDateAEP | InsertPlaceholderTextAEP | InsertNativeEmbedAEP | FailedToInsertMediaPayload | InsertReferenceSyncedBlockPayload | InsertSourceSyncedBlockPayload | InsertSnippetAEP | FailedToInsertSnippetAEP;
|
|
181
|
+
export type InsertEventPayload = InsertDividerAEP | InsertLineBreakAEP | InsertPanelAEP | InsertCodeBlockAEP | InsertTableAEP | InsertExpandAEP | InsertActionDecisionAEP | InsertEmojiAEP | InsertStatusAEP | InsertMediaSingleAEP | InsertMediaGroupAEP | InsertMediaInlineAEP | InsertLinkAEP | InsertLinkPreviewAEP | InsertMediaLinkAEP | InsertSmartLinkAEP | InsertLayoutAEP | InsertLayoutColumnAEP | InsertExtensionAEP | InsertNodeViaExtensionAPIAEP | InsertDateAEP | InsertPlaceholderTextAEP | InsertNativeEmbedAEP | FailedToInsertMediaPayload | InsertReferenceSyncedBlockPayload | InsertSourceSyncedBlockPayload | InsertSnippetAEP | FailedToInsertSnippetAEP;
|
|
176
182
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const INSERTED_TRAILING_PARAGRAPH_TO_LAST_NODE_META = "insertedTrailingParagraphToLastNode";
|
|
@@ -34,6 +34,16 @@ export declare const toolbarMessages: {
|
|
|
34
34
|
description: string;
|
|
35
35
|
id: string;
|
|
36
36
|
};
|
|
37
|
+
insertColumnLeft: {
|
|
38
|
+
defaultMessage: string;
|
|
39
|
+
description: string;
|
|
40
|
+
id: string;
|
|
41
|
+
};
|
|
42
|
+
insertColumnRight: {
|
|
43
|
+
defaultMessage: string;
|
|
44
|
+
description: string;
|
|
45
|
+
id: string;
|
|
46
|
+
};
|
|
37
47
|
fiveColumns: {
|
|
38
48
|
defaultMessage: string;
|
|
39
49
|
description: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "114.
|
|
3
|
+
"version": "114.37.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/"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@atlaskit/activity-provider": "^2.6.0",
|
|
40
|
-
"@atlaskit/adf-schema": "^52.
|
|
40
|
+
"@atlaskit/adf-schema": "^52.13.0",
|
|
41
41
|
"@atlaskit/adf-utils": "^19.30.0",
|
|
42
42
|
"@atlaskit/afm-i18n-platform-editor-editor-common": "2.18.0",
|
|
43
43
|
"@atlaskit/analytics-listeners": "^10.1.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/atlassian-context": "^0.9.0",
|
|
47
47
|
"@atlaskit/browser-apis": "^0.0.2",
|
|
48
48
|
"@atlaskit/button": "^23.11.0",
|
|
49
|
-
"@atlaskit/codemod-utils": "^4.
|
|
49
|
+
"@atlaskit/codemod-utils": "^4.3.0",
|
|
50
50
|
"@atlaskit/css": "^0.19.0",
|
|
51
51
|
"@atlaskit/custom-steps": "^0.17.0",
|
|
52
52
|
"@atlaskit/dropdown-menu": "^16.9.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@atlaskit/editor-tables": "^2.10.0",
|
|
58
58
|
"@atlaskit/editor-toolbar": "^1.6.0",
|
|
59
59
|
"@atlaskit/editor-toolbar-model": "^0.5.0",
|
|
60
|
-
"@atlaskit/emoji": "^70.
|
|
60
|
+
"@atlaskit/emoji": "^70.10.0",
|
|
61
61
|
"@atlaskit/icon": "^35.0.0",
|
|
62
62
|
"@atlaskit/link": "^3.4.0",
|
|
63
63
|
"@atlaskit/link-datasource": "^5.3.0",
|
|
@@ -79,15 +79,15 @@
|
|
|
79
79
|
"@atlaskit/primitives": "^19.0.0",
|
|
80
80
|
"@atlaskit/profilecard": "^25.7.0",
|
|
81
81
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
82
|
-
"@atlaskit/react-ufo": "^5.
|
|
83
|
-
"@atlaskit/section-message": "^8.
|
|
82
|
+
"@atlaskit/react-ufo": "^5.22.0",
|
|
83
|
+
"@atlaskit/section-message": "^8.13.0",
|
|
84
84
|
"@atlaskit/smart-card": "^44.12.0",
|
|
85
|
-
"@atlaskit/smart-user-picker": "^10.
|
|
85
|
+
"@atlaskit/smart-user-picker": "^10.1.0",
|
|
86
86
|
"@atlaskit/spinner": "^19.1.0",
|
|
87
87
|
"@atlaskit/task-decision": "^20.1.0",
|
|
88
88
|
"@atlaskit/teams-app-config": "^1.12.0",
|
|
89
89
|
"@atlaskit/textfield": "^8.3.0",
|
|
90
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
90
|
+
"@atlaskit/tmp-editor-statsig": "^82.0.0",
|
|
91
91
|
"@atlaskit/tokens": "^13.0.0",
|
|
92
92
|
"@atlaskit/tooltip": "^22.2.0",
|
|
93
93
|
"@atlaskit/width-detector": "^5.1.0",
|