@atlaskit/editor-common 116.26.2 → 116.26.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 +8 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/toolbar/shouldShowPrimaryToolbar.js +6 -10
- package/dist/cjs/toolbar/shouldShowSelectionToolbar.js +6 -10
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/toolbar/shouldShowPrimaryToolbar.js +6 -10
- package/dist/es2019/toolbar/shouldShowSelectionToolbar.js +6 -10
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/toolbar/shouldShowPrimaryToolbar.js +6 -10
- package/dist/esm/toolbar/shouldShowSelectionToolbar.js +6 -10
- package/dist/esm/ui/DropList/index.js +1 -1
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 116.26.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`3b5a6eca9da9d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3b5a6eca9da9d) -
|
|
8
|
+
Clean up feature gate `platform_editor_toolbar_aifc_placement_overridden`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 116.26.2
|
|
4
12
|
|
|
5
13
|
### 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.26.
|
|
31
|
+
var packageVersion = "116.26.2";
|
|
32
32
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
33
33
|
// Remove URL as it has UGC
|
|
34
34
|
// Ignored via go/ees007
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.shouldShowPrimaryToolbar = void 0;
|
|
7
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
8
7
|
/**
|
|
9
8
|
* Determines whether the primary (top) toolbar should be shown based on contextual formatting mode
|
|
10
9
|
* and toolbar docking position preference.
|
|
@@ -14,14 +13,11 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
|
14
13
|
* @returns true if the primary toolbar should be displayed, false otherwise
|
|
15
14
|
*/
|
|
16
15
|
var shouldShowPrimaryToolbar = exports.shouldShowPrimaryToolbar = function shouldShowPrimaryToolbar(contextualFormattingEnabled, toolbarDockingPosition) {
|
|
17
|
-
if (
|
|
18
|
-
|
|
19
|
-
return toolbarDockingPosition !== 'none';
|
|
20
|
-
}
|
|
21
|
-
if (contextualFormattingEnabled === 'always-pinned') {
|
|
22
|
-
return true;
|
|
23
|
-
}
|
|
24
|
-
return false;
|
|
16
|
+
if (contextualFormattingEnabled === 'controlled') {
|
|
17
|
+
return toolbarDockingPosition !== 'none';
|
|
25
18
|
}
|
|
26
|
-
|
|
19
|
+
if (contextualFormattingEnabled === 'always-pinned') {
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
return false;
|
|
27
23
|
};
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.shouldShowSelectionToolbar = void 0;
|
|
7
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
8
7
|
/**
|
|
9
8
|
* Determines whether the selection (inline) toolbar should be shown based on contextual formatting mode
|
|
10
9
|
* and toolbar docking position preference.
|
|
@@ -14,14 +13,11 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
|
14
13
|
* @returns true if the selection toolbar should be displayed, false otherwise
|
|
15
14
|
*/
|
|
16
15
|
var shouldShowSelectionToolbar = exports.shouldShowSelectionToolbar = function shouldShowSelectionToolbar(contextualFormattingEnabled, toolbarDockingPosition) {
|
|
17
|
-
if (
|
|
18
|
-
|
|
19
|
-
return toolbarDockingPosition === 'top';
|
|
20
|
-
}
|
|
21
|
-
if (contextualFormattingEnabled === 'always-inline') {
|
|
22
|
-
return true;
|
|
23
|
-
}
|
|
24
|
-
return false;
|
|
16
|
+
if (contextualFormattingEnabled === 'controlled') {
|
|
17
|
+
return toolbarDockingPosition === 'top';
|
|
25
18
|
}
|
|
26
|
-
|
|
19
|
+
if (contextualFormattingEnabled === 'always-inline') {
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
return false;
|
|
27
23
|
};
|
|
@@ -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.26.
|
|
27
|
+
var packageVersion = "116.26.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.26.
|
|
17
|
+
const packageVersion = "116.26.2";
|
|
18
18
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
19
19
|
// Remove URL as it has UGC
|
|
20
20
|
// Ignored via go/ees007
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
1
|
/**
|
|
3
2
|
* Determines whether the primary (top) toolbar should be shown based on contextual formatting mode
|
|
4
3
|
* and toolbar docking position preference.
|
|
@@ -8,14 +7,11 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
8
7
|
* @returns true if the primary toolbar should be displayed, false otherwise
|
|
9
8
|
*/
|
|
10
9
|
export const shouldShowPrimaryToolbar = (contextualFormattingEnabled, toolbarDockingPosition) => {
|
|
11
|
-
if (
|
|
12
|
-
|
|
13
|
-
return toolbarDockingPosition !== 'none';
|
|
14
|
-
}
|
|
15
|
-
if (contextualFormattingEnabled === 'always-pinned') {
|
|
16
|
-
return true;
|
|
17
|
-
}
|
|
18
|
-
return false;
|
|
10
|
+
if (contextualFormattingEnabled === 'controlled') {
|
|
11
|
+
return toolbarDockingPosition !== 'none';
|
|
19
12
|
}
|
|
20
|
-
|
|
13
|
+
if (contextualFormattingEnabled === 'always-pinned') {
|
|
14
|
+
return true;
|
|
15
|
+
}
|
|
16
|
+
return false;
|
|
21
17
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
1
|
/**
|
|
3
2
|
* Determines whether the selection (inline) toolbar should be shown based on contextual formatting mode
|
|
4
3
|
* and toolbar docking position preference.
|
|
@@ -8,14 +7,11 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
8
7
|
* @returns true if the selection toolbar should be displayed, false otherwise
|
|
9
8
|
*/
|
|
10
9
|
export const shouldShowSelectionToolbar = (contextualFormattingEnabled, toolbarDockingPosition) => {
|
|
11
|
-
if (
|
|
12
|
-
|
|
13
|
-
return toolbarDockingPosition === 'top';
|
|
14
|
-
}
|
|
15
|
-
if (contextualFormattingEnabled === 'always-inline') {
|
|
16
|
-
return true;
|
|
17
|
-
}
|
|
18
|
-
return false;
|
|
10
|
+
if (contextualFormattingEnabled === 'controlled') {
|
|
11
|
+
return toolbarDockingPosition === 'top';
|
|
19
12
|
}
|
|
20
|
-
|
|
13
|
+
if (contextualFormattingEnabled === 'always-inline') {
|
|
14
|
+
return true;
|
|
15
|
+
}
|
|
16
|
+
return false;
|
|
21
17
|
};
|
|
@@ -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.26.
|
|
17
|
+
const packageVersion = "116.26.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.26.
|
|
23
|
+
var packageVersion = "116.26.2";
|
|
24
24
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
25
25
|
// Remove URL as it has UGC
|
|
26
26
|
// Ignored via go/ees007
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
1
|
/**
|
|
3
2
|
* Determines whether the primary (top) toolbar should be shown based on contextual formatting mode
|
|
4
3
|
* and toolbar docking position preference.
|
|
@@ -8,14 +7,11 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
8
7
|
* @returns true if the primary toolbar should be displayed, false otherwise
|
|
9
8
|
*/
|
|
10
9
|
export var shouldShowPrimaryToolbar = function shouldShowPrimaryToolbar(contextualFormattingEnabled, toolbarDockingPosition) {
|
|
11
|
-
if (
|
|
12
|
-
|
|
13
|
-
return toolbarDockingPosition !== 'none';
|
|
14
|
-
}
|
|
15
|
-
if (contextualFormattingEnabled === 'always-pinned') {
|
|
16
|
-
return true;
|
|
17
|
-
}
|
|
18
|
-
return false;
|
|
10
|
+
if (contextualFormattingEnabled === 'controlled') {
|
|
11
|
+
return toolbarDockingPosition !== 'none';
|
|
19
12
|
}
|
|
20
|
-
|
|
13
|
+
if (contextualFormattingEnabled === 'always-pinned') {
|
|
14
|
+
return true;
|
|
15
|
+
}
|
|
16
|
+
return false;
|
|
21
17
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
1
|
/**
|
|
3
2
|
* Determines whether the selection (inline) toolbar should be shown based on contextual formatting mode
|
|
4
3
|
* and toolbar docking position preference.
|
|
@@ -8,14 +7,11 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
8
7
|
* @returns true if the selection toolbar should be displayed, false otherwise
|
|
9
8
|
*/
|
|
10
9
|
export var shouldShowSelectionToolbar = function shouldShowSelectionToolbar(contextualFormattingEnabled, toolbarDockingPosition) {
|
|
11
|
-
if (
|
|
12
|
-
|
|
13
|
-
return toolbarDockingPosition === 'top';
|
|
14
|
-
}
|
|
15
|
-
if (contextualFormattingEnabled === 'always-inline') {
|
|
16
|
-
return true;
|
|
17
|
-
}
|
|
18
|
-
return false;
|
|
10
|
+
if (contextualFormattingEnabled === 'controlled') {
|
|
11
|
+
return toolbarDockingPosition === 'top';
|
|
19
12
|
}
|
|
20
|
-
|
|
13
|
+
if (contextualFormattingEnabled === 'always-inline') {
|
|
14
|
+
return true;
|
|
15
|
+
}
|
|
16
|
+
return false;
|
|
21
17
|
};
|
|
@@ -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.26.
|
|
24
|
+
var packageVersion = "116.26.2";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "116.26.
|
|
3
|
+
"version": "116.26.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/"
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@atlaskit/afm-i18n-platform-editor-editor-common": "2.168.0",
|
|
35
35
|
"@atlaskit/analytics-listeners": "^11.1.0",
|
|
36
36
|
"@atlaskit/analytics-namespaced-context": "^8.1.0",
|
|
37
|
-
"@atlaskit/analytics-next": "^12.
|
|
37
|
+
"@atlaskit/analytics-next": "^12.3.0",
|
|
38
38
|
"@atlaskit/atlassian-context": "^1.0.0",
|
|
39
39
|
"@atlaskit/browser-apis": "^1.1.0",
|
|
40
40
|
"@atlaskit/button": "^24.3.0",
|
|
@@ -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": "^124.
|
|
83
|
+
"@atlaskit/tmp-editor-statsig": "^124.2.0",
|
|
84
84
|
"@atlaskit/tokens": "^15.6.0",
|
|
85
85
|
"@atlaskit/tooltip": "^23.1.0",
|
|
86
86
|
"@atlaskit/width-detector": "^6.2.0",
|
|
@@ -228,9 +228,6 @@
|
|
|
228
228
|
"platform_editor_native_anchor_patch_3": {
|
|
229
229
|
"type": "boolean"
|
|
230
230
|
},
|
|
231
|
-
"platform_editor_toolbar_aifc_placement_overridden": {
|
|
232
|
-
"type": "boolean"
|
|
233
|
-
},
|
|
234
231
|
"platform_editor_block_menu_v2_patch_4": {
|
|
235
232
|
"type": "boolean"
|
|
236
233
|
},
|