@atlaskit/editor-core 208.8.0 → 209.0.1
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 +49 -0
- package/afm-cc/tsconfig.json +3 -3
- package/afm-jira/tsconfig.json +3 -3
- package/afm-post-office/tsconfig.json +3 -3
- package/dist/cjs/create-editor/ReactEditorView.js +2 -10
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +2 -10
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +2 -10
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/composable-editor/editor-internal.d.ts +0 -1
- package/dist/types/create-editor/ReactEditorView/useDispatchTransaction.d.ts +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +81 -922
- package/dist/types/create-editor/editorStateNotificationPlugin.d.ts +2 -2
- package/dist/types/create-editor/get-ui-component.d.ts +0 -1
- package/dist/types/editor-appearances/FullPageEditor.d.ts +1 -1
- package/dist/types/presets/universal.d.ts +79 -925
- package/dist/types/presets/useUniversalPreset.d.ts +81 -922
- package/dist/types/test-utils.d.ts +1 -1
- package/dist/types/types/with-appearance-component.d.ts +0 -1
- package/dist/types/ui/Addon/types.d.ts +0 -1
- package/dist/types/ui/Appearance/Chromeless.d.ts +7 -7
- package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +7 -7
- package/dist/types/ui/Appearance/FullPage/getEditorViewModeSync.d.ts +1 -1
- package/dist/types/ui/CollapsedEditor/index.d.ts +1 -1
- package/dist/types/ui/ContentStyles/ai-panels.d.ts +1 -1
- package/dist/types/ui/ContentStyles/layout.d.ts +1 -1
- package/dist/types/ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper.d.ts +0 -1
- package/dist/types/ui/Toolbar/Toolbar.d.ts +0 -1
- package/dist/types/utils/is-full-page.d.ts +1 -1
- package/dist/types/utils/prepare-extension-provider.d.ts +1 -1
- package/dist/types/utils/prepare-quick-insert-provider.d.ts +0 -1
- package/dist/types-ts4.5/composable-editor/editor-internal.d.ts +0 -1
- package/dist/types-ts4.5/create-editor/ReactEditorView/useDispatchTransaction.d.ts +1 -1
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +106 -1075
- package/dist/types-ts4.5/create-editor/editorStateNotificationPlugin.d.ts +2 -2
- package/dist/types-ts4.5/create-editor/get-ui-component.d.ts +0 -1
- package/dist/types-ts4.5/editor-appearances/FullPageEditor.d.ts +1 -1
- package/dist/types-ts4.5/presets/universal.d.ts +104 -1078
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +106 -1075
- package/dist/types-ts4.5/test-utils.d.ts +1 -1
- package/dist/types-ts4.5/types/with-appearance-component.d.ts +0 -1
- package/dist/types-ts4.5/ui/Addon/types.d.ts +0 -1
- package/dist/types-ts4.5/ui/Appearance/Chromeless.d.ts +7 -7
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +7 -7
- package/dist/types-ts4.5/ui/Appearance/FullPage/getEditorViewModeSync.d.ts +1 -1
- package/dist/types-ts4.5/ui/CollapsedEditor/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/ContentStyles/ai-panels.d.ts +1 -1
- package/dist/types-ts4.5/ui/ContentStyles/layout.d.ts +1 -1
- package/dist/types-ts4.5/ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper.d.ts +0 -1
- package/dist/types-ts4.5/ui/Toolbar/Toolbar.d.ts +0 -1
- package/dist/types-ts4.5/utils/is-full-page.d.ts +1 -1
- package/dist/types-ts4.5/utils/prepare-extension-provider.d.ts +1 -1
- package/dist/types-ts4.5/utils/prepare-quick-insert-provider.d.ts +0 -1
- package/docs/0-intro.tsx +2 -2
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,54 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 209.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#172541](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/172541)
|
|
8
|
+
[`6da45cbd2c77f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6da45cbd2c77f) -
|
|
9
|
+
clean up FF for batch media update attributes
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 209.0.0
|
|
13
|
+
|
|
14
|
+
### Major Changes
|
|
15
|
+
|
|
16
|
+
- [#181024](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/181024)
|
|
17
|
+
[`8e80c487ca307`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8e80c487ca307) - ##
|
|
18
|
+
Make `@atlaskit/editor-common` a peer dependency
|
|
19
|
+
|
|
20
|
+
**WHAT:** `@atlaskit/editor-common` has been moved from `dependencies` to `peerDependencies` in
|
|
21
|
+
all editor plugin packages.
|
|
22
|
+
|
|
23
|
+
**WHY:** This change ensures that only a single version of `@atlaskit/editor-common` is used in
|
|
24
|
+
consuming applications, preventing issues caused by multiple versions of singleton libraries (such
|
|
25
|
+
as context mismatches or duplicated state). This is especially important for packages that rely on
|
|
26
|
+
shared context or singletons.
|
|
27
|
+
|
|
28
|
+
**HOW TO ADJUST:**
|
|
29
|
+
|
|
30
|
+
- Consumers must now explicitly install `@atlaskit/editor-common` in their own project if they use
|
|
31
|
+
any of these editor plugins.
|
|
32
|
+
- Ensure the version you install matches the version required by the plugins.
|
|
33
|
+
- You can use the
|
|
34
|
+
[`check-peer-dependencies`](https://www.npmjs.com/package/check-peer-dependencies) package to
|
|
35
|
+
verify that all required peer dependencies are installed and compatible.
|
|
36
|
+
- Example install command:
|
|
37
|
+
```
|
|
38
|
+
npm install @atlaskit/editor-common
|
|
39
|
+
```
|
|
40
|
+
or
|
|
41
|
+
```
|
|
42
|
+
yarn add @atlaskit/editor-common
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**Note:** This is a breaking change. If `@atlaskit/editor-common` is not installed at the
|
|
46
|
+
application level, you may see errors or unexpected behavior.
|
|
47
|
+
|
|
48
|
+
### Patch Changes
|
|
49
|
+
|
|
50
|
+
- Updated dependencies
|
|
51
|
+
|
|
3
52
|
## 208.8.0
|
|
4
53
|
|
|
5
54
|
### Minor Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -33,9 +33,6 @@
|
|
|
33
33
|
{
|
|
34
34
|
"path": "../../../design-system/css/afm-cc/tsconfig.json"
|
|
35
35
|
},
|
|
36
|
-
{
|
|
37
|
-
"path": "../../editor-common/afm-cc/tsconfig.json"
|
|
38
|
-
},
|
|
39
36
|
{
|
|
40
37
|
"path": "../../editor-json-transformer/afm-cc/tsconfig.json"
|
|
41
38
|
},
|
|
@@ -93,6 +90,9 @@
|
|
|
93
90
|
{
|
|
94
91
|
"path": "../../../design-system/width-detector/afm-cc/tsconfig.json"
|
|
95
92
|
},
|
|
93
|
+
{
|
|
94
|
+
"path": "../../editor-common/afm-cc/tsconfig.json"
|
|
95
|
+
},
|
|
96
96
|
{
|
|
97
97
|
"path": "../../../linking-platform/link-provider/afm-cc/tsconfig.json"
|
|
98
98
|
},
|
package/afm-jira/tsconfig.json
CHANGED
|
@@ -33,9 +33,6 @@
|
|
|
33
33
|
{
|
|
34
34
|
"path": "../../../design-system/css/afm-jira/tsconfig.json"
|
|
35
35
|
},
|
|
36
|
-
{
|
|
37
|
-
"path": "../../editor-common/afm-jira/tsconfig.json"
|
|
38
|
-
},
|
|
39
36
|
{
|
|
40
37
|
"path": "../../editor-json-transformer/afm-jira/tsconfig.json"
|
|
41
38
|
},
|
|
@@ -93,6 +90,9 @@
|
|
|
93
90
|
{
|
|
94
91
|
"path": "../../../design-system/width-detector/afm-jira/tsconfig.json"
|
|
95
92
|
},
|
|
93
|
+
{
|
|
94
|
+
"path": "../../editor-common/afm-jira/tsconfig.json"
|
|
95
|
+
},
|
|
96
96
|
{
|
|
97
97
|
"path": "../../../linking-platform/link-provider/afm-jira/tsconfig.json"
|
|
98
98
|
},
|
|
@@ -33,9 +33,6 @@
|
|
|
33
33
|
{
|
|
34
34
|
"path": "../../../design-system/css/afm-post-office/tsconfig.json"
|
|
35
35
|
},
|
|
36
|
-
{
|
|
37
|
-
"path": "../../editor-common/afm-post-office/tsconfig.json"
|
|
38
|
-
},
|
|
39
36
|
{
|
|
40
37
|
"path": "../../editor-json-transformer/afm-post-office/tsconfig.json"
|
|
41
38
|
},
|
|
@@ -93,6 +90,9 @@
|
|
|
93
90
|
{
|
|
94
91
|
"path": "../../../design-system/width-detector/afm-post-office/tsconfig.json"
|
|
95
92
|
},
|
|
93
|
+
{
|
|
94
|
+
"path": "../../editor-common/afm-post-office/tsconfig.json"
|
|
95
|
+
},
|
|
96
96
|
{
|
|
97
97
|
"path": "../../../linking-platform/link-provider/afm-post-office/tsconfig.json"
|
|
98
98
|
},
|
|
@@ -30,7 +30,6 @@ var _view = require("@atlaskit/editor-prosemirror/view");
|
|
|
30
30
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
31
31
|
var _interactionMetrics = require("@atlaskit/react-ufo/interaction-metrics");
|
|
32
32
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
33
|
-
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
34
33
|
var _useProviders = require("../composable-editor/hooks/useProviders");
|
|
35
34
|
var _featureFlagsFromProps = require("../utils/feature-flags-from-props");
|
|
36
35
|
var _getNodesCount = require("../utils/getNodesCount");
|
|
@@ -581,12 +580,7 @@ function ReactEditorView(props) {
|
|
|
581
580
|
}
|
|
582
581
|
}
|
|
583
582
|
if (!viewRef.current && node) {
|
|
584
|
-
|
|
585
|
-
if ((0, _experiments.editorExperiment)('platform_editor_nodevisibility', true, {
|
|
586
|
-
exposure: false
|
|
587
|
-
})) {
|
|
588
|
-
(0, _nodeVisibility.nodeVisibilityManager)(node).initialiseNodeObserver();
|
|
589
|
-
}
|
|
583
|
+
(0, _nodeVisibility.nodeVisibilityManager)(node).initialiseNodeObserver();
|
|
590
584
|
var view = createEditorView(node);
|
|
591
585
|
if ((0, _platformFeatureFlags.fg)('platform_editor_reduce_scroll_jump_on_editor_start')) {
|
|
592
586
|
if (mitigateScrollJump) {
|
|
@@ -662,9 +656,7 @@ function ReactEditorView(props) {
|
|
|
662
656
|
} else {
|
|
663
657
|
viewRef.current.destroy(); // Destroys the dom node & all node views
|
|
664
658
|
}
|
|
665
|
-
|
|
666
|
-
(0, _nodeVisibility.nodeVisibilityManager)(viewRef.current.dom).disconnect();
|
|
667
|
-
}
|
|
659
|
+
(0, _nodeVisibility.nodeVisibilityManager)(viewRef.current.dom).disconnect();
|
|
668
660
|
viewRef.current = undefined;
|
|
669
661
|
}
|
|
670
662
|
}, [createEditorView, onEditorCreated, eventDispatcher, shouldFocus, __livePage, onEditorDestroyed, handleAnalyticsEvent, mitigateScrollJump]);
|
|
@@ -18,7 +18,6 @@ import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
18
18
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
19
|
import { abortAll, getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
|
|
20
20
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
21
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
22
21
|
import { useProviders } from '../composable-editor/hooks/useProviders';
|
|
23
22
|
import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
|
|
24
23
|
import { getNodesCount } from '../utils/getNodesCount';
|
|
@@ -530,12 +529,7 @@ export function ReactEditorView(props) {
|
|
|
530
529
|
}
|
|
531
530
|
}
|
|
532
531
|
if (!viewRef.current && node) {
|
|
533
|
-
|
|
534
|
-
if (editorExperiment('platform_editor_nodevisibility', true, {
|
|
535
|
-
exposure: false
|
|
536
|
-
})) {
|
|
537
|
-
nodeVisibilityManager(node).initialiseNodeObserver();
|
|
538
|
-
}
|
|
532
|
+
nodeVisibilityManager(node).initialiseNodeObserver();
|
|
539
533
|
const view = createEditorView(node);
|
|
540
534
|
if (fg('platform_editor_reduce_scroll_jump_on_editor_start')) {
|
|
541
535
|
if (mitigateScrollJump) {
|
|
@@ -609,9 +603,7 @@ export function ReactEditorView(props) {
|
|
|
609
603
|
} else {
|
|
610
604
|
viewRef.current.destroy(); // Destroys the dom node & all node views
|
|
611
605
|
}
|
|
612
|
-
|
|
613
|
-
nodeVisibilityManager(viewRef.current.dom).disconnect();
|
|
614
|
-
}
|
|
606
|
+
nodeVisibilityManager(viewRef.current.dom).disconnect();
|
|
615
607
|
viewRef.current = undefined;
|
|
616
608
|
}
|
|
617
609
|
}, [createEditorView, onEditorCreated, eventDispatcher, shouldFocus, __livePage, onEditorDestroyed, handleAnalyticsEvent, mitigateScrollJump]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "
|
|
2
|
+
export const version = "209.0.0";
|
|
@@ -26,7 +26,6 @@ import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
26
26
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
27
27
|
import { abortAll, getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
|
|
28
28
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
29
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
30
29
|
import { useProviders } from '../composable-editor/hooks/useProviders';
|
|
31
30
|
import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
|
|
32
31
|
import { getNodesCount } from '../utils/getNodesCount';
|
|
@@ -571,12 +570,7 @@ export function ReactEditorView(props) {
|
|
|
571
570
|
}
|
|
572
571
|
}
|
|
573
572
|
if (!viewRef.current && node) {
|
|
574
|
-
|
|
575
|
-
if (editorExperiment('platform_editor_nodevisibility', true, {
|
|
576
|
-
exposure: false
|
|
577
|
-
})) {
|
|
578
|
-
nodeVisibilityManager(node).initialiseNodeObserver();
|
|
579
|
-
}
|
|
573
|
+
nodeVisibilityManager(node).initialiseNodeObserver();
|
|
580
574
|
var view = createEditorView(node);
|
|
581
575
|
if (fg('platform_editor_reduce_scroll_jump_on_editor_start')) {
|
|
582
576
|
if (mitigateScrollJump) {
|
|
@@ -652,9 +646,7 @@ export function ReactEditorView(props) {
|
|
|
652
646
|
} else {
|
|
653
647
|
viewRef.current.destroy(); // Destroys the dom node & all node views
|
|
654
648
|
}
|
|
655
|
-
|
|
656
|
-
nodeVisibilityManager(viewRef.current.dom).disconnect();
|
|
657
|
-
}
|
|
649
|
+
nodeVisibilityManager(viewRef.current.dom).disconnect();
|
|
658
650
|
viewRef.current = undefined;
|
|
659
651
|
}
|
|
660
652
|
}, [createEditorView, onEditorCreated, eventDispatcher, shouldFocus, __livePage, onEditorDestroyed, handleAnalyticsEvent, mitigateScrollJump]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "
|
|
2
|
+
export var version = "209.0.0";
|
|
@@ -8,6 +8,6 @@ export declare const useDispatchTransaction: ({ onChange, dispatchAnalyticsEvent
|
|
|
8
8
|
onChange: EditorOnChangeHandler | undefined;
|
|
9
9
|
dispatchAnalyticsEvent: (payload: AnalyticsEventPayload) => void;
|
|
10
10
|
onEditorViewUpdated: (params: EditorViewStateUpdatedCallbackProps) => void;
|
|
11
|
-
isRemoteReplaceDocumentTransaction?: (
|
|
11
|
+
isRemoteReplaceDocumentTransaction?: (tr: Transaction) => boolean;
|
|
12
12
|
}) => DispatchTransaction;
|
|
13
13
|
export {};
|