@atlaskit/editor-core 219.9.13 → 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 +12 -0
- 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/Toolbar/Toolbar.js +3 -1
- 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/Toolbar/Toolbar.js +3 -1
- package/dist/es2019/version-wrapper.js +1 -1
- 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/Toolbar/Toolbar.js +3 -1
- 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 +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 219.9.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e8d58a0240934`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e8d58a0240934) -
|
|
8
|
+
EDITOR-7249: Scope the markdown-mode hide-ProseMirror rule to the main editor so the footer
|
|
9
|
+
page-comment editor is no longer hidden/un-typeable when adding a comment in Syntax view
|
|
10
|
+
- [`4f322a101cf47`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4f322a101cf47) -
|
|
11
|
+
Adds a disabledWithoutInteractionLogic prop to the toolbar to selectively enable some buttons
|
|
12
|
+
before editor interaction
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 219.9.13
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -172,6 +172,7 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
|
|
|
172
172
|
}
|
|
173
173
|
}, !isEditorToolbarHidden && (isToolbarAIFCEnabled ? (0, _react2.jsx)(_FullPageToolbarNext.FullPageToolbarNext, {
|
|
174
174
|
disabled: !!props.disabled || !hasHadInteraction && (0, _expValEquals.expValEquals)('platform_editor_default_toolbar_state', 'isEnabled', true),
|
|
175
|
+
disabledWithoutInteractionLogic: !!props.disabled,
|
|
175
176
|
toolbarDockingPosition: toolbarDockingPosition !== null && toolbarDockingPosition !== void 0 ? toolbarDockingPosition : toolbarDocking,
|
|
176
177
|
beforeIcon: props.primaryToolbarIconBefore,
|
|
177
178
|
editorAPI: editorAPI,
|
|
@@ -61,15 +61,20 @@ var editorContentAreaProsemirrorStyle = (0, _react2.css)({
|
|
|
61
61
|
marginBottom: "var(--ds-space-300, 24px)"
|
|
62
62
|
})
|
|
63
63
|
});
|
|
64
|
+
|
|
65
|
+
/*
|
|
66
|
+
EDITOR-7249: Scope to the main editor's ProseMirror (direct child) so nested
|
|
67
|
+
editors like the footer page-comment composer aren't hidden in Syntax view.
|
|
68
|
+
*/
|
|
64
69
|
var hideEditorContentAreaProsemirrorStyle = (0, _react2.css)({
|
|
65
70
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
66
|
-
'& .ProseMirror': {
|
|
71
|
+
'& > .ak-editor-content-area > .ProseMirror': {
|
|
67
72
|
display: 'none'
|
|
68
73
|
}
|
|
69
74
|
});
|
|
70
75
|
var hideEditorContentAreaProsemirrorWithAttributeStyle = (0, _react2.css)({
|
|
71
76
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
72
|
-
'&[data-markdown-mode-hide-prosemirror="true"] .ProseMirror': {
|
|
77
|
+
'&[data-markdown-mode-hide-prosemirror="true"] > .ak-editor-content-area > .ProseMirror': {
|
|
73
78
|
display: 'none'
|
|
74
79
|
}
|
|
75
80
|
});
|
|
@@ -80,7 +80,8 @@ var FullPageToolbarNext = exports.FullPageToolbarNext = function FullPageToolbar
|
|
|
80
80
|
popupsMountPoint = _ref4.popupsMountPoint,
|
|
81
81
|
showKeyline = _ref4.showKeyline,
|
|
82
82
|
customPrimaryToolbarComponents = _ref4.customPrimaryToolbarComponents,
|
|
83
|
-
disabled = _ref4.disabled
|
|
83
|
+
disabled = _ref4.disabled,
|
|
84
|
+
disabledWithoutInteractionLogic = _ref4.disabledWithoutInteractionLogic;
|
|
84
85
|
var components = editorAPI === null || editorAPI === void 0 || (_editorAPI$toolbar = editorAPI.toolbar) === null || _editorAPI$toolbar === void 0 ? void 0 : _editorAPI$toolbar.actions.getComponents();
|
|
85
86
|
var runtimeOverride = (0, _hooks.useSharedPluginStateWithSelector)(editorAPI, ['toolbar'], function (states) {
|
|
86
87
|
var _states$toolbarState;
|
|
@@ -148,7 +149,8 @@ var FullPageToolbarNext = exports.FullPageToolbarNext = function FullPageToolbar
|
|
|
148
149
|
editorAPI: editorAPI,
|
|
149
150
|
popupsMountPoint: mountPoint,
|
|
150
151
|
editorAppearance: "full-page",
|
|
151
|
-
isDisabled: disabled
|
|
152
|
+
isDisabled: disabled,
|
|
153
|
+
disabledWithoutInteractionLogic: disabledWithoutInteractionLogic
|
|
152
154
|
}) : /*#__PURE__*/_react.default.createElement(_ExcludeFromHydration.default, null, primaryToolbarDockingConfigEnabled && components && visibleToolbarComponents && (0, _toolbar2.isToolbar)(toolbar) && editorView && !(0, _coreUtils.isSSR)() && /*#__PURE__*/_react.default.createElement(_Toolbar.ToolbarNext, {
|
|
153
155
|
toolbar: toolbar,
|
|
154
156
|
components: visibleToolbarComponents,
|
|
@@ -156,7 +158,8 @@ var FullPageToolbarNext = exports.FullPageToolbarNext = function FullPageToolbar
|
|
|
156
158
|
editorAPI: editorAPI,
|
|
157
159
|
popupsMountPoint: mountPoint,
|
|
158
160
|
editorAppearance: "full-page",
|
|
159
|
-
isDisabled: disabled
|
|
161
|
+
isDisabled: disabled,
|
|
162
|
+
disabledWithoutInteractionLogic: disabledWithoutInteractionLogic
|
|
160
163
|
}))), /*#__PURE__*/_react.default.createElement(SecondChildWrapper, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
161
164
|
className: (0, _runtime.ax)([styles.customToolbarWrapperStyle])
|
|
162
165
|
}, !!customPrimaryToolbarComponents && 'before' in customPrimaryToolbarComponents && /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -70,7 +70,8 @@ var ToolbarNext = exports.ToolbarNext = function ToolbarNext(_ref) {
|
|
|
70
70
|
editorAppearance = _ref.editorAppearance,
|
|
71
71
|
popupsBoundariesElement = _ref.popupsBoundariesElement,
|
|
72
72
|
popupsScrollableElement = _ref.popupsScrollableElement,
|
|
73
|
-
isDisabled = _ref.isDisabled
|
|
73
|
+
isDisabled = _ref.isDisabled,
|
|
74
|
+
disabledWithoutInteractionLogic = _ref.disabledWithoutInteractionLogic;
|
|
74
75
|
var _usePluginState = usePluginState(editorAPI),
|
|
75
76
|
connectivityStateMode = _usePluginState.connectivityStateMode,
|
|
76
77
|
editorViewMode = _usePluginState.editorViewMode,
|
|
@@ -98,6 +99,7 @@ var ToolbarNext = exports.ToolbarNext = function ToolbarNext(_ref) {
|
|
|
98
99
|
}, /*#__PURE__*/_react.default.createElement(_toolbar.EditorToolbarUIProvider, {
|
|
99
100
|
api: editorAPI,
|
|
100
101
|
isDisabled: isDisabled,
|
|
102
|
+
disabledWithoutInteractionLogic: disabledWithoutInteractionLogic,
|
|
101
103
|
popupsMountPoint: popupsMountPoint,
|
|
102
104
|
popupsBoundariesElement: popupsBoundariesElement,
|
|
103
105
|
popupsScrollableElement: popupsScrollableElement,
|
|
@@ -157,6 +157,7 @@ export const FullPageEditor = props => {
|
|
|
157
157
|
}
|
|
158
158
|
}, !isEditorToolbarHidden && (isToolbarAIFCEnabled ? jsx(FullPageToolbarNext, {
|
|
159
159
|
disabled: !!props.disabled || !hasHadInteraction && expValEquals('platform_editor_default_toolbar_state', 'isEnabled', true),
|
|
160
|
+
disabledWithoutInteractionLogic: !!props.disabled,
|
|
160
161
|
toolbarDockingPosition: (_toolbarDockingPositi = toolbarDockingPosition) !== null && _toolbarDockingPositi !== void 0 ? _toolbarDockingPositi : toolbarDocking,
|
|
161
162
|
beforeIcon: props.primaryToolbarIconBefore,
|
|
162
163
|
editorAPI: editorAPI,
|
|
@@ -52,15 +52,20 @@ const editorContentAreaProsemirrorStyle = css({
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
|
+
|
|
56
|
+
/*
|
|
57
|
+
EDITOR-7249: Scope to the main editor's ProseMirror (direct child) so nested
|
|
58
|
+
editors like the footer page-comment composer aren't hidden in Syntax view.
|
|
59
|
+
*/
|
|
55
60
|
const hideEditorContentAreaProsemirrorStyle = css({
|
|
56
61
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
57
|
-
'& .ProseMirror': {
|
|
62
|
+
'& > .ak-editor-content-area > .ProseMirror': {
|
|
58
63
|
display: 'none'
|
|
59
64
|
}
|
|
60
65
|
});
|
|
61
66
|
const hideEditorContentAreaProsemirrorWithAttributeStyle = css({
|
|
62
67
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
63
|
-
'&[data-markdown-mode-hide-prosemirror="true"] .ProseMirror': {
|
|
68
|
+
'&[data-markdown-mode-hide-prosemirror="true"] > .ak-editor-content-area > .ProseMirror': {
|
|
64
69
|
display: 'none'
|
|
65
70
|
}
|
|
66
71
|
});
|
|
@@ -71,7 +71,8 @@ export const FullPageToolbarNext = ({
|
|
|
71
71
|
popupsMountPoint,
|
|
72
72
|
showKeyline,
|
|
73
73
|
customPrimaryToolbarComponents,
|
|
74
|
-
disabled
|
|
74
|
+
disabled,
|
|
75
|
+
disabledWithoutInteractionLogic
|
|
75
76
|
}) => {
|
|
76
77
|
var _editorAPI$toolbar, _editorAPI$toolbar2, _useToolbarPortal;
|
|
77
78
|
const components = editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$toolbar = editorAPI.toolbar) === null || _editorAPI$toolbar === void 0 ? void 0 : _editorAPI$toolbar.actions.getComponents();
|
|
@@ -138,7 +139,8 @@ export const FullPageToolbarNext = ({
|
|
|
138
139
|
editorAPI: editorAPI,
|
|
139
140
|
popupsMountPoint: mountPoint,
|
|
140
141
|
editorAppearance: "full-page",
|
|
141
|
-
isDisabled: disabled
|
|
142
|
+
isDisabled: disabled,
|
|
143
|
+
disabledWithoutInteractionLogic: disabledWithoutInteractionLogic
|
|
142
144
|
}) : /*#__PURE__*/React.createElement(ExcludeFromHydration, null, primaryToolbarDockingConfigEnabled && components && visibleToolbarComponents && isToolbar(toolbar) && editorView && !isSSR() && /*#__PURE__*/React.createElement(ToolbarNext, {
|
|
143
145
|
toolbar: toolbar,
|
|
144
146
|
components: visibleToolbarComponents,
|
|
@@ -146,7 +148,8 @@ export const FullPageToolbarNext = ({
|
|
|
146
148
|
editorAPI: editorAPI,
|
|
147
149
|
popupsMountPoint: mountPoint,
|
|
148
150
|
editorAppearance: "full-page",
|
|
149
|
-
isDisabled: disabled
|
|
151
|
+
isDisabled: disabled,
|
|
152
|
+
disabledWithoutInteractionLogic: disabledWithoutInteractionLogic
|
|
150
153
|
}))), /*#__PURE__*/React.createElement(SecondChildWrapper, null, /*#__PURE__*/React.createElement("div", {
|
|
151
154
|
className: ax([styles.customToolbarWrapperStyle])
|
|
152
155
|
}, !!customPrimaryToolbarComponents && 'before' in customPrimaryToolbarComponents && /*#__PURE__*/React.createElement("div", {
|
|
@@ -62,7 +62,8 @@ export const ToolbarNext = ({
|
|
|
62
62
|
editorAppearance,
|
|
63
63
|
popupsBoundariesElement,
|
|
64
64
|
popupsScrollableElement,
|
|
65
|
-
isDisabled
|
|
65
|
+
isDisabled,
|
|
66
|
+
disabledWithoutInteractionLogic
|
|
66
67
|
}) => {
|
|
67
68
|
const {
|
|
68
69
|
connectivityStateMode,
|
|
@@ -90,6 +91,7 @@ export const ToolbarNext = ({
|
|
|
90
91
|
}, /*#__PURE__*/React.createElement(EditorToolbarUIProvider, {
|
|
91
92
|
api: editorAPI,
|
|
92
93
|
isDisabled: isDisabled,
|
|
94
|
+
disabledWithoutInteractionLogic: disabledWithoutInteractionLogic,
|
|
93
95
|
popupsMountPoint: popupsMountPoint,
|
|
94
96
|
popupsBoundariesElement: popupsBoundariesElement,
|
|
95
97
|
popupsScrollableElement: popupsScrollableElement,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "219.9.
|
|
2
|
+
export const version = "219.9.13";
|
|
@@ -162,6 +162,7 @@ export var FullPageEditor = function FullPageEditor(props) {
|
|
|
162
162
|
}
|
|
163
163
|
}, !isEditorToolbarHidden && (isToolbarAIFCEnabled ? jsx(FullPageToolbarNext, {
|
|
164
164
|
disabled: !!props.disabled || !hasHadInteraction && expValEquals('platform_editor_default_toolbar_state', 'isEnabled', true),
|
|
165
|
+
disabledWithoutInteractionLogic: !!props.disabled,
|
|
165
166
|
toolbarDockingPosition: toolbarDockingPosition !== null && toolbarDockingPosition !== void 0 ? toolbarDockingPosition : toolbarDocking,
|
|
166
167
|
beforeIcon: props.primaryToolbarIconBefore,
|
|
167
168
|
editorAPI: editorAPI,
|
|
@@ -51,15 +51,20 @@ var editorContentAreaProsemirrorStyle = css({
|
|
|
51
51
|
marginBottom: "var(--ds-space-300, 24px)"
|
|
52
52
|
})
|
|
53
53
|
});
|
|
54
|
+
|
|
55
|
+
/*
|
|
56
|
+
EDITOR-7249: Scope to the main editor's ProseMirror (direct child) so nested
|
|
57
|
+
editors like the footer page-comment composer aren't hidden in Syntax view.
|
|
58
|
+
*/
|
|
54
59
|
var hideEditorContentAreaProsemirrorStyle = css({
|
|
55
60
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
56
|
-
'& .ProseMirror': {
|
|
61
|
+
'& > .ak-editor-content-area > .ProseMirror': {
|
|
57
62
|
display: 'none'
|
|
58
63
|
}
|
|
59
64
|
});
|
|
60
65
|
var hideEditorContentAreaProsemirrorWithAttributeStyle = css({
|
|
61
66
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
62
|
-
'&[data-markdown-mode-hide-prosemirror="true"] .ProseMirror': {
|
|
67
|
+
'&[data-markdown-mode-hide-prosemirror="true"] > .ak-editor-content-area > .ProseMirror': {
|
|
63
68
|
display: 'none'
|
|
64
69
|
}
|
|
65
70
|
});
|
|
@@ -71,7 +71,8 @@ export var FullPageToolbarNext = function FullPageToolbarNext(_ref4) {
|
|
|
71
71
|
popupsMountPoint = _ref4.popupsMountPoint,
|
|
72
72
|
showKeyline = _ref4.showKeyline,
|
|
73
73
|
customPrimaryToolbarComponents = _ref4.customPrimaryToolbarComponents,
|
|
74
|
-
disabled = _ref4.disabled
|
|
74
|
+
disabled = _ref4.disabled,
|
|
75
|
+
disabledWithoutInteractionLogic = _ref4.disabledWithoutInteractionLogic;
|
|
75
76
|
var components = editorAPI === null || editorAPI === void 0 || (_editorAPI$toolbar = editorAPI.toolbar) === null || _editorAPI$toolbar === void 0 ? void 0 : _editorAPI$toolbar.actions.getComponents();
|
|
76
77
|
var runtimeOverride = useSharedPluginStateWithSelector(editorAPI, ['toolbar'], function (states) {
|
|
77
78
|
var _states$toolbarState;
|
|
@@ -139,7 +140,8 @@ export var FullPageToolbarNext = function FullPageToolbarNext(_ref4) {
|
|
|
139
140
|
editorAPI: editorAPI,
|
|
140
141
|
popupsMountPoint: mountPoint,
|
|
141
142
|
editorAppearance: "full-page",
|
|
142
|
-
isDisabled: disabled
|
|
143
|
+
isDisabled: disabled,
|
|
144
|
+
disabledWithoutInteractionLogic: disabledWithoutInteractionLogic
|
|
143
145
|
}) : /*#__PURE__*/React.createElement(ExcludeFromHydration, null, primaryToolbarDockingConfigEnabled && components && visibleToolbarComponents && isToolbar(toolbar) && editorView && !isSSR() && /*#__PURE__*/React.createElement(ToolbarNext, {
|
|
144
146
|
toolbar: toolbar,
|
|
145
147
|
components: visibleToolbarComponents,
|
|
@@ -147,7 +149,8 @@ export var FullPageToolbarNext = function FullPageToolbarNext(_ref4) {
|
|
|
147
149
|
editorAPI: editorAPI,
|
|
148
150
|
popupsMountPoint: mountPoint,
|
|
149
151
|
editorAppearance: "full-page",
|
|
150
|
-
isDisabled: disabled
|
|
152
|
+
isDisabled: disabled,
|
|
153
|
+
disabledWithoutInteractionLogic: disabledWithoutInteractionLogic
|
|
151
154
|
}))), /*#__PURE__*/React.createElement(SecondChildWrapper, null, /*#__PURE__*/React.createElement("div", {
|
|
152
155
|
className: ax([styles.customToolbarWrapperStyle])
|
|
153
156
|
}, !!customPrimaryToolbarComponents && 'before' in customPrimaryToolbarComponents && /*#__PURE__*/React.createElement("div", {
|
|
@@ -62,7 +62,8 @@ export var ToolbarNext = function ToolbarNext(_ref) {
|
|
|
62
62
|
editorAppearance = _ref.editorAppearance,
|
|
63
63
|
popupsBoundariesElement = _ref.popupsBoundariesElement,
|
|
64
64
|
popupsScrollableElement = _ref.popupsScrollableElement,
|
|
65
|
-
isDisabled = _ref.isDisabled
|
|
65
|
+
isDisabled = _ref.isDisabled,
|
|
66
|
+
disabledWithoutInteractionLogic = _ref.disabledWithoutInteractionLogic;
|
|
66
67
|
var _usePluginState = usePluginState(editorAPI),
|
|
67
68
|
connectivityStateMode = _usePluginState.connectivityStateMode,
|
|
68
69
|
editorViewMode = _usePluginState.editorViewMode,
|
|
@@ -90,6 +91,7 @@ export var ToolbarNext = function ToolbarNext(_ref) {
|
|
|
90
91
|
}, /*#__PURE__*/React.createElement(EditorToolbarUIProvider, {
|
|
91
92
|
api: editorAPI,
|
|
92
93
|
isDisabled: isDisabled,
|
|
94
|
+
disabledWithoutInteractionLogic: disabledWithoutInteractionLogic,
|
|
93
95
|
popupsMountPoint: popupsMountPoint,
|
|
94
96
|
popupsBoundariesElement: popupsBoundariesElement,
|
|
95
97
|
popupsScrollableElement: popupsScrollableElement,
|
|
@@ -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/"
|
|
@@ -62,9 +62,9 @@
|
|
|
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",
|
|
@@ -72,7 +72,7 @@
|
|
|
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
77
|
"@atlaskit/tmp-editor-statsig": "^85.0.0",
|
|
78
78
|
"@atlaskit/tokens": "^13.1.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",
|
|
@@ -124,18 +124,18 @@
|
|
|
124
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",
|