@atlaskit/editor-common 117.0.1 → 117.0.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 +9 -0
- package/dist/cjs/block-menu/getLocalIdSelector.js +2 -5
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/block-menu/getLocalIdSelector.js +2 -5
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/block-menu/getLocalIdSelector.js +2 -5
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/package.json +6 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 117.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`72f7cec91a1d4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/72f7cec91a1d4) -
|
|
8
|
+
Remove the `platform_editor_block_menu_v2_patch_4` feature flag. Block menu local-id lookups now
|
|
9
|
+
always scope the query to the provided container.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 117.0.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getLocalIdSelector = void 0;
|
|
7
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
8
7
|
var getLocalIdSelector = exports.getLocalIdSelector = function getLocalIdSelector(localId, container) {
|
|
9
8
|
// Check if the element with data-local-id exists
|
|
10
9
|
var element = container.querySelector("[data-local-id=\"".concat(localId, "\"]"));
|
|
@@ -25,10 +24,8 @@ var getLocalIdSelector = exports.getLocalIdSelector = function getLocalIdSelecto
|
|
|
25
24
|
// Special case for tables which use data-table-local-id
|
|
26
25
|
element = container.querySelector("[data-table-local-id=\"".concat(localId, "\"]"));
|
|
27
26
|
if (element) {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
return element;
|
|
27
|
+
// return table wrapper instead of table div, so the height calculation is correct
|
|
28
|
+
return element.parentElement;
|
|
32
29
|
}
|
|
33
30
|
|
|
34
31
|
// Special case for extension, smart cards and media which use lowercase localid
|
|
@@ -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 = "117.0.
|
|
31
|
+
var packageVersion = "117.0.1";
|
|
32
32
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
33
33
|
// Remove URL as it has UGC
|
|
34
34
|
// 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 = "117.0.
|
|
27
|
+
var packageVersion = "117.0.1";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
1
|
export const getLocalIdSelector = (localId, container) => {
|
|
3
2
|
// Check if the element with data-local-id exists
|
|
4
3
|
let element = container.querySelector(`[data-local-id="${localId}"]`);
|
|
@@ -19,10 +18,8 @@ export const getLocalIdSelector = (localId, container) => {
|
|
|
19
18
|
// Special case for tables which use data-table-local-id
|
|
20
19
|
element = container.querySelector(`[data-table-local-id="${localId}"]`);
|
|
21
20
|
if (element) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
return element;
|
|
21
|
+
// return table wrapper instead of table div, so the height calculation is correct
|
|
22
|
+
return element.parentElement;
|
|
26
23
|
}
|
|
27
24
|
|
|
28
25
|
// Special case for extension, smart cards and media which use lowercase localid
|
|
@@ -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 = "117.0.
|
|
17
|
+
const packageVersion = "117.0.1";
|
|
18
18
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
19
19
|
// Remove URL as it has UGC
|
|
20
20
|
// 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 = "117.0.
|
|
17
|
+
const packageVersion = "117.0.1";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
1
|
export var getLocalIdSelector = function getLocalIdSelector(localId, container) {
|
|
3
2
|
// Check if the element with data-local-id exists
|
|
4
3
|
var element = container.querySelector("[data-local-id=\"".concat(localId, "\"]"));
|
|
@@ -19,10 +18,8 @@ export var getLocalIdSelector = function getLocalIdSelector(localId, container)
|
|
|
19
18
|
// Special case for tables which use data-table-local-id
|
|
20
19
|
element = container.querySelector("[data-table-local-id=\"".concat(localId, "\"]"));
|
|
21
20
|
if (element) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
return element;
|
|
21
|
+
// return table wrapper instead of table div, so the height calculation is correct
|
|
22
|
+
return element.parentElement;
|
|
26
23
|
}
|
|
27
24
|
|
|
28
25
|
// Special case for extension, smart cards and media which use lowercase localid
|
|
@@ -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 = "117.0.
|
|
23
|
+
var packageVersion = "117.0.1";
|
|
24
24
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
25
25
|
// Remove URL as it has UGC
|
|
26
26
|
// 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 = "117.0.
|
|
24
|
+
var packageVersion = "117.0.1";
|
|
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": "117.0.
|
|
3
|
+
"version": "117.0.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/"
|
|
@@ -70,20 +70,20 @@
|
|
|
70
70
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
71
71
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
72
72
|
"@atlaskit/platform-feature-flags-react": "^1.1.0",
|
|
73
|
-
"@atlaskit/popper": "^
|
|
73
|
+
"@atlaskit/popper": "^9.0.0",
|
|
74
74
|
"@atlaskit/primitives": "^22.2.0",
|
|
75
75
|
"@atlaskit/profilecard": "^26.14.0",
|
|
76
76
|
"@atlaskit/prosemirror-history": "^1.1.0",
|
|
77
77
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
78
78
|
"@atlaskit/react-ufo": "^7.3.0",
|
|
79
|
-
"@atlaskit/section-message": "^
|
|
80
|
-
"@atlaskit/smart-card": "^45.
|
|
79
|
+
"@atlaskit/section-message": "^10.0.0",
|
|
80
|
+
"@atlaskit/smart-card": "^45.17.0",
|
|
81
81
|
"@atlaskit/smart-user-picker": "^11.3.0",
|
|
82
82
|
"@atlaskit/spinner": "^20.1.0",
|
|
83
83
|
"@atlaskit/task-decision": "^21.8.0",
|
|
84
84
|
"@atlaskit/teams-app-config": "^2.1.0",
|
|
85
|
-
"@atlaskit/textfield": "^
|
|
86
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
85
|
+
"@atlaskit/textfield": "^10.0.0",
|
|
86
|
+
"@atlaskit/tmp-editor-statsig": "^139.0.0",
|
|
87
87
|
"@atlaskit/tokens": "^16.3.0",
|
|
88
88
|
"@atlaskit/tooltip": "^24.0.0",
|
|
89
89
|
"@atlaskit/width-detector": "^6.2.0",
|
|
@@ -232,9 +232,6 @@
|
|
|
232
232
|
"platform_editor_native_anchor_patch_3": {
|
|
233
233
|
"type": "boolean"
|
|
234
234
|
},
|
|
235
|
-
"platform_editor_block_menu_v2_patch_4": {
|
|
236
|
-
"type": "boolean"
|
|
237
|
-
},
|
|
238
235
|
"jim-lower-ranking-in-jira-macro-search": {
|
|
239
236
|
"type": "boolean"
|
|
240
237
|
},
|