@atlaskit/editor-plugin-extension 3.0.4 → 3.0.6
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/extensionPlugin.js +2 -2
- package/dist/es2019/extensionPlugin.js +1 -1
- package/dist/esm/extensionPlugin.js +1 -1
- package/dist/types/extensionPluginType.d.ts +19 -17
- package/dist/types-ts4.5/extensionPluginType.d.ts +19 -17
- package/package.json +9 -9
- /package/dist/cjs/pm-plugins/macro/{index.js → plugin.js} +0 -0
- /package/dist/es2019/pm-plugins/macro/{index.js → plugin.js} +0 -0
- /package/dist/esm/pm-plugins/macro/{index.js → plugin.js} +0 -0
- /package/dist/types/pm-plugins/macro/{index.d.ts → plugin.d.ts} +0 -0
- /package/dist/types-ts4.5/pm-plugins/macro/{index.d.ts → plugin.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-extension
|
|
2
2
|
|
|
3
|
+
## 3.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#105671](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/105671)
|
|
8
|
+
[`9b856dd6141f4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9b856dd6141f4) -
|
|
9
|
+
Update file path to fix issue on notification storybook
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 3.0.5
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#104767](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/104767)
|
|
17
|
+
[`c90f6b5560f3f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c90f6b5560f3f) -
|
|
18
|
+
ED-25971 LCM - Alter logic inside floating toolbar position calculation to use attribute from
|
|
19
|
+
extension node rather than traversing up the ancestors to find a CSS class.
|
|
20
|
+
|
|
3
21
|
## 3.0.4
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -11,8 +11,8 @@ var _actions = require("./editor-actions/actions");
|
|
|
11
11
|
var _commands = require("./editor-commands/commands");
|
|
12
12
|
var _extensionApi = require("./pm-plugins/extension-api");
|
|
13
13
|
var _keymap = _interopRequireDefault(require("./pm-plugins/keymap"));
|
|
14
|
-
var _macro = require("./pm-plugins/macro");
|
|
15
14
|
var _actions2 = require("./pm-plugins/macro/actions");
|
|
15
|
+
var _plugin = require("./pm-plugins/macro/plugin");
|
|
16
16
|
var _main = require("./pm-plugins/main");
|
|
17
17
|
var _pluginKey = require("./pm-plugins/plugin-key");
|
|
18
18
|
var _bodiedExtension = require("./pm-plugins/toDOM-fixes/bodiedExtension");
|
|
@@ -105,7 +105,7 @@ var extensionPlugin = exports.extensionPlugin = function extensionPlugin(_ref) {
|
|
|
105
105
|
plugin: function plugin(_ref3) {
|
|
106
106
|
var dispatch = _ref3.dispatch,
|
|
107
107
|
providerFactory = _ref3.providerFactory;
|
|
108
|
-
return (0,
|
|
108
|
+
return (0, _plugin.createPlugin)(dispatch, providerFactory);
|
|
109
109
|
}
|
|
110
110
|
}];
|
|
111
111
|
},
|
|
@@ -4,8 +4,8 @@ import { createEditSelectedExtensionAction, insertOrReplaceBodiedExtension, inse
|
|
|
4
4
|
import { forceAutoSave } from './editor-commands/commands';
|
|
5
5
|
import { createExtensionAPI } from './pm-plugins/extension-api';
|
|
6
6
|
import keymapPlugin from './pm-plugins/keymap';
|
|
7
|
-
import { createPlugin as createMacroPlugin } from './pm-plugins/macro';
|
|
8
7
|
import { insertMacroFromMacroBrowser, runMacroAutoConvert } from './pm-plugins/macro/actions';
|
|
8
|
+
import { createPlugin as createMacroPlugin } from './pm-plugins/macro/plugin';
|
|
9
9
|
import { createPlugin } from './pm-plugins/main';
|
|
10
10
|
import { pluginKey } from './pm-plugins/plugin-key';
|
|
11
11
|
import { bodiedExtensionSpecWithFixedToDOM } from './pm-plugins/toDOM-fixes/bodiedExtension';
|
|
@@ -4,8 +4,8 @@ import { createEditSelectedExtensionAction, insertOrReplaceBodiedExtension as _i
|
|
|
4
4
|
import { forceAutoSave } from './editor-commands/commands';
|
|
5
5
|
import { createExtensionAPI } from './pm-plugins/extension-api';
|
|
6
6
|
import keymapPlugin from './pm-plugins/keymap';
|
|
7
|
-
import { createPlugin as createMacroPlugin } from './pm-plugins/macro';
|
|
8
7
|
import { insertMacroFromMacroBrowser, runMacroAutoConvert } from './pm-plugins/macro/actions';
|
|
8
|
+
import { createPlugin as createMacroPlugin } from './pm-plugins/macro/plugin';
|
|
9
9
|
import { createPlugin } from './pm-plugins/main';
|
|
10
10
|
import { pluginKey } from './pm-plugins/plugin-key';
|
|
11
11
|
import { bodiedExtensionSpecWithFixedToDOM } from './pm-plugins/toDOM-fixes/bodiedExtension';
|
|
@@ -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.6",
|
|
4
4
|
"description": "editor-plugin-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,15 +24,15 @@
|
|
|
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.5.0",
|
|
34
34
|
"@atlaskit/editor-json-transformer": "^8.21.0",
|
|
35
|
-
"@atlaskit/editor-plugin-analytics": "^1.
|
|
35
|
+
"@atlaskit/editor-plugin-analytics": "^1.11.0",
|
|
36
36
|
"@atlaskit/editor-plugin-context-identifier": "^1.3.0",
|
|
37
37
|
"@atlaskit/editor-plugin-context-panel": "^1.4.0",
|
|
38
38
|
"@atlaskit/editor-plugin-decorations": "^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",
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
"@atlaskit/select": "^18.9.0",
|
|
53
53
|
"@atlaskit/smart-user-picker": "^6.11.0",
|
|
54
54
|
"@atlaskit/spinner": "^16.3.0",
|
|
55
|
-
"@atlaskit/tabs": "^17.
|
|
55
|
+
"@atlaskit/tabs": "^17.1.0",
|
|
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.40.0",
|
|
60
60
|
"@atlaskit/toggle": "^14.0.0",
|
|
61
|
-
"@atlaskit/tokens": "^3.
|
|
61
|
+
"@atlaskit/tokens": "^3.2.0",
|
|
62
62
|
"@atlaskit/tooltip": "^19.0.0",
|
|
63
63
|
"@babel/runtime": "^7.0.0",
|
|
64
64
|
"@emotion/react": "^11.7.1",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|