@atlaskit/editor-core 210.1.7 → 210.1.8
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 +8 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +2 -0
- package/dist/cjs/ui/Toolbar/Toolbar.js +6 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +2 -0
- package/dist/es2019/ui/Toolbar/Toolbar.js +6 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +2 -0
- package/dist/esm/ui/Toolbar/Toolbar.js +6 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/Appearance/FullPage/FullPageToolbarNext.d.ts +2 -0
- package/dist/types/ui/Toolbar/Toolbar.d.ts +2 -2
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbarNext.d.ts +2 -0
- package/dist/types-ts4.5/ui/Toolbar/Toolbar.d.ts +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 210.1.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`bcc3b620154b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bcc3b620154b0) -
|
|
8
|
+
[ux] ED-28739 [Register] [Primary toolbar] Insert button
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 210.1.7
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -187,6 +187,8 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
|
|
|
187
187
|
editorAPI: editorAPI,
|
|
188
188
|
editorView: props.editorView,
|
|
189
189
|
popupsMountPoint: props.popupsMountPoint,
|
|
190
|
+
popupsBoundariesElement: props.popupsBoundariesElement,
|
|
191
|
+
popupsScrollableElement: props.popupsScrollableElement,
|
|
190
192
|
showKeyline: showKeyline
|
|
191
193
|
})) : (0, _react2.jsx)(_FullPageToolbar.FullPageToolbar, {
|
|
192
194
|
appearance: props.appearance,
|
|
@@ -47,7 +47,9 @@ var ToolbarNext = exports.ToolbarNext = function ToolbarNext(_ref) {
|
|
|
47
47
|
editorView = _ref.editorView,
|
|
48
48
|
editorAPI = _ref.editorAPI,
|
|
49
49
|
popupsMountPoint = _ref.popupsMountPoint,
|
|
50
|
-
editorAppearance = _ref.editorAppearance
|
|
50
|
+
editorAppearance = _ref.editorAppearance,
|
|
51
|
+
popupsBoundariesElement = _ref.popupsBoundariesElement,
|
|
52
|
+
popupsScrollableElement = _ref.popupsScrollableElement;
|
|
51
53
|
var connectivityStateMode = (0, _useSharedPluginStateSelector.useSharedPluginStateSelector)(editorAPI, 'connectivity.mode');
|
|
52
54
|
var isOffline = connectivityStateMode === 'offline';
|
|
53
55
|
return /*#__PURE__*/_react.default.createElement(_toolbar.EditorToolbarProvider, {
|
|
@@ -56,7 +58,9 @@ var ToolbarNext = exports.ToolbarNext = function ToolbarNext(_ref) {
|
|
|
56
58
|
}, /*#__PURE__*/_react.default.createElement(_toolbar.EditorToolbarUIProvider, {
|
|
57
59
|
api: editorAPI,
|
|
58
60
|
isDisabled: isOffline,
|
|
59
|
-
popupsMountPoint: popupsMountPoint
|
|
61
|
+
popupsMountPoint: popupsMountPoint,
|
|
62
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
63
|
+
popupsScrollableElement: popupsScrollableElement
|
|
60
64
|
}, /*#__PURE__*/_react.default.createElement(_editorToolbarModel.ToolbarModelRenderer, {
|
|
61
65
|
toolbar: toolbar,
|
|
62
66
|
components: components,
|
|
@@ -174,6 +174,8 @@ export const FullPageEditor = props => {
|
|
|
174
174
|
editorAPI: editorAPI,
|
|
175
175
|
editorView: props.editorView,
|
|
176
176
|
popupsMountPoint: props.popupsMountPoint,
|
|
177
|
+
popupsBoundariesElement: props.popupsBoundariesElement,
|
|
178
|
+
popupsScrollableElement: props.popupsScrollableElement,
|
|
177
179
|
showKeyline: showKeyline
|
|
178
180
|
})) : jsx(FullPageToolbar, {
|
|
179
181
|
appearance: props.appearance,
|
|
@@ -41,7 +41,9 @@ export const ToolbarNext = ({
|
|
|
41
41
|
editorView,
|
|
42
42
|
editorAPI,
|
|
43
43
|
popupsMountPoint,
|
|
44
|
-
editorAppearance
|
|
44
|
+
editorAppearance,
|
|
45
|
+
popupsBoundariesElement,
|
|
46
|
+
popupsScrollableElement
|
|
45
47
|
}) => {
|
|
46
48
|
const connectivityStateMode = useSharedPluginStateSelector(editorAPI, 'connectivity.mode');
|
|
47
49
|
const isOffline = connectivityStateMode === 'offline';
|
|
@@ -51,7 +53,9 @@ export const ToolbarNext = ({
|
|
|
51
53
|
}, /*#__PURE__*/React.createElement(EditorToolbarUIProvider, {
|
|
52
54
|
api: editorAPI,
|
|
53
55
|
isDisabled: isOffline,
|
|
54
|
-
popupsMountPoint: popupsMountPoint
|
|
56
|
+
popupsMountPoint: popupsMountPoint,
|
|
57
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
58
|
+
popupsScrollableElement: popupsScrollableElement
|
|
55
59
|
}, /*#__PURE__*/React.createElement(ToolbarModelRenderer, {
|
|
56
60
|
toolbar: toolbar,
|
|
57
61
|
components: components,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "210.1.
|
|
2
|
+
export const version = "210.1.7";
|
|
@@ -177,6 +177,8 @@ export var FullPageEditor = function FullPageEditor(props) {
|
|
|
177
177
|
editorAPI: editorAPI,
|
|
178
178
|
editorView: props.editorView,
|
|
179
179
|
popupsMountPoint: props.popupsMountPoint,
|
|
180
|
+
popupsBoundariesElement: props.popupsBoundariesElement,
|
|
181
|
+
popupsScrollableElement: props.popupsScrollableElement,
|
|
180
182
|
showKeyline: showKeyline
|
|
181
183
|
})) : jsx(FullPageToolbar, {
|
|
182
184
|
appearance: props.appearance,
|
|
@@ -41,7 +41,9 @@ export var ToolbarNext = function ToolbarNext(_ref) {
|
|
|
41
41
|
editorView = _ref.editorView,
|
|
42
42
|
editorAPI = _ref.editorAPI,
|
|
43
43
|
popupsMountPoint = _ref.popupsMountPoint,
|
|
44
|
-
editorAppearance = _ref.editorAppearance
|
|
44
|
+
editorAppearance = _ref.editorAppearance,
|
|
45
|
+
popupsBoundariesElement = _ref.popupsBoundariesElement,
|
|
46
|
+
popupsScrollableElement = _ref.popupsScrollableElement;
|
|
45
47
|
var connectivityStateMode = useSharedPluginStateSelector(editorAPI, 'connectivity.mode');
|
|
46
48
|
var isOffline = connectivityStateMode === 'offline';
|
|
47
49
|
return /*#__PURE__*/React.createElement(EditorToolbarProvider, {
|
|
@@ -50,7 +52,9 @@ export var ToolbarNext = function ToolbarNext(_ref) {
|
|
|
50
52
|
}, /*#__PURE__*/React.createElement(EditorToolbarUIProvider, {
|
|
51
53
|
api: editorAPI,
|
|
52
54
|
isDisabled: isOffline,
|
|
53
|
-
popupsMountPoint: popupsMountPoint
|
|
55
|
+
popupsMountPoint: popupsMountPoint,
|
|
56
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
57
|
+
popupsScrollableElement: popupsScrollableElement
|
|
54
58
|
}, /*#__PURE__*/React.createElement(ToolbarModelRenderer, {
|
|
55
59
|
toolbar: toolbar,
|
|
56
60
|
components: components,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "210.1.
|
|
2
|
+
export var version = "210.1.7";
|
|
@@ -10,7 +10,9 @@ type FullPageToolbarNextProps = {
|
|
|
10
10
|
beforeIcon?: React.ReactNode;
|
|
11
11
|
editorAPI?: PublicPluginAPI<[ToolbarPlugin]>;
|
|
12
12
|
editorView?: EditorView;
|
|
13
|
+
popupsBoundariesElement?: HTMLElement;
|
|
13
14
|
popupsMountPoint?: HTMLElement;
|
|
15
|
+
popupsScrollableElement?: HTMLElement;
|
|
14
16
|
showKeyline: boolean;
|
|
15
17
|
toolbarDockingPosition?: 'top' | 'none';
|
|
16
18
|
};
|
|
@@ -12,7 +12,7 @@ import type { ToolbarProps } from './toolbar-types';
|
|
|
12
12
|
* If making changes to this component please ensure to also update `<ToolbarNext />`.
|
|
13
13
|
*/
|
|
14
14
|
export declare const Toolbar: (props: ToolbarProps) => JSX.Element;
|
|
15
|
-
type NewToolbarProps = Pick<ToolbarUIContextType, 'popupsMountPoint'> & Pick<EditorToolbarContextType, 'editorAppearance'> & {
|
|
15
|
+
type NewToolbarProps = Pick<ToolbarUIContextType, 'popupsMountPoint' | 'popupsBoundariesElement' | 'popupsScrollableElement'> & Pick<EditorToolbarContextType, 'editorAppearance'> & {
|
|
16
16
|
components: RegisterComponent[];
|
|
17
17
|
editorAPI?: PublicPluginAPI<[ToolbarPlugin]>;
|
|
18
18
|
editorView?: EditorView;
|
|
@@ -24,5 +24,5 @@ type NewToolbarProps = Pick<ToolbarUIContextType, 'popupsMountPoint'> & Pick<Edi
|
|
|
24
24
|
*
|
|
25
25
|
* The majority of components UI should use `@atlaskit/editor-toolbar` components.
|
|
26
26
|
*/
|
|
27
|
-
export declare const ToolbarNext: ({ toolbar, components, editorView, editorAPI, popupsMountPoint, editorAppearance, }: NewToolbarProps) => React.JSX.Element;
|
|
27
|
+
export declare const ToolbarNext: ({ toolbar, components, editorView, editorAPI, popupsMountPoint, editorAppearance, popupsBoundariesElement, popupsScrollableElement, }: NewToolbarProps) => React.JSX.Element;
|
|
28
28
|
export {};
|
|
@@ -12,7 +12,9 @@ type FullPageToolbarNextProps = {
|
|
|
12
12
|
ToolbarPlugin
|
|
13
13
|
]>;
|
|
14
14
|
editorView?: EditorView;
|
|
15
|
+
popupsBoundariesElement?: HTMLElement;
|
|
15
16
|
popupsMountPoint?: HTMLElement;
|
|
17
|
+
popupsScrollableElement?: HTMLElement;
|
|
16
18
|
showKeyline: boolean;
|
|
17
19
|
toolbarDockingPosition?: 'top' | 'none';
|
|
18
20
|
};
|
|
@@ -12,7 +12,7 @@ import type { ToolbarProps } from './toolbar-types';
|
|
|
12
12
|
* If making changes to this component please ensure to also update `<ToolbarNext />`.
|
|
13
13
|
*/
|
|
14
14
|
export declare const Toolbar: (props: ToolbarProps) => JSX.Element;
|
|
15
|
-
type NewToolbarProps = Pick<ToolbarUIContextType, 'popupsMountPoint'> & Pick<EditorToolbarContextType, 'editorAppearance'> & {
|
|
15
|
+
type NewToolbarProps = Pick<ToolbarUIContextType, 'popupsMountPoint' | 'popupsBoundariesElement' | 'popupsScrollableElement'> & Pick<EditorToolbarContextType, 'editorAppearance'> & {
|
|
16
16
|
components: RegisterComponent[];
|
|
17
17
|
editorAPI?: PublicPluginAPI<[
|
|
18
18
|
ToolbarPlugin
|
|
@@ -26,5 +26,5 @@ type NewToolbarProps = Pick<ToolbarUIContextType, 'popupsMountPoint'> & Pick<Edi
|
|
|
26
26
|
*
|
|
27
27
|
* The majority of components UI should use `@atlaskit/editor-toolbar` components.
|
|
28
28
|
*/
|
|
29
|
-
export declare const ToolbarNext: ({ toolbar, components, editorView, editorAPI, popupsMountPoint, editorAppearance, }: NewToolbarProps) => React.JSX.Element;
|
|
29
|
+
export declare const ToolbarNext: ({ toolbar, components, editorView, editorAPI, popupsMountPoint, editorAppearance, popupsBoundariesElement, popupsScrollableElement, }: NewToolbarProps) => React.JSX.Element;
|
|
30
30
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "210.1.
|
|
3
|
+
"version": "210.1.8",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@atlaskit/activity-provider": "^2.5.0",
|
|
42
|
-
"@atlaskit/adf-schema": "^50.2.
|
|
42
|
+
"@atlaskit/adf-schema": "^50.2.2",
|
|
43
43
|
"@atlaskit/analytics-namespaced-context": "^7.0.0",
|
|
44
44
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
45
45
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"uuid": "^3.1.0"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
|
-
"@atlaskit/editor-common": "^107.
|
|
83
|
+
"@atlaskit/editor-common": "^107.30.0",
|
|
84
84
|
"@atlaskit/link-provider": "^3.7.0",
|
|
85
85
|
"@atlaskit/media-core": "^37.0.0",
|
|
86
86
|
"react": "^18.2.0",
|