@atlaskit/editor-plugin-extension 3.0.4 → 3.0.5
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 +9 -0
- package/dist/cjs/pm-plugins/toolbar.js +2 -2
- package/dist/es2019/pm-plugins/toolbar.js +2 -2
- package/dist/esm/pm-plugins/toolbar.js +2 -2
- package/dist/types/extensionPluginType.d.ts +19 -17
- package/dist/types-ts4.5/extensionPluginType.d.ts +19 -17
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-extension
|
|
2
2
|
|
|
3
|
+
## 3.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#104767](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/104767)
|
|
8
|
+
[`c90f6b5560f3f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c90f6b5560f3f) -
|
|
9
|
+
ED-25971 LCM - Alter logic inside floating toolbar position calculation to use attribute from
|
|
10
|
+
extension node rather than traversing up the ancestors to find a CSS class.
|
|
11
|
+
|
|
3
12
|
## 3.0.4
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -168,8 +168,8 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(_ref
|
|
|
168
168
|
if (!extensionNode) {
|
|
169
169
|
return nextPos;
|
|
170
170
|
}
|
|
171
|
-
var
|
|
172
|
-
if (!isBodiedExtensionInsideMBE && !
|
|
171
|
+
var isExtensionNodeNested = extensionNode.node.attrs.nested;
|
|
172
|
+
if (!isBodiedExtensionInsideMBE && !isExtensionNodeNested) {
|
|
173
173
|
return nextPos;
|
|
174
174
|
}
|
|
175
175
|
} else {
|
|
@@ -165,8 +165,8 @@ export const getToolbarConfig = ({
|
|
|
165
165
|
if (!extensionNode) {
|
|
166
166
|
return nextPos;
|
|
167
167
|
}
|
|
168
|
-
const
|
|
169
|
-
if (!isBodiedExtensionInsideMBE && !
|
|
168
|
+
const isExtensionNodeNested = extensionNode.node.attrs.nested;
|
|
169
|
+
if (!isBodiedExtensionInsideMBE && !isExtensionNodeNested) {
|
|
170
170
|
return nextPos;
|
|
171
171
|
}
|
|
172
172
|
} else {
|
|
@@ -161,8 +161,8 @@ export var getToolbarConfig = function getToolbarConfig(_ref) {
|
|
|
161
161
|
if (!extensionNode) {
|
|
162
162
|
return nextPos;
|
|
163
163
|
}
|
|
164
|
-
var
|
|
165
|
-
if (!isBodiedExtensionInsideMBE && !
|
|
164
|
+
var isExtensionNodeNested = extensionNode.node.attrs.nested;
|
|
165
|
+
if (!isBodiedExtensionInsideMBE && !isExtensionNodeNested) {
|
|
166
166
|
return nextPos;
|
|
167
167
|
}
|
|
168
168
|
} else {
|
|
@@ -61,27 +61,29 @@ export type InsertOrReplaceExtensionType = {
|
|
|
61
61
|
tr: Transaction;
|
|
62
62
|
};
|
|
63
63
|
type InsertOrReplaceExtensionAction = ({ editorView, action, attrs, content, position, size, tr, }: InsertOrReplaceExtensionType) => Transaction;
|
|
64
|
+
export type ExtensionPluginDependencies = [
|
|
65
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
66
|
+
OptionalPlugin<FeatureFlagsPlugin>,
|
|
67
|
+
WidthPlugin,
|
|
68
|
+
DecorationsPlugin,
|
|
69
|
+
OptionalPlugin<ContextPanelPlugin>,
|
|
70
|
+
OptionalPlugin<ContextIdentifierPlugin>
|
|
71
|
+
];
|
|
72
|
+
export type ExtensionPluginActions = {
|
|
73
|
+
editSelectedExtension: () => boolean;
|
|
74
|
+
api: () => ExtensionAPI;
|
|
75
|
+
insertMacroFromMacroBrowser: InsertMacroFromMacroBrowser;
|
|
76
|
+
insertOrReplaceExtension: InsertOrReplaceExtensionAction;
|
|
77
|
+
insertOrReplaceBodiedExtension: InsertOrReplaceExtensionAction;
|
|
78
|
+
runMacroAutoConvert: RunMacroAutoConvert;
|
|
79
|
+
forceAutoSave: typeof forceAutoSave;
|
|
80
|
+
};
|
|
64
81
|
export type ExtensionPlugin = NextEditorPlugin<'extension', {
|
|
65
82
|
pluginConfiguration: ExtensionPluginOptions | undefined;
|
|
66
|
-
dependencies:
|
|
67
|
-
OptionalPlugin<AnalyticsPlugin>,
|
|
68
|
-
OptionalPlugin<FeatureFlagsPlugin>,
|
|
69
|
-
WidthPlugin,
|
|
70
|
-
DecorationsPlugin,
|
|
71
|
-
OptionalPlugin<ContextPanelPlugin>,
|
|
72
|
-
OptionalPlugin<ContextIdentifierPlugin>
|
|
73
|
-
];
|
|
83
|
+
dependencies: ExtensionPluginDependencies;
|
|
74
84
|
sharedState: {
|
|
75
85
|
showContextPanel: boolean | undefined;
|
|
76
86
|
} | undefined;
|
|
77
|
-
actions:
|
|
78
|
-
editSelectedExtension: () => boolean;
|
|
79
|
-
api: () => ExtensionAPI;
|
|
80
|
-
insertMacroFromMacroBrowser: InsertMacroFromMacroBrowser;
|
|
81
|
-
insertOrReplaceExtension: InsertOrReplaceExtensionAction;
|
|
82
|
-
insertOrReplaceBodiedExtension: InsertOrReplaceExtensionAction;
|
|
83
|
-
runMacroAutoConvert: RunMacroAutoConvert;
|
|
84
|
-
forceAutoSave: typeof forceAutoSave;
|
|
85
|
-
};
|
|
87
|
+
actions: ExtensionPluginActions;
|
|
86
88
|
}>;
|
|
87
89
|
export {};
|
|
@@ -61,27 +61,29 @@ export type InsertOrReplaceExtensionType = {
|
|
|
61
61
|
tr: Transaction;
|
|
62
62
|
};
|
|
63
63
|
type InsertOrReplaceExtensionAction = ({ editorView, action, attrs, content, position, size, tr, }: InsertOrReplaceExtensionType) => Transaction;
|
|
64
|
+
export type ExtensionPluginDependencies = [
|
|
65
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
66
|
+
OptionalPlugin<FeatureFlagsPlugin>,
|
|
67
|
+
WidthPlugin,
|
|
68
|
+
DecorationsPlugin,
|
|
69
|
+
OptionalPlugin<ContextPanelPlugin>,
|
|
70
|
+
OptionalPlugin<ContextIdentifierPlugin>
|
|
71
|
+
];
|
|
72
|
+
export type ExtensionPluginActions = {
|
|
73
|
+
editSelectedExtension: () => boolean;
|
|
74
|
+
api: () => ExtensionAPI;
|
|
75
|
+
insertMacroFromMacroBrowser: InsertMacroFromMacroBrowser;
|
|
76
|
+
insertOrReplaceExtension: InsertOrReplaceExtensionAction;
|
|
77
|
+
insertOrReplaceBodiedExtension: InsertOrReplaceExtensionAction;
|
|
78
|
+
runMacroAutoConvert: RunMacroAutoConvert;
|
|
79
|
+
forceAutoSave: typeof forceAutoSave;
|
|
80
|
+
};
|
|
64
81
|
export type ExtensionPlugin = NextEditorPlugin<'extension', {
|
|
65
82
|
pluginConfiguration: ExtensionPluginOptions | undefined;
|
|
66
|
-
dependencies:
|
|
67
|
-
OptionalPlugin<AnalyticsPlugin>,
|
|
68
|
-
OptionalPlugin<FeatureFlagsPlugin>,
|
|
69
|
-
WidthPlugin,
|
|
70
|
-
DecorationsPlugin,
|
|
71
|
-
OptionalPlugin<ContextPanelPlugin>,
|
|
72
|
-
OptionalPlugin<ContextIdentifierPlugin>
|
|
73
|
-
];
|
|
83
|
+
dependencies: ExtensionPluginDependencies;
|
|
74
84
|
sharedState: {
|
|
75
85
|
showContextPanel: boolean | undefined;
|
|
76
86
|
} | undefined;
|
|
77
|
-
actions:
|
|
78
|
-
editSelectedExtension: () => boolean;
|
|
79
|
-
api: () => ExtensionAPI;
|
|
80
|
-
insertMacroFromMacroBrowser: InsertMacroFromMacroBrowser;
|
|
81
|
-
insertOrReplaceExtension: InsertOrReplaceExtensionAction;
|
|
82
|
-
insertOrReplaceBodiedExtension: InsertOrReplaceExtensionAction;
|
|
83
|
-
runMacroAutoConvert: RunMacroAutoConvert;
|
|
84
|
-
forceAutoSave: typeof forceAutoSave;
|
|
85
|
-
};
|
|
87
|
+
actions: ExtensionPluginActions;
|
|
86
88
|
}>;
|
|
87
89
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-extension",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
27
|
-
"@atlaskit/adf-utils": "^19.
|
|
27
|
+
"@atlaskit/adf-utils": "^19.17.0",
|
|
28
28
|
"@atlaskit/analytics-next": "^10.2.0",
|
|
29
29
|
"@atlaskit/avatar": "^21.17.0",
|
|
30
30
|
"@atlaskit/button": "^20.3.0",
|
|
31
31
|
"@atlaskit/checkbox": "^15.2.0",
|
|
32
|
-
"@atlaskit/datetime-picker": "^15.
|
|
33
|
-
"@atlaskit/editor-common": "^99.
|
|
32
|
+
"@atlaskit/datetime-picker": "^15.11.0",
|
|
33
|
+
"@atlaskit/editor-common": "^99.4.0",
|
|
34
34
|
"@atlaskit/editor-json-transformer": "^8.21.0",
|
|
35
35
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
36
36
|
"@atlaskit/editor-plugin-context-identifier": "^1.3.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/empty-state": "^8.1.0",
|
|
45
45
|
"@atlaskit/form": "^11.0.0",
|
|
46
46
|
"@atlaskit/heading": "4.0.1",
|
|
47
|
-
"@atlaskit/icon": "^23.
|
|
47
|
+
"@atlaskit/icon": "^23.4.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
49
49
|
"@atlaskit/primitives": "^13.3.0",
|
|
50
50
|
"@atlaskit/radio": "^7.0.0",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"@atlaskit/textarea": "^5.7.0",
|
|
57
57
|
"@atlaskit/textfield": "^6.7.0",
|
|
58
58
|
"@atlaskit/theme": "^14.0.0",
|
|
59
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
59
|
+
"@atlaskit/tmp-editor-statsig": "^2.38.0",
|
|
60
60
|
"@atlaskit/toggle": "^14.0.0",
|
|
61
|
-
"@atlaskit/tokens": "^3.
|
|
61
|
+
"@atlaskit/tokens": "^3.1.0",
|
|
62
62
|
"@atlaskit/tooltip": "^19.0.0",
|
|
63
63
|
"@babel/runtime": "^7.0.0",
|
|
64
64
|
"@emotion/react": "^11.7.1",
|