@atlaskit/editor-common 116.17.1 → 116.17.3
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 +14 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/selection/format-sync-meta.js +15 -0
- package/dist/cjs/selection/index.js +7 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/selection/format-sync-meta.js +9 -0
- package/dist/es2019/selection/index.js +1 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/selection/format-sync-meta.js +9 -0
- package/dist/esm/selection/index.js +1 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/selection/format-sync-meta.d.ts +9 -0
- package/dist/types/selection/index.d.ts +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 116.17.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 116.17.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`283c55290e6cc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/283c55290e6cc) -
|
|
14
|
+
Preserve visual selection after applying text color or highlight
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 116.17.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -28,7 +28,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
28
28
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
29
29
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
30
30
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
31
|
-
var packageVersion = "116.17.
|
|
31
|
+
var packageVersion = "116.17.2";
|
|
32
32
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
33
33
|
// Remove URL as it has UGC
|
|
34
34
|
// Ignored via go/ees007
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.FORMAT_SELECTION_SYNC_META = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Transaction meta key used by the selection-preservation plugin
|
|
9
|
+
* to detect formatting operations that need selection re-syncing.
|
|
10
|
+
*
|
|
11
|
+
* When a formatting command (text color, highlight, etc.) changes the document,
|
|
12
|
+
* it sets this meta key to `true` so the selection-preservation plugin can
|
|
13
|
+
* re-sync the DOM selection after the transaction is applied.
|
|
14
|
+
*/
|
|
15
|
+
var FORMAT_SELECTION_SYNC_META = exports.FORMAT_SELECTION_SYNC_META = 'editorPluginSelectionPreservationFormatSync';
|
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
Object.defineProperty(exports, "FORMAT_SELECTION_SYNC_META", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _formatSyncMeta.FORMAT_SELECTION_SYNC_META;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
6
12
|
Object.defineProperty(exports, "GapBookmark", {
|
|
7
13
|
enumerable: true,
|
|
8
14
|
get: function get() {
|
|
@@ -219,6 +225,7 @@ var _utils2 = require("./utils");
|
|
|
219
225
|
var _contextHelpers = require("./context-helpers");
|
|
220
226
|
var _getFragmentsFromSelection = require("./getFragmentsFromSelection");
|
|
221
227
|
var _getLocalIdsFromSelection = require("./getLocalIdsFromSelection");
|
|
228
|
+
var _formatSyncMeta = require("./format-sync-meta");
|
|
222
229
|
// Disable no-re-export rule for entry point files
|
|
223
230
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
224
231
|
|
|
@@ -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 = "116.17.
|
|
27
|
+
var packageVersion = "116.17.2";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -14,7 +14,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
14
14
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
15
15
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
16
16
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
17
|
-
const packageVersion = "116.17.
|
|
17
|
+
const packageVersion = "116.17.2";
|
|
18
18
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
19
19
|
// Remove URL as it has UGC
|
|
20
20
|
// Ignored via go/ees007
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transaction meta key used by the selection-preservation plugin
|
|
3
|
+
* to detect formatting operations that need selection re-syncing.
|
|
4
|
+
*
|
|
5
|
+
* When a formatting command (text color, highlight, etc.) changes the document,
|
|
6
|
+
* it sets this meta key to `true` so the selection-preservation plugin can
|
|
7
|
+
* re-sync the DOM selection after the transaction is applied.
|
|
8
|
+
*/
|
|
9
|
+
export const FORMAT_SELECTION_SYNC_META = 'editorPluginSelectionPreservationFormatSync';
|
|
@@ -25,6 +25,7 @@ export { atTheBeginningOfBlock, atTheEndOfBlock, deleteSelectedRange, expandSele
|
|
|
25
25
|
export { getSliceFromSelection } from './context-helpers';
|
|
26
26
|
export { getFragmentsFromSelection } from './getFragmentsFromSelection';
|
|
27
27
|
export { getLocalIdsFromSelection } from './getLocalIdsFromSelection';
|
|
28
|
+
export { FORMAT_SELECTION_SYNC_META } from './format-sync-meta';
|
|
28
29
|
export function getNodeSelectionAnalyticsPayload(selection) {
|
|
29
30
|
if (selection instanceof NodeSelection) {
|
|
30
31
|
return {
|
|
@@ -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 = "116.17.
|
|
17
|
+
const packageVersion = "116.17.2";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -20,7 +20,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
20
20
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
21
21
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
22
22
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
23
|
-
var packageVersion = "116.17.
|
|
23
|
+
var packageVersion = "116.17.2";
|
|
24
24
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
25
25
|
// Remove URL as it has UGC
|
|
26
26
|
// Ignored via go/ees007
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transaction meta key used by the selection-preservation plugin
|
|
3
|
+
* to detect formatting operations that need selection re-syncing.
|
|
4
|
+
*
|
|
5
|
+
* When a formatting command (text color, highlight, etc.) changes the document,
|
|
6
|
+
* it sets this meta key to `true` so the selection-preservation plugin can
|
|
7
|
+
* re-sync the DOM selection after the transaction is applied.
|
|
8
|
+
*/
|
|
9
|
+
export var FORMAT_SELECTION_SYNC_META = 'editorPluginSelectionPreservationFormatSync';
|
|
@@ -25,6 +25,7 @@ export { atTheBeginningOfBlock, atTheEndOfBlock, deleteSelectedRange, expandSele
|
|
|
25
25
|
export { getSliceFromSelection } from './context-helpers';
|
|
26
26
|
export { getFragmentsFromSelection } from './getFragmentsFromSelection';
|
|
27
27
|
export { getLocalIdsFromSelection } from './getLocalIdsFromSelection';
|
|
28
|
+
export { FORMAT_SELECTION_SYNC_META } from './format-sync-meta';
|
|
28
29
|
export function getNodeSelectionAnalyticsPayload(selection) {
|
|
29
30
|
if (selection instanceof NodeSelection) {
|
|
30
31
|
return {
|
|
@@ -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 = "116.17.
|
|
24
|
+
var packageVersion = "116.17.2";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Transaction meta key used by the selection-preservation plugin
|
|
3
|
+
* to detect formatting operations that need selection re-syncing.
|
|
4
|
+
*
|
|
5
|
+
* When a formatting command (text color, highlight, etc.) changes the document,
|
|
6
|
+
* it sets this meta key to `true` so the selection-preservation plugin can
|
|
7
|
+
* re-sync the DOM selection after the transaction is applied.
|
|
8
|
+
*/
|
|
9
|
+
export declare const FORMAT_SELECTION_SYNC_META = "editorPluginSelectionPreservationFormatSync";
|
|
@@ -24,6 +24,7 @@ export { atTheBeginningOfBlock, atTheEndOfBlock, deleteSelectedRange, expandSele
|
|
|
24
24
|
export { getSliceFromSelection } from './context-helpers';
|
|
25
25
|
export { getFragmentsFromSelection } from './getFragmentsFromSelection';
|
|
26
26
|
export { getLocalIdsFromSelection } from './getLocalIdsFromSelection';
|
|
27
|
+
export { FORMAT_SELECTION_SYNC_META } from './format-sync-meta';
|
|
27
28
|
export declare function getNodeSelectionAnalyticsPayload(selection: Selection): AnalyticsEventPayload | undefined;
|
|
28
29
|
export declare function getAllSelectionAnalyticsPayload(selection: Selection): AnalyticsEventPayload | undefined;
|
|
29
30
|
export declare function getCellSelectionAnalyticsPayload(state: EditorState): AnalyticsEventPayload | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "116.17.
|
|
3
|
+
"version": "116.17.3",
|
|
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/"
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"@atlaskit/task-decision": "^21.4.0",
|
|
81
81
|
"@atlaskit/teams-app-config": "^2.1.0",
|
|
82
82
|
"@atlaskit/textfield": "^9.1.0",
|
|
83
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
83
|
+
"@atlaskit/tmp-editor-statsig": "^115.0.0",
|
|
84
84
|
"@atlaskit/tokens": "^15.2.0",
|
|
85
85
|
"@atlaskit/tooltip": "^23.1.0",
|
|
86
86
|
"@atlaskit/width-detector": "^6.1.0",
|