@atlaskit/editor-common 109.11.1 → 109.11.2
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 +7 -0
- package/dist/cjs/analytics/types/enums.js +2 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/utils/commands.js +31 -6
- package/dist/es2019/analytics/types/enums.js +2 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/utils/commands.js +31 -6
- package/dist/esm/analytics/types/enums.js +2 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/utils/commands.js +31 -6
- package/dist/types/analytics/types/ai-streaming.d.ts +9 -1
- package/dist/types/analytics/types/enums.d.ts +2 -0
- package/dist/types-ts4.5/analytics/types/ai-streaming.d.ts +9 -1
- package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -0
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 109.11.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`8314ea8e35421`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8314ea8e35421) -
|
|
8
|
+
[EDITOR-1632] Fix determining the start of a blockTaskItem
|
|
9
|
+
|
|
3
10
|
## 109.11.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -376,6 +376,7 @@ var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTIO
|
|
|
376
376
|
ACTION_SUBJECT_ID["DATE_MONTH"] = "month";
|
|
377
377
|
ACTION_SUBJECT_ID["DATE_YEAR"] = "year";
|
|
378
378
|
ACTION_SUBJECT_ID["DECISION"] = "decision";
|
|
379
|
+
ACTION_SUBJECT_ID["DISCARD_STREAM"] = "discardStream";
|
|
379
380
|
ACTION_SUBJECT_ID["DIVIDER"] = "divider";
|
|
380
381
|
ACTION_SUBJECT_ID["EDIT_LINK"] = "editLink";
|
|
381
382
|
ACTION_SUBJECT_ID["EDIT_DATASOURCE"] = "editDatasource";
|
|
@@ -494,6 +495,7 @@ var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTIO
|
|
|
494
495
|
ACTION_SUBJECT_ID["ON_UNSUPPORTED_INLINE"] = "onUnsupportedInline";
|
|
495
496
|
ACTION_SUBJECT_ID["ON_UNSUPPORTED_BLOCK"] = "onUnsupportedBlock";
|
|
496
497
|
ACTION_SUBJECT_ID["MULTI_BODIED_EXTENSION"] = "multiBodiedExtension";
|
|
498
|
+
ACTION_SUBJECT_ID["UPDATE_STREAM"] = "updateStream";
|
|
497
499
|
ACTION_SUBJECT_ID["UPLOAD_MEDIA"] = "uploadMedia";
|
|
498
500
|
ACTION_SUBJECT_ID["SELECTION_TOOLBAR_PREFERENCES"] = "selectionToolbarPreferences";
|
|
499
501
|
ACTION_SUBJECT_ID["SELECTION_TOOLBAR"] = "selectionToolbar";
|
|
@@ -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 = "109.11.
|
|
19
|
+
var packageVersion = "109.11.1";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// 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 = "109.11.
|
|
27
|
+
var packageVersion = "109.11.1";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -14,6 +14,7 @@ exports.walkPrevNode = exports.walkNextNode = exports.isEmptySelectionAtStart =
|
|
|
14
14
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
15
15
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
16
16
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
17
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
18
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
18
19
|
var _analytics = require("../analytics");
|
|
19
20
|
var _editorAnalytics = require("../editor-analytics");
|
|
@@ -282,13 +283,37 @@ var isEmptySelectionAtStart = exports.isEmptySelectionAtStart = function isEmpty
|
|
|
282
283
|
empty = _state$selection4.empty,
|
|
283
284
|
$from = _state$selection4.$from;
|
|
284
285
|
|
|
285
|
-
// If blockTaskItem is in the schema
|
|
286
|
-
if
|
|
287
|
-
|
|
288
|
-
|
|
286
|
+
// If blockTaskItem is in the schema,
|
|
287
|
+
// we need to check if the selection is inside a blockTaskItem
|
|
288
|
+
if (blockTaskItem && empty && (0, _platformFeatureFlags.fg)('platform_editor_blocktaskitem_patch_2')) {
|
|
289
|
+
// If the parent is in a textblock,
|
|
290
|
+
// check if it's nested inside a blockTaskItem
|
|
291
|
+
if ($from.parent.isTextblock) {
|
|
292
|
+
var $posAtStartOfTextBlock = state.doc.resolve($from.start($from.depth - 1));
|
|
293
|
+
var parentOfTextBlock = $posAtStartOfTextBlock.parent;
|
|
289
294
|
|
|
290
|
-
|
|
291
|
-
|
|
295
|
+
// If the parent of the textblock is a blockTaskItem,
|
|
296
|
+
// we need to if the textblock is the first node in the blockTaskItem
|
|
297
|
+
if (parentOfTextBlock.type === blockTaskItem) {
|
|
298
|
+
var firstChildOfBlockTaskItem = parentOfTextBlock.firstChild;
|
|
299
|
+
if (firstChildOfBlockTaskItem === $from.parent) {
|
|
300
|
+
// If the textblock is the first node in the blockTaskItem,
|
|
301
|
+
// check if the selection is at the start of the textblock
|
|
302
|
+
var firstTextPosInTextBlock = $from.start($from.depth);
|
|
303
|
+
return $from.pos === firstTextPosInTextBlock;
|
|
304
|
+
} else {
|
|
305
|
+
return false;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
// Else, check if the parent is a blockTaskItem
|
|
310
|
+
else if ($from.parent.type === blockTaskItem) {
|
|
311
|
+
// Check if the selection is at the start of the blockTaskItem
|
|
312
|
+
var blockTaskItemDepth = $from.depth - 1;
|
|
313
|
+
var DISTANCE_FROM_PARENT_FOR_GAP_CURSOR = 1;
|
|
314
|
+
var firstPosInBlockTaskItem = $from.start(blockTaskItemDepth) + DISTANCE_FROM_PARENT_FOR_GAP_CURSOR;
|
|
315
|
+
return $from.pos === firstPosInBlockTaskItem;
|
|
316
|
+
}
|
|
292
317
|
}
|
|
293
318
|
return empty && ($from.parentOffset === 0 || state.selection instanceof _selection.GapCursorSelection);
|
|
294
319
|
};
|
|
@@ -370,6 +370,7 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
370
370
|
ACTION_SUBJECT_ID["DATE_MONTH"] = "month";
|
|
371
371
|
ACTION_SUBJECT_ID["DATE_YEAR"] = "year";
|
|
372
372
|
ACTION_SUBJECT_ID["DECISION"] = "decision";
|
|
373
|
+
ACTION_SUBJECT_ID["DISCARD_STREAM"] = "discardStream";
|
|
373
374
|
ACTION_SUBJECT_ID["DIVIDER"] = "divider";
|
|
374
375
|
ACTION_SUBJECT_ID["EDIT_LINK"] = "editLink";
|
|
375
376
|
ACTION_SUBJECT_ID["EDIT_DATASOURCE"] = "editDatasource";
|
|
@@ -488,6 +489,7 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
488
489
|
ACTION_SUBJECT_ID["ON_UNSUPPORTED_INLINE"] = "onUnsupportedInline";
|
|
489
490
|
ACTION_SUBJECT_ID["ON_UNSUPPORTED_BLOCK"] = "onUnsupportedBlock";
|
|
490
491
|
ACTION_SUBJECT_ID["MULTI_BODIED_EXTENSION"] = "multiBodiedExtension";
|
|
492
|
+
ACTION_SUBJECT_ID["UPDATE_STREAM"] = "updateStream";
|
|
491
493
|
ACTION_SUBJECT_ID["UPLOAD_MEDIA"] = "uploadMedia";
|
|
492
494
|
ACTION_SUBJECT_ID["SELECTION_TOOLBAR_PREFERENCES"] = "selectionToolbarPreferences";
|
|
493
495
|
ACTION_SUBJECT_ID["SELECTION_TOOLBAR"] = "selectionToolbar";
|
|
@@ -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 = "109.11.
|
|
4
|
+
const packageVersion = "109.11.1";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// 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 = "109.11.
|
|
17
|
+
const packageVersion = "109.11.1";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
4
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
4
5
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../analytics';
|
|
5
6
|
import { withAnalytics } from '../editor-analytics';
|
|
@@ -285,13 +286,37 @@ export const isEmptySelectionAtStart = state => {
|
|
|
285
286
|
$from
|
|
286
287
|
} = state.selection;
|
|
287
288
|
|
|
288
|
-
// If blockTaskItem is in the schema
|
|
289
|
-
if
|
|
290
|
-
|
|
291
|
-
|
|
289
|
+
// If blockTaskItem is in the schema,
|
|
290
|
+
// we need to check if the selection is inside a blockTaskItem
|
|
291
|
+
if (blockTaskItem && empty && fg('platform_editor_blocktaskitem_patch_2')) {
|
|
292
|
+
// If the parent is in a textblock,
|
|
293
|
+
// check if it's nested inside a blockTaskItem
|
|
294
|
+
if ($from.parent.isTextblock) {
|
|
295
|
+
const $posAtStartOfTextBlock = state.doc.resolve($from.start($from.depth - 1));
|
|
296
|
+
const parentOfTextBlock = $posAtStartOfTextBlock.parent;
|
|
292
297
|
|
|
293
|
-
|
|
294
|
-
|
|
298
|
+
// If the parent of the textblock is a blockTaskItem,
|
|
299
|
+
// we need to if the textblock is the first node in the blockTaskItem
|
|
300
|
+
if (parentOfTextBlock.type === blockTaskItem) {
|
|
301
|
+
const firstChildOfBlockTaskItem = parentOfTextBlock.firstChild;
|
|
302
|
+
if (firstChildOfBlockTaskItem === $from.parent) {
|
|
303
|
+
// If the textblock is the first node in the blockTaskItem,
|
|
304
|
+
// check if the selection is at the start of the textblock
|
|
305
|
+
const firstTextPosInTextBlock = $from.start($from.depth);
|
|
306
|
+
return $from.pos === firstTextPosInTextBlock;
|
|
307
|
+
} else {
|
|
308
|
+
return false;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
// Else, check if the parent is a blockTaskItem
|
|
313
|
+
else if ($from.parent.type === blockTaskItem) {
|
|
314
|
+
// Check if the selection is at the start of the blockTaskItem
|
|
315
|
+
const blockTaskItemDepth = $from.depth - 1;
|
|
316
|
+
const DISTANCE_FROM_PARENT_FOR_GAP_CURSOR = 1;
|
|
317
|
+
const firstPosInBlockTaskItem = $from.start(blockTaskItemDepth) + DISTANCE_FROM_PARENT_FOR_GAP_CURSOR;
|
|
318
|
+
return $from.pos === firstPosInBlockTaskItem;
|
|
319
|
+
}
|
|
295
320
|
}
|
|
296
321
|
return empty && ($from.parentOffset === 0 || state.selection instanceof GapCursorSelection);
|
|
297
322
|
};
|
|
@@ -370,6 +370,7 @@ export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
370
370
|
ACTION_SUBJECT_ID["DATE_MONTH"] = "month";
|
|
371
371
|
ACTION_SUBJECT_ID["DATE_YEAR"] = "year";
|
|
372
372
|
ACTION_SUBJECT_ID["DECISION"] = "decision";
|
|
373
|
+
ACTION_SUBJECT_ID["DISCARD_STREAM"] = "discardStream";
|
|
373
374
|
ACTION_SUBJECT_ID["DIVIDER"] = "divider";
|
|
374
375
|
ACTION_SUBJECT_ID["EDIT_LINK"] = "editLink";
|
|
375
376
|
ACTION_SUBJECT_ID["EDIT_DATASOURCE"] = "editDatasource";
|
|
@@ -488,6 +489,7 @@ export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
488
489
|
ACTION_SUBJECT_ID["ON_UNSUPPORTED_INLINE"] = "onUnsupportedInline";
|
|
489
490
|
ACTION_SUBJECT_ID["ON_UNSUPPORTED_BLOCK"] = "onUnsupportedBlock";
|
|
490
491
|
ACTION_SUBJECT_ID["MULTI_BODIED_EXTENSION"] = "multiBodiedExtension";
|
|
492
|
+
ACTION_SUBJECT_ID["UPDATE_STREAM"] = "updateStream";
|
|
491
493
|
ACTION_SUBJECT_ID["UPLOAD_MEDIA"] = "uploadMedia";
|
|
492
494
|
ACTION_SUBJECT_ID["SELECTION_TOOLBAR_PREFERENCES"] = "selectionToolbarPreferences";
|
|
493
495
|
ACTION_SUBJECT_ID["SELECTION_TOOLBAR"] = "selectionToolbar";
|
|
@@ -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 = "109.11.
|
|
10
|
+
var packageVersion = "109.11.1";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// 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 = "109.11.
|
|
24
|
+
var packageVersion = "109.11.1";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
5
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
5
6
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../analytics';
|
|
6
7
|
import { withAnalytics } from '../editor-analytics';
|
|
@@ -269,13 +270,37 @@ export var isEmptySelectionAtStart = function isEmptySelectionAtStart(state) {
|
|
|
269
270
|
empty = _state$selection4.empty,
|
|
270
271
|
$from = _state$selection4.$from;
|
|
271
272
|
|
|
272
|
-
// If blockTaskItem is in the schema
|
|
273
|
-
if
|
|
274
|
-
|
|
275
|
-
|
|
273
|
+
// If blockTaskItem is in the schema,
|
|
274
|
+
// we need to check if the selection is inside a blockTaskItem
|
|
275
|
+
if (blockTaskItem && empty && fg('platform_editor_blocktaskitem_patch_2')) {
|
|
276
|
+
// If the parent is in a textblock,
|
|
277
|
+
// check if it's nested inside a blockTaskItem
|
|
278
|
+
if ($from.parent.isTextblock) {
|
|
279
|
+
var $posAtStartOfTextBlock = state.doc.resolve($from.start($from.depth - 1));
|
|
280
|
+
var parentOfTextBlock = $posAtStartOfTextBlock.parent;
|
|
276
281
|
|
|
277
|
-
|
|
278
|
-
|
|
282
|
+
// If the parent of the textblock is a blockTaskItem,
|
|
283
|
+
// we need to if the textblock is the first node in the blockTaskItem
|
|
284
|
+
if (parentOfTextBlock.type === blockTaskItem) {
|
|
285
|
+
var firstChildOfBlockTaskItem = parentOfTextBlock.firstChild;
|
|
286
|
+
if (firstChildOfBlockTaskItem === $from.parent) {
|
|
287
|
+
// If the textblock is the first node in the blockTaskItem,
|
|
288
|
+
// check if the selection is at the start of the textblock
|
|
289
|
+
var firstTextPosInTextBlock = $from.start($from.depth);
|
|
290
|
+
return $from.pos === firstTextPosInTextBlock;
|
|
291
|
+
} else {
|
|
292
|
+
return false;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
// Else, check if the parent is a blockTaskItem
|
|
297
|
+
else if ($from.parent.type === blockTaskItem) {
|
|
298
|
+
// Check if the selection is at the start of the blockTaskItem
|
|
299
|
+
var blockTaskItemDepth = $from.depth - 1;
|
|
300
|
+
var DISTANCE_FROM_PARENT_FOR_GAP_CURSOR = 1;
|
|
301
|
+
var firstPosInBlockTaskItem = $from.start(blockTaskItemDepth) + DISTANCE_FROM_PARENT_FOR_GAP_CURSOR;
|
|
302
|
+
return $from.pos === firstPosInBlockTaskItem;
|
|
303
|
+
}
|
|
279
304
|
}
|
|
280
305
|
return empty && ($from.parentOffset === 0 || state.selection instanceof GapCursorSelection);
|
|
281
306
|
};
|
|
@@ -4,5 +4,13 @@ type AILocalIdNotFoundErrorAEP = OperationalAEP<ACTION.LOCAL_ID_NOT_FOUND, ACTIO
|
|
|
4
4
|
docSize: number | undefined;
|
|
5
5
|
localId: string;
|
|
6
6
|
}>;
|
|
7
|
-
|
|
7
|
+
type AIStreamingUpdateStreamError = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.AI_STREAMING, ACTION_SUBJECT_ID.UPDATE_STREAM, {
|
|
8
|
+
errorMessage?: string;
|
|
9
|
+
errorStack: string;
|
|
10
|
+
}>;
|
|
11
|
+
type AIStreamingDiscardStreamError = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.AI_STREAMING, ACTION_SUBJECT_ID.DISCARD_STREAM, {
|
|
12
|
+
errorMessage?: string;
|
|
13
|
+
errorStack: string;
|
|
14
|
+
}>;
|
|
15
|
+
export type AIStreamingEventPayload = AILocalIdNotFoundErrorAEP | AIStreamingUpdateStreamError | AIStreamingDiscardStreamError;
|
|
8
16
|
export {};
|
|
@@ -362,6 +362,7 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
362
362
|
DATE_MONTH = "month",
|
|
363
363
|
DATE_YEAR = "year",
|
|
364
364
|
DECISION = "decision",
|
|
365
|
+
DISCARD_STREAM = "discardStream",
|
|
365
366
|
DIVIDER = "divider",
|
|
366
367
|
EDIT_LINK = "editLink",
|
|
367
368
|
EDIT_DATASOURCE = "editDatasource",
|
|
@@ -480,6 +481,7 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
480
481
|
ON_UNSUPPORTED_INLINE = "onUnsupportedInline",
|
|
481
482
|
ON_UNSUPPORTED_BLOCK = "onUnsupportedBlock",
|
|
482
483
|
MULTI_BODIED_EXTENSION = "multiBodiedExtension",
|
|
484
|
+
UPDATE_STREAM = "updateStream",
|
|
483
485
|
UPLOAD_MEDIA = "uploadMedia",
|
|
484
486
|
SELECTION_TOOLBAR_PREFERENCES = "selectionToolbarPreferences",
|
|
485
487
|
SELECTION_TOOLBAR = "selectionToolbar",
|
|
@@ -4,5 +4,13 @@ type AILocalIdNotFoundErrorAEP = OperationalAEP<ACTION.LOCAL_ID_NOT_FOUND, ACTIO
|
|
|
4
4
|
docSize: number | undefined;
|
|
5
5
|
localId: string;
|
|
6
6
|
}>;
|
|
7
|
-
|
|
7
|
+
type AIStreamingUpdateStreamError = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.AI_STREAMING, ACTION_SUBJECT_ID.UPDATE_STREAM, {
|
|
8
|
+
errorMessage?: string;
|
|
9
|
+
errorStack: string;
|
|
10
|
+
}>;
|
|
11
|
+
type AIStreamingDiscardStreamError = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.AI_STREAMING, ACTION_SUBJECT_ID.DISCARD_STREAM, {
|
|
12
|
+
errorMessage?: string;
|
|
13
|
+
errorStack: string;
|
|
14
|
+
}>;
|
|
15
|
+
export type AIStreamingEventPayload = AILocalIdNotFoundErrorAEP | AIStreamingUpdateStreamError | AIStreamingDiscardStreamError;
|
|
8
16
|
export {};
|
|
@@ -362,6 +362,7 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
362
362
|
DATE_MONTH = "month",
|
|
363
363
|
DATE_YEAR = "year",
|
|
364
364
|
DECISION = "decision",
|
|
365
|
+
DISCARD_STREAM = "discardStream",
|
|
365
366
|
DIVIDER = "divider",
|
|
366
367
|
EDIT_LINK = "editLink",
|
|
367
368
|
EDIT_DATASOURCE = "editDatasource",
|
|
@@ -480,6 +481,7 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
480
481
|
ON_UNSUPPORTED_INLINE = "onUnsupportedInline",
|
|
481
482
|
ON_UNSUPPORTED_BLOCK = "onUnsupportedBlock",
|
|
482
483
|
MULTI_BODIED_EXTENSION = "multiBodiedExtension",
|
|
484
|
+
UPDATE_STREAM = "updateStream",
|
|
483
485
|
UPLOAD_MEDIA = "uploadMedia",
|
|
484
486
|
SELECTION_TOOLBAR_PREFERENCES = "selectionToolbarPreferences",
|
|
485
487
|
SELECTION_TOOLBAR = "selectionToolbar",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "109.11.
|
|
3
|
+
"version": "109.11.2",
|
|
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/"
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@atlaskit/task-decision": "^19.2.0",
|
|
82
82
|
"@atlaskit/textfield": "^8.0.0",
|
|
83
83
|
"@atlaskit/theme": "^21.0.0",
|
|
84
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
84
|
+
"@atlaskit/tmp-editor-statsig": "^12.27.0",
|
|
85
85
|
"@atlaskit/tokens": "^6.3.0",
|
|
86
86
|
"@atlaskit/tooltip": "^20.4.0",
|
|
87
87
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -172,6 +172,9 @@
|
|
|
172
172
|
"platform_editor_typography_ugc": {
|
|
173
173
|
"type": "boolean"
|
|
174
174
|
},
|
|
175
|
+
"platform_editor_blocktaskitem_patch_2": {
|
|
176
|
+
"type": "boolean"
|
|
177
|
+
},
|
|
175
178
|
"platform-visual-refresh-icons": {
|
|
176
179
|
"type": "boolean"
|
|
177
180
|
},
|