@atlaskit/editor-common 116.44.2 → 116.45.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 +19 -0
- package/codemods/117.0.0-upgrade-react-peer-dependencies.ts +36 -4
- package/dist/cjs/messages/syncBlock.js +0 -5
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/messages/syncBlock.js +0 -5
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/messages/syncBlock.js +0 -5
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/messages/syncBlock.d.ts +0 -5
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 116.45.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`51c33ef5349b6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/51c33ef5349b6) -
|
|
8
|
+
Enable compatibility with React 19.2.0
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 116.44.3
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [`1207d5bc1e287`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1207d5bc1e287) -
|
|
19
|
+
Show zero synced locations immediately for newly inserted source blocks
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 116.44.2
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -2,9 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
import type { API, FileInfo, Options } from 'jscodeshift';
|
|
4
4
|
|
|
5
|
-
const NEW_PEER_DEP_RANGE = '^18.2.0 || ^19.
|
|
6
|
-
const NEW_DEV_DEP_RANGE = '^19.
|
|
5
|
+
const NEW_PEER_DEP_RANGE = '^18.2.0 || ^19.2.0'; // Ensure backwards compatible while rest of Platform migrates
|
|
6
|
+
const NEW_DEV_DEP_RANGE = '^19.2.0'; // Ensure everyone is using React 19 types from now on
|
|
7
7
|
const VALID_ORIGINAL_RANGES = [NEW_PEER_DEP_RANGE, NEW_DEV_DEP_RANGE, 'root:*', '^18.2.0'];
|
|
8
|
+
|
|
9
|
+
const EXCLUDED_PACKAGE_JSON_PATHS = [
|
|
10
|
+
'packages/editor/renderer/package.json',
|
|
11
|
+
'packages/editor/editor-plugin-block-controls-tests/package.json',
|
|
12
|
+
'packages/editor/editor-plugin-block-menu-tests/package.json',
|
|
13
|
+
'packages/editor/editor-plugin-media-tests/package.json',
|
|
14
|
+
'packages/editor/editor-plugin-ai/package.json',
|
|
15
|
+
'packages/editor/editor-common-tests/package.json',
|
|
16
|
+
'packages/editor/editor-plugin-find-replace-tests/package.json',
|
|
17
|
+
'packages/editor/editor-core/package.json',
|
|
18
|
+
'packages/editor/editor-plugin-ai-tests/package.json',
|
|
19
|
+
'packages/editor/editor-plugin-extension-tests/package.json',
|
|
20
|
+
'packages/editor/editor-plugin-synced-block-tests/package.json',
|
|
21
|
+
'packages/editor/generative-ai-modal/package.json',
|
|
22
|
+
'packages/editor/editor-plugin-floating-toolbar-tests/package.json',
|
|
23
|
+
'packages/editor/editor-plugin-show-diff-tests/package.json',
|
|
24
|
+
'packages/editor/editor-plugin-table-tests/package.json',
|
|
25
|
+
'packages/editor/editor-plugin-annotation-tests/package.json',
|
|
26
|
+
'packages/editor/editor-plugin-quick-insert-tests/package.json',
|
|
27
|
+
'packages/editor/editor-plugin-highlight-tests/package.json',
|
|
28
|
+
'packages/editor/editor-referentiality/package.json',
|
|
29
|
+
'packages/editor/editor-plugin-paste-tests/package.json',
|
|
30
|
+
'packages/editor/editor-synced-block-renderer-tests/package.json',
|
|
31
|
+
];
|
|
32
|
+
|
|
8
33
|
type DependencyName = 'react' | 'react-dom' | '@types/react' | '@types/react-dom';
|
|
9
34
|
|
|
10
35
|
const updateDependency = (
|
|
@@ -29,9 +54,16 @@ const updateDependency = (
|
|
|
29
54
|
dependencies[dependencyName] = newValue;
|
|
30
55
|
};
|
|
31
56
|
|
|
32
|
-
const NODE_MODULES_REGEX = /[\\/]node_modules[\\/]/u;
|
|
33
57
|
const transformer = (fileInfo: FileInfo, _api: API, _options: Options): string => {
|
|
34
|
-
|
|
58
|
+
const isExcluded = EXCLUDED_PACKAGE_JSON_PATHS.some((excludedPath) =>
|
|
59
|
+
fileInfo.path.endsWith(excludedPath),
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
if (
|
|
63
|
+
!fileInfo.path.endsWith('package.json') ||
|
|
64
|
+
fileInfo.path.includes('/node_modules/') ||
|
|
65
|
+
isExcluded
|
|
66
|
+
) {
|
|
35
67
|
return fileInfo.source;
|
|
36
68
|
}
|
|
37
69
|
|
|
@@ -301,11 +301,6 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntl.defineMessage
|
|
|
301
301
|
defaultMessage: 'Synced locations ({count})',
|
|
302
302
|
description: 'Toolbar button label that shows the number of references to the selected synced block.'
|
|
303
303
|
},
|
|
304
|
-
syncedLocationDropdownNone: {
|
|
305
|
-
id: 'fabric.editor.syncedLocationDropdownNone.ai-non-final',
|
|
306
|
-
defaultMessage: 'None',
|
|
307
|
-
description: 'Toolbar reference count shown when a synced block has no references.'
|
|
308
|
-
},
|
|
309
304
|
syncedLocationDropdownLoading: {
|
|
310
305
|
id: 'fabric.editor.syncedLocationDropdownLoading.ai-non-final',
|
|
311
306
|
defaultMessage: 'Loading synced locations',
|
|
@@ -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.44.
|
|
31
|
+
var packageVersion = "116.44.3";
|
|
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 = "116.44.
|
|
27
|
+
var packageVersion = "116.44.3";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -295,11 +295,6 @@ export const syncBlockMessages = defineMessages({
|
|
|
295
295
|
defaultMessage: 'Synced locations ({count})',
|
|
296
296
|
description: 'Toolbar button label that shows the number of references to the selected synced block.'
|
|
297
297
|
},
|
|
298
|
-
syncedLocationDropdownNone: {
|
|
299
|
-
id: 'fabric.editor.syncedLocationDropdownNone.ai-non-final',
|
|
300
|
-
defaultMessage: 'None',
|
|
301
|
-
description: 'Toolbar reference count shown when a synced block has no references.'
|
|
302
|
-
},
|
|
303
298
|
syncedLocationDropdownLoading: {
|
|
304
299
|
id: 'fabric.editor.syncedLocationDropdownLoading.ai-non-final',
|
|
305
300
|
defaultMessage: 'Loading synced locations',
|
|
@@ -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.44.
|
|
17
|
+
const packageVersion = "116.44.3";
|
|
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 = "116.44.
|
|
17
|
+
const packageVersion = "116.44.3";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -295,11 +295,6 @@ export var syncBlockMessages = defineMessages({
|
|
|
295
295
|
defaultMessage: 'Synced locations ({count})',
|
|
296
296
|
description: 'Toolbar button label that shows the number of references to the selected synced block.'
|
|
297
297
|
},
|
|
298
|
-
syncedLocationDropdownNone: {
|
|
299
|
-
id: 'fabric.editor.syncedLocationDropdownNone.ai-non-final',
|
|
300
|
-
defaultMessage: 'None',
|
|
301
|
-
description: 'Toolbar reference count shown when a synced block has no references.'
|
|
302
|
-
},
|
|
303
298
|
syncedLocationDropdownLoading: {
|
|
304
299
|
id: 'fabric.editor.syncedLocationDropdownLoading.ai-non-final',
|
|
305
300
|
defaultMessage: 'Loading synced locations',
|
|
@@ -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.44.
|
|
23
|
+
var packageVersion = "116.44.3";
|
|
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 = "116.44.
|
|
24
|
+
var packageVersion = "116.44.3";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -379,11 +379,6 @@ export declare const syncBlockMessages: {
|
|
|
379
379
|
description: string;
|
|
380
380
|
id: string;
|
|
381
381
|
};
|
|
382
|
-
syncedLocationDropdownNone: {
|
|
383
|
-
defaultMessage: string;
|
|
384
|
-
description: string;
|
|
385
|
-
id: string;
|
|
386
|
-
};
|
|
387
382
|
syncedLocationDropdownNoResults: {
|
|
388
383
|
defaultMessage: string;
|
|
389
384
|
description: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "116.
|
|
3
|
+
"version": "116.45.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/"
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/activity-provider": "^3.0.0",
|
|
32
|
-
"@atlaskit/adf-schema": "^56.
|
|
33
|
-
"@atlaskit/adf-utils": "^20.
|
|
32
|
+
"@atlaskit/adf-schema": "^56.2.0",
|
|
33
|
+
"@atlaskit/adf-utils": "^20.4.0",
|
|
34
34
|
"@atlaskit/afm-i18n-platform-editor-editor-common": "2.200.0",
|
|
35
35
|
"@atlaskit/analytics-listeners": "^11.1.0",
|
|
36
36
|
"@atlaskit/analytics-namespaced-context": "^8.1.0",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"@atlaskit/css": "^1.0.0",
|
|
43
43
|
"@atlaskit/custom-steps": "^1.0.0",
|
|
44
44
|
"@atlaskit/dropdown-menu": "^17.2.0",
|
|
45
|
-
"@atlaskit/editor-json-transformer": "^9.
|
|
46
|
-
"@atlaskit/editor-palette": "^3.
|
|
45
|
+
"@atlaskit/editor-json-transformer": "^9.2.0",
|
|
46
|
+
"@atlaskit/editor-palette": "^3.2.0",
|
|
47
47
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
48
48
|
"@atlaskit/editor-shared-styles": "^4.0.0",
|
|
49
49
|
"@atlaskit/editor-tables": "^3.0.0",
|
|
50
|
-
"@atlaskit/editor-toolbar": "^2.
|
|
51
|
-
"@atlaskit/editor-toolbar-model": "^1.
|
|
50
|
+
"@atlaskit/editor-toolbar": "^2.4.0",
|
|
51
|
+
"@atlaskit/editor-toolbar-model": "^1.2.0",
|
|
52
52
|
"@atlaskit/emoji": "^71.15.0",
|
|
53
53
|
"@atlaskit/icon": "^37.2.0",
|
|
54
54
|
"@atlaskit/link": "^5.0.0",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@atlaskit/platform-feature-flags-react": "^1.1.0",
|
|
71
71
|
"@atlaskit/primitives": "^22.2.0",
|
|
72
72
|
"@atlaskit/profilecard": "^26.14.0",
|
|
73
|
-
"@atlaskit/prosemirror-history": "^1.
|
|
73
|
+
"@atlaskit/prosemirror-history": "^1.1.0",
|
|
74
74
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
75
75
|
"@atlaskit/react-ufo": "^7.3.0",
|
|
76
76
|
"@atlaskit/section-message": "^9.2.0",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"@atlaskit/task-decision": "^21.8.0",
|
|
81
81
|
"@atlaskit/teams-app-config": "^2.1.0",
|
|
82
82
|
"@atlaskit/textfield": "^9.1.0",
|
|
83
|
-
"@atlaskit/tmp-editor-statsig": "^135.
|
|
83
|
+
"@atlaskit/tmp-editor-statsig": "^135.7.0",
|
|
84
84
|
"@atlaskit/tokens": "^16.3.0",
|
|
85
85
|
"@atlaskit/tooltip": "^24.0.0",
|
|
86
86
|
"@atlaskit/width-detector": "^6.2.0",
|
|
@@ -115,8 +115,8 @@
|
|
|
115
115
|
},
|
|
116
116
|
"peerDependencies": {
|
|
117
117
|
"@atlaskit/media-core": "^38.0.0",
|
|
118
|
-
"react": "^18.2.0",
|
|
119
|
-
"react-dom": "^18.2.0",
|
|
118
|
+
"react": "^18.2.0 || ^19.2.0",
|
|
119
|
+
"react-dom": "^18.2.0 || ^19.2.0",
|
|
120
120
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
121
121
|
},
|
|
122
122
|
"devDependencies": {
|
|
@@ -137,8 +137,8 @@
|
|
|
137
137
|
"@types/react-virtualized": "^9.18.12",
|
|
138
138
|
"enzyme": "^3.10.0",
|
|
139
139
|
"raf-stub": "^2.0.1",
|
|
140
|
-
"react": "^
|
|
141
|
-
"react-dom": "^
|
|
140
|
+
"react": "^19.2.0",
|
|
141
|
+
"react-dom": "^19.2.0",
|
|
142
142
|
"react-intl": "^7.0.0",
|
|
143
143
|
"react-test-renderer": "^18.2.0",
|
|
144
144
|
"sinon": "^2.2.0"
|