@atlaskit/editor-common 123.8.1 → 125.0.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 +24 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/table/getStickyHeaderHeight.js +9 -2
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/table/getStickyHeaderHeight.js +10 -2
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/table/getStickyHeaderHeight.js +10 -2
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/ai-quick-prompt-events.d.ts +1 -13
- package/dist/types/table/getStickyHeaderHeight.d.ts +1 -1
- package/package.json +21 -24
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 125.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`8bcf5e620061d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8bcf5e620061d) -
|
|
8
|
+
Clean up feature gate `platform_editor_fix_unsubscribe_of_provider`
|
|
9
|
+
- [`06ffc006ddef9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/06ffc006ddef9) -
|
|
10
|
+
EDITOR-9233 Do not add sticky header offset for diffs inside the header row under
|
|
11
|
+
platform_editor_ai_show_diff_patch_2.
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 124.0.0
|
|
15
|
+
|
|
16
|
+
### Major Changes
|
|
17
|
+
|
|
18
|
+
- [`135644b71068b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/135644b71068b) -
|
|
19
|
+
Clean up experiment `cc_smarts_should_improve_writing_migration`. The should-improve-writing
|
|
20
|
+
request now always goes to the cc-smarts route, and the convo-ai route plus its shadow-comparison
|
|
21
|
+
analytics have been removed.
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies
|
|
26
|
+
|
|
3
27
|
## 123.8.1
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
|
@@ -27,7 +27,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
27
27
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
28
28
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
29
29
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
30
|
-
var packageVersion = "
|
|
30
|
+
var packageVersion = "124.0.0";
|
|
31
31
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
32
32
|
// Remove URL as it has UGC
|
|
33
33
|
// Ignored via go/ees007
|
|
@@ -5,8 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getStickyHeaderHeight = getStickyHeaderHeight;
|
|
7
7
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
8
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
8
9
|
/**
|
|
9
|
-
* Returns the outermost table's sticky header height for `targetPos`
|
|
10
|
+
* Returns the outermost table's sticky header height for `targetPos` if its a table row and eligible to be
|
|
10
11
|
* sticky. Table headers at least half the viewport high intentionally do not become sticky.
|
|
11
12
|
*/
|
|
12
13
|
function getStickyHeaderHeight(view, targetPos) {
|
|
@@ -24,7 +25,13 @@ function getStickyHeaderHeight(view, targetPos) {
|
|
|
24
25
|
if (!isHeaderRow) {
|
|
25
26
|
return undefined;
|
|
26
27
|
}
|
|
27
|
-
var
|
|
28
|
+
var firstRowPos = outermostTable.pos + 1;
|
|
29
|
+
|
|
30
|
+
// do not add sticky header offset if the target is in the sticky header
|
|
31
|
+
if (firstRow && targetPos >= firstRowPos && targetPos < firstRowPos + firstRow.nodeSize && (0, _fg.fg)('platform_editor_ai_show_diff_patch_2')) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
var firstRowDom = view.nodeDOM(firstRowPos);
|
|
28
35
|
if (!(firstRowDom instanceof HTMLTableRowElement)) {
|
|
29
36
|
return undefined;
|
|
30
37
|
}
|
|
@@ -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 = "
|
|
27
|
+
var packageVersion = "124.0.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -13,7 +13,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
13
13
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
14
14
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
15
15
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
16
|
-
const packageVersion = "
|
|
16
|
+
const packageVersion = "124.0.0";
|
|
17
17
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
18
18
|
// Remove URL as it has UGC
|
|
19
19
|
// Ignored via go/ees007
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
|
+
|
|
2
4
|
/**
|
|
3
|
-
* Returns the outermost table's sticky header height for `targetPos`
|
|
5
|
+
* Returns the outermost table's sticky header height for `targetPos` if its a table row and eligible to be
|
|
4
6
|
* sticky. Table headers at least half the viewport high intentionally do not become sticky.
|
|
5
7
|
*/
|
|
6
8
|
export function getStickyHeaderHeight(view, targetPos) {
|
|
@@ -18,7 +20,13 @@ export function getStickyHeaderHeight(view, targetPos) {
|
|
|
18
20
|
if (!isHeaderRow) {
|
|
19
21
|
return undefined;
|
|
20
22
|
}
|
|
21
|
-
const
|
|
23
|
+
const firstRowPos = outermostTable.pos + 1;
|
|
24
|
+
|
|
25
|
+
// do not add sticky header offset if the target is in the sticky header
|
|
26
|
+
if (firstRow && targetPos >= firstRowPos && targetPos < firstRowPos + firstRow.nodeSize && fg('platform_editor_ai_show_diff_patch_2')) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
const firstRowDom = view.nodeDOM(firstRowPos);
|
|
22
30
|
if (!(firstRowDom instanceof HTMLTableRowElement)) {
|
|
23
31
|
return undefined;
|
|
24
32
|
}
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "
|
|
17
|
+
const packageVersion = "124.0.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -19,7 +19,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
19
19
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
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 = "
|
|
22
|
+
var packageVersion = "124.0.0";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
|
+
|
|
2
4
|
/**
|
|
3
|
-
* Returns the outermost table's sticky header height for `targetPos`
|
|
5
|
+
* Returns the outermost table's sticky header height for `targetPos` if its a table row and eligible to be
|
|
4
6
|
* sticky. Table headers at least half the viewport high intentionally do not become sticky.
|
|
5
7
|
*/
|
|
6
8
|
export function getStickyHeaderHeight(view, targetPos) {
|
|
@@ -18,7 +20,13 @@ export function getStickyHeaderHeight(view, targetPos) {
|
|
|
18
20
|
if (!isHeaderRow) {
|
|
19
21
|
return undefined;
|
|
20
22
|
}
|
|
21
|
-
var
|
|
23
|
+
var firstRowPos = outermostTable.pos + 1;
|
|
24
|
+
|
|
25
|
+
// do not add sticky header offset if the target is in the sticky header
|
|
26
|
+
if (firstRow && targetPos >= firstRowPos && targetPos < firstRowPos + firstRow.nodeSize && fg('platform_editor_ai_show_diff_patch_2')) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
var firstRowDom = view.nodeDOM(firstRowPos);
|
|
22
30
|
if (!(firstRowDom instanceof HTMLTableRowElement)) {
|
|
23
31
|
return undefined;
|
|
24
32
|
}
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "
|
|
24
|
+
var packageVersion = "124.0.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -16,17 +16,5 @@ type AIQuickPromptApiErrorAEP = OperationalAEP<ACTION.API_ERROR, ACTION_SUBJECT.
|
|
|
16
16
|
experienceName: string;
|
|
17
17
|
statusCode?: number;
|
|
18
18
|
}>;
|
|
19
|
-
type
|
|
20
|
-
ccSmartsErrorType?: string;
|
|
21
|
-
ccSmartsOk: boolean;
|
|
22
|
-
ccSmartsShouldImprove: boolean;
|
|
23
|
-
ccSmartsStatus?: number;
|
|
24
|
-
convoAiErrorType?: string;
|
|
25
|
-
convoAiOk: boolean;
|
|
26
|
-
convoAiShouldImprove: boolean;
|
|
27
|
-
convoAiStatus?: number;
|
|
28
|
-
experienceName: string;
|
|
29
|
-
source: 'shouldImproveWritingShadowComparison';
|
|
30
|
-
}>;
|
|
31
|
-
export type AIQuickPromptEventPayload = AIQuickPromptDisplayedAEP | AIQuickPromptDismissedAEP | AIQuickPromptTriggeredAEP | AIQuickPromptApiErrorAEP | AIQuickPromptShadowComparisonDivergedAEP;
|
|
19
|
+
export type AIQuickPromptEventPayload = AIQuickPromptDisplayedAEP | AIQuickPromptDismissedAEP | AIQuickPromptTriggeredAEP | AIQuickPromptApiErrorAEP;
|
|
32
20
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
2
|
/**
|
|
3
|
-
* Returns the outermost table's sticky header height for `targetPos`
|
|
3
|
+
* Returns the outermost table's sticky header height for `targetPos` if its a table row and eligible to be
|
|
4
4
|
* sticky. Table headers at least half the viewport high intentionally do not become sticky.
|
|
5
5
|
*/
|
|
6
6
|
export declare function getStickyHeaderHeight(view: EditorView, targetPos: number): number | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "125.0.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/"
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
"@atlaskit/analytics-listeners": "^11.4.0",
|
|
36
36
|
"@atlaskit/analytics-namespaced-context": "^8.2.0",
|
|
37
37
|
"@atlaskit/analytics-next": "^12.5.0",
|
|
38
|
-
"@atlaskit/atlassian-context": "^
|
|
38
|
+
"@atlaskit/atlassian-context": "^2.0.0",
|
|
39
39
|
"@atlaskit/browser-apis": "^1.2.0",
|
|
40
40
|
"@atlaskit/button": "^25.4.0",
|
|
41
41
|
"@atlaskit/codemod-utils": "^5.1.0",
|
|
42
42
|
"@atlaskit/css": "^1.1.0",
|
|
43
43
|
"@atlaskit/custom-steps": "^1.1.0",
|
|
44
44
|
"@atlaskit/dropdown-menu": "^18.3.0",
|
|
45
|
-
"@atlaskit/editor-json-transformer": "^
|
|
45
|
+
"@atlaskit/editor-json-transformer": "^10.0.0",
|
|
46
46
|
"@atlaskit/editor-palette": "^3.5.0",
|
|
47
47
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
48
48
|
"@atlaskit/editor-shared-styles": "^4.3.0",
|
|
@@ -51,20 +51,20 @@
|
|
|
51
51
|
"@atlaskit/editor-toolbar-model": "^1.2.0",
|
|
52
52
|
"@atlaskit/editor-ui-control-model": "^2.10.0",
|
|
53
53
|
"@atlaskit/emoji": "^72.4.0",
|
|
54
|
-
"@atlaskit/feature-gate-js-client": "^
|
|
55
|
-
"@atlaskit/icon": "^
|
|
54
|
+
"@atlaskit/feature-gate-js-client": "^7.0.0",
|
|
55
|
+
"@atlaskit/icon": "^38.0.0",
|
|
56
56
|
"@atlaskit/link": "^5.1.0",
|
|
57
|
-
"@atlaskit/link-datasource": "^
|
|
57
|
+
"@atlaskit/link-datasource": "^7.0.0",
|
|
58
58
|
"@atlaskit/link-picker": "^6.9.0",
|
|
59
|
-
"@atlaskit/media-card": "^
|
|
60
|
-
"@atlaskit/media-client": "^
|
|
61
|
-
"@atlaskit/media-client-react": "^
|
|
59
|
+
"@atlaskit/media-card": "^82.0.0",
|
|
60
|
+
"@atlaskit/media-client": "^39.0.0",
|
|
61
|
+
"@atlaskit/media-client-react": "^7.0.0",
|
|
62
62
|
"@atlaskit/media-common": "^14.6.0",
|
|
63
|
-
"@atlaskit/media-file-preview": "^
|
|
64
|
-
"@atlaskit/media-picker": "^
|
|
65
|
-
"@atlaskit/media-ui": "^
|
|
63
|
+
"@atlaskit/media-file-preview": "^2.0.0",
|
|
64
|
+
"@atlaskit/media-picker": "^73.0.0",
|
|
65
|
+
"@atlaskit/media-ui": "^31.0.0",
|
|
66
66
|
"@atlaskit/media-viewer": "^54.8.0",
|
|
67
|
-
"@atlaskit/mention": "^
|
|
67
|
+
"@atlaskit/mention": "^30.0.0",
|
|
68
68
|
"@atlaskit/menu": "^11.0.0",
|
|
69
69
|
"@atlaskit/object": "^2.3.0",
|
|
70
70
|
"@atlaskit/onboarding": "^15.4.0",
|
|
@@ -73,19 +73,19 @@
|
|
|
73
73
|
"@atlaskit/platform-feature-flags-react": "^1.2.0",
|
|
74
74
|
"@atlaskit/popper": "^9.4.0",
|
|
75
75
|
"@atlaskit/primitives": "^22.5.0",
|
|
76
|
-
"@atlaskit/profilecard": "^
|
|
76
|
+
"@atlaskit/profilecard": "^27.0.0",
|
|
77
77
|
"@atlaskit/prosemirror-history": "^1.2.0",
|
|
78
78
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
79
|
-
"@atlaskit/react-ufo": "^
|
|
79
|
+
"@atlaskit/react-ufo": "^8.0.0",
|
|
80
80
|
"@atlaskit/section-message": "^10.2.0",
|
|
81
|
-
"@atlaskit/smart-card": "^
|
|
82
|
-
"@atlaskit/smart-user-picker": "^
|
|
81
|
+
"@atlaskit/smart-card": "^46.0.0",
|
|
82
|
+
"@atlaskit/smart-user-picker": "^12.0.0",
|
|
83
83
|
"@atlaskit/spinner": "^20.4.0",
|
|
84
84
|
"@atlaskit/task-decision": "^21.10.0",
|
|
85
85
|
"@atlaskit/teams-app-config": "^3.1.0",
|
|
86
86
|
"@atlaskit/textfield": "^10.2.0",
|
|
87
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
88
|
-
"@atlaskit/tokens": "^
|
|
87
|
+
"@atlaskit/tmp-editor-statsig": "^205.0.0",
|
|
88
|
+
"@atlaskit/tokens": "^20.0.0",
|
|
89
89
|
"@atlaskit/tooltip": "^24.3.0",
|
|
90
90
|
"@atlaskit/width-detector": "^7.2.0",
|
|
91
91
|
"@babel/runtime": "^7.0.0",
|
|
@@ -118,13 +118,13 @@
|
|
|
118
118
|
"w3c-keyname": "^2.1.8"
|
|
119
119
|
},
|
|
120
120
|
"peerDependencies": {
|
|
121
|
-
"@atlaskit/media-core": "^
|
|
121
|
+
"@atlaskit/media-core": "^39.0.0",
|
|
122
122
|
"react": "^18.2.0 || ^19.2.0",
|
|
123
123
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
124
124
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
125
125
|
},
|
|
126
126
|
"devDependencies": {
|
|
127
|
-
"@atlaskit/media-core": "^
|
|
127
|
+
"@atlaskit/media-core": "^39.0.0",
|
|
128
128
|
"@atlassian/a11y-jest-testing": "^0.17.0",
|
|
129
129
|
"@atlassian/experiment-test-utils": "^0.2.0",
|
|
130
130
|
"@atlassian/feature-flags-test-utils": "^1.3.0",
|
|
@@ -207,9 +207,6 @@
|
|
|
207
207
|
"jfp_a11y_fix_create_issue_no_results_link_focus": {
|
|
208
208
|
"type": "boolean"
|
|
209
209
|
},
|
|
210
|
-
"platform_editor_fix_unsubscribe_of_provider": {
|
|
211
|
-
"type": "boolean"
|
|
212
|
-
},
|
|
213
210
|
"platform_editor_legacy_content_macro_visual_update": {
|
|
214
211
|
"type": "boolean"
|
|
215
212
|
},
|