@atlaskit/editor-core 219.9.12 → 219.9.14
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 +18 -0
- package/dist/cjs/actions/index.js +28 -28
- package/dist/cjs/composable-editor/hooks/useProviders.js +6 -6
- package/dist/cjs/composable-editor/utils/sendDurationAnalytics.js +4 -4
- package/dist/cjs/create-editor/ErrorBoundary.js +11 -11
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +7 -2
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbarNext.js +6 -3
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +6 -6
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +2 -2
- package/dist/cjs/ui/EditorContentContainer/styles/syncBlockStyles.js +2 -2
- package/dist/cjs/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +2 -2
- package/dist/cjs/ui/Toolbar/Toolbar.js +3 -1
- package/dist/cjs/utils/action.js +5 -5
- package/dist/cjs/utils/extensions.js +4 -4
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +1 -0
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +7 -2
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbarNext.js +6 -3
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +6 -6
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +2 -2
- package/dist/es2019/ui/EditorContentContainer/styles/syncBlockStyles.js +2 -2
- package/dist/es2019/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +2 -2
- package/dist/es2019/ui/Toolbar/Toolbar.js +3 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/actions/index.js +28 -28
- package/dist/esm/composable-editor/hooks/useProviders.js +6 -6
- package/dist/esm/composable-editor/utils/sendDurationAnalytics.js +4 -4
- package/dist/esm/create-editor/ErrorBoundary.js +11 -11
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +1 -0
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +7 -2
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbarNext.js +6 -3
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +6 -6
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +2 -2
- package/dist/esm/ui/EditorContentContainer/styles/syncBlockStyles.js +2 -2
- package/dist/esm/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +2 -2
- package/dist/esm/ui/Toolbar/Toolbar.js +3 -1
- package/dist/esm/utils/action.js +5 -5
- package/dist/esm/utils/extensions.js +4 -4
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/Appearance/FullPage/FullPageToolbarNext.d.ts +2 -1
- package/dist/types/ui/Toolbar/Toolbar.d.ts +2 -2
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbarNext.d.ts +2 -1
- package/dist/types-ts4.5/ui/Toolbar/Toolbar.d.ts +2 -2
- package/package.json +17 -17
package/dist/esm/utils/action.js
CHANGED
|
@@ -15,19 +15,19 @@ export function getEditorValueWithMedia(_x) {
|
|
|
15
15
|
function _getEditorValueWithMedia() {
|
|
16
16
|
_getEditorValueWithMedia = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(editorView) {
|
|
17
17
|
var mediaPluginState;
|
|
18
|
-
return _regeneratorRuntime.wrap(function
|
|
18
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
19
19
|
while (1) switch (_context.prev = _context.next) {
|
|
20
20
|
case 0:
|
|
21
21
|
mediaPluginState = editorView.state && mediaPluginKey.getState(editorView.state);
|
|
22
22
|
if (!(mediaPluginState && mediaPluginState.waitForMediaUpload)) {
|
|
23
|
-
_context.next =
|
|
23
|
+
_context.next = 1;
|
|
24
24
|
break;
|
|
25
25
|
}
|
|
26
|
-
_context.next =
|
|
26
|
+
_context.next = 1;
|
|
27
27
|
return mediaPluginState.waitForPendingTasks();
|
|
28
|
-
case
|
|
28
|
+
case 1:
|
|
29
29
|
return _context.abrupt("return", editorView.state.doc);
|
|
30
|
-
case
|
|
30
|
+
case 2:
|
|
31
31
|
case "end":
|
|
32
32
|
return _context.stop();
|
|
33
33
|
}
|
|
@@ -78,12 +78,12 @@ export function extensionProviderToQuickInsertProvider(_x, _x2, _x3, _x4) {
|
|
|
78
78
|
function _extensionProviderToQuickInsertProvider() {
|
|
79
79
|
_extensionProviderToQuickInsertProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(extensionProvider, editorActions, apiRef, createAnalyticsEvent) {
|
|
80
80
|
var extensions;
|
|
81
|
-
return _regeneratorRuntime.wrap(function
|
|
81
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
82
82
|
while (1) switch (_context.prev = _context.next) {
|
|
83
83
|
case 0:
|
|
84
|
-
_context.next =
|
|
84
|
+
_context.next = 1;
|
|
85
85
|
return extensionProvider.getExtensions();
|
|
86
|
-
case
|
|
86
|
+
case 1:
|
|
87
87
|
extensions = _context.sent;
|
|
88
88
|
return _context.abrupt("return", {
|
|
89
89
|
getItems: function getItems() {
|
|
@@ -161,7 +161,7 @@ function _extensionProviderToQuickInsertProvider() {
|
|
|
161
161
|
return Promise.all(quickInsertItems);
|
|
162
162
|
}
|
|
163
163
|
});
|
|
164
|
-
case
|
|
164
|
+
case 2:
|
|
165
165
|
case "end":
|
|
166
166
|
return _context.stop();
|
|
167
167
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "219.9.
|
|
2
|
+
export var version = "219.9.13";
|
|
@@ -13,6 +13,7 @@ type FullPageToolbarNextProps = {
|
|
|
13
13
|
beforeIcon?: React.ReactNode;
|
|
14
14
|
customPrimaryToolbarComponents?: PrimaryToolbarComponents;
|
|
15
15
|
disabled: boolean;
|
|
16
|
+
disabledWithoutInteractionLogic?: boolean;
|
|
16
17
|
editorAPI?: FullPageToolbarPluginAPI;
|
|
17
18
|
editorView?: EditorView;
|
|
18
19
|
popupsBoundariesElement?: HTMLElement;
|
|
@@ -25,5 +26,5 @@ type FullPageToolbarPluginAPI = PublicPluginAPI<[
|
|
|
25
26
|
ToolbarPlugin,
|
|
26
27
|
OptionalPlugin<MarkdownModePlugin>
|
|
27
28
|
]>;
|
|
28
|
-
export declare const FullPageToolbarNext: ({ editorAPI, beforeIcon, toolbarDockingPosition, editorView, popupsMountPoint, showKeyline, customPrimaryToolbarComponents, disabled, }: FullPageToolbarNextProps) => JSX.Element;
|
|
29
|
+
export declare const FullPageToolbarNext: ({ editorAPI, beforeIcon, toolbarDockingPosition, editorView, popupsMountPoint, showKeyline, customPrimaryToolbarComponents, disabled, disabledWithoutInteractionLogic, }: FullPageToolbarNextProps) => JSX.Element;
|
|
29
30
|
export {};
|
|
@@ -13,7 +13,7 @@ import type { ToolbarProps } from './toolbar-types';
|
|
|
13
13
|
* If making changes to this component please ensure to also update `<ToolbarNext />`.
|
|
14
14
|
*/
|
|
15
15
|
export declare const Toolbar: (props: ToolbarProps) => JSX.Element;
|
|
16
|
-
type NewToolbarProps = Pick<ToolbarUIContextType, 'popupsMountPoint' | 'popupsBoundariesElement' | 'popupsScrollableElement' | 'isDisabled'> & Pick<EditorToolbarContextType, 'editorAppearance'> & {
|
|
16
|
+
type NewToolbarProps = Pick<ToolbarUIContextType, 'popupsMountPoint' | 'popupsBoundariesElement' | 'popupsScrollableElement' | 'isDisabled' | 'disabledWithoutInteractionLogic'> & Pick<EditorToolbarContextType, 'editorAppearance'> & {
|
|
17
17
|
components: RegisterComponent[];
|
|
18
18
|
editorAPI?: PublicPluginAPI<[ToolbarPlugin, OptionalPlugin<MarkdownModePlugin>]>;
|
|
19
19
|
editorView?: EditorView;
|
|
@@ -25,5 +25,5 @@ type NewToolbarProps = Pick<ToolbarUIContextType, 'popupsMountPoint' | 'popupsBo
|
|
|
25
25
|
*
|
|
26
26
|
* The majority of components UI should use `@atlaskit/editor-toolbar` components.
|
|
27
27
|
*/
|
|
28
|
-
export declare const ToolbarNext: ({ toolbar, components, editorView, editorAPI, popupsMountPoint, editorAppearance, popupsBoundariesElement, popupsScrollableElement, isDisabled, }: NewToolbarProps) => React.JSX.Element;
|
|
28
|
+
export declare const ToolbarNext: ({ toolbar, components, editorView, editorAPI, popupsMountPoint, editorAppearance, popupsBoundariesElement, popupsScrollableElement, isDisabled, disabledWithoutInteractionLogic, }: NewToolbarProps) => React.JSX.Element;
|
|
29
29
|
export {};
|
|
@@ -13,6 +13,7 @@ type FullPageToolbarNextProps = {
|
|
|
13
13
|
beforeIcon?: React.ReactNode;
|
|
14
14
|
customPrimaryToolbarComponents?: PrimaryToolbarComponents;
|
|
15
15
|
disabled: boolean;
|
|
16
|
+
disabledWithoutInteractionLogic?: boolean;
|
|
16
17
|
editorAPI?: FullPageToolbarPluginAPI;
|
|
17
18
|
editorView?: EditorView;
|
|
18
19
|
popupsBoundariesElement?: HTMLElement;
|
|
@@ -25,5 +26,5 @@ type FullPageToolbarPluginAPI = PublicPluginAPI<[
|
|
|
25
26
|
ToolbarPlugin,
|
|
26
27
|
OptionalPlugin<MarkdownModePlugin>
|
|
27
28
|
]>;
|
|
28
|
-
export declare const FullPageToolbarNext: ({ editorAPI, beforeIcon, toolbarDockingPosition, editorView, popupsMountPoint, showKeyline, customPrimaryToolbarComponents, disabled, }: FullPageToolbarNextProps) => JSX.Element;
|
|
29
|
+
export declare const FullPageToolbarNext: ({ editorAPI, beforeIcon, toolbarDockingPosition, editorView, popupsMountPoint, showKeyline, customPrimaryToolbarComponents, disabled, disabledWithoutInteractionLogic, }: FullPageToolbarNextProps) => JSX.Element;
|
|
29
30
|
export {};
|
|
@@ -13,7 +13,7 @@ import type { ToolbarProps } from './toolbar-types';
|
|
|
13
13
|
* If making changes to this component please ensure to also update `<ToolbarNext />`.
|
|
14
14
|
*/
|
|
15
15
|
export declare const Toolbar: (props: ToolbarProps) => JSX.Element;
|
|
16
|
-
type NewToolbarProps = Pick<ToolbarUIContextType, 'popupsMountPoint' | 'popupsBoundariesElement' | 'popupsScrollableElement' | 'isDisabled'> & Pick<EditorToolbarContextType, 'editorAppearance'> & {
|
|
16
|
+
type NewToolbarProps = Pick<ToolbarUIContextType, 'popupsMountPoint' | 'popupsBoundariesElement' | 'popupsScrollableElement' | 'isDisabled' | 'disabledWithoutInteractionLogic'> & Pick<EditorToolbarContextType, 'editorAppearance'> & {
|
|
17
17
|
components: RegisterComponent[];
|
|
18
18
|
editorAPI?: PublicPluginAPI<[
|
|
19
19
|
ToolbarPlugin,
|
|
@@ -28,5 +28,5 @@ type NewToolbarProps = Pick<ToolbarUIContextType, 'popupsMountPoint' | 'popupsBo
|
|
|
28
28
|
*
|
|
29
29
|
* The majority of components UI should use `@atlaskit/editor-toolbar` components.
|
|
30
30
|
*/
|
|
31
|
-
export declare const ToolbarNext: ({ toolbar, components, editorView, editorAPI, popupsMountPoint, editorAppearance, popupsBoundariesElement, popupsScrollableElement, isDisabled, }: NewToolbarProps) => React.JSX.Element;
|
|
31
|
+
export declare const ToolbarNext: ({ toolbar, components, editorView, editorAPI, popupsMountPoint, editorAppearance, popupsBoundariesElement, popupsScrollableElement, isDisabled, disabledWithoutInteractionLogic, }: NewToolbarProps) => React.JSX.Element;
|
|
32
32
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "219.9.
|
|
3
|
+
"version": "219.9.14",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@atlaskit/activity-provider": "^2.6.0",
|
|
49
|
-
"@atlaskit/adf-schema": "^52.
|
|
49
|
+
"@atlaskit/adf-schema": "^52.15.0",
|
|
50
50
|
"@atlaskit/afm-i18n-platform-editor-editor-core": "2.10.0",
|
|
51
51
|
"@atlaskit/analytics-namespaced-context": "^7.3.0",
|
|
52
52
|
"@atlaskit/analytics-next": "^11.2.0",
|
|
53
53
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
54
54
|
"@atlaskit/button": "^23.11.0",
|
|
55
55
|
"@atlaskit/css": "^0.19.0",
|
|
56
|
-
"@atlaskit/editor-json-transformer": "^8.
|
|
56
|
+
"@atlaskit/editor-json-transformer": "^8.33.0",
|
|
57
57
|
"@atlaskit/editor-performance-metrics": "^2.2.0",
|
|
58
58
|
"@atlaskit/editor-plugin-connectivity": "^10.1.0",
|
|
59
59
|
"@atlaskit/editor-plugin-quick-insert": "^10.4.0",
|
|
@@ -62,21 +62,21 @@
|
|
|
62
62
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
63
63
|
"@atlaskit/editor-shared-styles": "^3.11.0",
|
|
64
64
|
"@atlaskit/editor-ssr-renderer": "^5.2.0",
|
|
65
|
-
"@atlaskit/editor-toolbar": "^1.
|
|
65
|
+
"@atlaskit/editor-toolbar": "^1.9.0",
|
|
66
66
|
"@atlaskit/editor-toolbar-model": "^0.5.0",
|
|
67
|
-
"@atlaskit/emoji": "^70.
|
|
67
|
+
"@atlaskit/emoji": "^70.14.0",
|
|
68
68
|
"@atlaskit/feature-gate-js-client": "^5.7.0",
|
|
69
69
|
"@atlaskit/icon": "^35.3.0",
|
|
70
70
|
"@atlaskit/link": "^3.4.0",
|
|
71
|
-
"@atlaskit/media-card": "^80.
|
|
71
|
+
"@atlaskit/media-card": "^80.6.0",
|
|
72
72
|
"@atlaskit/mention": "^26.0.0",
|
|
73
73
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
74
74
|
"@atlaskit/platform-feature-flags-react": "^0.5.0",
|
|
75
|
-
"@atlaskit/react-ufo": "^6.
|
|
75
|
+
"@atlaskit/react-ufo": "^6.4.0",
|
|
76
76
|
"@atlaskit/task-decision": "^20.1.0",
|
|
77
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
78
|
-
"@atlaskit/tokens": "^13.
|
|
79
|
-
"@atlaskit/tooltip": "^22.
|
|
77
|
+
"@atlaskit/tmp-editor-statsig": "^85.0.0",
|
|
78
|
+
"@atlaskit/tokens": "^13.1.0",
|
|
79
|
+
"@atlaskit/tooltip": "^22.5.0",
|
|
80
80
|
"@atlaskit/width-detector": "^5.1.0",
|
|
81
81
|
"@babel/runtime": "^7.0.0",
|
|
82
82
|
"@compiled/react": "^0.20.0",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"uuid": "^3.1.0"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
95
|
-
"@atlaskit/editor-common": "^114.
|
|
95
|
+
"@atlaskit/editor-common": "^114.51.0",
|
|
96
96
|
"@atlaskit/link-provider": "^4.4.0",
|
|
97
97
|
"@atlaskit/media-core": "^37.1.0",
|
|
98
98
|
"react": "^18.2.0",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"@af/editor-libra": "workspace:^",
|
|
104
104
|
"@af/suppress-react-warnings": "workspace:^",
|
|
105
105
|
"@af/visual-regression": "workspace:^",
|
|
106
|
-
"@atlaskit/adf-utils": "^19.
|
|
106
|
+
"@atlaskit/adf-utils": "^19.32.0",
|
|
107
107
|
"@atlaskit/analytics-listeners": "^10.1.0",
|
|
108
108
|
"@atlaskit/code": "^17.5.0",
|
|
109
109
|
"@atlaskit/collab-provider": "^19.0.0",
|
|
@@ -121,21 +121,21 @@
|
|
|
121
121
|
"@atlaskit/modal-dialog": "^15.2.0",
|
|
122
122
|
"@atlaskit/popper": "^7.2.0",
|
|
123
123
|
"@atlaskit/portal": "^5.5.0",
|
|
124
|
-
"@atlaskit/renderer": "^131.
|
|
124
|
+
"@atlaskit/renderer": "^131.2.0",
|
|
125
125
|
"@atlaskit/section-message": "^8.13.0",
|
|
126
126
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
127
|
-
"@atlaskit/toggle": "^16.
|
|
127
|
+
"@atlaskit/toggle": "^16.1.0",
|
|
128
128
|
"@atlaskit/util-data-test": "^18.6.0",
|
|
129
129
|
"@atlassian/a11y-jest-testing": "^0.11.0",
|
|
130
130
|
"@atlassian/a11y-playwright-testing": "^0.10.0",
|
|
131
131
|
"@atlassian/adf-schema-json": "^1.33.0",
|
|
132
|
-
"@atlassian/editor-rovo-bridge": "^8.
|
|
132
|
+
"@atlassian/editor-rovo-bridge": "^8.16.0",
|
|
133
133
|
"@atlassian/feature-flags-test-utils": "^1.1.0",
|
|
134
134
|
"@atlassian/react-compiler-gating": "workspace:^",
|
|
135
|
-
"@atlassian/search-client": "^1.
|
|
135
|
+
"@atlassian/search-client": "^1.10.0",
|
|
136
136
|
"@atlassian/search-provider": "^11.1.0",
|
|
137
137
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
138
|
-
"@atlassian/user-profile-card": "^1.
|
|
138
|
+
"@atlassian/user-profile-card": "^1.8.0",
|
|
139
139
|
"@emotion/jest": "^11.8.0",
|
|
140
140
|
"@testing-library/react": "^16.3.0",
|
|
141
141
|
"@types/diff": "^5.0.2",
|